class Azure::Postgresql::Mgmt::V2017_12_01_preview::Models::ServerSecurityAlertPolicy

A server security alert policy.

Attributes

disabled_alerts[RW]

@return [Array<String>] Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly

email_account_admins[RW]

@return [Boolean] Specifies that the alert is sent to the account administrators.

email_addresses[RW]

@return [Array<String>] Specifies an array of e-mail addresses to which the alert is sent.

retention_days[RW]

@return [Integer] Specifies the number of days to keep in the Threat Detection audit logs.

state[RW]

@return [ServerSecurityAlertPolicyState] Specifies the state of the policy, whether it is enabled or disabled. Possible values include: 'Enabled', 'Disabled'

storage_account_access_key[RW]

@return [String] Specifies the identifier key of the Threat Detection audit storage account.

storage_endpoint[RW]

@return [String] Specifies the blob storage endpoint (e.g. MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.

Public Class Methods

mapper() click to toggle source

Mapper for ServerSecurityAlertPolicy class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_security_alert_policy.rb, line 51
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ServerSecurityAlertPolicy',
    type: {
      name: 'Composite',
      class_name: 'ServerSecurityAlertPolicy',
      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'
          }
        },
        state: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.state',
          type: {
            name: 'Enum',
            module: 'ServerSecurityAlertPolicyState'
          }
        },
        disabled_alerts: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.disabledAlerts',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        email_addresses: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.emailAddresses',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        email_account_admins: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.emailAccountAdmins',
          type: {
            name: 'Boolean'
          }
        },
        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'
          }
        }
      }
    }
  }
end