Class: Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseSecurityAlertPolicy
- Inherits:
-
ProxyResource
- Object
- Resource
- ProxyResource
- Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseSecurityAlertPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2014-04-01/generated/azure_mgmt_sql/models/database_security_alert_policy.rb
Overview
Contains information about a database Threat Detection policy.
Instance Attribute Summary collapse
-
#disabled_alerts ⇒ String
are disabled, or empty string to disable no alerts.
-
#email_account_admins ⇒ SecurityAlertPolicyEmailAccountAdmins
alert is sent to the account administrators.
-
#email_addresses ⇒ String
addresses to which the alert is sent.
-
#kind ⇒ String
Resource kind.
-
#location ⇒ String
The geo-location where the resource lives.
-
#retention_days ⇒ Integer
Detection audit logs.
-
#state ⇒ SecurityAlertPolicyState
If state is Enabled, storageEndpoint and storageAccountAccessKey are required.
-
#storage_account_access_key ⇒ String
audit storage account.
- #storage_endpoint ⇒ String
-
#use_server_default ⇒ SecurityAlertPolicyUseServerDefault
the default server policy.
Attributes inherited from Resource
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for DatabaseSecurityAlertPolicy class as Ruby Hash.
Methods inherited from Resource
Instance Attribute Details
#disabled_alerts ⇒ String
are disabled, or empty string to disable no alerts. Possible values: Sql_Injection; Sql_Injection_Vulnerability; Access_Anomaly; Data_Exfiltration; Unsafe_Action.
30 31 32 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 30 def disabled_alerts @disabled_alerts end |
#email_account_admins ⇒ SecurityAlertPolicyEmailAccountAdmins
alert is sent to the account administrators. Possible values include: ‘Enabled’, ‘Disabled’
39 40 41 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 39 def email_account_admins @email_account_admins end |
#email_addresses ⇒ String
addresses to which the alert is sent.
34 35 36 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 34 def email_addresses @email_addresses end |
#kind ⇒ String
Returns Resource kind.
19 20 21 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 19 def kind @kind end |
#location ⇒ String
Returns The geo-location where the resource lives.
16 17 18 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 16 def location @location end |
#retention_days ⇒ Integer
Detection audit logs.
54 55 56 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 54 def retention_days @retention_days end |
#state ⇒ SecurityAlertPolicyState
If state is Enabled, storageEndpoint and storageAccountAccessKey are required. Possible values include: ‘New’, ‘Enabled’, ‘Disabled’
24 25 26 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 24 def state @state end |
#storage_account_access_key ⇒ String
audit storage account. If state is Enabled, storageAccountAccessKey is required.
50 51 52 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 50 def storage_account_access_key @storage_account_access_key end |
#storage_endpoint ⇒ String
MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. If state is Enabled, storageEndpoint is required.
45 46 47 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 45 def storage_endpoint @storage_endpoint end |
#use_server_default ⇒ SecurityAlertPolicyUseServerDefault
the default server policy. Possible values include: ‘Enabled’, ‘Disabled’
59 60 61 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 59 def use_server_default @use_server_default end |
Class Method Details
.mapper ⇒ Object
Mapper for DatabaseSecurityAlertPolicy class as Ruby Hash. This will be used for serialization/deserialization.
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/database_security_alert_policy.rb', line 66 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'DatabaseSecurityAlertPolicy', type: { name: 'Composite', class_name: 'DatabaseSecurityAlertPolicy', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, location: { client_side_validation: true, required: false, serialized_name: 'location', type: { name: 'String' } }, kind: { client_side_validation: true, required: false, read_only: true, serialized_name: 'kind', type: { name: 'String' } }, state: { client_side_validation: true, required: true, serialized_name: 'properties.state', type: { name: 'Enum', module: 'SecurityAlertPolicyState' } }, disabled_alerts: { client_side_validation: true, required: false, serialized_name: 'properties.disabledAlerts', type: { name: 'String' } }, email_addresses: { client_side_validation: true, required: false, serialized_name: 'properties.emailAddresses', type: { name: 'String' } }, email_account_admins: { client_side_validation: true, required: false, serialized_name: 'properties.emailAccountAdmins', type: { name: 'Enum', module: 'SecurityAlertPolicyEmailAccountAdmins' } }, storage_endpoint: { client_side_validation: true, required: false, serialized_name: 'properties.storageEndpoint', type: { name: 'String' } }, storage_account_access_key: { client_side_validation: true, required: false, serialized_name: 'properties.storageAccountAccessKey', type: { name: 'String' } }, retention_days: { client_side_validation: true, required: false, serialized_name: 'properties.retentionDays', type: { name: 'Number' } }, use_server_default: { client_side_validation: true, required: false, serialized_name: 'properties.useServerDefault', type: { name: 'Enum', module: 'SecurityAlertPolicyUseServerDefault' } } } } } end |