Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 33 additions & 9 deletions account_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const (
ActionBackupsRestore EventAction = "backups_restore"
ActionCommunityQuestionReply EventAction = "community_question_reply"
ActionCommunityLike EventAction = "community_like"
ActionCreateCardUpdated EventAction = "credit_card_updated"
ActionCreditCardUpdated EventAction = "credit_card_updated"
ActionDatabaseCreate EventAction = "database_create"
ActionDatabaseDegraded EventAction = "database_degraded"
ActionDatabaseDelete EventAction = "database_delete"
Expand Down Expand Up @@ -149,6 +149,9 @@ const (
ActionOAuthClientDelete EventAction = "oauth_client_delete"
ActionOAuthClientSecretReset EventAction = "oauth_client_secret_reset" //#nosec G101
ActionOAuthClientUpdate EventAction = "oauth_client_update"
ActionOBJAccessKeyCreate EventAction = "obj_access_key_create"
ActionOBJAccessKeyDelete EventAction = "obj_access_key_delete"
ActionOBJAccessKeyUpdate EventAction = "obj_access_key_update"
ActionPaymentMethodAdd EventAction = "payment_method_add"
ActionPaymentSubmitted EventAction = "payment_submitted"
ActionPasswordReset EventAction = "password_reset"
Expand Down Expand Up @@ -193,21 +196,42 @@ const (
// Deprecated: incorrect spelling,
// to be removed in the next major version release.
ActionVolumeDelte EventAction = "volume_delete"

// Deprecated: incorrect spelling,
// to be removed in the next major version
ActionCreateCardUpdated = ActionCreditCardUpdated
)

// EntityType constants start with Entity and include Linode API Event Entity Types
type EntityType string

// EntityType contants are the entities an Event can be related to.
const (
EntityLinode EntityType = "linode"
EntityDisk EntityType = "disk"
EntityDatabase EntityType = "database"
EntityDomain EntityType = "domain"
EntityFirewall EntityType = "firewall"
EntityNodebalancer EntityType = "nodebalancer"
EntityVPC EntityType = "vpc"
EntityVPCSubnet EntityType = "subnet"
EntityAccount EntityType = "account"
EntityBackups EntityType = "backups"
EntityCommunity EntityType = "community"
EntityDatabase EntityType = "database"
EntityDisk EntityType = "disk"
EntityDomain EntityType = "domain"
EntityTransfer EntityType = "entity_transfer"
EntityFirewall EntityType = "firewall"
EntityImage EntityType = "image"
EntityIPAddress EntityType = "ipaddress"
EntityLinode EntityType = "linode"
EntityLongview EntityType = "longview"
EntityManagedService EntityType = "managed_service"
EntityNodebalancer EntityType = "nodebalancer"
EntityOAuthClient EntityType = "oauth_client"
EntityProfile EntityType = "profile"
EntityStackscript EntityType = "stackscript"
EntityTag EntityType = "tag"
EntityTicket EntityType = "ticket"
EntityToken EntityType = "token"
EntityUser EntityType = "user"
EntityUserSSHKey EntityType = "user_ssh_key"
EntityVolume EntityType = "volume"
EntityVPC EntityType = "vpc"
EntityVPCSubnet EntityType = "subnet"
)

// EventStatus constants start with Event and include Linode API Event Status values
Expand Down