This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR sql/resource-manager] typo: sql/resource-manager/Microsoft.Sql (
#4367) * Generated from 08257e28e384f2beb81968710092f57a5404893c typo: sql/resource-manager/Microsoft.Sql - inhertied -> inherited - heirarchy -> hierarchy - succesfully -> successfully - explicity -> explicitly - Elatic -> Elastic - mising -> missing - updatess -> updates - scheduletype -> schedule type - bacukps -> backups - recoverabel -> recoverable - mininum -> minimum - recommented -> recommended - availabities -> availabilities - properites -> properties - servers's -> server's - maxiumum -> maximum - consuption -> consumption - historica -> historical * Generated from 08257e28e384f2beb81968710092f57a5404893c typo: sql/resource-manager/Microsoft.Sql - inhertied -> inherited - heirarchy -> hierarchy - succesfully -> successfully - explicity -> explicitly - Elatic -> Elastic - mising -> missing - updatess -> updates - scheduletype -> schedule type - bacukps -> backups - recoverabel -> recoverable - mininum -> minimum - recommented -> recommended - availabities -> availabilities - properites -> properties - servers's -> server's - maxiumum -> maximum - consuption -> consumption - historica -> historical
- Loading branch information
1 parent
f5fec47
commit b1a1154
Showing
20 changed files
with
2,477 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
162 changes: 162 additions & 0 deletions
162
lib/services/sqlManagement2/lib/models/managedDatabaseSecurityAlertPolicy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const models = require('./index'); | ||
|
||
/** | ||
* A managed database security alert policy. | ||
* | ||
* @extends models['ProxyResource'] | ||
*/ | ||
class ManagedDatabaseSecurityAlertPolicy extends models['ProxyResource'] { | ||
/** | ||
* Create a ManagedDatabaseSecurityAlertPolicy. | ||
* @property {string} state Specifies the state of the policy, whether it is | ||
* enabled or disabled. Possible values include: 'New', 'Enabled', 'Disabled' | ||
* @property {array} [disabledAlerts] Specifies an array of alerts that are | ||
* disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, | ||
* Access_Anomaly, Data_Exfiltration, Unsafe_Action | ||
* @property {array} [emailAddresses] Specifies an array of e-mail addresses | ||
* to which the alert is sent. | ||
* @property {boolean} [emailAccountAdmins] Specifies that the alert is sent | ||
* to the account administrators. | ||
* @property {string} [storageEndpoint] Specifies the blob storage endpoint | ||
* (e.g. https://MyAccount.blob.core.windows.net). This blob storage will | ||
* hold all Threat Detection audit logs. | ||
* @property {string} [storageAccountAccessKey] Specifies the identifier key | ||
* of the Threat Detection audit storage account. | ||
* @property {number} [retentionDays] Specifies the number of days to keep in | ||
* the Threat Detection audit logs. | ||
* @property {date} [creationTime] Specifies the UTC creation time of the | ||
* policy. | ||
*/ | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Defines the metadata of ManagedDatabaseSecurityAlertPolicy | ||
* | ||
* @returns {object} metadata of ManagedDatabaseSecurityAlertPolicy | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'ManagedDatabaseSecurityAlertPolicy', | ||
type: { | ||
name: 'Composite', | ||
className: 'ManagedDatabaseSecurityAlertPolicy', | ||
modelProperties: { | ||
id: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'id', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
name: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'name', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
type: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'type', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
state: { | ||
required: true, | ||
serializedName: 'properties.state', | ||
type: { | ||
name: 'Enum', | ||
allowedValues: [ 'New', 'Enabled', 'Disabled' ] | ||
} | ||
}, | ||
disabledAlerts: { | ||
required: false, | ||
serializedName: 'properties.disabledAlerts', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
}, | ||
emailAddresses: { | ||
required: false, | ||
serializedName: 'properties.emailAddresses', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
}, | ||
emailAccountAdmins: { | ||
required: false, | ||
serializedName: 'properties.emailAccountAdmins', | ||
type: { | ||
name: 'Boolean' | ||
} | ||
}, | ||
storageEndpoint: { | ||
required: false, | ||
serializedName: 'properties.storageEndpoint', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
storageAccountAccessKey: { | ||
required: false, | ||
serializedName: 'properties.storageAccountAccessKey', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
retentionDays: { | ||
required: false, | ||
serializedName: 'properties.retentionDays', | ||
type: { | ||
name: 'Number' | ||
} | ||
}, | ||
creationTime: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.creationTime', | ||
type: { | ||
name: 'DateTime' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = ManagedDatabaseSecurityAlertPolicy; |
Oops, something went wrong.