-
Notifications
You must be signed in to change notification settings - Fork 189
/
servers_databases_security_alert_policy_spec_arm_types_gen.go
57 lines (43 loc) · 2.61 KB
/
servers_databases_security_alert_policy_spec_arm_types_gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package v1api20211101
import "github.com/Azure/azure-service-operator/v2/pkg/genruntime"
type Servers_Databases_SecurityAlertPolicy_Spec_ARM struct {
Name string `json:"name,omitempty"`
// Properties: Resource properties.
Properties *DatabaseSecurityAlertPoliciesSecurityAlertsPolicyProperties_ARM `json:"properties,omitempty"`
}
var _ genruntime.ARMResourceSpec = &Servers_Databases_SecurityAlertPolicy_Spec_ARM{}
// GetAPIVersion returns the ARM API version of the resource. This is always "2021-11-01"
func (policy Servers_Databases_SecurityAlertPolicy_Spec_ARM) GetAPIVersion() string {
return string(APIVersion_Value)
}
// GetName returns the Name of the resource
func (policy *Servers_Databases_SecurityAlertPolicy_Spec_ARM) GetName() string {
return policy.Name
}
// GetType returns the ARM Type of the resource. This is always "Microsoft.Sql/servers/databases/securityAlertPolicies"
func (policy *Servers_Databases_SecurityAlertPolicy_Spec_ARM) GetType() string {
return "Microsoft.Sql/servers/databases/securityAlertPolicies"
}
// Properties of a security alert policy.
type DatabaseSecurityAlertPoliciesSecurityAlertsPolicyProperties_ARM struct {
// DisabledAlerts: Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection,
// Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force
DisabledAlerts []string `json:"disabledAlerts,omitempty"`
// EmailAccountAdmins: Specifies that the alert is sent to the account administrators.
EmailAccountAdmins *bool `json:"emailAccountAdmins,omitempty"`
// EmailAddresses: Specifies an array of e-mail addresses to which the alert is sent.
EmailAddresses []string `json:"emailAddresses,omitempty"`
// RetentionDays: Specifies the number of days to keep in the Threat Detection audit logs.
RetentionDays *int `json:"retentionDays,omitempty"`
// State: Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the
// specific database.
State *DatabaseSecurityAlertPoliciesSecurityAlertsPolicyProperties_State `json:"state,omitempty"`
// StorageAccountAccessKey: Specifies the identifier key of the Threat Detection audit storage account.
StorageAccountAccessKey *string `json:"storageAccountAccessKey,omitempty"`
// StorageEndpoint: Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage
// will hold all Threat Detection audit logs.
StorageEndpoint *string `json:"storageEndpoint,omitempty"`
}