From 68454cb869dd1c62c4438228e3fc1546890206bb Mon Sep 17 00:00:00 2001 From: Jacob Riddle Date: Tue, 22 Aug 2023 18:27:00 +0000 Subject: [PATCH] adding missing events --- account_events.go | 221 ++++++++++++++++++++++++++-------------------- 1 file changed, 126 insertions(+), 95 deletions(-) diff --git a/account_events.go b/account_events.go index 137324486..f03931875 100644 --- a/account_events.go +++ b/account_events.go @@ -55,101 +55,132 @@ type EventAction string // EventAction constants represent the actions that cause an Event. New actions may be added in the future. const ( - ActionAccountUpdate EventAction = "account_update" - ActionAccountSettingsUpdate EventAction = "account_settings_update" - ActionBackupsEnable EventAction = "backups_enable" - ActionBackupsCancel EventAction = "backups_cancel" - ActionBackupsRestore EventAction = "backups_restore" - ActionCommunityQuestionReply EventAction = "community_question_reply" - ActionCommunityLike EventAction = "community_like" - ActionCreateCardUpdated EventAction = "credit_card_updated" - ActionDatabaseCreate EventAction = "database_create" - ActionDatabaseDegraded EventAction = "database_degraded" - ActionDatabaseDelete EventAction = "database_delete" - ActionDatabaseFailed EventAction = "database_failed" - ActionDatabaseUpdate EventAction = "database_update" - ActionDatabaseCreateFailed EventAction = "database_create_failed" - ActionDatabaseUpdateFailed EventAction = "database_update_failed" - ActionDatabaseBackupCreate EventAction = "database_backup_create" - ActionDatabaseBackupRestore EventAction = "database_backup_restore" - ActionDatabaseCredentialsReset EventAction = "database_credentials_reset" - ActionDiskCreate EventAction = "disk_create" - ActionDiskDelete EventAction = "disk_delete" - ActionDiskUpdate EventAction = "disk_update" - ActionDiskDuplicate EventAction = "disk_duplicate" - ActionDiskImagize EventAction = "disk_imagize" - ActionDiskResize EventAction = "disk_resize" - ActionDNSRecordCreate EventAction = "dns_record_create" - ActionDNSRecordDelete EventAction = "dns_record_delete" - ActionDNSRecordUpdate EventAction = "dns_record_update" - ActionDNSZoneCreate EventAction = "dns_zone_create" - ActionDNSZoneDelete EventAction = "dns_zone_delete" - ActionDNSZoneUpdate EventAction = "dns_zone_update" - ActionFirewallCreate EventAction = "firewall_create" - ActionFirewallDelete EventAction = "firewall_delete" - ActionFirewallDisable EventAction = "firewall_disable" - ActionFirewallEnable EventAction = "firewall_enable" - ActionFirewallUpdate EventAction = "firewall_update" - ActionFirewallDeviceAdd EventAction = "firewall_device_add" - ActionFirewallDeviceRemove EventAction = "firewall_device_remove" - ActionHostReboot EventAction = "host_reboot" - ActionImageDelete EventAction = "image_delete" - ActionImageUpdate EventAction = "image_update" - ActionImageUpload EventAction = "image_upload" - ActionLassieReboot EventAction = "lassie_reboot" - ActionLinodeAddIP EventAction = "linode_addip" - ActionLinodeBoot EventAction = "linode_boot" - ActionLinodeClone EventAction = "linode_clone" - ActionLinodeCreate EventAction = "linode_create" - ActionLinodeDelete EventAction = "linode_delete" - ActionLinodeUpdate EventAction = "linode_update" - ActionLinodeDeleteIP EventAction = "linode_deleteip" - ActionLinodeMigrate EventAction = "linode_migrate" - ActionLinodeMutate EventAction = "linode_mutate" - ActionLinodeMutateCreate EventAction = "linode_mutate_create" - ActionLinodeReboot EventAction = "linode_reboot" - ActionLinodeRebuild EventAction = "linode_rebuild" - ActionLinodeResize EventAction = "linode_resize" - ActionLinodeResizeCreate EventAction = "linode_resize_create" - ActionLinodeShutdown EventAction = "linode_shutdown" - ActionLinodeSnapshot EventAction = "linode_snapshot" - ActionLinodeConfigCreate EventAction = "linode_config_create" - ActionLinodeConfigDelete EventAction = "linode_config_delete" - ActionLinodeConfigUpdate EventAction = "linode_config_update" - ActionLishBoot EventAction = "lish_boot" - ActionLKENodeCreate EventAction = "lke_node_create" - ActionLongviewClientCreate EventAction = "longviewclient_create" - ActionLongviewClientDelete EventAction = "longviewclient_delete" - ActionLongviewClientUpdate EventAction = "longviewclient_update" - ActionManagedDisabled EventAction = "managed_disabled" - ActionManagedEnabled EventAction = "managed_enabled" - ActionManagedServiceCreate EventAction = "managed_service_create" - ActionManagedServiceDelete EventAction = "managed_service_delete" - ActionNodebalancerCreate EventAction = "nodebalancer_create" - ActionNodebalancerDelete EventAction = "nodebalancer_delete" - ActionNodebalancerUpdate EventAction = "nodebalancer_update" - ActionNodebalancerConfigCreate EventAction = "nodebalancer_config_create" - ActionNodebalancerConfigDelete EventAction = "nodebalancer_config_delete" - ActionNodebalancerConfigUpdate EventAction = "nodebalancer_config_update" - ActionPasswordReset EventAction = "password_reset" - ActionPaymentSubmitted EventAction = "payment_submitted" - ActionStackScriptCreate EventAction = "stackscript_create" - ActionStackScriptDelete EventAction = "stackscript_delete" - ActionStackScriptUpdate EventAction = "stackscript_update" - ActionStackScriptPublicize EventAction = "stackscript_publicize" - ActionStackScriptRevise EventAction = "stackscript_revise" - ActionTFADisabled EventAction = "tfa_disabled" - ActionTFAEnabled EventAction = "tfa_enabled" - ActionTicketAttachmentUpload EventAction = "ticket_attachment_upload" - ActionTicketCreate EventAction = "ticket_create" - ActionTicketUpdate EventAction = "ticket_update" - ActionVolumeAttach EventAction = "volume_attach" - ActionVolumeClone EventAction = "volume_clone" - ActionVolumeCreate EventAction = "volume_create" - ActionVolumeDelte EventAction = "volume_delete" - ActionVolumeUpdate EventAction = "volume_update" - ActionVolumeDetach EventAction = "volume_detach" - ActionVolumeResize EventAction = "volume_resize" + ActionAccountUpdate EventAction = "account_update" + ActionAccountSettingsUpdate EventAction = "account_settings_update" + ActionBackupsEnable EventAction = "backups_enable" + ActionBackupsCancel EventAction = "backups_cancel" + ActionBackupsRestore EventAction = "backups_restore" + ActionCommunityQuestionReply EventAction = "community_question_reply" + ActionCommunityLike EventAction = "community_like" + ActionCreateCardUpdated EventAction = "credit_card_updated" + ActionDatabaseCreate EventAction = "database_create" + ActionDatabaseDegraded EventAction = "database_degraded" + ActionDatabaseDelete EventAction = "database_delete" + ActionDatabaseFailed EventAction = "database_failed" + ActionDatabaseUpdate EventAction = "database_update" + ActionDatabaseCreateFailed EventAction = "database_create_failed" + ActionDatabaseUpdateFailed EventAction = "database_update_failed" + ActionDatabaseBackupCreate EventAction = "database_backup_create" + ActionDatabaseBackupRestore EventAction = "database_backup_restore" + ActionDatabaseCredentialsReset EventAction = "database_credentials_reset" + ActionDiskCreate EventAction = "disk_create" + ActionDiskDelete EventAction = "disk_delete" + ActionDiskUpdate EventAction = "disk_update" + ActionDiskDuplicate EventAction = "disk_duplicate" + ActionDiskImagize EventAction = "disk_imagize" + ActionDiskResize EventAction = "disk_resize" + ActionDNSRecordCreate EventAction = "dns_record_create" + ActionDNSRecordDelete EventAction = "dns_record_delete" + ActionDNSRecordUpdate EventAction = "dns_record_update" + ActionDNSZoneCreate EventAction = "dns_zone_create" + ActionDNSZoneDelete EventAction = "dns_zone_delete" + ActionDNSZoneUpdate EventAction = "dns_zone_update" + ActionDNSZoneImport EventAction = "dns_zone_import" + ActionEntityTransferAccept EventAction = "entity_transfer_accept" + ActionEntityTransferCancel EventAction = "entity_transfer_cancel" + ActionEntityTransferCreate EventAction = "entity_transfer_create" + ActionEntityTransferFail EventAction = "entity_transfer_fail" + ActionEntityTransferStale EventAction = "entity_transfer_stale" + ActionFirewallCreate EventAction = "firewall_create" + ActionFirewallDelete EventAction = "firewall_delete" + ActionFirewallDisable EventAction = "firewall_disable" + ActionFirewallEnable EventAction = "firewall_enable" + ActionFirewallUpdate EventAction = "firewall_update" + ActionFirewallDeviceAdd EventAction = "firewall_device_add" + ActionFirewallDeviceRemove EventAction = "firewall_device_remove" + ActionHostReboot EventAction = "host_reboot" + ActionImageDelete EventAction = "image_delete" + ActionImageUpdate EventAction = "image_update" + ActionImageUpload EventAction = "image_upload" + ActionIPAddressUpdate EventAction = "ipaddress_update" + ActionLassieReboot EventAction = "lassie_reboot" + ActionLinodeAddIP EventAction = "linode_addip" + ActionLinodeBoot EventAction = "linode_boot" + ActionLinodeClone EventAction = "linode_clone" + ActionLinodeCreate EventAction = "linode_create" + ActionLinodeDelete EventAction = "linode_delete" + ActionLinodeUpdate EventAction = "linode_update" + ActionLinodeDeleteIP EventAction = "linode_deleteip" + ActionLinodeMigrate EventAction = "linode_migrate" + ActionLinodeMigrateDatacenter EventAction = "linode_migrate_datacenter" + ActionLinodeMigrateDatacenterCreate EventAction = "linode_migrate_datacenter_create" + ActionLinodeMutate EventAction = "linode_mutate" + ActionLinodeMutateCreate EventAction = "linode_mutate_create" + ActionLinodeReboot EventAction = "linode_reboot" + ActionLinodeRebuild EventAction = "linode_rebuild" + ActionLinodeResize EventAction = "linode_resize" + ActionLinodeResizeCreate EventAction = "linode_resize_create" + ActionLinodeShutdown EventAction = "linode_shutdown" + ActionLinodeSnapshot EventAction = "linode_snapshot" + ActionLinodeConfigCreate EventAction = "linode_config_create" + ActionLinodeConfigDelete EventAction = "linode_config_delete" + ActionLinodeConfigUpdate EventAction = "linode_config_update" + ActionLishBoot EventAction = "lish_boot" + ActionLKENodeCreate EventAction = "lke_node_create" + ActionLongviewClientCreate EventAction = "longviewclient_create" + ActionLongviewClientDelete EventAction = "longviewclient_delete" + ActionLongviewClientUpdate EventAction = "longviewclient_update" + ActionManagedDisabled EventAction = "managed_disabled" + ActionManagedEnabled EventAction = "managed_enabled" + ActionManagedServiceCreate EventAction = "managed_service_create" + ActionManagedServiceDelete EventAction = "managed_service_delete" + ActionNodebalancerCreate EventAction = "nodebalancer_create" + ActionNodebalancerDelete EventAction = "nodebalancer_delete" + ActionNodebalancerUpdate EventAction = "nodebalancer_update" + ActionNodebalancerConfigCreate EventAction = "nodebalancer_config_create" + ActionNodebalancerConfigDelete EventAction = "nodebalancer_config_delete" + ActionNodebalancerConfigUpdate EventAction = "nodebalancer_config_update" + ActionNodebalancerNodeCreate EventAction = "nodebalancer_node_create" + ActionNodebalancerNodeDelete EventAction = "nodebalancer_node_delete" + ActionNodebalancerNodeUpdate EventAction = "nodebalancer_node_update" + ActionOAuthClientCreate EventAction = "oauth_client_create" + ActionOAuthClientDelete EventAction = "oauth_client_delete" + ActionOAuthClientSecretReset EventAction = "oauth_client_secret_reset" + ActionOAuthClientUpdate EventAction = "oauth_client_update" + ActionPaymentMethodAdd EventAction = "payment_method_add" + ActionPaymentSubmitted EventAction = "payment_submitted" + ActionPasswordReset EventAction = "password_reset" + ActionProfileUpdate EventAction = "profile_update" + ActionStackScriptCreate EventAction = "stackscript_create" + ActionStackScriptDelete EventAction = "stackscript_delete" + ActionStackScriptUpdate EventAction = "stackscript_update" + ActionStackScriptPublicize EventAction = "stackscript_publicize" + ActionStackScriptRevise EventAction = "stackscript_revise" + ActionTagCreate EventAction = "tag_create" + ActionTagDelete EventAction = "tag_delete" + ActionTFADisabled EventAction = "tfa_disabled" + ActionTFAEnabled EventAction = "tfa_enabled" + ActionTicketAttachmentUpload EventAction = "ticket_attachment_upload" + ActionTicketCreate EventAction = "ticket_create" + ActionTicketUpdate EventAction = "ticket_update" + ActionTokenCreate EventAction = "token_create" + ActionTokenDelete EventAction = "token_delete" + ActionTokenUpdate EventAction = "token_update" + ActionUserCreate EventAction = "user_create" + ActionUserDelete EventAction = "user_delete" + ActionUserUpdate EventAction = "user_update" + ActionUserSSHKeyAdd EventAction = "user_ssh_key_add" + ActionUserSSHKeyDelete EventAction = "user_ssh_key_delete" + ActionUserSSHKeyUpdate EventAction = "user_ssh_key_update" + ActionVLANAttach EventAction = "vlan_attach" + ActionVLANDetach EventAction = "vlan_detach" + ActionVolumeAttach EventAction = "volume_attach" + ActionVolumeClone EventAction = "volume_clone" + ActionVolumeCreate EventAction = "volume_create" + ActionVolumeDelte EventAction = "volume_delete" + ActionVolumeUpdate EventAction = "volume_update" + ActionVolumeDetach EventAction = "volume_detach" + ActionVolumeResize EventAction = "volume_resize" ) // EntityType constants start with Entity and include Linode API Event Entity Types