diff --git a/packages/@azure/arm-sql/.npmignore b/packages/@azure/arm-sql/.npmignore index 3b46bc6202d8..a07a455ac10c 100644 --- a/packages/@azure/arm-sql/.npmignore +++ b/packages/@azure/arm-sql/.npmignore @@ -1,35 +1,35 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-sql/LICENSE.txt b/packages/@azure/arm-sql/LICENSE.txt index a70e8cf66038..5431ba98b936 100644 --- a/packages/@azure/arm-sql/LICENSE.txt +++ b/packages/@azure/arm-sql/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +The MIT License (MIT) + +Copyright (c) 2018 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/@azure/arm-sql/README.md b/packages/@azure/arm-sql/README.md index fb8a6107e748..e776f473139c 100644 --- a/packages/@azure/arm-sql/README.md +++ b/packages/@azure/arm-sql/README.md @@ -1,83 +1,83 @@ -# Azure SqlManagementClient SDK for JavaScript -This package contains an isomorphic SDK for SqlManagementClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-sql -``` - - -## How to use - -### nodejs - Authentication, client creation and get recoverableDatabases as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { SqlManagementClient, SqlManagementModels, SqlManagementMappers } from "@azure/arm-sql"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new SqlManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const serverName = "testserverName"; - const databaseName = "testdatabaseName"; - client.recoverableDatabases.get(resourceGroupName, serverName, databaseName).then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and get recoverableDatabases as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-sql sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure SqlManagementClient SDK for JavaScript +This package contains an isomorphic SDK for SqlManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-sql +``` + + +## How to use + +### nodejs - Authentication, client creation and get recoverableDatabases as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { SqlManagementClient, SqlManagementModels, SqlManagementMappers } from "@azure/arm-sql"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new SqlManagementClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const serverName = "testserverName"; + const databaseName = "testdatabaseName"; + client.recoverableDatabases.get(resourceGroupName, serverName, databaseName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and get recoverableDatabases as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-sql sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-sql/lib/models/backupLongTermRetentionPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/backupLongTermRetentionPoliciesMappers.ts index a09c582f9269..ca1c8535e285 100644 --- a/packages/@azure/arm-sql/lib/models/backupLongTermRetentionPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/backupLongTermRetentionPoliciesMappers.ts @@ -81,6 +81,7 @@ export { JobTarget, JobVersion, LongTermRetentionBackup, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/backupShortTermRetentionPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/backupShortTermRetentionPoliciesMappers.ts index 985692de5c30..f14589dceb48 100644 --- a/packages/@azure/arm-sql/lib/models/backupShortTermRetentionPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/backupShortTermRetentionPoliciesMappers.ts @@ -83,6 +83,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/dataMaskingPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/dataMaskingPoliciesMappers.ts index eda43c81873a..3e8bdb2bd405 100644 --- a/packages/@azure/arm-sql/lib/models/dataMaskingPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/dataMaskingPoliciesMappers.ts @@ -81,6 +81,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/dataMaskingRulesMappers.ts b/packages/@azure/arm-sql/lib/models/dataMaskingRulesMappers.ts index 4fbb90b32443..46b90fb4db4c 100644 --- a/packages/@azure/arm-sql/lib/models/dataMaskingRulesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/dataMaskingRulesMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/databaseAutomaticTuningOperationsMappers.ts b/packages/@azure/arm-sql/lib/models/databaseAutomaticTuningOperationsMappers.ts index 579ba89ecdaa..a50ffc4e181b 100644 --- a/packages/@azure/arm-sql/lib/models/databaseAutomaticTuningOperationsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseAutomaticTuningOperationsMappers.ts @@ -81,6 +81,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/databaseBlobAuditingPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/databaseBlobAuditingPoliciesMappers.ts index 6b4400adf181..4b4202246dae 100644 --- a/packages/@azure/arm-sql/lib/models/databaseBlobAuditingPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseBlobAuditingPoliciesMappers.ts @@ -81,6 +81,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/databaseOperationsMappers.ts b/packages/@azure/arm-sql/lib/models/databaseOperationsMappers.ts index 042817f7425f..2540de4baf56 100644 --- a/packages/@azure/arm-sql/lib/models/databaseOperationsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseOperationsMappers.ts @@ -83,6 +83,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/databaseThreatDetectionPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/databaseThreatDetectionPoliciesMappers.ts index cba431838474..60ad6bbf9c68 100644 --- a/packages/@azure/arm-sql/lib/models/databaseThreatDetectionPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseThreatDetectionPoliciesMappers.ts @@ -81,6 +81,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts index 4c01b9b1ced7..e5de49c77ab8 100644 --- a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts @@ -81,6 +81,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentScansMappers.ts b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentScansMappers.ts index e5c8650c35ad..4b88a4be6d2c 100644 --- a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentScansMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentScansMappers.ts @@ -9,13 +9,13 @@ */ export { + VulnerabilityAssessmentScanRecordListResult, VulnerabilityAssessmentScanRecord, ProxyResource, Resource, BaseResource, VulnerabilityAssessmentScanError, CloudError, - VulnerabilityAssessmentScanRecordListResult, DatabaseVulnerabilityAssessmentScansExport, RecoverableDatabase, RestorableDroppedDatabase, @@ -85,6 +85,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts index 77fbde5f43b3..c83501ac522f 100644 --- a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts @@ -15,6 +15,7 @@ export { BaseResource, VulnerabilityAssessmentRecurringScansProperties, CloudError, + DatabaseVulnerabilityAssessmentListResult, RecoverableDatabase, RestorableDroppedDatabase, TrackedResource, @@ -81,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/databasesMappers.ts b/packages/@azure/arm-sql/lib/models/databasesMappers.ts index f8ccfa291f6c..3a77caf4cc08 100644 --- a/packages/@azure/arm-sql/lib/models/databasesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databasesMappers.ts @@ -38,7 +38,6 @@ export { DataMaskingRule, FirewallRule, GeoBackupPolicy, - ImportExtensionProperties, RecommendedElasticPool, RecommendedElasticPoolMetric, ReplicationLink, @@ -96,6 +95,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/elasticPoolActivitiesMappers.ts b/packages/@azure/arm-sql/lib/models/elasticPoolActivitiesMappers.ts index a189635bf1b2..643d22b09e4b 100644 --- a/packages/@azure/arm-sql/lib/models/elasticPoolActivitiesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/elasticPoolActivitiesMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/elasticPoolDatabaseActivitiesMappers.ts b/packages/@azure/arm-sql/lib/models/elasticPoolDatabaseActivitiesMappers.ts index 029a6e2fd0a1..b72bc54af6fe 100644 --- a/packages/@azure/arm-sql/lib/models/elasticPoolDatabaseActivitiesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/elasticPoolDatabaseActivitiesMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/elasticPoolOperationsMappers.ts b/packages/@azure/arm-sql/lib/models/elasticPoolOperationsMappers.ts index c3b8d853cafe..67924a72d995 100644 --- a/packages/@azure/arm-sql/lib/models/elasticPoolOperationsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/elasticPoolOperationsMappers.ts @@ -83,6 +83,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/elasticPoolsMappers.ts b/packages/@azure/arm-sql/lib/models/elasticPoolsMappers.ts index ff12f3d54084..061bc544464e 100644 --- a/packages/@azure/arm-sql/lib/models/elasticPoolsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/elasticPoolsMappers.ts @@ -90,6 +90,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/encryptionProtectorsMappers.ts b/packages/@azure/arm-sql/lib/models/encryptionProtectorsMappers.ts index 6951d4d277fb..348a2169aa4d 100644 --- a/packages/@azure/arm-sql/lib/models/encryptionProtectorsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/encryptionProtectorsMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/extendedDatabaseBlobAuditingPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/extendedDatabaseBlobAuditingPoliciesMappers.ts index 80cbb3136b7c..a4a38406b67f 100644 --- a/packages/@azure/arm-sql/lib/models/extendedDatabaseBlobAuditingPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/extendedDatabaseBlobAuditingPoliciesMappers.ts @@ -81,6 +81,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/extendedServerBlobAuditingPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/extendedServerBlobAuditingPoliciesMappers.ts index cc7d3826c6fe..5a5468831f0f 100644 --- a/packages/@azure/arm-sql/lib/models/extendedServerBlobAuditingPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/extendedServerBlobAuditingPoliciesMappers.ts @@ -81,6 +81,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/failoverGroupsMappers.ts b/packages/@azure/arm-sql/lib/models/failoverGroupsMappers.ts index 5225a1732e31..9db6aec96b60 100644 --- a/packages/@azure/arm-sql/lib/models/failoverGroupsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/failoverGroupsMappers.ts @@ -83,6 +83,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/firewallRulesMappers.ts b/packages/@azure/arm-sql/lib/models/firewallRulesMappers.ts index 7c013619255f..81b7c7bf7fb5 100644 --- a/packages/@azure/arm-sql/lib/models/firewallRulesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/firewallRulesMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/geoBackupPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/geoBackupPoliciesMappers.ts index 9796347add17..a0236c5fb72d 100644 --- a/packages/@azure/arm-sql/lib/models/geoBackupPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/geoBackupPoliciesMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/index.ts b/packages/@azure/arm-sql/lib/models/index.ts index de28484b25fa..740c52e3b10b 100644 --- a/packages/@azure/arm-sql/lib/models/index.ts +++ b/packages/@azure/arm-sql/lib/models/index.ts @@ -14,41 +14,6 @@ import * as msRest from "ms-rest-js"; export { BaseResource, CloudError }; -/** - * @interface - * An interface representing RecoverableDatabaseProperties. - * The properties of a recoverable database - * - */ -export interface RecoverableDatabaseProperties { - /** - * @member {string} [edition] The edition of the database - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly edition?: string; - /** - * @member {string} [serviceLevelObjective] The service level objective name - * of the database - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly serviceLevelObjective?: string; - /** - * @member {string} [elasticPoolName] The elastic pool name of the database - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly elasticPoolName?: string; - /** - * @member {Date} [lastAvailableBackupDate] The last available backup date of - * the database (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly lastAvailableBackupDate?: Date; -} - /** * @interface * An interface representing Resource. @@ -123,67 +88,6 @@ export interface RecoverableDatabase extends ProxyResource { readonly lastAvailableBackupDate?: Date; } -/** - * @interface - * An interface representing RestorableDroppedDatabaseProperties. - * The properties of a restorable dropped database - * - */ -export interface RestorableDroppedDatabaseProperties { - /** - * @member {string} [databaseName] The name of the database - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly databaseName?: string; - /** - * @member {string} [edition] The edition of the database - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly edition?: string; - /** - * @member {string} [maxSizeBytes] The max size in bytes of the database - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly maxSizeBytes?: string; - /** - * @member {string} [serviceLevelObjective] The service level objective name - * of the database - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly serviceLevelObjective?: string; - /** - * @member {string} [elasticPoolName] The elastic pool name of the database - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly elasticPoolName?: string; - /** - * @member {Date} [creationDate] The creation date of the database (ISO8601 - * format) - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly creationDate?: Date; - /** - * @member {Date} [deletionDate] The deletion date of the database (ISO8601 - * format) - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly deletionDate?: Date; - /** - * @member {Date} [earliestRestoreDate] The earliest restore date of the - * database (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly earliestRestoreDate?: Date; -} - /** * @interface * An interface representing RestorableDroppedDatabase. @@ -321,20 +225,6 @@ export interface CheckNameAvailabilityResponse { readonly reason?: CheckNameAvailabilityReason; } -/** - * @interface - * An interface representing ServerConnectionPolicyProperties. - * The properties of a server secure connection policy. - * - */ -export interface ServerConnectionPolicyProperties { - /** - * @member {ServerConnectionType} connectionType The server connection type. - * Possible values include: 'Default', 'Proxy', 'Redirect' - */ - connectionType: ServerConnectionType; -} - /** * @interface * An interface representing ServerConnectionPolicy. @@ -362,63 +252,6 @@ export interface ServerConnectionPolicy extends ProxyResource { connectionType: ServerConnectionType; } -/** - * @interface - * An interface representing DatabaseSecurityAlertPolicyProperties. - * Properties for a database Threat Detection policy. - * - */ -export interface DatabaseSecurityAlertPolicyProperties { - /** - * @member {SecurityAlertPolicyState} state Specifies the state of the - * policy. If state is Enabled, storageEndpoint and storageAccountAccessKey - * are required. Possible values include: 'New', 'Enabled', 'Disabled' - */ - state: SecurityAlertPolicyState; - /** - * @member {string} [disabledAlerts] Specifies the semicolon-separated list - * of alerts that are disabled, or empty string to disable no alerts. - * Possible values: Sql_Injection; Sql_Injection_Vulnerability; - * Access_Anomaly; Data_Exfiltration; Unsafe_Action. - */ - disabledAlerts?: string; - /** - * @member {string} [emailAddresses] Specifies the semicolon-separated list - * of e-mail addresses to which the alert is sent. - */ - emailAddresses?: string; - /** - * @member {SecurityAlertPolicyEmailAccountAdmins} [emailAccountAdmins] - * Specifies that the alert is sent to the account administrators. Possible - * values include: 'Enabled', 'Disabled' - */ - emailAccountAdmins?: SecurityAlertPolicyEmailAccountAdmins; - /** - * @member {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. If state is Enabled, storageEndpoint - * is required. - */ - storageEndpoint?: string; - /** - * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the Threat Detection audit storage account. If state is Enabled, - * storageAccountAccessKey is required. - */ - storageAccountAccessKey?: string; - /** - * @member {number} [retentionDays] Specifies the number of days to keep in - * the Threat Detection audit logs. - */ - retentionDays?: number; - /** - * @member {SecurityAlertPolicyUseServerDefault} [useServerDefault] Specifies - * whether to use the default server policy. Possible values include: - * 'Enabled', 'Disabled' - */ - useServerDefault?: SecurityAlertPolicyUseServerDefault; -} - /** * @interface * An interface representing DatabaseSecurityAlertPolicy. @@ -487,41 +320,6 @@ export interface DatabaseSecurityAlertPolicy extends ProxyResource { useServerDefault?: SecurityAlertPolicyUseServerDefault; } -/** - * @interface - * An interface representing DataMaskingPolicyProperties. - * The properties of a database data masking policy. - * - */ -export interface DataMaskingPolicyProperties { - /** - * @member {DataMaskingState} dataMaskingState The state of the data masking - * policy. Possible values include: 'Disabled', 'Enabled' - */ - dataMaskingState: DataMaskingState; - /** - * @member {string} [exemptPrincipals] The list of the exempt principals. - * Specifies the semicolon-separated list of database users for which the - * data masking policy does not apply. The specified users receive data - * results without masking for all of the database queries. - */ - exemptPrincipals?: string; - /** - * @member {string} [applicationPrincipals] The list of the application - * principals. This is a legacy parameter and is no longer used. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly applicationPrincipals?: string; - /** - * @member {string} [maskingLevel] The masking level. This is a legacy - * parameter and is no longer used. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly maskingLevel?: string; -} - /** * @interface * An interface representing DataMaskingPolicy. @@ -573,17 +371,18 @@ export interface DataMaskingPolicy extends ProxyResource { /** * @interface - * An interface representing DataMaskingRuleProperties. - * The properties of a database data masking rule. + * An interface representing DataMaskingRule. + * Represents a database data masking rule. * + * @extends ProxyResource */ -export interface DataMaskingRuleProperties { +export interface DataMaskingRule extends ProxyResource { /** - * @member {string} [id] The rule Id. + * @member {string} [dataMaskingRuleId] The rule Id. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly id?: string; + readonly dataMaskingRuleId?: string; /** * @member {string} [aliasName] The alias name. This is a legacy parameter * and is no longer used. @@ -649,186 +448,64 @@ export interface DataMaskingRuleProperties { * Otherwise, this parameter will be ignored. */ replacementString?: string; + /** + * @member {string} [location] The location of the data masking rule. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly location?: string; + /** + * @member {string} [kind] The kind of Data Masking Rule. Metadata, used for + * Azure portal. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly kind?: string; } /** * @interface - * An interface representing DataMaskingRule. - * Represents a database data masking rule. + * An interface representing FirewallRule. + * Represents a server firewall rule. * * @extends ProxyResource */ -export interface DataMaskingRule extends ProxyResource { +export interface FirewallRule extends ProxyResource { /** - * @member {string} [dataMaskingRuleId] The rule Id. + * @member {string} [kind] Kind of server that contains this firewall rule. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly dataMaskingRuleId?: string; + readonly kind?: string; /** - * @member {string} [aliasName] The alias name. This is a legacy parameter - * and is no longer used. + * @member {string} [location] Location of the server that contains this + * firewall rule. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - aliasName?: string; + readonly location?: string; /** - * @member {DataMaskingRuleState} [ruleState] The rule state. Used to delete - * a rule. To delete an existing rule, specify the schemaName, tableName, - * columnName, maskingFunction, and specify ruleState as disabled. However, - * if the rule doesn't already exist, the rule will be created with ruleState - * set to enabled, regardless of the provided value of ruleState. Possible - * values include: 'Disabled', 'Enabled' + * @member {string} startIpAddress The start IP address of the firewall rule. + * Must be IPv4 format. Use value '0.0.0.0' to represent all Azure-internal + * IP addresses. */ - ruleState?: DataMaskingRuleState; + startIpAddress: string; /** - * @member {string} schemaName The schema name on which the data masking rule - * is applied. + * @member {string} endIpAddress The end IP address of the firewall rule. + * Must be IPv4 format. Must be greater than or equal to startIpAddress. Use + * value '0.0.0.0' to represent all Azure-internal IP addresses. */ - schemaName: string; - /** - * @member {string} tableName The table name on which the data masking rule - * is applied. - */ - tableName: string; - /** - * @member {string} columnName The column name on which the data masking rule - * is applied. - */ - columnName: string; - /** - * @member {DataMaskingFunction} maskingFunction The masking function that is - * used for the data masking rule. Possible values include: 'Default', 'CCN', - * 'Email', 'Number', 'SSN', 'Text' - */ - maskingFunction: DataMaskingFunction; - /** - * @member {string} [numberFrom] The numberFrom property of the masking rule. - * Required if maskingFunction is set to Number, otherwise this parameter - * will be ignored. - */ - numberFrom?: string; - /** - * @member {string} [numberTo] The numberTo property of the data masking - * rule. Required if maskingFunction is set to Number, otherwise this - * parameter will be ignored. - */ - numberTo?: string; - /** - * @member {string} [prefixSize] If maskingFunction is set to Text, the - * number of characters to show unmasked in the beginning of the string. - * Otherwise, this parameter will be ignored. - */ - prefixSize?: string; - /** - * @member {string} [suffixSize] If maskingFunction is set to Text, the - * number of characters to show unmasked at the end of the string. Otherwise, - * this parameter will be ignored. - */ - suffixSize?: string; - /** - * @member {string} [replacementString] If maskingFunction is set to Text, - * the character to use for masking the unexposed part of the string. - * Otherwise, this parameter will be ignored. - */ - replacementString?: string; - /** - * @member {string} [location] The location of the data masking rule. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly location?: string; - /** - * @member {string} [kind] The kind of Data Masking Rule. Metadata, used for - * Azure portal. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly kind?: string; -} - -/** - * @interface - * An interface representing FirewallRuleProperties. - * Represents the properties of a server firewall rule. - * - */ -export interface FirewallRuleProperties { - /** - * @member {string} startIpAddress The start IP address of the firewall rule. - * Must be IPv4 format. Use value '0.0.0.0' to represent all Azure-internal - * IP addresses. - */ - startIpAddress: string; - /** - * @member {string} endIpAddress The end IP address of the firewall rule. - * Must be IPv4 format. Must be greater than or equal to startIpAddress. Use - * value '0.0.0.0' to represent all Azure-internal IP addresses. - */ - endIpAddress: string; -} - -/** - * @interface - * An interface representing FirewallRule. - * Represents a server firewall rule. - * - * @extends ProxyResource - */ -export interface FirewallRule extends ProxyResource { - /** - * @member {string} [kind] Kind of server that contains this firewall rule. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly kind?: string; - /** - * @member {string} [location] Location of the server that contains this - * firewall rule. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly location?: string; - /** - * @member {string} startIpAddress The start IP address of the firewall rule. - * Must be IPv4 format. Use value '0.0.0.0' to represent all Azure-internal - * IP addresses. - */ - startIpAddress: string; - /** - * @member {string} endIpAddress The end IP address of the firewall rule. - * Must be IPv4 format. Must be greater than or equal to startIpAddress. Use - * value '0.0.0.0' to represent all Azure-internal IP addresses. - */ - endIpAddress: string; -} - -/** - * @interface - * An interface representing GeoBackupPolicyProperties. - * The properties of the geo backup policy. - * - */ -export interface GeoBackupPolicyProperties { - /** - * @member {GeoBackupPolicyState} state The state of the geo backup policy. - * Possible values include: 'Disabled', 'Enabled' - */ - state: GeoBackupPolicyState; - /** - * @member {string} [storageType] The storage type of the geo backup policy. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly storageType?: string; -} - -/** - * @interface - * An interface representing GeoBackupPolicy. - * A database geo backup policy. - * - * @extends ProxyResource - */ -export interface GeoBackupPolicy extends ProxyResource { + endIpAddress: string; +} + +/** + * @interface + * An interface representing GeoBackupPolicy. + * A database geo backup policy. + * + * @extends ProxyResource + */ +export interface GeoBackupPolicy extends ProxyResource { /** * @member {GeoBackupPolicyState} state The state of the geo backup policy. * Possible values include: 'Disabled', 'Enabled' @@ -855,53 +532,6 @@ export interface GeoBackupPolicy extends ProxyResource { readonly location?: string; } -/** - * @interface - * An interface representing ExportRequest. - * Export database parameters. - * - */ -export interface ExportRequest { - /** - * @member {StorageKeyType} storageKeyType The type of the storage key to - * use. Possible values include: 'StorageAccessKey', 'SharedAccessKey' - */ - storageKeyType: StorageKeyType; - /** - * @member {string} storageKey The storage key to use. If storage key type - * is SharedAccessKey, it must be preceded with a "?." - */ - storageKey: string; - /** - * @member {string} storageUri The storage uri to use. - */ - storageUri: string; - /** - * @member {string} administratorLogin The name of the SQL administrator. - */ - administratorLogin: string; - /** - * @member {string} administratorLoginPassword The password of the SQL - * administrator. - */ - administratorLoginPassword: string; - /** - * @member {AuthenticationType} [authenticationType] The authentication type. - * Possible values include: 'SQL', 'ADPassword'. Default value: 'SQL' . - */ - authenticationType?: AuthenticationType; -} - -/** - * @interface - * An interface representing ImportExtensionProperties. - * Represents the properties for an import operation - * - * @extends ExportRequest - */ -export interface ImportExtensionProperties extends ExportRequest { -} - /** * @interface * An interface representing ImportExtensionRequest. @@ -949,11 +579,12 @@ export interface ImportExtensionRequest { /** * @interface - * An interface representing ImportExportResponseProperties. - * Response for Import/Export Status operation. + * An interface representing ImportExportResponse. + * Response for Import/Export Get operation. * + * @extends ProxyResource */ -export interface ImportExportResponseProperties { +export interface ImportExportResponse extends ProxyResource { /** * @member {string} [requestType] The request type of the operation. * **NOTE: This property will not be serialized. It can only be populated by @@ -1014,68 +645,39 @@ export interface ImportExportResponseProperties { /** * @interface - * An interface representing ImportExportResponse. - * Response for Import/Export Get operation. + * An interface representing ExportRequest. + * Export database parameters. * - * @extends ProxyResource */ -export interface ImportExportResponse extends ProxyResource { - /** - * @member {string} [requestType] The request type of the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly requestType?: string; - /** - * @member {string} [requestId] The request type of the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly requestId?: string; - /** - * @member {string} [serverName] The name of the server. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly serverName?: string; +export interface ExportRequest { /** - * @member {string} [databaseName] The name of the database. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {StorageKeyType} storageKeyType The type of the storage key to + * use. Possible values include: 'StorageAccessKey', 'SharedAccessKey' */ - readonly databaseName?: string; + storageKeyType: StorageKeyType; /** - * @member {string} [status] The status message returned from the server. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} storageKey The storage key to use. If storage key type + * is SharedAccessKey, it must be preceded with a "?." */ - readonly status?: string; + storageKey: string; /** - * @member {string} [lastModifiedTime] The operation status last modified - * time. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} storageUri The storage uri to use. */ - readonly lastModifiedTime?: string; + storageUri: string; /** - * @member {string} [queuedTime] The operation queued time. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} administratorLogin The name of the SQL administrator. */ - readonly queuedTime?: string; + administratorLogin: string; /** - * @member {string} [blobUri] The blob uri. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} administratorLoginPassword The password of the SQL + * administrator. */ - readonly blobUri?: string; + administratorLoginPassword: string; /** - * @member {string} [errorMessage] The error message returned from the - * server. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {AuthenticationType} [authenticationType] The authentication type. + * Possible values include: 'SQL', 'ADPassword'. Default value: 'SQL' . */ - readonly errorMessage?: string; + authenticationType?: AuthenticationType; } /** @@ -1325,11 +927,12 @@ export interface RecommendedElasticPoolMetric { /** * @interface - * An interface representing RecommendedElasticPoolProperties. - * Represents the properties of a recommented elastic pool. + * An interface representing RecommendedElasticPool. + * Represents a recommented elastic pool. * + * @extends ProxyResource */ -export interface RecommendedElasticPoolProperties { +export interface RecommendedElasticPool extends ProxyResource { /** * @member {ElasticPoolEdition} [databaseEdition] The edition of the * recommended elastic pool. The ElasticPoolEdition enumeration contains all @@ -1398,162 +1001,6 @@ export interface RecommendedElasticPoolProperties { readonly metrics?: RecommendedElasticPoolMetric[]; } -/** - * @interface - * An interface representing RecommendedElasticPool. - * Represents a recommented elastic pool. - * - * @extends ProxyResource - */ -export interface RecommendedElasticPool extends ProxyResource { - /** - * @member {ElasticPoolEdition} [databaseEdition] The edition of the - * recommended elastic pool. The ElasticPoolEdition enumeration contains all - * the valid editions. Possible values include: 'Basic', 'Standard', - * 'Premium' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly databaseEdition?: ElasticPoolEdition; - /** - * @member {number} [dtu] The DTU for the recommended elastic pool. - */ - dtu?: number; - /** - * @member {number} [databaseDtuMin] The minimum DTU for the database. - */ - databaseDtuMin?: number; - /** - * @member {number} [databaseDtuMax] The maximum DTU for the database. - */ - databaseDtuMax?: number; - /** - * @member {number} [storageMB] Gets storage size in megabytes. - */ - storageMB?: number; - /** - * @member {Date} [observationPeriodStart] The observation period start - * (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly observationPeriodStart?: Date; - /** - * @member {Date} [observationPeriodEnd] The observation period start - * (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly observationPeriodEnd?: Date; - /** - * @member {number} [maxObservedDtu] Gets maximum observed DTU. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly maxObservedDtu?: number; - /** - * @member {number} [maxObservedStorageMB] Gets maximum observed storage in - * megabytes. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly maxObservedStorageMB?: number; - /** - * @member {TrackedResource[]} [databases] The list of databases in this - * pool. Expanded property - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly databases?: TrackedResource[]; - /** - * @member {RecommendedElasticPoolMetric[]} [metrics] The list of databases - * housed in the server. Expanded property - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly metrics?: RecommendedElasticPoolMetric[]; -} - -/** - * @interface - * An interface representing ReplicationLinkProperties. - * Represents the properties of a database replication link. - * - */ -export interface ReplicationLinkProperties { - /** - * @member {boolean} [isTerminationAllowed] Legacy value indicating whether - * termination is allowed. Currently always returns true. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly isTerminationAllowed?: boolean; - /** - * @member {string} [replicationMode] Replication mode of this replication - * link. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly replicationMode?: string; - /** - * @member {string} [partnerServer] The name of the server hosting the - * partner database. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly partnerServer?: string; - /** - * @member {string} [partnerDatabase] The name of the partner database. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly partnerDatabase?: string; - /** - * @member {string} [partnerLocation] The Azure Region of the partner - * database. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly partnerLocation?: string; - /** - * @member {ReplicationRole} [role] The role of the database in the - * replication link. Possible values include: 'Primary', 'Secondary', - * 'NonReadableSecondary', 'Source', 'Copy' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly role?: ReplicationRole; - /** - * @member {ReplicationRole} [partnerRole] The role of the partner database - * in the replication link. Possible values include: 'Primary', 'Secondary', - * 'NonReadableSecondary', 'Source', 'Copy' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly partnerRole?: ReplicationRole; - /** - * @member {Date} [startTime] The start time for the replication link. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly startTime?: Date; - /** - * @member {number} [percentComplete] The percentage of seeding complete for - * the replication link. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly percentComplete?: number; - /** - * @member {ReplicationState} [replicationState] The replication state for - * the replication link. Possible values include: 'PENDING', 'SEEDING', - * 'CATCH_UP', 'SUSPENDED' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly replicationState?: ReplicationState; -} - /** * @interface * An interface representing ReplicationLink. @@ -1642,28 +1089,6 @@ export interface ReplicationLink extends ProxyResource { readonly replicationState?: ReplicationState; } -/** - * @interface - * An interface representing ServerAdministratorProperties. - * The properties of an server Administrator. - * - */ -export interface ServerAdministratorProperties { - /** - * @member {string} login The server administrator login value. - */ - login: string; - /** - * @member {string} sid The server administrator Sid (Secure ID). - */ - sid: string; - /** - * @member {string} tenantId The server Active Directory Administrator tenant - * id. - */ - tenantId: string; -} - /** * @interface * An interface representing ServerAzureADAdministrator. @@ -1687,25 +1112,6 @@ export interface ServerAzureADAdministrator extends ProxyResource { tenantId: string; } -/** - * @interface - * An interface representing ServerCommunicationLinkProperties. - * The properties of a server communication link. - * - */ -export interface ServerCommunicationLinkProperties { - /** - * @member {string} [state] The state. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly state?: string; - /** - * @member {string} partnerServer The name of the partner server. - */ - partnerServer: string; -} - /** * @interface * An interface representing ServerCommunicationLink. @@ -1739,50 +1145,6 @@ export interface ServerCommunicationLink extends ProxyResource { readonly kind?: string; } -/** - * @interface - * An interface representing ServiceObjectiveProperties. - * Represents the properties of a database service objective. - * - */ -export interface ServiceObjectiveProperties { - /** - * @member {string} [serviceObjectiveName] The name for the service - * objective. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly serviceObjectiveName?: string; - /** - * @member {boolean} [isDefault] Gets whether the service level objective is - * the default service objective. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly isDefault?: boolean; - /** - * @member {boolean} [isSystem] Gets whether the service level objective is a - * system service objective. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly isSystem?: boolean; - /** - * @member {string} [description] The description for the service level - * objective. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly description?: string; - /** - * @member {boolean} [enabled] Gets whether the service level objective is - * enabled. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly enabled?: boolean; -} - /** * @interface * An interface representing ServiceObjective. @@ -1830,11 +1192,16 @@ export interface ServiceObjective extends ProxyResource { /** * @interface - * An interface representing ElasticPoolActivityProperties. - * Represents the properties of an elastic pool. + * An interface representing ElasticPoolActivity. + * Represents the activity on an elastic pool. * + * @extends ProxyResource */ -export interface ElasticPoolActivityProperties { +export interface ElasticPoolActivity extends ProxyResource { + /** + * @member {string} [location] The geo-location where the resource lives + */ + location?: string; /** * @member {Date} [endTime] The time the operation finished (ISO8601 format). * **NOTE: This property will not be serialized. It can only be populated by @@ -1969,16 +1336,22 @@ export interface ElasticPoolActivityProperties { /** * @interface - * An interface representing ElasticPoolActivity. + * An interface representing ElasticPoolDatabaseActivity. * Represents the activity on an elastic pool. * * @extends ProxyResource */ -export interface ElasticPoolActivity extends ProxyResource { +export interface ElasticPoolDatabaseActivity extends ProxyResource { /** * @member {string} [location] The geo-location where the resource lives */ location?: string; + /** + * @member {string} [databaseName] The database name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly databaseName?: string; /** * @member {Date} [endTime] The time the operation finished (ISO8601 format). * **NOTE: This property will not be serialized. It can only be populated by @@ -2022,270 +1395,15 @@ export interface ElasticPoolActivity extends ProxyResource { */ readonly percentComplete?: number; /** - * @member {number} [requestedDatabaseDtuMax] The requested max DTU per - * database if available. + * @member {string} [requestedElasticPoolName] The name for the elastic pool + * the database is moving into if available. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly requestedDatabaseDtuMax?: number; + readonly requestedElasticPoolName?: string; /** - * @member {number} [requestedDatabaseDtuMin] The requested min DTU per - * database if available. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly requestedDatabaseDtuMin?: number; - /** - * @member {number} [requestedDtu] The requested DTU for the pool if - * available. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly requestedDtu?: number; - /** - * @member {string} [requestedElasticPoolName] The requested name for the - * elastic pool if available. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly requestedElasticPoolName?: string; - /** - * @member {number} [requestedStorageLimitInGB] The requested storage limit - * for the pool in GB if available. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly requestedStorageLimitInGB?: number; - /** - * @member {string} [elasticPoolName] The name of the elastic pool. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly elasticPoolName?: string; - /** - * @member {string} [serverName] The name of the server the elastic pool is - * in. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly serverName?: string; - /** - * @member {Date} [startTime] The time the operation started (ISO8601 - * format). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly startTime?: Date; - /** - * @member {string} [state] The current state of the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly state?: string; - /** - * @member {number} [requestedStorageLimitInMB] The requested storage limit - * in MB. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly requestedStorageLimitInMB?: number; - /** - * @member {number} [requestedDatabaseDtuGuarantee] The requested per - * database DTU guarantee. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly requestedDatabaseDtuGuarantee?: number; - /** - * @member {number} [requestedDatabaseDtuCap] The requested per database DTU - * cap. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly requestedDatabaseDtuCap?: number; - /** - * @member {number} [requestedDtuGuarantee] The requested DTU guarantee. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly requestedDtuGuarantee?: number; -} - -/** - * @interface - * An interface representing ElasticPoolDatabaseActivityProperties. - * Represents the properties of an elastic pool database activity. - * - */ -export interface ElasticPoolDatabaseActivityProperties { - /** - * @member {string} [databaseName] The database name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly databaseName?: string; - /** - * @member {Date} [endTime] The time the operation finished (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly endTime?: Date; - /** - * @member {number} [errorCode] The error code if available. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly errorCode?: number; - /** - * @member {string} [errorMessage] The error message if available. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly errorMessage?: string; - /** - * @member {number} [errorSeverity] The error severity if available. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly errorSeverity?: number; - /** - * @member {string} [operation] The operation name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly operation?: string; - /** - * @member {string} [operationId] The unique operation ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly operationId?: string; - /** - * @member {number} [percentComplete] The percentage complete if available. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly percentComplete?: number; - /** - * @member {string} [requestedElasticPoolName] The name for the elastic pool - * the database is moving into if available. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly requestedElasticPoolName?: string; - /** - * @member {string} [currentElasticPoolName] The name of the current elastic - * pool the database is in if available. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly currentElasticPoolName?: string; - /** - * @member {string} [currentServiceObjective] The name of the current service - * objective if available. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly currentServiceObjective?: string; - /** - * @member {string} [requestedServiceObjective] The name of the requested - * service objective if available. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly requestedServiceObjective?: string; - /** - * @member {string} [serverName] The name of the server the elastic pool is - * in. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly serverName?: string; - /** - * @member {Date} [startTime] The time the operation started (ISO8601 - * format). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly startTime?: Date; - /** - * @member {string} [state] The current state of the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly state?: string; -} - -/** - * @interface - * An interface representing ElasticPoolDatabaseActivity. - * Represents the activity on an elastic pool. - * - * @extends ProxyResource - */ -export interface ElasticPoolDatabaseActivity extends ProxyResource { - /** - * @member {string} [location] The geo-location where the resource lives - */ - location?: string; - /** - * @member {string} [databaseName] The database name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly databaseName?: string; - /** - * @member {Date} [endTime] The time the operation finished (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly endTime?: Date; - /** - * @member {number} [errorCode] The error code if available. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly errorCode?: number; - /** - * @member {string} [errorMessage] The error message if available. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly errorMessage?: string; - /** - * @member {number} [errorSeverity] The error severity if available. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly errorSeverity?: number; - /** - * @member {string} [operation] The operation name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly operation?: string; - /** - * @member {string} [operationId] The unique operation ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly operationId?: string; - /** - * @member {number} [percentComplete] The percentage complete if available. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly percentComplete?: number; - /** - * @member {string} [requestedElasticPoolName] The name for the elastic pool - * the database is moving into if available. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly requestedElasticPoolName?: string; - /** - * @member {string} [currentElasticPoolName] The name of the current elastic - * pool the database is in if available. + * @member {string} [currentElasticPoolName] The name of the current elastic + * pool the database is in if available. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -2363,11 +1481,12 @@ export interface OperationImpact { /** * @interface - * An interface representing RecommendedIndexProperties. - * Represents the properties of a database recommended index. + * An interface representing RecommendedIndex. + * Represents a database recommended index. * + * @extends ProxyResource */ -export interface RecommendedIndexProperties { +export interface RecommendedIndex extends ProxyResource { /** * @member {RecommendedIndexAction} [action] The proposed index action. You * can create a missing index, drop an unused index, or rebuild an existing @@ -2457,118 +1576,6 @@ export interface RecommendedIndexProperties { readonly reportedImpact?: OperationImpact[]; } -/** - * @interface - * An interface representing RecommendedIndex. - * Represents a database recommended index. - * - * @extends ProxyResource - */ -export interface RecommendedIndex extends ProxyResource { - /** - * @member {RecommendedIndexAction} [action] The proposed index action. You - * can create a missing index, drop an unused index, or rebuild an existing - * index to improve its performance. Possible values include: 'Create', - * 'Drop', 'Rebuild' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly action?: RecommendedIndexAction; - /** - * @member {RecommendedIndexState} [state] The current recommendation state. - * Possible values include: 'Active', 'Pending', 'Executing', 'Verifying', - * 'Pending Revert', 'Reverting', 'Reverted', 'Ignored', 'Expired', - * 'Blocked', 'Success' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly state?: RecommendedIndexState; - /** - * @member {Date} [created] The UTC datetime showing when this resource was - * created (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly created?: Date; - /** - * @member {Date} [lastModified] The UTC datetime of when was this resource - * last changed (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly lastModified?: Date; - /** - * @member {RecommendedIndexType} [indexType] The type of index (CLUSTERED, - * NONCLUSTERED, COLUMNSTORE, CLUSTERED COLUMNSTORE). Possible values - * include: 'CLUSTERED', 'NONCLUSTERED', 'COLUMNSTORE', 'CLUSTERED - * COLUMNSTORE' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly indexType?: RecommendedIndexType; - /** - * @member {string} [schema] The schema where table to build index over - * resides - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly schema?: string; - /** - * @member {string} [table] The table on which to build index. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly table?: string; - /** - * @member {string[]} [columns] Columns over which to build index - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly columns?: string[]; - /** - * @member {string[]} [includedColumns] The list of column names to be - * included in the index - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly includedColumns?: string[]; - /** - * @member {string} [indexScript] The full build index script - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly indexScript?: string; - /** - * @member {OperationImpact[]} [estimatedImpact] The estimated impact of - * doing recommended index action. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly estimatedImpact?: OperationImpact[]; - /** - * @member {OperationImpact[]} [reportedImpact] The values reported after - * index action is complete. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly reportedImpact?: OperationImpact[]; -} - -/** - * @interface - * An interface representing TransparentDataEncryptionProperties. - * Represents the properties of a database transparent data encryption. - * - */ -export interface TransparentDataEncryptionProperties { - /** - * @member {TransparentDataEncryptionStatus} [status] The status of the - * database transparent data encryption. Possible values include: 'Enabled', - * 'Disabled' - */ - status?: TransparentDataEncryptionStatus; -} - /** * @interface * An interface representing TransparentDataEncryption. @@ -2632,11 +1639,12 @@ export interface SloUsageMetric { /** * @interface - * An interface representing ServiceTierAdvisorProperties. - * Represents the properties of a Service Tier Advisor. + * An interface representing ServiceTierAdvisor. + * Represents a Service Tier Advisor. * + * @extends ProxyResource */ -export interface ServiceTierAdvisorProperties { +export interface ServiceTierAdvisor extends ProxyResource { /** * @member {Date} [observationPeriodStart] The observation period start * (ISO8601 format). @@ -2778,323 +1786,153 @@ export interface ServiceTierAdvisorProperties { /** * @interface - * An interface representing ServiceTierAdvisor. - * Represents a Service Tier Advisor. + * An interface representing TransparentDataEncryptionActivity. + * Represents a database transparent data encryption Scan. * * @extends ProxyResource */ -export interface ServiceTierAdvisor extends ProxyResource { - /** - * @member {Date} [observationPeriodStart] The observation period start - * (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly observationPeriodStart?: Date; - /** - * @member {Date} [observationPeriodEnd] The observation period start - * (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly observationPeriodEnd?: Date; +export interface TransparentDataEncryptionActivity extends ProxyResource { /** - * @member {number} [activeTimeRatio] The activeTimeRatio for service tier - * advisor. + * @member {string} [location] Resource location. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly activeTimeRatio?: number; + readonly location?: string; /** - * @member {number} [minDtu] Gets or sets minDtu for service tier advisor. + * @member {TransparentDataEncryptionActivityStatus} [status] The status of + * the database. Possible values include: 'Encrypting', 'Decrypting' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly minDtu?: number; + readonly status?: TransparentDataEncryptionActivityStatus; /** - * @member {number} [avgDtu] Gets or sets avgDtu for service tier advisor. + * @member {number} [percentComplete] The percent complete of the transparent + * data encryption scan for a database. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly avgDtu?: number; + readonly percentComplete?: number; +} + +/** + * @interface + * An interface representing ServerUsage. + * Represents server metrics. + * + */ +export interface ServerUsage { /** - * @member {number} [maxDtu] Gets or sets maxDtu for service tier advisor. + * @member {string} [name] Name of the server usage metric. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly maxDtu?: number; + readonly name?: string; /** - * @member {number} [maxSizeInGB] Gets or sets maxSizeInGB for service tier - * advisor. + * @member {string} [resourceName] The name of the resource. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly maxSizeInGB?: number; + readonly resourceName?: string; /** - * @member {SloUsageMetric[]} [serviceLevelObjectiveUsageMetrics] Gets or - * sets serviceLevelObjectiveUsageMetrics for the service tier advisor. + * @member {string} [displayName] The metric display name. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly serviceLevelObjectiveUsageMetrics?: SloUsageMetric[]; + readonly displayName?: string; /** - * @member {string} [currentServiceLevelObjective] Gets or sets - * currentServiceLevelObjective for service tier advisor. + * @member {number} [currentValue] The current value of the metric. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly currentServiceLevelObjective?: string; + readonly currentValue?: number; /** - * @member {string} [currentServiceLevelObjectiveId] Gets or sets - * currentServiceLevelObjectiveId for service tier advisor. + * @member {number} [limit] The current limit of the metric. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly currentServiceLevelObjectiveId?: string; + readonly limit?: number; /** - * @member {string} [usageBasedRecommendationServiceLevelObjective] Gets or - * sets usageBasedRecommendationServiceLevelObjective for service tier - * advisor. + * @member {string} [unit] The units of the metric. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly usageBasedRecommendationServiceLevelObjective?: string; + readonly unit?: string; /** - * @member {string} [usageBasedRecommendationServiceLevelObjectiveId] Gets or - * sets usageBasedRecommendationServiceLevelObjectiveId for service tier - * advisor. + * @member {Date} [nextResetTime] The next reset time for the metric (ISO8601 + * format). * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly usageBasedRecommendationServiceLevelObjectiveId?: string; + readonly nextResetTime?: Date; +} + +/** + * @interface + * An interface representing DatabaseUsage. + * The database usages. + * + */ +export interface DatabaseUsage { /** - * @member {string} [databaseSizeBasedRecommendationServiceLevelObjective] - * Gets or sets databaseSizeBasedRecommendationServiceLevelObjective for - * service tier advisor. + * @member {string} [name] The name of the usage metric. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly databaseSizeBasedRecommendationServiceLevelObjective?: string; + readonly name?: string; /** - * @member {string} [databaseSizeBasedRecommendationServiceLevelObjectiveId] - * Gets or sets databaseSizeBasedRecommendationServiceLevelObjectiveId for - * service tier advisor. + * @member {string} [resourceName] The name of the resource. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly databaseSizeBasedRecommendationServiceLevelObjectiveId?: string; + readonly resourceName?: string; /** - * @member {string} [disasterPlanBasedRecommendationServiceLevelObjective] - * Gets or sets disasterPlanBasedRecommendationServiceLevelObjective for - * service tier advisor. + * @member {string} [displayName] The usage metric display name. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly disasterPlanBasedRecommendationServiceLevelObjective?: string; + readonly displayName?: string; /** - * @member {string} [disasterPlanBasedRecommendationServiceLevelObjectiveId] - * Gets or sets disasterPlanBasedRecommendationServiceLevelObjectiveId for - * service tier advisor. + * @member {number} [currentValue] The current value of the usage metric. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly disasterPlanBasedRecommendationServiceLevelObjectiveId?: string; + readonly currentValue?: number; /** - * @member {string} [overallRecommendationServiceLevelObjective] Gets or sets - * overallRecommendationServiceLevelObjective for service tier advisor. + * @member {number} [limit] The current limit of the usage metric. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly overallRecommendationServiceLevelObjective?: string; + readonly limit?: number; /** - * @member {string} [overallRecommendationServiceLevelObjectiveId] Gets or - * sets overallRecommendationServiceLevelObjectiveId for service tier - * advisor. + * @member {string} [unit] The units of the usage metric. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly overallRecommendationServiceLevelObjectiveId?: string; + readonly unit?: string; /** - * @member {number} [confidence] Gets or sets confidence for service tier - * advisor. + * @member {Date} [nextResetTime] The next reset time for the usage metric + * (ISO8601 format). * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly confidence?: number; + readonly nextResetTime?: Date; } /** * @interface - * An interface representing TransparentDataEncryptionActivityProperties. - * Represents the properties of a database transparent data encryption Scan. + * An interface representing AutomaticTuningOptions. + * Automatic tuning properties for individual advisors. * */ -export interface TransparentDataEncryptionActivityProperties { +export interface AutomaticTuningOptions { /** - * @member {TransparentDataEncryptionActivityStatus} [status] The status of - * the database. Possible values include: 'Encrypting', 'Decrypting' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly status?: TransparentDataEncryptionActivityStatus; - /** - * @member {number} [percentComplete] The percent complete of the transparent - * data encryption scan for a database. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly percentComplete?: number; -} - -/** - * @interface - * An interface representing TransparentDataEncryptionActivity. - * Represents a database transparent data encryption Scan. - * - * @extends ProxyResource - */ -export interface TransparentDataEncryptionActivity extends ProxyResource { - /** - * @member {string} [location] Resource location. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly location?: string; - /** - * @member {TransparentDataEncryptionActivityStatus} [status] The status of - * the database. Possible values include: 'Encrypting', 'Decrypting' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly status?: TransparentDataEncryptionActivityStatus; - /** - * @member {number} [percentComplete] The percent complete of the transparent - * data encryption scan for a database. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly percentComplete?: number; -} - -/** - * @interface - * An interface representing ServerUsage. - * Represents server metrics. - * - */ -export interface ServerUsage { - /** - * @member {string} [name] Name of the server usage metric. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly name?: string; - /** - * @member {string} [resourceName] The name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly resourceName?: string; - /** - * @member {string} [displayName] The metric display name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly displayName?: string; - /** - * @member {number} [currentValue] The current value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly currentValue?: number; - /** - * @member {number} [limit] The current limit of the metric. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly limit?: number; - /** - * @member {string} [unit] The units of the metric. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly unit?: string; - /** - * @member {Date} [nextResetTime] The next reset time for the metric (ISO8601 - * format). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly nextResetTime?: Date; -} - -/** - * @interface - * An interface representing DatabaseUsage. - * The database usages. - * - */ -export interface DatabaseUsage { - /** - * @member {string} [name] The name of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly name?: string; - /** - * @member {string} [resourceName] The name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly resourceName?: string; - /** - * @member {string} [displayName] The usage metric display name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly displayName?: string; - /** - * @member {number} [currentValue] The current value of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly currentValue?: number; - /** - * @member {number} [limit] The current limit of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly limit?: number; - /** - * @member {string} [unit] The units of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly unit?: string; - /** - * @member {Date} [nextResetTime] The next reset time for the usage metric - * (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly nextResetTime?: Date; -} - -/** - * @interface - * An interface representing AutomaticTuningOptions. - * Automatic tuning properties for individual advisors. - * - */ -export interface AutomaticTuningOptions { - /** - * @member {AutomaticTuningOptionModeDesired} [desiredState] Automatic tuning - * option desired state. Possible values include: 'Off', 'On', 'Default' - */ - desiredState?: AutomaticTuningOptionModeDesired; - /** - * @member {AutomaticTuningOptionModeActual} [actualState] Automatic tuning - * option actual state. Possible values include: 'Off', 'On' + * @member {AutomaticTuningOptionModeDesired} [desiredState] Automatic tuning + * option desired state. Possible values include: 'Off', 'On', 'Default' + */ + desiredState?: AutomaticTuningOptionModeDesired; + /** + * @member {AutomaticTuningOptionModeActual} [actualState] Automatic tuning + * option actual state. Possible values include: 'Off', 'On' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -3117,32 +1955,6 @@ export interface AutomaticTuningOptions { readonly reasonDesc?: AutomaticTuningDisabledReason; } -/** - * @interface - * An interface representing DatabaseAutomaticTuningProperties. - * Database-level Automatic Tuning properties. - * - */ -export interface DatabaseAutomaticTuningProperties { - /** - * @member {AutomaticTuningMode} [desiredState] Automatic tuning desired - * state. Possible values include: 'Inherit', 'Custom', 'Auto', 'Unspecified' - */ - desiredState?: AutomaticTuningMode; - /** - * @member {AutomaticTuningMode} [actualState] Automatic tuning actual state. - * Possible values include: 'Inherit', 'Custom', 'Auto', 'Unspecified' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly actualState?: AutomaticTuningMode; - /** - * @member {{ [propertyName: string]: AutomaticTuningOptions }} [options] - * Automatic tuning options definition. - */ - options?: { [propertyName: string]: AutomaticTuningOptions }; -} - /** * @interface * An interface representing DatabaseAutomaticTuning. @@ -3170,43 +1982,6 @@ export interface DatabaseAutomaticTuning extends ProxyResource { options?: { [propertyName: string]: AutomaticTuningOptions }; } -/** - * @interface - * An interface representing EncryptionProtectorProperties. - * Properties for an encryption protector execution. - * - */ -export interface EncryptionProtectorProperties { - /** - * @member {string} [subregion] Subregion of the encryption protector. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly subregion?: string; - /** - * @member {string} [serverKeyName] The name of the server key. - */ - serverKeyName?: string; - /** - * @member {ServerKeyType} serverKeyType The encryption protector type like - * 'ServiceManaged', 'AzureKeyVault'. Possible values include: - * 'ServiceManaged', 'AzureKeyVault' - */ - serverKeyType: ServerKeyType; - /** - * @member {string} [uri] The URI of the server key. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly uri?: string; - /** - * @member {string} [thumbprint] Thumbprint of the server key. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly thumbprint?: string; -} - /** * @interface * An interface representing EncryptionProtector. @@ -3322,11 +2097,22 @@ export interface PartnerInfo { /** * @interface - * An interface representing FailoverGroupProperties. - * Properties of a failover group. + * An interface representing FailoverGroup. + * A failover group. * + * @extends ProxyResource */ -export interface FailoverGroupProperties { +export interface FailoverGroup extends ProxyResource { + /** + * @member {string} [location] Resource location. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly location?: string; + /** + * @member {{ [propertyName: string]: string }} [tags] Resource tags. + */ + tags?: { [propertyName: string]: string }; /** * @member {FailoverGroupReadWriteEndpoint} readWriteEndpoint Read-write * endpoint of the failover group instance. @@ -3365,93 +2151,16 @@ export interface FailoverGroupProperties { /** * @interface - * An interface representing FailoverGroup. - * A failover group. + * An interface representing FailoverGroupUpdate. + * A failover group update request. * - * @extends ProxyResource */ -export interface FailoverGroup extends ProxyResource { - /** - * @member {string} [location] Resource location. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly location?: string; - /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags. - */ - tags?: { [propertyName: string]: string }; +export interface FailoverGroupUpdate { /** - * @member {FailoverGroupReadWriteEndpoint} readWriteEndpoint Read-write + * @member {FailoverGroupReadWriteEndpoint} [readWriteEndpoint] Read-write * endpoint of the failover group instance. */ - readWriteEndpoint: FailoverGroupReadWriteEndpoint; - /** - * @member {FailoverGroupReadOnlyEndpoint} [readOnlyEndpoint] Read-only - * endpoint of the failover group instance. - */ - readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; - /** - * @member {FailoverGroupReplicationRole} [replicationRole] Local replication - * role of the failover group instance. Possible values include: 'Primary', - * 'Secondary' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly replicationRole?: FailoverGroupReplicationRole; - /** - * @member {string} [replicationState] Replication state of the failover - * group instance. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly replicationState?: string; - /** - * @member {PartnerInfo[]} partnerServers List of partner server information - * for the failover group. - */ - partnerServers: PartnerInfo[]; - /** - * @member {string[]} [databases] List of databases in the failover group. - */ - databases?: string[]; -} - -/** - * @interface - * An interface representing FailoverGroupUpdateProperties. - * Properties of a failover group update. - * - */ -export interface FailoverGroupUpdateProperties { - /** - * @member {FailoverGroupReadWriteEndpoint} [readWriteEndpoint] Read-write - * endpoint of the failover group instance. - */ - readWriteEndpoint?: FailoverGroupReadWriteEndpoint; - /** - * @member {FailoverGroupReadOnlyEndpoint} [readOnlyEndpoint] Read-only - * endpoint of the failover group instance. - */ - readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; - /** - * @member {string[]} [databases] List of databases in the failover group. - */ - databases?: string[]; -} - -/** - * @interface - * An interface representing FailoverGroupUpdate. - * A failover group update request. - * - */ -export interface FailoverGroupUpdate { - /** - * @member {FailoverGroupReadWriteEndpoint} [readWriteEndpoint] Read-write - * endpoint of the failover group instance. - */ - readWriteEndpoint?: FailoverGroupReadWriteEndpoint; + readWriteEndpoint?: FailoverGroupReadWriteEndpoint; /** * @member {FailoverGroupReadOnlyEndpoint} [readOnlyEndpoint] Read-only * endpoint of the failover group instance. @@ -3532,73 +2241,6 @@ export interface Sku { capacity?: number; } -/** - * @interface - * An interface representing ManagedInstanceProperties. - * The properties of a managed instance. - * - */ -export interface ManagedInstanceProperties { - /** - * @member {string} [fullyQualifiedDomainName] The fully qualified domain - * name of the managed instance. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly fullyQualifiedDomainName?: string; - /** - * @member {string} [administratorLogin] Administrator username for the - * managed instance. Can only be specified when the managed instance is being - * created (and is required for creation). - */ - administratorLogin?: string; - /** - * @member {string} [administratorLoginPassword] The administrator login - * password (required for managed instance creation). - */ - administratorLoginPassword?: string; - /** - * @member {string} [subnetId] Subnet resource ID for the managed instance. - */ - subnetId?: string; - /** - * @member {string} [state] The state of the managed instance. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly state?: string; - /** - * @member {string} [licenseType] The license type. Possible values are - * 'LicenseIncluded' and 'BasePrice'. - */ - licenseType?: string; - /** - * @member {number} [vCores] The number of VCores. - */ - vCores?: number; - /** - * @member {number} [storageSizeInGB] The maximum storage size in GB. - */ - storageSizeInGB?: number; - /** - * @member {string} [collation] Collation of the managed instance. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly collation?: string; - /** - * @member {string} [dnsZone] The Dns Zone that the managed instance is in. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly dnsZone?: string; - /** - * @member {string} [dnsZonePartner] The resource id of another managed - * instance whose DNS zone this managed instance will share after creation. - */ - dnsZonePartner?: string; -} - /** * @interface * An interface representing ManagedInstance. @@ -3659,10 +2301,8 @@ export interface ManagedInstance extends TrackedResource { storageSizeInGB?: number; /** * @member {string} [collation] Collation of the managed instance. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** */ - readonly collation?: string; + collation?: string; /** * @member {string} [dnsZone] The Dns Zone that the managed instance is in. * **NOTE: This property will not be serialized. It can only be populated by @@ -3730,10 +2370,8 @@ export interface ManagedInstanceUpdate { storageSizeInGB?: number; /** * @member {string} [collation] Collation of the managed instance. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** */ - readonly collation?: string; + collation?: string; /** * @member {string} [dnsZone] The Dns Zone that the managed instance is in. * **NOTE: This property will not be serialized. It can only be populated by @@ -3825,39 +2463,6 @@ export interface Operation { readonly properties?: { [propertyName: string]: any }; } -/** - * @interface - * An interface representing ServerKeyProperties. - * Properties for a server key execution. - * - */ -export interface ServerKeyProperties { - /** - * @member {string} [subregion] Subregion of the server key. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly subregion?: string; - /** - * @member {ServerKeyType} serverKeyType The server key type like - * 'ServiceManaged', 'AzureKeyVault'. Possible values include: - * 'ServiceManaged', 'AzureKeyVault' - */ - serverKeyType: ServerKeyType; - /** - * @member {string} [uri] The URI of the server key. - */ - uri?: string; - /** - * @member {string} [thumbprint] Thumbprint of the server key. - */ - thumbprint?: string; - /** - * @member {Date} [creationDate] The server key creation date. - */ - creationDate?: Date; -} - /** * @interface * An interface representing ServerKey. @@ -3903,42 +2508,6 @@ export interface ServerKey extends ProxyResource { creationDate?: Date; } -/** - * @interface - * An interface representing ServerProperties. - * The properties of a server. - * - */ -export interface ServerProperties { - /** - * @member {string} [administratorLogin] Administrator username for the - * server. Once created it cannot be changed. - */ - administratorLogin?: string; - /** - * @member {string} [administratorLoginPassword] The administrator login - * password (required for server creation). - */ - administratorLoginPassword?: string; - /** - * @member {string} [version] The version of the server. - */ - version?: string; - /** - * @member {string} [state] The state of the server. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly state?: string; - /** - * @member {string} [fullyQualifiedDomainName] The fully qualified domain - * name of the server. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly fullyQualifiedDomainName?: string; -} - /** * @interface * An interface representing Server. @@ -4028,57 +2597,6 @@ export interface ServerUpdate { tags?: { [propertyName: string]: string }; } -/** - * @interface - * An interface representing SyncAgentProperties. - * Properties of an Azure SQL Database sync agent. - * - */ -export interface SyncAgentProperties { - /** - * @member {string} [name] Name of the sync agent. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly name?: string; - /** - * @member {string} [syncDatabaseId] ARM resource id of the sync database in - * the sync agent. - */ - syncDatabaseId?: string; - /** - * @member {Date} [lastAliveTime] Last alive time of the sync agent. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly lastAliveTime?: Date; - /** - * @member {SyncAgentState} [state] State of the sync agent. Possible values - * include: 'Online', 'Offline', 'NeverConnected' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly state?: SyncAgentState; - /** - * @member {boolean} [isUpToDate] If the sync agent version is up to date. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly isUpToDate?: boolean; - /** - * @member {Date} [expiryTime] Expiration time of the sync agent version. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly expiryTime?: Date; - /** - * @member {string} [version] Version of the sync agent. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly version?: string; -} - /** * @interface * An interface representing SyncAgent. @@ -4148,11 +2666,12 @@ export interface SyncAgentKeyProperties { /** * @interface - * An interface representing SyncAgentLinkedDatabaseProperties. - * Properties of an Azure SQL Database sync agent linked database. + * An interface representing SyncAgentLinkedDatabase. + * An Azure SQL Database sync agent linked database. * + * @extends ProxyResource */ -export interface SyncAgentLinkedDatabaseProperties { +export interface SyncAgentLinkedDatabase extends ProxyResource { /** * @member {SyncMemberDbType} [databaseType] Type of the sync agent linked * database. Possible values include: 'AzureSqlDatabase', 'SqlServerDatabase' @@ -4197,63 +2716,13 @@ export interface SyncAgentLinkedDatabaseProperties { /** * @interface - * An interface representing SyncAgentLinkedDatabase. - * An Azure SQL Database sync agent linked database. + * An interface representing SyncDatabaseIdProperties. + * Properties of the sync database id. * - * @extends ProxyResource */ -export interface SyncAgentLinkedDatabase extends ProxyResource { +export interface SyncDatabaseIdProperties { /** - * @member {SyncMemberDbType} [databaseType] Type of the sync agent linked - * database. Possible values include: 'AzureSqlDatabase', 'SqlServerDatabase' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly databaseType?: SyncMemberDbType; - /** - * @member {string} [databaseId] Id of the sync agent linked database. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly databaseId?: string; - /** - * @member {string} [description] Description of the sync agent linked - * database. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly description?: string; - /** - * @member {string} [serverName] Server name of the sync agent linked - * database. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly serverName?: string; - /** - * @member {string} [databaseName] Database name of the sync agent linked - * database. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly databaseName?: string; - /** - * @member {string} [userName] User name of the sync agent linked database. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly userName?: string; -} - -/** - * @interface - * An interface representing SyncDatabaseIdProperties. - * Properties of the sync database id. - * - */ -export interface SyncDatabaseIdProperties { - /** - * @member {string} [id] ARM resource id of sync database. + * @member {string} [id] ARM resource id of sync database. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -4477,58 +2946,6 @@ export interface SyncGroupSchema { masterSyncMemberName?: string; } -/** - * @interface - * An interface representing SyncGroupProperties. - * Properties of a sync group. - * - */ -export interface SyncGroupProperties { - /** - * @member {number} [interval] Sync interval of the sync group. - */ - interval?: number; - /** - * @member {Date} [lastSyncTime] Last sync time of the sync group. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly lastSyncTime?: Date; - /** - * @member {SyncConflictResolutionPolicy} [conflictResolutionPolicy] Conflict - * resolution policy of the sync group. Possible values include: 'HubWin', - * 'MemberWin' - */ - conflictResolutionPolicy?: SyncConflictResolutionPolicy; - /** - * @member {string} [syncDatabaseId] ARM resource id of the sync database in - * the sync group. - */ - syncDatabaseId?: string; - /** - * @member {string} [hubDatabaseUserName] User name for the sync group hub - * database credential. - */ - hubDatabaseUserName?: string; - /** - * @member {string} [hubDatabasePassword] Password for the sync group hub - * database credential. - */ - hubDatabasePassword?: string; - /** - * @member {SyncGroupState} [syncState] Sync state of the sync group. - * Possible values include: 'NotReady', 'Error', 'Warning', 'Progressing', - * 'Good' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly syncState?: SyncGroupState; - /** - * @member {SyncGroupSchema} [schema] Sync schema of the sync group. - */ - schema?: SyncGroupSchema; -} - /** * @interface * An interface representing SyncGroup. @@ -4582,68 +2999,6 @@ export interface SyncGroup extends ProxyResource { schema?: SyncGroupSchema; } -/** - * @interface - * An interface representing SyncMemberProperties. - * Properties of a sync member. - * - */ -export interface SyncMemberProperties { - /** - * @member {SyncMemberDbType} [databaseType] Database type of the sync - * member. Possible values include: 'AzureSqlDatabase', 'SqlServerDatabase' - */ - databaseType?: SyncMemberDbType; - /** - * @member {string} [syncAgentId] ARM resource id of the sync agent in the - * sync member. - */ - syncAgentId?: string; - /** - * @member {string} [sqlServerDatabaseId] SQL Server database id of the sync - * member. - */ - sqlServerDatabaseId?: string; - /** - * @member {string} [serverName] Server name of the member database in the - * sync member - */ - serverName?: string; - /** - * @member {string} [databaseName] Database name of the member database in - * the sync member. - */ - databaseName?: string; - /** - * @member {string} [userName] User name of the member database in the sync - * member. - */ - userName?: string; - /** - * @member {string} [password] Password of the member database in the sync - * member. - */ - password?: string; - /** - * @member {SyncDirection} [syncDirection] Sync direction of the sync member. - * Possible values include: 'Bidirectional', 'OneWayMemberToHub', - * 'OneWayHubToMember' - */ - syncDirection?: SyncDirection; - /** - * @member {SyncMemberState} [syncState] Sync state of the sync member. - * Possible values include: 'SyncInProgress', 'SyncSucceeded', 'SyncFailed', - * 'DisabledTombstoneCleanup', 'DisabledBackupRestore', - * 'SyncSucceededWithWarnings', 'SyncCancelling', 'SyncCancelled', - * 'UnProvisioned', 'Provisioning', 'Provisioned', 'ProvisionFailed', - * 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', 'Reprovisioning', - * 'ReprovisionFailed', 'UnReprovisioned' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly syncState?: SyncMemberState; -} - /** * @interface * An interface representing SyncMember. @@ -4707,39 +3062,6 @@ export interface SyncMember extends ProxyResource { readonly syncState?: SyncMemberState; } -/** - * @interface - * An interface representing SubscriptionUsageProperties. - * Properties of a subscription usage. - * - */ -export interface SubscriptionUsageProperties { - /** - * @member {string} [displayName] User-readable name of the metric. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly displayName?: string; - /** - * @member {number} [currentValue] Current value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly currentValue?: number; - /** - * @member {number} [limit] Boundary value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly limit?: number; - /** - * @member {string} [unit] Unit of the metric. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly unit?: string; -} - /** * @interface * An interface representing SubscriptionUsage. @@ -4774,33 +3096,6 @@ export interface SubscriptionUsage extends ProxyResource { readonly unit?: string; } -/** - * @interface - * An interface representing VirtualNetworkRuleProperties. - * Properties of a virtual network rule. - * - */ -export interface VirtualNetworkRuleProperties { - /** - * @member {string} virtualNetworkSubnetId The ARM resource id of the virtual - * network subnet. - */ - virtualNetworkSubnetId: string; - /** - * @member {boolean} [ignoreMissingVnetServiceEndpoint] Create firewall rule - * before the virtual network has vnet service endpoint enabled. - */ - ignoreMissingVnetServiceEndpoint?: boolean; - /** - * @member {VirtualNetworkRuleState} [state] Virtual Network Rule State. - * Possible values include: 'Initializing', 'InProgress', 'Ready', - * 'Deleting', 'Unknown' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly state?: VirtualNetworkRuleState; -} - /** * @interface * An interface representing VirtualNetworkRule. @@ -4831,11 +3126,12 @@ export interface VirtualNetworkRule extends ProxyResource { /** * @interface - * An interface representing ExtendedDatabaseBlobAuditingPolicyProperties. - * Properties of an extended database blob auditing policy. + * An interface representing ExtendedDatabaseBlobAuditingPolicy. + * An extended database blob auditing policy. * + * @extends ProxyResource */ -export interface ExtendedDatabaseBlobAuditingPolicyProperties { +export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { /** * @member {string} [predicateExpression] Specifies condition of where clause * when creating an audit. @@ -4843,7 +3139,7 @@ export interface ExtendedDatabaseBlobAuditingPolicyProperties { predicateExpression?: string; /** * @member {BlobAuditingPolicyState} state Specifies the state of the policy. - * If state is Enabled, storageEndpoint and storageAccountAccessKey are + * If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are * required. Possible values include: 'Enabled', 'Disabled' */ state: BlobAuditingPolicyState; @@ -4855,13 +3151,13 @@ export interface ExtendedDatabaseBlobAuditingPolicyProperties { storageEndpoint?: string; /** * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled, storageAccountAccessKey - * is required. + * the auditing storage account. If state is Enabled and storageEndpoint is + * specified, storageAccountAccessKey is required. */ storageAccountAccessKey?: string; /** * @member {number} [retentionDays] Specifies the number of days to keep in - * the audit logs. + * the audit logs in the storage account. */ retentionDays?: number; /** @@ -4923,11 +3219,11 @@ export interface ExtendedDatabaseBlobAuditingPolicyProperties { * REFERENCES * * The general form for defining an action to be audited is: - * ON BY + * {action} ON {object} BY {principal} * * Note that in the above format can refer to an object like a * table, view, or stored procedure, or an entire database or schema. For the - * latter cases, the forms DATABASE:: and SCHEMA:: are + * latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are * used, respectively. * * For example: @@ -4949,16 +3245,38 @@ export interface ExtendedDatabaseBlobAuditingPolicyProperties { * storageAccountAccessKey value is the storage's secondary key. */ isStorageSecondaryKeyInUse?: boolean; + /** + * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit + * events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' + * and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with + * 'SQLSecurityAuditEvents' diagnostic logs category on the database should + * be also created. + * Note that for server level audit you should use the 'master' database as + * {databaseName}. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings + * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + */ + isAzureMonitorTargetEnabled?: boolean; } /** * @interface - * An interface representing ExtendedDatabaseBlobAuditingPolicy. - * An extended database blob auditing policy. + * An interface representing ExtendedServerBlobAuditingPolicy. + * An extended server blob auditing policy. * * @extends ProxyResource */ -export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { +export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { /** * @member {string} [predicateExpression] Specifies condition of where clause * when creating an audit. @@ -4966,7 +3284,7 @@ export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { predicateExpression?: string; /** * @member {BlobAuditingPolicyState} state Specifies the state of the policy. - * If state is Enabled, storageEndpoint and storageAccountAccessKey are + * If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are * required. Possible values include: 'Enabled', 'Disabled' */ state: BlobAuditingPolicyState; @@ -4978,13 +3296,13 @@ export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { storageEndpoint?: string; /** * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled, storageAccountAccessKey - * is required. + * the auditing storage account. If state is Enabled and storageEndpoint is + * specified, storageAccountAccessKey is required. */ storageAccountAccessKey?: string; /** * @member {number} [retentionDays] Specifies the number of days to keep in - * the audit logs. + * the audit logs in the storage account. */ retentionDays?: number; /** @@ -5046,11 +3364,11 @@ export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { * REFERENCES * * The general form for defining an action to be audited is: - * ON BY + * {action} ON {object} BY {principal} * * Note that in the above format can refer to an object like a * table, view, or stored procedure, or an entire database or schema. For the - * latter cases, the forms DATABASE:: and SCHEMA:: are + * latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are * used, respectively. * * For example: @@ -5072,23 +3390,41 @@ export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { * storageAccountAccessKey value is the storage's secondary key. */ isStorageSecondaryKeyInUse?: boolean; + /** + * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit + * events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' + * and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with + * 'SQLSecurityAuditEvents' diagnostic logs category on the database should + * be also created. + * Note that for server level audit you should use the 'master' database as + * {databaseName}. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings + * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + */ + isAzureMonitorTargetEnabled?: boolean; } /** * @interface - * An interface representing ExtendedServerBlobAuditingPolicyProperties. - * Properties of an extended server blob auditing policy. + * An interface representing ServerBlobAuditingPolicy. + * A server blob auditing policy. * + * @extends ProxyResource */ -export interface ExtendedServerBlobAuditingPolicyProperties { - /** - * @member {string} [predicateExpression] Specifies condition of where clause - * when creating an audit. - */ - predicateExpression?: string; +export interface ServerBlobAuditingPolicy extends ProxyResource { /** * @member {BlobAuditingPolicyState} state Specifies the state of the policy. - * If state is Enabled, storageEndpoint and storageAccountAccessKey are + * If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are * required. Possible values include: 'Enabled', 'Disabled' */ state: BlobAuditingPolicyState; @@ -5100,13 +3436,13 @@ export interface ExtendedServerBlobAuditingPolicyProperties { storageEndpoint?: string; /** * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled, storageAccountAccessKey - * is required. + * the auditing storage account. If state is Enabled and storageEndpoint is + * specified, storageAccountAccessKey is required. */ storageAccountAccessKey?: string; /** * @member {number} [retentionDays] Specifies the number of days to keep in - * the audit logs. + * the audit logs in the storage account. */ retentionDays?: number; /** @@ -5168,11 +3504,11 @@ export interface ExtendedServerBlobAuditingPolicyProperties { * REFERENCES * * The general form for defining an action to be audited is: - * ON BY + * {action} ON {object} BY {principal} * * Note that in the above format can refer to an object like a * table, view, or stored procedure, or an entire database or schema. For the - * latter cases, the forms DATABASE:: and SCHEMA:: are + * latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are * used, respectively. * * For example: @@ -5194,24 +3530,47 @@ export interface ExtendedServerBlobAuditingPolicyProperties { * storageAccountAccessKey value is the storage's secondary key. */ isStorageSecondaryKeyInUse?: boolean; + /** + * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit + * events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' + * and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with + * 'SQLSecurityAuditEvents' diagnostic logs category on the database should + * be also created. + * Note that for server level audit you should use the 'master' database as + * {databaseName}. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings + * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + */ + isAzureMonitorTargetEnabled?: boolean; } /** * @interface - * An interface representing ExtendedServerBlobAuditingPolicy. - * An extended server blob auditing policy. + * An interface representing DatabaseBlobAuditingPolicy. + * A database blob auditing policy. * * @extends ProxyResource */ -export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { +export interface DatabaseBlobAuditingPolicy extends ProxyResource { /** - * @member {string} [predicateExpression] Specifies condition of where clause - * when creating an audit. + * @member {string} [kind] Resource kind. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - predicateExpression?: string; + readonly kind?: string; /** * @member {BlobAuditingPolicyState} state Specifies the state of the policy. - * If state is Enabled, storageEndpoint and storageAccountAccessKey are + * If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are * required. Possible values include: 'Enabled', 'Disabled' */ state: BlobAuditingPolicyState; @@ -5223,13 +3582,13 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { storageEndpoint?: string; /** * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled, storageAccountAccessKey - * is required. + * the auditing storage account. If state is Enabled and storageEndpoint is + * specified, storageAccountAccessKey is required. */ storageAccountAccessKey?: string; /** * @member {number} [retentionDays] Specifies the number of days to keep in - * the audit logs. + * the audit logs in the storage account. */ retentionDays?: number; /** @@ -5291,11 +3650,11 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { * REFERENCES * * The general form for defining an action to be audited is: - * ON BY + * {action} ON {object} BY {principal} * * Note that in the above format can refer to an object like a * table, view, or stored procedure, or an entire database or schema. For the - * latter cases, the forms DATABASE:: and SCHEMA:: are + * latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are * used, respectively. * * For example: @@ -5317,2248 +3676,1071 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { * storageAccountAccessKey value is the storage's secondary key. */ isStorageSecondaryKeyInUse?: boolean; + /** + * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit + * events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' + * and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with + * 'SQLSecurityAuditEvents' diagnostic logs category on the database should + * be also created. + * Note that for server level audit you should use the 'master' database as + * {databaseName}. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings + * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + */ + isAzureMonitorTargetEnabled?: boolean; } /** * @interface - * An interface representing ServerBlobAuditingPolicyProperties. - * Properties of a server blob auditing policy. + * An interface representing DatabaseVulnerabilityAssessmentRuleBaselineItem. + * Properties for an Azure SQL Database Vulnerability Assessment rule + * baseline's result. * */ -export interface ServerBlobAuditingPolicyProperties { - /** - * @member {BlobAuditingPolicyState} state Specifies the state of the policy. - * If state is Enabled, storageEndpoint and storageAccountAccessKey are - * required. Possible values include: 'Enabled', 'Disabled' - */ - state: BlobAuditingPolicyState; - /** - * @member {string} [storageEndpoint] Specifies the blob storage endpoint - * (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, - * storageEndpoint is required. - */ - storageEndpoint?: string; +export interface DatabaseVulnerabilityAssessmentRuleBaselineItem { /** - * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled, storageAccountAccessKey - * is required. + * @member {string[]} result The rule baseline result */ - storageAccountAccessKey?: string; + result: string[]; +} + +/** + * @interface + * An interface representing DatabaseVulnerabilityAssessmentRuleBaseline. + * A database vulnerability assessment rule baseline. + * + * @extends ProxyResource + */ +export interface DatabaseVulnerabilityAssessmentRuleBaseline extends ProxyResource { /** - * @member {number} [retentionDays] Specifies the number of days to keep in - * the audit logs. + * @member {DatabaseVulnerabilityAssessmentRuleBaselineItem[]} + * baselineResults The rule baseline result */ - retentionDays?: number; + baselineResults: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; +} + +/** + * @interface + * An interface representing VulnerabilityAssessmentRecurringScansProperties. + * Properties of a Vulnerability Assessment recurring scans. + * + */ +export interface VulnerabilityAssessmentRecurringScansProperties { /** - * @member {string[]} [auditActionsAndGroups] Specifies the Actions-Groups - * and Actions to audit. - * - * The recommended set of action groups to use is the following combination - - * this will audit all the queries and stored procedures executed against the - * database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when - * enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific - * groups that cover your auditing needs. Using unnecessary groups could lead - * to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These are groups that cover all sql statements and stored procedures - * executed against the database, and should not be used in combination with - * other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note - * that Actions cannot be specified for Server auditing policy). The - * supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * ON BY - * - * Note that in the above format can refer to an object like a - * table, view, or stored procedure, or an entire database or schema. For the - * latter cases, the forms DATABASE:: and SCHEMA:: are - * used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) + * @member {boolean} [isEnabled] Recurring scans state. */ - auditActionsAndGroups?: string[]; + isEnabled?: boolean; /** - * @member {string} [storageAccountSubscriptionId] Specifies the blob storage - * subscription Id. + * @member {boolean} [emailSubscriptionAdmins] Specifies that the schedule + * scan notification will be is sent to the subscription administrators. + * Default value: true . */ - storageAccountSubscriptionId?: string; + emailSubscriptionAdmins?: boolean; /** - * @member {boolean} [isStorageSecondaryKeyInUse] Specifies whether - * storageAccountAccessKey value is the storage's secondary key. + * @member {string[]} [emails] Specifies an array of e-mail addresses to + * which the scan notification is sent. */ - isStorageSecondaryKeyInUse?: boolean; + emails?: string[]; } /** * @interface - * An interface representing ServerBlobAuditingPolicy. - * A server blob auditing policy. + * An interface representing DatabaseVulnerabilityAssessment. + * A database vulnerability assessment. * * @extends ProxyResource */ -export interface ServerBlobAuditingPolicy extends ProxyResource { +export interface DatabaseVulnerabilityAssessment extends ProxyResource { /** - * @member {BlobAuditingPolicyState} state Specifies the state of the policy. - * If state is Enabled, storageEndpoint and storageAccountAccessKey are - * required. Possible values include: 'Enabled', 'Disabled' + * @member {string} [storageContainerPath] A blob storage container path to + * hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). It is required if + * server level vulnerability assessment policy doesn't set */ - state: BlobAuditingPolicyState; + storageContainerPath?: string; /** - * @member {string} [storageEndpoint] Specifies the blob storage endpoint - * (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, - * storageEndpoint is required. + * @member {string} [storageContainerSasKey] A shared access signature (SAS + * Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. */ - storageEndpoint?: string; + storageContainerSasKey?: string; /** * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled, storageAccountAccessKey - * is required. + * the storage account for vulnerability assessment scan results. If + * 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is + * required. */ storageAccountAccessKey?: string; /** - * @member {number} [retentionDays] Specifies the number of days to keep in - * the audit logs. - */ - retentionDays?: number; - /** - * @member {string[]} [auditActionsAndGroups] Specifies the Actions-Groups - * and Actions to audit. - * - * The recommended set of action groups to use is the following combination - - * this will audit all the queries and stored procedures executed against the - * database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when - * enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific - * groups that cover your auditing needs. Using unnecessary groups could lead - * to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These are groups that cover all sql statements and stored procedures - * executed against the database, and should not be used in combination with - * other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note - * that Actions cannot be specified for Server auditing policy). The - * supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * ON BY - * - * Note that in the above format can refer to an object like a - * table, view, or stored procedure, or an entire database or schema. For the - * latter cases, the forms DATABASE:: and SCHEMA:: are - * used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - */ - auditActionsAndGroups?: string[]; - /** - * @member {string} [storageAccountSubscriptionId] Specifies the blob storage - * subscription Id. - */ - storageAccountSubscriptionId?: string; - /** - * @member {boolean} [isStorageSecondaryKeyInUse] Specifies whether - * storageAccountAccessKey value is the storage's secondary key. + * @member {VulnerabilityAssessmentRecurringScansProperties} [recurringScans] + * The recurring scans settings */ - isStorageSecondaryKeyInUse?: boolean; + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; } /** * @interface - * An interface representing DatabaseBlobAuditingPolicyProperties. - * Properties of a database blob auditing policy. + * An interface representing JobAgent. + * An Azure SQL job agent. * + * @extends TrackedResource */ -export interface DatabaseBlobAuditingPolicyProperties { +export interface JobAgent extends TrackedResource { /** - * @member {BlobAuditingPolicyState} state Specifies the state of the policy. - * If state is Enabled, storageEndpoint and storageAccountAccessKey are - * required. Possible values include: 'Enabled', 'Disabled' + * @member {Sku} [sku] The name and tier of the SKU. */ - state: BlobAuditingPolicyState; + sku?: Sku; /** - * @member {string} [storageEndpoint] Specifies the blob storage endpoint - * (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, - * storageEndpoint is required. - */ - storageEndpoint?: string; - /** - * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled, storageAccountAccessKey - * is required. - */ - storageAccountAccessKey?: string; - /** - * @member {number} [retentionDays] Specifies the number of days to keep in - * the audit logs. - */ - retentionDays?: number; - /** - * @member {string[]} [auditActionsAndGroups] Specifies the Actions-Groups - * and Actions to audit. - * - * The recommended set of action groups to use is the following combination - - * this will audit all the queries and stored procedures executed against the - * database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when - * enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific - * groups that cover your auditing needs. Using unnecessary groups could lead - * to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These are groups that cover all sql statements and stored procedures - * executed against the database, and should not be used in combination with - * other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note - * that Actions cannot be specified for Server auditing policy). The - * supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * ON BY - * - * Note that in the above format can refer to an object like a - * table, view, or stored procedure, or an entire database or schema. For the - * latter cases, the forms DATABASE:: and SCHEMA:: are - * used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - */ - auditActionsAndGroups?: string[]; - /** - * @member {string} [storageAccountSubscriptionId] Specifies the blob storage - * subscription Id. - */ - storageAccountSubscriptionId?: string; - /** - * @member {boolean} [isStorageSecondaryKeyInUse] Specifies whether - * storageAccountAccessKey value is the storage's secondary key. - */ - isStorageSecondaryKeyInUse?: boolean; -} - -/** - * @interface - * An interface representing DatabaseBlobAuditingPolicy. - * A database blob auditing policy. - * - * @extends ProxyResource - */ -export interface DatabaseBlobAuditingPolicy extends ProxyResource { - /** - * @member {string} [kind] Resource kind. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly kind?: string; - /** - * @member {BlobAuditingPolicyState} state Specifies the state of the policy. - * If state is Enabled, storageEndpoint and storageAccountAccessKey are - * required. Possible values include: 'Enabled', 'Disabled' - */ - state: BlobAuditingPolicyState; - /** - * @member {string} [storageEndpoint] Specifies the blob storage endpoint - * (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, - * storageEndpoint is required. - */ - storageEndpoint?: string; - /** - * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled, storageAccountAccessKey - * is required. - */ - storageAccountAccessKey?: string; - /** - * @member {number} [retentionDays] Specifies the number of days to keep in - * the audit logs. - */ - retentionDays?: number; - /** - * @member {string[]} [auditActionsAndGroups] Specifies the Actions-Groups - * and Actions to audit. - * - * The recommended set of action groups to use is the following combination - - * this will audit all the queries and stored procedures executed against the - * database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when - * enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific - * groups that cover your auditing needs. Using unnecessary groups could lead - * to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These are groups that cover all sql statements and stored procedures - * executed against the database, and should not be used in combination with - * other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note - * that Actions cannot be specified for Server auditing policy). The - * supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * ON BY - * - * Note that in the above format can refer to an object like a - * table, view, or stored procedure, or an entire database or schema. For the - * latter cases, the forms DATABASE:: and SCHEMA:: are - * used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - */ - auditActionsAndGroups?: string[]; - /** - * @member {string} [storageAccountSubscriptionId] Specifies the blob storage - * subscription Id. - */ - storageAccountSubscriptionId?: string; - /** - * @member {boolean} [isStorageSecondaryKeyInUse] Specifies whether - * storageAccountAccessKey value is the storage's secondary key. - */ - isStorageSecondaryKeyInUse?: boolean; -} - -/** - * @interface - * An interface representing DatabaseVulnerabilityAssessmentRuleBaselineItem. - * Properties for an Azure SQL Database Vulnerability Assessment rule - * baseline's result. - * - */ -export interface DatabaseVulnerabilityAssessmentRuleBaselineItem { - /** - * @member {string[]} result The rule baseline result - */ - result: string[]; -} - -/** - * @interface - * An interface representing DatabaseVulnerabilityAssessmentRuleBaselineProperties. - * Properties of a database Vulnerability Assessment rule baseline. - * - */ -export interface DatabaseVulnerabilityAssessmentRuleBaselineProperties { - /** - * @member {DatabaseVulnerabilityAssessmentRuleBaselineItem[]} - * baselineResults The rule baseline result - */ - baselineResults: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; -} - -/** - * @interface - * An interface representing DatabaseVulnerabilityAssessmentRuleBaseline. - * A database vulnerability assessment rule baseline. - * - * @extends ProxyResource - */ -export interface DatabaseVulnerabilityAssessmentRuleBaseline extends ProxyResource { - /** - * @member {DatabaseVulnerabilityAssessmentRuleBaselineItem[]} - * baselineResults The rule baseline result - */ - baselineResults: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; -} - -/** - * @interface - * An interface representing VulnerabilityAssessmentRecurringScansProperties. - * Properties of a Vulnerability Assessment recurring scans. - * - */ -export interface VulnerabilityAssessmentRecurringScansProperties { - /** - * @member {boolean} [isEnabled] Recurring scans state. - */ - isEnabled?: boolean; - /** - * @member {boolean} [emailSubscriptionAdmins] Specifies that the schedule - * scan notification will be is sent to the subscription administrators. - * Default value: true . - */ - emailSubscriptionAdmins?: boolean; - /** - * @member {string[]} [emails] Specifies an array of e-mail addresses to - * which the scan notification is sent. - */ - emails?: string[]; -} - -/** - * @interface - * An interface representing DatabaseVulnerabilityAssessmentProperties. - * Properties of a database Vulnerability Assessment. - * - */ -export interface DatabaseVulnerabilityAssessmentProperties { - /** - * @member {string} storageContainerPath A blob storage container path to - * hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). - */ - storageContainerPath: string; - /** - * @member {string} [storageContainerSasKey] A shared access signature (SAS - * Key) that has write access to the blob container specified in - * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't - * specified, StorageContainerSasKey is required. - */ - storageContainerSasKey?: string; - /** - * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the vulnerability assessment storage account. If 'StorageContainerSasKey' - * isn't specified, storageAccountAccessKey is required. - */ - storageAccountAccessKey?: string; - /** - * @member {VulnerabilityAssessmentRecurringScansProperties} [recurringScans] - * The recurring scans settings - */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -} - -/** - * @interface - * An interface representing DatabaseVulnerabilityAssessment. - * A database vulnerability assessment. - * - * @extends ProxyResource - */ -export interface DatabaseVulnerabilityAssessment extends ProxyResource { - /** - * @member {string} storageContainerPath A blob storage container path to - * hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). - */ - storageContainerPath: string; - /** - * @member {string} [storageContainerSasKey] A shared access signature (SAS - * Key) that has write access to the blob container specified in - * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't - * specified, StorageContainerSasKey is required. - */ - storageContainerSasKey?: string; - /** - * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the vulnerability assessment storage account. If 'StorageContainerSasKey' - * isn't specified, storageAccountAccessKey is required. - */ - storageAccountAccessKey?: string; - /** - * @member {VulnerabilityAssessmentRecurringScansProperties} [recurringScans] - * The recurring scans settings - */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -} - -/** - * @interface - * An interface representing JobAgentProperties. - * Properties of a job agent. - * - */ -export interface JobAgentProperties { - /** - * @member {string} databaseId Resource ID of the database to store job - * metadata in. - */ - databaseId: string; - /** - * @member {JobAgentState} [state] The state of the job agent. Possible - * values include: 'Creating', 'Ready', 'Updating', 'Deleting', 'Disabled' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly state?: JobAgentState; -} - -/** - * @interface - * An interface representing JobAgent. - * An Azure SQL job agent. - * - * @extends TrackedResource - */ -export interface JobAgent extends TrackedResource { - /** - * @member {Sku} [sku] The name and tier of the SKU. - */ - sku?: Sku; - /** - * @member {string} databaseId Resource ID of the database to store job - * metadata in. - */ - databaseId: string; - /** - * @member {JobAgentState} [state] The state of the job agent. Possible - * values include: 'Creating', 'Ready', 'Updating', 'Deleting', 'Disabled' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly state?: JobAgentState; -} - -/** - * @interface - * An interface representing JobAgentUpdate. - * An update to an Azure SQL job agent. - * - */ -export interface JobAgentUpdate { - /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags. - */ - tags?: { [propertyName: string]: string }; -} - -/** - * @interface - * An interface representing JobCredentialProperties. - * Properties of a job credential. - * - */ -export interface JobCredentialProperties { - /** - * @member {string} username The credential user name. - */ - username: string; - /** - * @member {string} password The credential password. - */ - password: string; -} - -/** - * @interface - * An interface representing JobCredential. - * A stored credential that can be used by a job to connect to target - * databases. - * - * @extends ProxyResource - */ -export interface JobCredential extends ProxyResource { - /** - * @member {string} username The credential user name. - */ - username: string; - /** - * @member {string} password The credential password. - */ - password: string; -} - -/** - * @interface - * An interface representing JobExecutionTarget. - * The target that a job execution is executed on. - * - */ -export interface JobExecutionTarget { - /** - * @member {JobTargetType} [type] The type of the target. Possible values - * include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', - * 'SqlServer' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly type?: JobTargetType; - /** - * @member {string} [serverName] The server name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly serverName?: string; - /** - * @member {string} [databaseName] The database name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly databaseName?: string; -} - -/** - * @interface - * An interface representing JobExecutionProperties. - * Properties for an Azure SQL Database Elastic job execution. - * - */ -export interface JobExecutionProperties { - /** - * @member {number} [jobVersion] The job version number. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly jobVersion?: number; - /** - * @member {string} [stepName] The job step name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly stepName?: string; - /** - * @member {number} [stepId] The job step id. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly stepId?: number; - /** - * @member {string} [jobExecutionId] The unique identifier of the job - * execution. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly jobExecutionId?: string; - /** - * @member {JobExecutionLifecycle} [lifecycle] The detailed state of the job - * execution. Possible values include: 'Created', 'InProgress', - * 'WaitingForChildJobExecutions', 'WaitingForRetry', 'Succeeded', - * 'SucceededWithSkipped', 'Failed', 'TimedOut', 'Canceled', 'Skipped' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly lifecycle?: JobExecutionLifecycle; - /** - * @member {ProvisioningState} [provisioningState] The ARM provisioning state - * of the job execution. Possible values include: 'Created', 'InProgress', - * 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly provisioningState?: ProvisioningState; - /** - * @member {Date} [createTime] The time that the job execution was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly createTime?: Date; - /** - * @member {Date} [startTime] The time that the job execution started. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly startTime?: Date; - /** - * @member {Date} [endTime] The time that the job execution completed. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly endTime?: Date; - /** - * @member {number} [currentAttempts] Number of times the job execution has - * been attempted. - */ - currentAttempts?: number; - /** - * @member {Date} [currentAttemptStartTime] Start time of the current - * attempt. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly currentAttemptStartTime?: Date; - /** - * @member {string} [lastMessage] The last status or error message. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly lastMessage?: string; - /** - * @member {JobExecutionTarget} [target] The target that this execution is - * executed on. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly target?: JobExecutionTarget; -} - -/** - * @interface - * An interface representing JobExecution. - * An execution of a job - * - * @extends ProxyResource - */ -export interface JobExecution extends ProxyResource { - /** - * @member {number} [jobVersion] The job version number. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly jobVersion?: number; - /** - * @member {string} [stepName] The job step name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly stepName?: string; - /** - * @member {number} [stepId] The job step id. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly stepId?: number; - /** - * @member {string} [jobExecutionId] The unique identifier of the job - * execution. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly jobExecutionId?: string; - /** - * @member {JobExecutionLifecycle} [lifecycle] The detailed state of the job - * execution. Possible values include: 'Created', 'InProgress', - * 'WaitingForChildJobExecutions', 'WaitingForRetry', 'Succeeded', - * 'SucceededWithSkipped', 'Failed', 'TimedOut', 'Canceled', 'Skipped' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly lifecycle?: JobExecutionLifecycle; - /** - * @member {ProvisioningState} [provisioningState] The ARM provisioning state - * of the job execution. Possible values include: 'Created', 'InProgress', - * 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly provisioningState?: ProvisioningState; - /** - * @member {Date} [createTime] The time that the job execution was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly createTime?: Date; - /** - * @member {Date} [startTime] The time that the job execution started. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly startTime?: Date; - /** - * @member {Date} [endTime] The time that the job execution completed. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly endTime?: Date; - /** - * @member {number} [currentAttempts] Number of times the job execution has - * been attempted. - */ - currentAttempts?: number; - /** - * @member {Date} [currentAttemptStartTime] Start time of the current - * attempt. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly currentAttemptStartTime?: Date; - /** - * @member {string} [lastMessage] The last status or error message. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly lastMessage?: string; - /** - * @member {JobExecutionTarget} [target] The target that this execution is - * executed on. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly target?: JobExecutionTarget; -} - -/** - * @interface - * An interface representing JobSchedule. - * Scheduling properties of a job. - * - */ -export interface JobSchedule { - /** - * @member {Date} [startTime] Schedule start time. Default value: new - * Date('0001-01-01T00:00:00Z') . - */ - startTime?: Date; - /** - * @member {Date} [endTime] Schedule end time. Default value: new - * Date('9999-12-31T11:59:59Z') . - */ - endTime?: Date; - /** - * @member {JobScheduleType} [type] Schedule interval type. Possible values - * include: 'Once', 'Recurring'. Default value: 'Once' . - */ - type?: JobScheduleType; - /** - * @member {boolean} [enabled] Whether or not the schedule is enabled. - */ - enabled?: boolean; - /** - * @member {string} [interval] Value of the schedule's recurring interval, if - * the scheduletype is recurring. ISO8601 duration format. - */ - interval?: string; -} - -/** - * @interface - * An interface representing JobProperties. - * Properties of a job. - * - */ -export interface JobProperties { - /** - * @member {string} [description] User-defined description of the job. - * Default value: '' . - */ - description?: string; - /** - * @member {number} [version] The job version number. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly version?: number; - /** - * @member {JobSchedule} [schedule] Schedule properties of the job. - */ - schedule?: JobSchedule; -} - -/** - * @interface - * An interface representing Job. - * A job. - * - * @extends ProxyResource - */ -export interface Job extends ProxyResource { - /** - * @member {string} [description] User-defined description of the job. - * Default value: '' . - */ - description?: string; - /** - * @member {number} [version] The job version number. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly version?: number; - /** - * @member {JobSchedule} [schedule] Schedule properties of the job. - */ - schedule?: JobSchedule; -} - -/** - * @interface - * An interface representing JobStepAction. - * The action to be executed by a job step. - * - */ -export interface JobStepAction { - /** - * @member {JobStepActionType} [type] Type of action being executed by the - * job step. Possible values include: 'TSql'. Default value: 'TSql' . - */ - type?: JobStepActionType; - /** - * @member {JobStepActionSource} [source] The source of the action to - * execute. Possible values include: 'Inline'. Default value: 'Inline' . - */ - source?: JobStepActionSource; - /** - * @member {string} value The action value, for example the text of the T-SQL - * script to execute. - */ - value: string; -} - -/** - * @interface - * An interface representing JobStepOutput. - * The output configuration of a job step. - * - */ -export interface JobStepOutput { - /** - * @member {JobStepOutputType} [type] The output destination type. Possible - * values include: 'SqlDatabase'. Default value: 'SqlDatabase' . - */ - type?: JobStepOutputType; - /** - * @member {string} [subscriptionId] The output destination subscription id. - */ - subscriptionId?: string; - /** - * @member {string} [resourceGroupName] The output destination resource - * group. - */ - resourceGroupName?: string; - /** - * @member {string} serverName The output destination server name. - */ - serverName: string; - /** - * @member {string} databaseName The output destination database. - */ - databaseName: string; - /** - * @member {string} [schemaName] The output destination schema. Default - * value: 'dbo' . - */ - schemaName?: string; - /** - * @member {string} tableName The output destination table. - */ - tableName: string; - /** - * @member {string} credential The resource ID of the credential to use to - * connect to the output destination. - */ - credential: string; -} - -/** - * @interface - * An interface representing JobStepExecutionOptions. - * The execution options of a job step. - * - */ -export interface JobStepExecutionOptions { - /** - * @member {number} [timeoutSeconds] Execution timeout for the job step. - * Default value: 43200 . - */ - timeoutSeconds?: number; - /** - * @member {number} [retryAttempts] Maximum number of times the job step will - * be reattempted if the first attempt fails. Default value: 10 . - */ - retryAttempts?: number; - /** - * @member {number} [initialRetryIntervalSeconds] Initial delay between - * retries for job step execution. Default value: 1 . - */ - initialRetryIntervalSeconds?: number; - /** - * @member {number} [maximumRetryIntervalSeconds] The maximum amount of time - * to wait between retries for job step execution. Default value: 120 . - */ - maximumRetryIntervalSeconds?: number; - /** - * @member {number} [retryIntervalBackoffMultiplier] The backoff multiplier - * for the time between retries. Default value: 2 . - */ - retryIntervalBackoffMultiplier?: number; -} - -/** - * @interface - * An interface representing JobStepProperties. - * Properties of a job step. - * - */ -export interface JobStepProperties { - /** - * @member {number} [stepId] The job step's index within the job. If not - * specified when creating the job step, it will be created as the last step. - * If not specified when updating the job step, the step id is not modified. - */ - stepId?: number; - /** - * @member {string} targetGroup The resource ID of the target group that the - * job step will be executed on. - */ - targetGroup: string; - /** - * @member {string} credential The resource ID of the job credential that - * will be used to connect to the targets. - */ - credential: string; - /** - * @member {JobStepAction} action The action payload of the job step. - */ - action: JobStepAction; - /** - * @member {JobStepOutput} [output] Output destination properties of the job - * step. - */ - output?: JobStepOutput; - /** - * @member {JobStepExecutionOptions} [executionOptions] Execution options for - * the job step. - */ - executionOptions?: JobStepExecutionOptions; -} - -/** - * @interface - * An interface representing JobStep. - * A job step. - * - * @extends ProxyResource - */ -export interface JobStep extends ProxyResource { - /** - * @member {number} [stepId] The job step's index within the job. If not - * specified when creating the job step, it will be created as the last step. - * If not specified when updating the job step, the step id is not modified. - */ - stepId?: number; - /** - * @member {string} targetGroup The resource ID of the target group that the - * job step will be executed on. - */ - targetGroup: string; - /** - * @member {string} credential The resource ID of the job credential that - * will be used to connect to the targets. - */ - credential: string; - /** - * @member {JobStepAction} action The action payload of the job step. - */ - action: JobStepAction; - /** - * @member {JobStepOutput} [output] Output destination properties of the job - * step. - */ - output?: JobStepOutput; - /** - * @member {JobStepExecutionOptions} [executionOptions] Execution options for - * the job step. - */ - executionOptions?: JobStepExecutionOptions; -} - -/** - * @interface - * An interface representing JobTarget. - * A job target, for example a specific database or a container of databases - * that is evaluated during job execution. - * - */ -export interface JobTarget { - /** - * @member {JobTargetGroupMembershipType} [membershipType] Whether the target - * is included or excluded from the group. Possible values include: - * 'Include', 'Exclude'. Default value: 'Include' . - */ - membershipType?: JobTargetGroupMembershipType; - /** - * @member {JobTargetType} type The target type. Possible values include: - * 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', 'SqlServer' - */ - type: JobTargetType; - /** - * @member {string} [serverName] The target server name. - */ - serverName?: string; - /** - * @member {string} [databaseName] The target database name. - */ - databaseName?: string; - /** - * @member {string} [elasticPoolName] The target elastic pool name. - */ - elasticPoolName?: string; - /** - * @member {string} [shardMapName] The target shard map. - */ - shardMapName?: string; - /** - * @member {string} [refreshCredential] The resource ID of the credential - * that is used during job execution to connect to the target and determine - * the list of databases inside the target. - */ - refreshCredential?: string; -} - -/** - * @interface - * An interface representing JobTargetGroupProperties. - * Properties of job target group. - * - */ -export interface JobTargetGroupProperties { - /** - * @member {JobTarget[]} members Members of the target group. - */ - members: JobTarget[]; -} - -/** - * @interface - * An interface representing JobTargetGroup. - * A group of job targets. - * - * @extends ProxyResource - */ -export interface JobTargetGroup extends ProxyResource { - /** - * @member {JobTarget[]} members Members of the target group. - */ - members: JobTarget[]; -} - -/** - * @interface - * An interface representing JobVersion. - * A job version. - * - * @extends ProxyResource - */ -export interface JobVersion extends ProxyResource { -} - -/** - * @interface - * An interface representing LongTermRetentionBackupProperties. - * Properties of a long term retention backup - * - */ -export interface LongTermRetentionBackupProperties { - /** - * @member {string} [serverName] The server name that the backup database - * belong to. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly serverName?: string; - /** - * @member {Date} [serverCreateTime] The create time of the server. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly serverCreateTime?: Date; - /** - * @member {string} [databaseName] The name of the database the backup belong - * to - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly databaseName?: string; - /** - * @member {Date} [databaseDeletionTime] The delete time of the database - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly databaseDeletionTime?: Date; - /** - * @member {Date} [backupTime] The time the backup was taken - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly backupTime?: Date; - /** - * @member {Date} [backupExpirationTime] The time the long term retention - * backup will expire. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly backupExpirationTime?: Date; -} - -/** - * @interface - * An interface representing LongTermRetentionBackup. - * A long term retention backup. - * - * @extends ProxyResource - */ -export interface LongTermRetentionBackup extends ProxyResource { - /** - * @member {string} [serverName] The server name that the backup database - * belong to. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly serverName?: string; - /** - * @member {Date} [serverCreateTime] The create time of the server. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly serverCreateTime?: Date; - /** - * @member {string} [databaseName] The name of the database the backup belong - * to - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly databaseName?: string; - /** - * @member {Date} [databaseDeletionTime] The delete time of the database - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly databaseDeletionTime?: Date; - /** - * @member {Date} [backupTime] The time the backup was taken - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly backupTime?: Date; - /** - * @member {Date} [backupExpirationTime] The time the long term retention - * backup will expire. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly backupExpirationTime?: Date; -} - -/** - * @interface - * An interface representing LongTermRetentionPolicyProperties. - * Properties of a long term retention policy - * - */ -export interface LongTermRetentionPolicyProperties { - /** - * @member {string} [weeklyRetention] The weekly retention policy for an LTR - * backup in an ISO 8601 format. - */ - weeklyRetention?: string; - /** - * @member {string} [monthlyRetention] The montly retention policy for an LTR - * backup in an ISO 8601 format. - */ - monthlyRetention?: string; - /** - * @member {string} [yearlyRetention] The yearly retention policy for an LTR - * backup in an ISO 8601 format. + * @member {string} databaseId Resource ID of the database to store job + * metadata in. */ - yearlyRetention?: string; + databaseId: string; /** - * @member {number} [weekOfYear] The week of year to take the yearly backup - * in an ISO 8601 format. + * @member {JobAgentState} [state] The state of the job agent. Possible + * values include: 'Creating', 'Ready', 'Updating', 'Deleting', 'Disabled' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - weekOfYear?: number; + readonly state?: JobAgentState; } /** * @interface - * An interface representing BackupLongTermRetentionPolicy. - * A long term retention policy. + * An interface representing JobAgentUpdate. + * An update to an Azure SQL job agent. * - * @extends ProxyResource */ -export interface BackupLongTermRetentionPolicy extends ProxyResource { - /** - * @member {string} [weeklyRetention] The weekly retention policy for an LTR - * backup in an ISO 8601 format. - */ - weeklyRetention?: string; - /** - * @member {string} [monthlyRetention] The montly retention policy for an LTR - * backup in an ISO 8601 format. - */ - monthlyRetention?: string; - /** - * @member {string} [yearlyRetention] The yearly retention policy for an LTR - * backup in an ISO 8601 format. - */ - yearlyRetention?: string; +export interface JobAgentUpdate { /** - * @member {number} [weekOfYear] The week of year to take the yearly backup - * in an ISO 8601 format. + * @member {{ [propertyName: string]: string }} [tags] Resource tags. */ - weekOfYear?: number; + tags?: { [propertyName: string]: string }; } /** * @interface - * An interface representing CompleteDatabaseRestoreDefinition. - * Contains the information necessary to perform a complete database restore - * operation. + * An interface representing JobCredential. + * A stored credential that can be used by a job to connect to target + * databases. * + * @extends ProxyResource */ -export interface CompleteDatabaseRestoreDefinition { +export interface JobCredential extends ProxyResource { /** - * @member {string} lastBackupName The last backup name to apply + * @member {string} username The credential user name. */ - lastBackupName: string; + username: string; + /** + * @member {string} password The credential password. + */ + password: string; } /** * @interface - * An interface representing ManagedDatabaseProperties. - * The managed database's properties. + * An interface representing JobExecutionTarget. + * The target that a job execution is executed on. * */ -export interface ManagedDatabaseProperties { - /** - * @member {string} [collation] Collation of the managed database. - */ - collation?: string; +export interface JobExecutionTarget { /** - * @member {ManagedDatabaseStatus} [status] Status for the database. Possible - * values include: 'Online', 'Offline', 'Shutdown', 'Creating', - * 'Inaccessible' + * @member {JobTargetType} [type] The type of the target. Possible values + * include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', + * 'SqlServer' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly status?: ManagedDatabaseStatus; + readonly type?: JobTargetType; /** - * @member {Date} [creationDate] Creation date of the database. + * @member {string} [serverName] The server name. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly creationDate?: Date; + readonly serverName?: string; /** - * @member {Date} [earliestRestorePoint] Earliest restore point in time for - * point in time restore. + * @member {string} [databaseName] The database name. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly earliestRestorePoint?: Date; - /** - * @member {Date} [restorePointInTime] Conditional. If createMode is - * PointInTimeRestore, this value is required. Specifies the point in time - * (ISO8601 format) of the source database that will be restored to create - * the new database. - */ - restorePointInTime?: Date; + readonly databaseName?: string; +} + +/** + * @interface + * An interface representing JobExecution. + * An execution of a job + * + * @extends ProxyResource + */ +export interface JobExecution extends ProxyResource { /** - * @member {string} [defaultSecondaryLocation] Geo paired region. + * @member {number} [jobVersion] The job version number. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly defaultSecondaryLocation?: string; - /** - * @member {CatalogCollationType} [catalogCollation] Collation of the - * metadata catalog. Possible values include: 'DATABASE_DEFAULT', - * 'SQL_Latin1_General_CP1_CI_AS' - */ - catalogCollation?: CatalogCollationType; - /** - * @member {ManagedDatabaseCreateMode} [createMode] Managed database create - * mode. PointInTimeRestore: Create a database by restoring a point in time - * backup of an existing database. SourceDatabaseName, - * SourceManagedInstanceName and PointInTime must be specified. - * RestoreExternalBackup: Create a database by restoring from external backup - * files. Collation, StorageContainerUri and StorageContainerSasToken must be - * specified. Possible values include: 'Default', 'RestoreExternalBackup', - * 'PointInTimeRestore' - */ - createMode?: ManagedDatabaseCreateMode; + readonly jobVersion?: number; /** - * @member {string} [storageContainerUri] Conditional. If createMode is - * RestoreExternalBackup, this value is required. Specifies the uri of the - * storage container where backups for this restore are stored. + * @member {string} [stepName] The job step name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - storageContainerUri?: string; + readonly stepName?: string; /** - * @member {string} [sourceDatabaseId] The resource identifier of the source - * database associated with create operation of this database. + * @member {number} [stepId] The job step id. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - sourceDatabaseId?: string; + readonly stepId?: number; /** - * @member {string} [storageContainerSasToken] Conditional. If createMode is - * RestoreExternalBackup, this value is required. Specifies the storage - * container sas token. + * @member {string} [jobExecutionId] The unique identifier of the job + * execution. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - storageContainerSasToken?: string; + readonly jobExecutionId?: string; /** - * @member {string} [failoverGroupId] Instance Failover Group resource - * identifier that this managed database belongs to. + * @member {JobExecutionLifecycle} [lifecycle] The detailed state of the job + * execution. Possible values include: 'Created', 'InProgress', + * 'WaitingForChildJobExecutions', 'WaitingForRetry', 'Succeeded', + * 'SucceededWithSkipped', 'Failed', 'TimedOut', 'Canceled', 'Skipped' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly failoverGroupId?: string; -} - -/** - * @interface - * An interface representing ManagedDatabase. - * A managed database resource. - * - * @extends TrackedResource - */ -export interface ManagedDatabase extends TrackedResource { + readonly lifecycle?: JobExecutionLifecycle; /** - * @member {string} [collation] Collation of the managed database. + * @member {ProvisioningState} [provisioningState] The ARM provisioning state + * of the job execution. Possible values include: 'Created', 'InProgress', + * 'Succeeded', 'Failed', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - collation?: string; + readonly provisioningState?: ProvisioningState; /** - * @member {ManagedDatabaseStatus} [status] Status for the database. Possible - * values include: 'Online', 'Offline', 'Shutdown', 'Creating', - * 'Inaccessible' + * @member {Date} [createTime] The time that the job execution was created. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly status?: ManagedDatabaseStatus; + readonly createTime?: Date; /** - * @member {Date} [creationDate] Creation date of the database. + * @member {Date} [startTime] The time that the job execution started. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly creationDate?: Date; + readonly startTime?: Date; /** - * @member {Date} [earliestRestorePoint] Earliest restore point in time for - * point in time restore. + * @member {Date} [endTime] The time that the job execution completed. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly earliestRestorePoint?: Date; + readonly endTime?: Date; /** - * @member {Date} [restorePointInTime] Conditional. If createMode is - * PointInTimeRestore, this value is required. Specifies the point in time - * (ISO8601 format) of the source database that will be restored to create - * the new database. + * @member {number} [currentAttempts] Number of times the job execution has + * been attempted. */ - restorePointInTime?: Date; + currentAttempts?: number; /** - * @member {string} [defaultSecondaryLocation] Geo paired region. + * @member {Date} [currentAttemptStartTime] Start time of the current + * attempt. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly defaultSecondaryLocation?: string; + readonly currentAttemptStartTime?: Date; /** - * @member {CatalogCollationType} [catalogCollation] Collation of the - * metadata catalog. Possible values include: 'DATABASE_DEFAULT', - * 'SQL_Latin1_General_CP1_CI_AS' + * @member {string} [lastMessage] The last status or error message. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - catalogCollation?: CatalogCollationType; + readonly lastMessage?: string; /** - * @member {ManagedDatabaseCreateMode} [createMode] Managed database create - * mode. PointInTimeRestore: Create a database by restoring a point in time - * backup of an existing database. SourceDatabaseName, - * SourceManagedInstanceName and PointInTime must be specified. - * RestoreExternalBackup: Create a database by restoring from external backup - * files. Collation, StorageContainerUri and StorageContainerSasToken must be - * specified. Possible values include: 'Default', 'RestoreExternalBackup', - * 'PointInTimeRestore' + * @member {JobExecutionTarget} [target] The target that this execution is + * executed on. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - createMode?: ManagedDatabaseCreateMode; + readonly target?: JobExecutionTarget; +} + +/** + * @interface + * An interface representing JobSchedule. + * Scheduling properties of a job. + * + */ +export interface JobSchedule { /** - * @member {string} [storageContainerUri] Conditional. If createMode is - * RestoreExternalBackup, this value is required. Specifies the uri of the - * storage container where backups for this restore are stored. + * @member {Date} [startTime] Schedule start time. Default value: new + * Date('0001-01-01T00:00:00Z') . */ - storageContainerUri?: string; + startTime?: Date; /** - * @member {string} [sourceDatabaseId] The resource identifier of the source - * database associated with create operation of this database. + * @member {Date} [endTime] Schedule end time. Default value: new + * Date('9999-12-31T11:59:59Z') . */ - sourceDatabaseId?: string; + endTime?: Date; /** - * @member {string} [storageContainerSasToken] Conditional. If createMode is - * RestoreExternalBackup, this value is required. Specifies the storage - * container sas token. + * @member {JobScheduleType} [type] Schedule interval type. Possible values + * include: 'Once', 'Recurring'. Default value: 'Once' . */ - storageContainerSasToken?: string; + type?: JobScheduleType; /** - * @member {string} [failoverGroupId] Instance Failover Group resource - * identifier that this managed database belongs to. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {boolean} [enabled] Whether or not the schedule is enabled. + */ + enabled?: boolean; + /** + * @member {string} [interval] Value of the schedule's recurring interval, if + * the scheduletype is recurring. ISO8601 duration format. */ - readonly failoverGroupId?: string; + interval?: string; } /** * @interface - * An interface representing ManagedDatabaseUpdate. - * An managed database update. + * An interface representing Job. + * A job. * + * @extends ProxyResource */ -export interface ManagedDatabaseUpdate { +export interface Job extends ProxyResource { /** - * @member {string} [collation] Collation of the managed database. + * @member {string} [description] User-defined description of the job. + * Default value: '' . */ - collation?: string; + description?: string; /** - * @member {ManagedDatabaseStatus} [status] Status for the database. Possible - * values include: 'Online', 'Offline', 'Shutdown', 'Creating', - * 'Inaccessible' + * @member {number} [version] The job version number. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly status?: ManagedDatabaseStatus; + readonly version?: number; /** - * @member {Date} [creationDate] Creation date of the database. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {JobSchedule} [schedule] Schedule properties of the job. */ - readonly creationDate?: Date; + schedule?: JobSchedule; +} + +/** + * @interface + * An interface representing JobStepAction. + * The action to be executed by a job step. + * + */ +export interface JobStepAction { /** - * @member {Date} [earliestRestorePoint] Earliest restore point in time for - * point in time restore. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {JobStepActionType} [type] Type of action being executed by the + * job step. Possible values include: 'TSql'. Default value: 'TSql' . */ - readonly earliestRestorePoint?: Date; + type?: JobStepActionType; /** - * @member {Date} [restorePointInTime] Conditional. If createMode is - * PointInTimeRestore, this value is required. Specifies the point in time - * (ISO8601 format) of the source database that will be restored to create - * the new database. + * @member {JobStepActionSource} [source] The source of the action to + * execute. Possible values include: 'Inline'. Default value: 'Inline' . */ - restorePointInTime?: Date; + source?: JobStepActionSource; /** - * @member {string} [defaultSecondaryLocation] Geo paired region. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} value The action value, for example the text of the T-SQL + * script to execute. */ - readonly defaultSecondaryLocation?: string; + value: string; +} + +/** + * @interface + * An interface representing JobStepOutput. + * The output configuration of a job step. + * + */ +export interface JobStepOutput { /** - * @member {CatalogCollationType} [catalogCollation] Collation of the - * metadata catalog. Possible values include: 'DATABASE_DEFAULT', - * 'SQL_Latin1_General_CP1_CI_AS' + * @member {JobStepOutputType} [type] The output destination type. Possible + * values include: 'SqlDatabase'. Default value: 'SqlDatabase' . */ - catalogCollation?: CatalogCollationType; + type?: JobStepOutputType; /** - * @member {ManagedDatabaseCreateMode} [createMode] Managed database create - * mode. PointInTimeRestore: Create a database by restoring a point in time - * backup of an existing database. SourceDatabaseName, - * SourceManagedInstanceName and PointInTime must be specified. - * RestoreExternalBackup: Create a database by restoring from external backup - * files. Collation, StorageContainerUri and StorageContainerSasToken must be - * specified. Possible values include: 'Default', 'RestoreExternalBackup', - * 'PointInTimeRestore' + * @member {string} [subscriptionId] The output destination subscription id. */ - createMode?: ManagedDatabaseCreateMode; + subscriptionId?: string; /** - * @member {string} [storageContainerUri] Conditional. If createMode is - * RestoreExternalBackup, this value is required. Specifies the uri of the - * storage container where backups for this restore are stored. + * @member {string} [resourceGroupName] The output destination resource + * group. */ - storageContainerUri?: string; + resourceGroupName?: string; /** - * @member {string} [sourceDatabaseId] The resource identifier of the source - * database associated with create operation of this database. + * @member {string} serverName The output destination server name. */ - sourceDatabaseId?: string; + serverName: string; /** - * @member {string} [storageContainerSasToken] Conditional. If createMode is - * RestoreExternalBackup, this value is required. Specifies the storage - * container sas token. + * @member {string} databaseName The output destination database. */ - storageContainerSasToken?: string; + databaseName: string; /** - * @member {string} [failoverGroupId] Instance Failover Group resource - * identifier that this managed database belongs to. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [schemaName] The output destination schema. Default + * value: 'dbo' . */ - readonly failoverGroupId?: string; + schemaName?: string; /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags. + * @member {string} tableName The output destination table. */ - tags?: { [propertyName: string]: string }; + tableName: string; + /** + * @member {string} credential The resource ID of the credential to use to + * connect to the output destination. + */ + credential: string; } /** * @interface - * An interface representing AutomaticTuningServerOptions. - * Automatic tuning properties for individual advisors. + * An interface representing JobStepExecutionOptions. + * The execution options of a job step. * */ -export interface AutomaticTuningServerOptions { +export interface JobStepExecutionOptions { /** - * @member {AutomaticTuningOptionModeDesired} [desiredState] Automatic tuning - * option desired state. Possible values include: 'Off', 'On', 'Default' + * @member {number} [timeoutSeconds] Execution timeout for the job step. + * Default value: 43200 . */ - desiredState?: AutomaticTuningOptionModeDesired; + timeoutSeconds?: number; /** - * @member {AutomaticTuningOptionModeActual} [actualState] Automatic tuning - * option actual state. Possible values include: 'Off', 'On' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {number} [retryAttempts] Maximum number of times the job step will + * be reattempted if the first attempt fails. Default value: 10 . */ - readonly actualState?: AutomaticTuningOptionModeActual; + retryAttempts?: number; /** - * @member {number} [reasonCode] Reason code if desired and actual state are - * different. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {number} [initialRetryIntervalSeconds] Initial delay between + * retries for job step execution. Default value: 1 . */ - readonly reasonCode?: number; + initialRetryIntervalSeconds?: number; /** - * @member {AutomaticTuningServerReason} [reasonDesc] Reason description if - * desired and actual state are different. Possible values include: - * 'Default', 'Disabled', 'AutoConfigured' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {number} [maximumRetryIntervalSeconds] The maximum amount of time + * to wait between retries for job step execution. Default value: 120 . */ - readonly reasonDesc?: AutomaticTuningServerReason; + maximumRetryIntervalSeconds?: number; + /** + * @member {number} [retryIntervalBackoffMultiplier] The backoff multiplier + * for the time between retries. Default value: 2 . + */ + retryIntervalBackoffMultiplier?: number; } /** * @interface - * An interface representing AutomaticTuningServerProperties. - * Server-level Automatic Tuning properties. + * An interface representing JobStep. + * A job step. * + * @extends ProxyResource */ -export interface AutomaticTuningServerProperties { +export interface JobStep extends ProxyResource { /** - * @member {AutomaticTuningServerMode} [desiredState] Automatic tuning - * desired state. Possible values include: 'Custom', 'Auto', 'Unspecified' + * @member {number} [stepId] The job step's index within the job. If not + * specified when creating the job step, it will be created as the last step. + * If not specified when updating the job step, the step id is not modified. */ - desiredState?: AutomaticTuningServerMode; + stepId?: number; /** - * @member {AutomaticTuningServerMode} [actualState] Automatic tuning actual - * state. Possible values include: 'Custom', 'Auto', 'Unspecified' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} targetGroup The resource ID of the target group that the + * job step will be executed on. */ - readonly actualState?: AutomaticTuningServerMode; + targetGroup: string; /** - * @member {{ [propertyName: string]: AutomaticTuningServerOptions }} - * [options] Automatic tuning options definition. + * @member {string} credential The resource ID of the job credential that + * will be used to connect to the targets. */ - options?: { [propertyName: string]: AutomaticTuningServerOptions }; -} - -/** - * @interface - * An interface representing ServerAutomaticTuning. - * Server-level Automatic Tuning. - * - * @extends ProxyResource - */ -export interface ServerAutomaticTuning extends ProxyResource { + credential: string; /** - * @member {AutomaticTuningServerMode} [desiredState] Automatic tuning - * desired state. Possible values include: 'Custom', 'Auto', 'Unspecified' + * @member {JobStepAction} action The action payload of the job step. */ - desiredState?: AutomaticTuningServerMode; + action: JobStepAction; /** - * @member {AutomaticTuningServerMode} [actualState] Automatic tuning actual - * state. Possible values include: 'Custom', 'Auto', 'Unspecified' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {JobStepOutput} [output] Output destination properties of the job + * step. */ - readonly actualState?: AutomaticTuningServerMode; + output?: JobStepOutput; /** - * @member {{ [propertyName: string]: AutomaticTuningServerOptions }} - * [options] Automatic tuning options definition. + * @member {JobStepExecutionOptions} [executionOptions] Execution options for + * the job step. */ - options?: { [propertyName: string]: AutomaticTuningServerOptions }; + executionOptions?: JobStepExecutionOptions; } /** * @interface - * An interface representing ServerDnsAliasProperties. - * Properties of a server DNS alias. + * An interface representing JobTarget. + * A job target, for example a specific database or a container of databases + * that is evaluated during job execution. * */ -export interface ServerDnsAliasProperties { +export interface JobTarget { /** - * @member {string} [azureDnsRecord] The fully qualified DNS record for alias - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {JobTargetGroupMembershipType} [membershipType] Whether the target + * is included or excluded from the group. Possible values include: + * 'Include', 'Exclude'. Default value: 'Include' . */ - readonly azureDnsRecord?: string; + membershipType?: JobTargetGroupMembershipType; + /** + * @member {JobTargetType} type The target type. Possible values include: + * 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', 'SqlServer' + */ + type: JobTargetType; + /** + * @member {string} [serverName] The target server name. + */ + serverName?: string; + /** + * @member {string} [databaseName] The target database name. + */ + databaseName?: string; + /** + * @member {string} [elasticPoolName] The target elastic pool name. + */ + elasticPoolName?: string; + /** + * @member {string} [shardMapName] The target shard map. + */ + shardMapName?: string; + /** + * @member {string} [refreshCredential] The resource ID of the credential + * that is used during job execution to connect to the target and determine + * the list of databases inside the target. + */ + refreshCredential?: string; } /** * @interface - * An interface representing ServerDnsAlias. - * A server DNS alias. + * An interface representing JobTargetGroup. + * A group of job targets. * * @extends ProxyResource */ -export interface ServerDnsAlias extends ProxyResource { +export interface JobTargetGroup extends ProxyResource { /** - * @member {string} [azureDnsRecord] The fully qualified DNS record for alias - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {JobTarget[]} members Members of the target group. */ - readonly azureDnsRecord?: string; + members: JobTarget[]; } /** * @interface - * An interface representing ServerDnsAliasAcquisition. - * A server DNS alias acquisition request. + * An interface representing JobVersion. + * A job version. * + * @extends ProxyResource */ -export interface ServerDnsAliasAcquisition { - /** - * @member {string} [oldServerDnsAliasId] The id of the server alias that - * will be acquired to point to this server instead. - */ - oldServerDnsAliasId?: string; +export interface JobVersion extends ProxyResource { } /** * @interface - * An interface representing SecurityAlertPolicyProperties. - * Properties of a security alert policy. + * An interface representing LongTermRetentionBackup. + * A long term retention backup. * + * @extends ProxyResource */ -export interface SecurityAlertPolicyProperties { - /** - * @member {SecurityAlertPolicyState} state Specifies the state of the - * policy, whether it is enabled or disabled. Possible values include: 'New', - * 'Enabled', 'Disabled' - */ - state: SecurityAlertPolicyState; +export interface LongTermRetentionBackup extends ProxyResource { /** - * @member {string[]} [disabledAlerts] Specifies an array of alerts that are - * disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, - * Access_Anomaly, Data_Exfiltration, Unsafe_Action + * @member {string} [serverName] The server name that the backup database + * belong to. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - disabledAlerts?: string[]; + readonly serverName?: string; /** - * @member {string[]} [emailAddresses] Specifies an array of e-mail addresses - * to which the alert is sent. + * @member {Date} [serverCreateTime] The create time of the server. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - emailAddresses?: string[]; + readonly serverCreateTime?: Date; /** - * @member {boolean} [emailAccountAdmins] Specifies that the alert is sent to - * the account administrators. + * @member {string} [databaseName] The name of the database the backup belong + * to + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - emailAccountAdmins?: boolean; + readonly databaseName?: string; /** - * @member {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. + * @member {Date} [databaseDeletionTime] The delete time of the database + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - storageEndpoint?: string; + readonly databaseDeletionTime?: Date; /** - * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the Threat Detection audit storage account. + * @member {Date} [backupTime] The time the backup was taken + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - storageAccountAccessKey?: string; + readonly backupTime?: Date; /** - * @member {number} [retentionDays] Specifies the number of days to keep in - * the Threat Detection audit logs. + * @member {Date} [backupExpirationTime] The time the long term retention + * backup will expire. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - retentionDays?: number; + readonly backupExpirationTime?: Date; } /** * @interface - * An interface representing ServerSecurityAlertPolicy. - * A server security alert policy. + * An interface representing BackupLongTermRetentionPolicy. + * A long term retention policy. * * @extends ProxyResource */ -export interface ServerSecurityAlertPolicy extends ProxyResource { - /** - * @member {SecurityAlertPolicyState} state Specifies the state of the - * policy, whether it is enabled or disabled. Possible values include: 'New', - * 'Enabled', 'Disabled' - */ - state: SecurityAlertPolicyState; +export interface BackupLongTermRetentionPolicy extends ProxyResource { /** - * @member {string[]} [disabledAlerts] Specifies an array of alerts that are - * disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, - * Access_Anomaly, Data_Exfiltration, Unsafe_Action + * @member {string} [weeklyRetention] The weekly retention policy for an LTR + * backup in an ISO 8601 format. */ - disabledAlerts?: string[]; + weeklyRetention?: string; /** - * @member {string[]} [emailAddresses] Specifies an array of e-mail addresses - * to which the alert is sent. + * @member {string} [monthlyRetention] The monthly retention policy for an + * LTR backup in an ISO 8601 format. */ - emailAddresses?: string[]; + monthlyRetention?: string; /** - * @member {boolean} [emailAccountAdmins] Specifies that the alert is sent to - * the account administrators. + * @member {string} [yearlyRetention] The yearly retention policy for an LTR + * backup in an ISO 8601 format. */ - emailAccountAdmins?: boolean; + yearlyRetention?: string; /** - * @member {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. + * @member {number} [weekOfYear] The week of year to take the yearly backup + * in an ISO 8601 format. */ - storageEndpoint?: string; + weekOfYear?: number; +} + +/** + * @interface + * An interface representing ManagedBackupShortTermRetentionPolicy. + * A short term retention policy. + * + * @extends ProxyResource + */ +export interface ManagedBackupShortTermRetentionPolicy extends ProxyResource { /** - * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the Threat Detection audit storage account. + * @member {number} [retentionDays] The backup retention period in days. This + * is how many days Point-in-Time Restore will be supported. */ - storageAccountAccessKey?: string; + retentionDays?: number; +} + +/** + * @interface + * An interface representing CompleteDatabaseRestoreDefinition. + * Contains the information necessary to perform a complete database restore + * operation. + * + */ +export interface CompleteDatabaseRestoreDefinition { /** - * @member {number} [retentionDays] Specifies the number of days to keep in - * the Threat Detection audit logs. + * @member {string} lastBackupName The last backup name to apply */ - retentionDays?: number; + lastBackupName: string; } /** * @interface - * An interface representing RestorePointProperties. - * Properties of a database restore point + * An interface representing ManagedDatabase. + * A managed database resource. * + * @extends TrackedResource */ -export interface RestorePointProperties { +export interface ManagedDatabase extends TrackedResource { /** - * @member {RestorePointType} [restorePointType] The type of restore point. - * Possible values include: 'CONTINUOUS', 'DISCRETE' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [collation] Collation of the managed database. */ - readonly restorePointType?: RestorePointType; + collation?: string; /** - * @member {Date} [earliestRestoreDate] The earliest time to which this - * database can be restored + * @member {ManagedDatabaseStatus} [status] Status for the database. Possible + * values include: 'Online', 'Offline', 'Shutdown', 'Creating', + * 'Inaccessible' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly earliestRestoreDate?: Date; + readonly status?: ManagedDatabaseStatus; /** - * @member {Date} [restorePointCreationDate] The time the backup was taken + * @member {Date} [creationDate] Creation date of the database. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly restorePointCreationDate?: Date; + readonly creationDate?: Date; /** - * @member {string} [restorePointLabel] The label of restore point for backup - * request by user + * @member {Date} [earliestRestorePoint] Earliest restore point in time for + * point in time restore. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly restorePointLabel?: string; -} - -/** - * @interface - * An interface representing RestorePoint. - * Database restore points. - * - * @extends ProxyResource - */ -export interface RestorePoint extends ProxyResource { + readonly earliestRestorePoint?: Date; /** - * @member {string} [location] Resource location. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {Date} [restorePointInTime] Conditional. If createMode is + * PointInTimeRestore, this value is required. Specifies the point in time + * (ISO8601 format) of the source database that will be restored to create + * the new database. */ - readonly location?: string; + restorePointInTime?: Date; /** - * @member {RestorePointType} [restorePointType] The type of restore point. - * Possible values include: 'CONTINUOUS', 'DISCRETE' + * @member {string} [defaultSecondaryLocation] Geo paired region. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly restorePointType?: RestorePointType; + readonly defaultSecondaryLocation?: string; /** - * @member {Date} [earliestRestoreDate] The earliest time to which this - * database can be restored - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {CatalogCollationType} [catalogCollation] Collation of the + * metadata catalog. Possible values include: 'DATABASE_DEFAULT', + * 'SQL_Latin1_General_CP1_CI_AS' */ - readonly earliestRestoreDate?: Date; + catalogCollation?: CatalogCollationType; /** - * @member {Date} [restorePointCreationDate] The time the backup was taken - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {ManagedDatabaseCreateMode} [createMode] Managed database create + * mode. PointInTimeRestore: Create a database by restoring a point in time + * backup of an existing database. SourceDatabaseName, + * SourceManagedInstanceName and PointInTime must be specified. + * RestoreExternalBackup: Create a database by restoring from external backup + * files. Collation, StorageContainerUri and StorageContainerSasToken must be + * specified. Possible values include: 'Default', 'RestoreExternalBackup', + * 'PointInTimeRestore' */ - readonly restorePointCreationDate?: Date; + createMode?: ManagedDatabaseCreateMode; /** - * @member {string} [restorePointLabel] The label of restore point for backup - * request by user - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [storageContainerUri] Conditional. If createMode is + * RestoreExternalBackup, this value is required. Specifies the uri of the + * storage container where backups for this restore are stored. */ - readonly restorePointLabel?: string; -} - -/** - * @interface - * An interface representing CreateDatabaseRestorePointDefinition. - * Contains the information necessary to perform a create database restore - * point operation. - * - */ -export interface CreateDatabaseRestorePointDefinition { + storageContainerUri?: string; /** - * @member {string} restorePointLabel The restore point label to apply + * @member {string} [sourceDatabaseId] The resource identifier of the source + * database associated with create operation of this database. */ - restorePointLabel: string; + sourceDatabaseId?: string; + /** + * @member {string} [storageContainerSasToken] Conditional. If createMode is + * RestoreExternalBackup, this value is required. Specifies the storage + * container sas token. + */ + storageContainerSasToken?: string; + /** + * @member {string} [failoverGroupId] Instance Failover Group resource + * identifier that this managed database belongs to. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly failoverGroupId?: string; } /** * @interface - * An interface representing DatabaseOperationProperties. - * The properties of a database operation. + * An interface representing ManagedDatabaseUpdate. + * An managed database update. * */ -export interface DatabaseOperationProperties { +export interface ManagedDatabaseUpdate { /** - * @member {string} [databaseName] The name of the database the operation is - * being performed on. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [collation] Collation of the managed database. */ - readonly databaseName?: string; + collation?: string; /** - * @member {string} [operation] The name of operation. + * @member {ManagedDatabaseStatus} [status] Status for the database. Possible + * values include: 'Online', 'Offline', 'Shutdown', 'Creating', + * 'Inaccessible' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly operation?: string; + readonly status?: ManagedDatabaseStatus; /** - * @member {string} [operationFriendlyName] The friendly name of operation. + * @member {Date} [creationDate] Creation date of the database. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly operationFriendlyName?: string; + readonly creationDate?: Date; /** - * @member {number} [percentComplete] The percentage of the operation - * completed. + * @member {Date} [earliestRestorePoint] Earliest restore point in time for + * point in time restore. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly percentComplete?: number; + readonly earliestRestorePoint?: Date; /** - * @member {string} [serverName] The name of the server. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {Date} [restorePointInTime] Conditional. If createMode is + * PointInTimeRestore, this value is required. Specifies the point in time + * (ISO8601 format) of the source database that will be restored to create + * the new database. */ - readonly serverName?: string; + restorePointInTime?: Date; /** - * @member {Date} [startTime] The operation start time. + * @member {string} [defaultSecondaryLocation] Geo paired region. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly startTime?: Date; + readonly defaultSecondaryLocation?: string; /** - * @member {ManagementOperationState} [state] The operation state. Possible - * values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', - * 'CancelInProgress', 'Cancelled' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {CatalogCollationType} [catalogCollation] Collation of the + * metadata catalog. Possible values include: 'DATABASE_DEFAULT', + * 'SQL_Latin1_General_CP1_CI_AS' */ - readonly state?: ManagementOperationState; + catalogCollation?: CatalogCollationType; /** - * @member {number} [errorCode] The operation error code. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {ManagedDatabaseCreateMode} [createMode] Managed database create + * mode. PointInTimeRestore: Create a database by restoring a point in time + * backup of an existing database. SourceDatabaseName, + * SourceManagedInstanceName and PointInTime must be specified. + * RestoreExternalBackup: Create a database by restoring from external backup + * files. Collation, StorageContainerUri and StorageContainerSasToken must be + * specified. Possible values include: 'Default', 'RestoreExternalBackup', + * 'PointInTimeRestore' */ - readonly errorCode?: number; + createMode?: ManagedDatabaseCreateMode; /** - * @member {string} [errorDescription] The operation error description. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [storageContainerUri] Conditional. If createMode is + * RestoreExternalBackup, this value is required. Specifies the uri of the + * storage container where backups for this restore are stored. */ - readonly errorDescription?: string; + storageContainerUri?: string; /** - * @member {number} [errorSeverity] The operation error severity. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [sourceDatabaseId] The resource identifier of the source + * database associated with create operation of this database. */ - readonly errorSeverity?: number; + sourceDatabaseId?: string; /** - * @member {boolean} [isUserError] Whether or not the error is a user error. + * @member {string} [storageContainerSasToken] Conditional. If createMode is + * RestoreExternalBackup, this value is required. Specifies the storage + * container sas token. + */ + storageContainerSasToken?: string; + /** + * @member {string} [failoverGroupId] Instance Failover Group resource + * identifier that this managed database belongs to. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly isUserError?: boolean; + readonly failoverGroupId?: string; /** - * @member {Date} [estimatedCompletionTime] The estimated completion time of - * the operation. + * @member {{ [propertyName: string]: string }} [tags] Resource tags. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing AutomaticTuningServerOptions. + * Automatic tuning properties for individual advisors. + * + */ +export interface AutomaticTuningServerOptions { + /** + * @member {AutomaticTuningOptionModeDesired} [desiredState] Automatic tuning + * option desired state. Possible values include: 'Off', 'On', 'Default' + */ + desiredState?: AutomaticTuningOptionModeDesired; + /** + * @member {AutomaticTuningOptionModeActual} [actualState] Automatic tuning + * option actual state. Possible values include: 'Off', 'On' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly estimatedCompletionTime?: Date; + readonly actualState?: AutomaticTuningOptionModeActual; /** - * @member {string} [description] The operation description. + * @member {number} [reasonCode] Reason code if desired and actual state are + * different. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly description?: string; + readonly reasonCode?: number; /** - * @member {boolean} [isCancellable] Whether the operation can be cancelled. + * @member {AutomaticTuningServerReason} [reasonDesc] Reason description if + * desired and actual state are different. Possible values include: + * 'Default', 'Disabled', 'AutoConfigured' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly isCancellable?: boolean; + readonly reasonDesc?: AutomaticTuningServerReason; } /** * @interface - * An interface representing DatabaseOperation. - * A database operation. + * An interface representing ServerAutomaticTuning. + * Server-level Automatic Tuning. * * @extends ProxyResource */ -export interface DatabaseOperation extends ProxyResource { +export interface ServerAutomaticTuning extends ProxyResource { /** - * @member {string} [databaseName] The name of the database the operation is - * being performed on. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {AutomaticTuningServerMode} [desiredState] Automatic tuning + * desired state. Possible values include: 'Custom', 'Auto', 'Unspecified' */ - readonly databaseName?: string; + desiredState?: AutomaticTuningServerMode; /** - * @member {string} [operation] The name of operation. + * @member {AutomaticTuningServerMode} [actualState] Automatic tuning actual + * state. Possible values include: 'Custom', 'Auto', 'Unspecified' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly operation?: string; + readonly actualState?: AutomaticTuningServerMode; /** - * @member {string} [operationFriendlyName] The friendly name of operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {{ [propertyName: string]: AutomaticTuningServerOptions }} + * [options] Automatic tuning options definition. */ - readonly operationFriendlyName?: string; + options?: { [propertyName: string]: AutomaticTuningServerOptions }; +} + +/** + * @interface + * An interface representing ServerDnsAlias. + * A server DNS alias. + * + * @extends ProxyResource + */ +export interface ServerDnsAlias extends ProxyResource { /** - * @member {number} [percentComplete] The percentage of the operation - * completed. + * @member {string} [azureDnsRecord] The fully qualified DNS record for alias * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly percentComplete?: number; + readonly azureDnsRecord?: string; +} + +/** + * @interface + * An interface representing ServerDnsAliasAcquisition. + * A server DNS alias acquisition request. + * + */ +export interface ServerDnsAliasAcquisition { /** - * @member {string} [serverName] The name of the server. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [oldServerDnsAliasId] The id of the server alias that + * will be acquired to point to this server instead. */ - readonly serverName?: string; + oldServerDnsAliasId?: string; +} + +/** + * @interface + * An interface representing ServerSecurityAlertPolicy. + * A server security alert policy. + * + * @extends ProxyResource + */ +export interface ServerSecurityAlertPolicy extends ProxyResource { /** - * @member {Date} [startTime] The operation start time. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {SecurityAlertPolicyState} state Specifies the state of the + * policy, whether it is enabled or disabled. Possible values include: 'New', + * 'Enabled', 'Disabled' */ - readonly startTime?: Date; + state: SecurityAlertPolicyState; /** - * @member {ManagementOperationState} [state] The operation state. Possible - * values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', - * 'CancelInProgress', 'Cancelled' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string[]} [disabledAlerts] Specifies an array of alerts that are + * disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, + * Access_Anomaly, Data_Exfiltration, Unsafe_Action */ - readonly state?: ManagementOperationState; + disabledAlerts?: string[]; /** - * @member {number} [errorCode] The operation error code. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string[]} [emailAddresses] Specifies an array of e-mail addresses + * to which the alert is sent. */ - readonly errorCode?: number; + emailAddresses?: string[]; /** - * @member {string} [errorDescription] The operation error description. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {boolean} [emailAccountAdmins] Specifies that the alert is sent to + * the account administrators. */ - readonly errorDescription?: string; + emailAccountAdmins?: boolean; /** - * @member {number} [errorSeverity] The operation error severity. + * @member {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. + */ + storageEndpoint?: string; + /** + * @member {string} [storageAccountAccessKey] Specifies the identifier key of + * the Threat Detection audit storage account. + */ + storageAccountAccessKey?: string; + /** + * @member {number} [retentionDays] Specifies the number of days to keep in + * the Threat Detection audit logs. + */ + retentionDays?: number; +} + +/** + * @interface + * An interface representing RestorePoint. + * Database restore points. + * + * @extends ProxyResource + */ +export interface RestorePoint extends ProxyResource { + /** + * @member {string} [location] Resource location. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly errorSeverity?: number; + readonly location?: string; /** - * @member {boolean} [isUserError] Whether or not the error is a user error. + * @member {RestorePointType} [restorePointType] The type of restore point. + * Possible values include: 'CONTINUOUS', 'DISCRETE' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly isUserError?: boolean; + readonly restorePointType?: RestorePointType; /** - * @member {Date} [estimatedCompletionTime] The estimated completion time of - * the operation. + * @member {Date} [earliestRestoreDate] The earliest time to which this + * database can be restored * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly estimatedCompletionTime?: Date; + readonly earliestRestoreDate?: Date; /** - * @member {string} [description] The operation description. + * @member {Date} [restorePointCreationDate] The time the backup was taken * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly description?: string; + readonly restorePointCreationDate?: Date; /** - * @member {boolean} [isCancellable] Whether the operation can be cancelled. + * @member {string} [restorePointLabel] The label of restore point for backup + * request by user * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly isCancellable?: boolean; + readonly restorePointLabel?: string; } /** * @interface - * An interface representing ElasticPoolOperationProperties. - * The properties of a elastic pool operation. + * An interface representing CreateDatabaseRestorePointDefinition. + * Contains the information necessary to perform a create database restore + * point operation. * */ -export interface ElasticPoolOperationProperties { +export interface CreateDatabaseRestorePointDefinition { /** - * @member {string} [elasticPoolName] The name of the elastic pool the - * operation is being performed on. + * @member {string} restorePointLabel The restore point label to apply + */ + restorePointLabel: string; +} + +/** + * @interface + * An interface representing DatabaseOperation. + * A database operation. + * + * @extends ProxyResource + */ +export interface DatabaseOperation extends ProxyResource { + /** + * @member {string} [databaseName] The name of the database the operation is + * being performed on. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly elasticPoolName?: string; + readonly databaseName?: string; /** * @member {string} [operation] The name of operation. * **NOTE: This property will not be serialized. It can only be populated by @@ -7591,11 +4773,13 @@ export interface ElasticPoolOperationProperties { */ readonly startTime?: Date; /** - * @member {string} [state] The operation state. + * @member {ManagementOperationState} [state] The operation state. Possible + * values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', + * 'CancelInProgress', 'Cancelled' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly state?: string; + readonly state?: ManagementOperationState; /** * @member {number} [errorCode] The operation error code. * **NOTE: This property will not be serialized. It can only be populated by @@ -8406,226 +5590,25 @@ export interface LocationCapabilities { */ readonly supportedServerVersions?: ServerVersionCapability[]; /** - * @member {ManagedInstanceVersionCapability[]} - * [supportedManagedInstanceVersions] The list of supported managed instance - * versions. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly supportedManagedInstanceVersions?: ManagedInstanceVersionCapability[]; - /** - * @member {CapabilityStatus} [status] The status of the capability. Possible - * values include: 'Visible', 'Available', 'Default', 'Disabled' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly status?: CapabilityStatus; - /** - * @member {string} [reason] The reason for the capability not being - * available. - */ - reason?: string; -} - -/** - * @interface - * An interface representing DatabaseProperties. - * The database's properties. - * - */ -export interface DatabaseProperties { - /** - * @member {CreateMode} [createMode] Specifies the mode of database creation. - * - * Default: regular database creation. - * - * Copy: creates a database as a copy of an existing database. - * sourceDatabaseId must be specified as the resource ID of the source - * database. - * - * Secondary: creates a database as a secondary replica of an existing - * database. sourceDatabaseId must be specified as the resource ID of the - * existing primary database. - * - * PointInTimeRestore: Creates a database by restoring a point in time backup - * of an existing database. sourceDatabaseId must be specified as the - * resource ID of the existing database, and restorePointInTime must be - * specified. - * - * Recovery: Creates a database by restoring a geo-replicated backup. - * sourceDatabaseId must be specified as the recoverable database resource ID - * to restore. - * - * Restore: Creates a database by restoring a backup of a deleted database. - * sourceDatabaseId must be specified. If sourceDatabaseId is the database's - * original resource ID, then sourceDatabaseDeletionDate must be specified. - * Otherwise sourceDatabaseId must be the restorable dropped database - * resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime - * may also be specified to restore from an earlier point in time. - * - * RestoreLongTermRetentionBackup: Creates a database by restoring from a - * long term retention vault. recoveryServicesRecoveryPointResourceId must be - * specified as the recovery point resource ID. - * - * Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for - * DataWarehouse edition. Possible values include: 'Default', 'Copy', - * 'Secondary', 'PointInTimeRestore', 'Restore', 'Recovery', - * 'RestoreExternalBackup', 'RestoreExternalBackupSecondary', - * 'RestoreLongTermRetentionBackup', 'OnlineSecondary' - */ - createMode?: CreateMode; - /** - * @member {string} [collation] The collation of the database. - */ - collation?: string; - /** - * @member {number} [maxSizeBytes] The max size of the database expressed in - * bytes. - */ - maxSizeBytes?: number; - /** - * @member {SampleName} [sampleName] The name of the sample schema to apply - * when creating this database. Possible values include: 'AdventureWorksLT', - * 'WideWorldImportersStd', 'WideWorldImportersFull' - */ - sampleName?: SampleName; - /** - * @member {string} [elasticPoolId] The resource identifier of the elastic - * pool containing this database. - */ - elasticPoolId?: string; - /** - * @member {string} [sourceDatabaseId] The resource identifier of the source - * database associated with create operation of this database. - */ - sourceDatabaseId?: string; - /** - * @member {DatabaseStatus} [status] The status of the database. Possible - * values include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', - * 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', - * 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', - * 'Pausing', 'Paused', 'Resuming', 'Scaling' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly status?: DatabaseStatus; - /** - * @member {string} [databaseId] The ID of the database. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly databaseId?: string; - /** - * @member {Date} [creationDate] The creation date of the database (ISO8601 - * format). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly creationDate?: Date; - /** - * @member {string} [currentServiceObjectiveName] The current service level - * objective name of the database. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly currentServiceObjectiveName?: string; - /** - * @member {string} [requestedServiceObjectiveName] The requested service - * level objective name of the database. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly requestedServiceObjectiveName?: string; - /** - * @member {string} [defaultSecondaryLocation] The default secondary region - * for this database. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly defaultSecondaryLocation?: string; - /** - * @member {string} [failoverGroupId] Failover Group resource identifier that - * this database belongs to. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly failoverGroupId?: string; - /** - * @member {Date} [restorePointInTime] Specifies the point in time (ISO8601 - * format) of the source database that will be restored to create the new - * database. - */ - restorePointInTime?: Date; - /** - * @member {Date} [sourceDatabaseDeletionDate] Specifies the time that the - * database was deleted. - */ - sourceDatabaseDeletionDate?: Date; - /** - * @member {string} [recoveryServicesRecoveryPointId] The resource identifier - * of the recovery point associated with create operation of this database. - */ - recoveryServicesRecoveryPointId?: string; - /** - * @member {string} [longTermRetentionBackupResourceId] The resource - * identifier of the long term retention backup associated with create - * operation of this database. - */ - longTermRetentionBackupResourceId?: string; - /** - * @member {string} [recoverableDatabaseId] The resource identifier of the - * recoverable database associated with create operation of this database. - */ - recoverableDatabaseId?: string; - /** - * @member {string} [restorableDroppedDatabaseId] The resource identifier of - * the restorable dropped database associated with create operation of this - * database. - */ - restorableDroppedDatabaseId?: string; - /** - * @member {CatalogCollationType} [catalogCollation] Collation of the - * metadata catalog. Possible values include: 'DATABASE_DEFAULT', - * 'SQL_Latin1_General_CP1_CI_AS' - */ - catalogCollation?: CatalogCollationType; - /** - * @member {boolean} [zoneRedundant] Whether or not this database is zone - * redundant, which means the replicas of this database will be spread across - * multiple availability zones. - */ - zoneRedundant?: boolean; - /** - * @member {DatabaseLicenseType} [licenseType] The license type to apply for - * this database. Possible values include: 'LicenseIncluded', 'BasePrice' - */ - licenseType?: DatabaseLicenseType; - /** - * @member {number} [maxLogSizeBytes] The max log size for this database. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly maxLogSizeBytes?: number; - /** - * @member {Date} [earliestRestoreDate] This records the earliest start date - * and time that restore is available for this database (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly earliestRestoreDate?: Date; - /** - * @member {DatabaseReadScale} [readScale] The state of read-only routing. If - * enabled, connections that have application intent set to readonly in their - * connection string may be routed to a readonly secondary replica in the - * same region. Possible values include: 'Enabled', 'Disabled' + * @member {ManagedInstanceVersionCapability[]} + * [supportedManagedInstanceVersions] The list of supported managed instance + * versions. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - readScale?: DatabaseReadScale; + readonly supportedManagedInstanceVersions?: ManagedInstanceVersionCapability[]; /** - * @member {Sku} [currentSku] The name and tier of the SKU. + * @member {CapabilityStatus} [status] The status of the capability. Possible + * values include: 'Visible', 'Available', 'Default', 'Disabled' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly currentSku?: Sku; + readonly status?: CapabilityStatus; + /** + * @member {string} [reason] The reason for the capability not being + * available. + */ + reason?: string; } /** @@ -9088,51 +6071,6 @@ export interface ElasticPoolPerDatabaseSettings { maxCapacity?: number; } -/** - * @interface - * An interface representing ElasticPoolProperties. - * Properties of an elastic pool - * - */ -export interface ElasticPoolProperties { - /** - * @member {ElasticPoolState} [state] The state of the elastic pool. Possible - * values include: 'Creating', 'Ready', 'Disabled' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly state?: ElasticPoolState; - /** - * @member {Date} [creationDate] The creation date of the elastic pool - * (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly creationDate?: Date; - /** - * @member {number} [maxSizeBytes] The storage limit for the database elastic - * pool in bytes. - */ - maxSizeBytes?: number; - /** - * @member {ElasticPoolPerDatabaseSettings} [perDatabaseSettings] The per - * database settings for the elastic pool. - */ - perDatabaseSettings?: ElasticPoolPerDatabaseSettings; - /** - * @member {boolean} [zoneRedundant] Whether or not this elastic pool is zone - * redundant, which means the replicas of this elastic pool will be spread - * across multiple availability zones. - */ - zoneRedundant?: boolean; - /** - * @member {ElasticPoolLicenseType} [licenseType] The license type to apply - * for this elastic pool. Possible values include: 'LicenseIncluded', - * 'BasePrice' - */ - licenseType?: ElasticPoolLicenseType; -} - /** * @interface * An interface representing ElasticPool. @@ -9190,37 +6128,6 @@ export interface ElasticPool extends TrackedResource { licenseType?: ElasticPoolLicenseType; } -/** - * @interface - * An interface representing ElasticPoolUpdateProperties. - * Properties of an elastic pool - * - */ -export interface ElasticPoolUpdateProperties { - /** - * @member {number} [maxSizeBytes] The storage limit for the database elastic - * pool in bytes. - */ - maxSizeBytes?: number; - /** - * @member {ElasticPoolPerDatabaseSettings} [perDatabaseSettings] The per - * database settings for the elastic pool. - */ - perDatabaseSettings?: ElasticPoolPerDatabaseSettings; - /** - * @member {boolean} [zoneRedundant] Whether or not this elastic pool is zone - * redundant, which means the replicas of this elastic pool will be spread - * across multiple availability zones. - */ - zoneRedundant?: boolean; - /** - * @member {ElasticPoolLicenseType} [licenseType] The license type to apply - * for this elastic pool. Possible values include: 'LicenseIncluded', - * 'BasePrice' - */ - licenseType?: ElasticPoolLicenseType; -} - /** * @interface * An interface representing ElasticPoolUpdate. @@ -9281,67 +6188,6 @@ export interface VulnerabilityAssessmentScanError { readonly message?: string; } -/** - * @interface - * An interface representing VulnerabilityAssessmentScanRecordProperties. - * Properties of a vulnerability assessment scan record. - * - */ -export interface VulnerabilityAssessmentScanRecordProperties { - /** - * @member {string} [scanId] The scan ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly scanId?: string; - /** - * @member {VulnerabilityAssessmentScanTriggerType} [triggerType] The scan - * trigger type. Possible values include: 'OnDemand', 'Recurring' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly triggerType?: VulnerabilityAssessmentScanTriggerType; - /** - * @member {VulnerabilityAssessmentScanState} [state] The scan status. - * Possible values include: 'Passed', 'Failed', 'FailedToRun', 'InProgress' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly state?: VulnerabilityAssessmentScanState; - /** - * @member {Date} [startTime] The scan start time (UTC). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly startTime?: Date; - /** - * @member {Date} [endTime] The scan end time (UTC). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly endTime?: Date; - /** - * @member {VulnerabilityAssessmentScanError[]} [errors] The scan errors. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly errors?: VulnerabilityAssessmentScanError[]; - /** - * @member {string} [storageContainerPath] The scan results storage container - * path. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly storageContainerPath?: string; - /** - * @member {number} [numberOfFailedSecurityChecks] The number of failed - * security checks. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly numberOfFailedSecurityChecks?: number; -} - /** * @interface * An interface representing VulnerabilityAssessmentScanRecord. @@ -9404,23 +6250,6 @@ export interface VulnerabilityAssessmentScanRecord extends ProxyResource { readonly numberOfFailedSecurityChecks?: number; } -/** - * @interface - * An interface representing DatabaseVulnerabilityAssessmentScanExportProperties. - * Properties of the export operation's result. - * - */ -export interface DatabaseVulnerabilityAssessmentScanExportProperties { - /** - * @member {string} [exportedReportLocation] Location of the exported report - * (e.g. - * https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly exportedReportLocation?: string; -} - /** * @interface * An interface representing DatabaseVulnerabilityAssessmentScansExport. @@ -9517,50 +6346,6 @@ export interface ManagedInstancePairInfo { partnerManagedInstanceId?: string; } -/** - * @interface - * An interface representing InstanceFailoverGroupProperties. - * Properties of a instance failover group. - * - */ -export interface InstanceFailoverGroupProperties { - /** - * @member {InstanceFailoverGroupReadWriteEndpoint} readWriteEndpoint - * Read-write endpoint of the failover group instance. - */ - readWriteEndpoint: InstanceFailoverGroupReadWriteEndpoint; - /** - * @member {InstanceFailoverGroupReadOnlyEndpoint} [readOnlyEndpoint] - * Read-only endpoint of the failover group instance. - */ - readOnlyEndpoint?: InstanceFailoverGroupReadOnlyEndpoint; - /** - * @member {InstanceFailoverGroupReplicationRole} [replicationRole] Local - * replication role of the failover group instance. Possible values include: - * 'Primary', 'Secondary' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly replicationRole?: InstanceFailoverGroupReplicationRole; - /** - * @member {string} [replicationState] Replication state of the failover - * group instance. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly replicationState?: string; - /** - * @member {PartnerRegionInfo[]} partnerRegions Partner region information - * for the failover group. - */ - partnerRegions: PartnerRegionInfo[]; - /** - * @member {ManagedInstancePairInfo[]} managedInstancePairs List of managed - * instance pairs in the failover group. - */ - managedInstancePairs: ManagedInstancePairInfo[]; -} - /** * @interface * An interface representing InstanceFailoverGroup. @@ -9606,20 +6391,6 @@ export interface InstanceFailoverGroup extends ProxyResource { managedInstancePairs: ManagedInstancePairInfo[]; } -/** - * @interface - * An interface representing BackupShortTermRetentionPolicyProperties. - * Properties of a short term retention policy - * - */ -export interface BackupShortTermRetentionPolicyProperties { - /** - * @member {number} [retentionDays] The backup retention period in days. This - * is how many days Point-in-Time Restore will be supported. - */ - retentionDays?: number; -} - /** * @interface * An interface representing BackupShortTermRetentionPolicy. @@ -9635,23 +6406,6 @@ export interface BackupShortTermRetentionPolicy extends ProxyResource { retentionDays?: number; } -/** - * @interface - * An interface representing TdeCertificateProperties. - * Properties of a TDE certificate. - * - */ -export interface TdeCertificateProperties { - /** - * @member {string} privateBlob The base64 encoded certificate private blob. - */ - privateBlob: string; - /** - * @member {string} [certPassword] The certificate password. - */ - certPassword?: string; -} - /** * @interface * An interface representing TdeCertificate. @@ -9664,42 +6418,10 @@ export interface TdeCertificate extends ProxyResource { * @member {string} privateBlob The base64 encoded certificate private blob. */ privateBlob: string; - /** - * @member {string} [certPassword] The certificate password. - */ - certPassword?: string; -} - -/** - * @interface - * An interface representing ManagedInstanceKeyProperties. - * Properties for a key execution. - * - */ -export interface ManagedInstanceKeyProperties { - /** - * @member {ServerKeyType} serverKeyType The key type like 'ServiceManaged', - * 'AzureKeyVault'. Possible values include: 'ServiceManaged', - * 'AzureKeyVault' - */ - serverKeyType: ServerKeyType; - /** - * @member {string} [uri] The URI of the key. If the ServerKeyType is - * AzureKeyVault, then the URI is required. - */ - uri?: string; - /** - * @member {string} [thumbprint] Thumbprint of the key. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly thumbprint?: string; - /** - * @member {Date} [creationDate] The key creation date. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + /** + * @member {string} [certPassword] The certificate password. */ - readonly creationDate?: Date; + certPassword?: string; } /** @@ -9742,37 +6464,6 @@ export interface ManagedInstanceKey extends ProxyResource { readonly creationDate?: Date; } -/** - * @interface - * An interface representing ManagedInstanceEncryptionProtectorProperties. - * Properties for an encryption protector execution. - * - */ -export interface ManagedInstanceEncryptionProtectorProperties { - /** - * @member {string} [serverKeyName] The name of the managed instance key. - */ - serverKeyName?: string; - /** - * @member {ServerKeyType} serverKeyType The encryption protector type like - * 'ServiceManaged', 'AzureKeyVault'. Possible values include: - * 'ServiceManaged', 'AzureKeyVault' - */ - serverKeyType: ServerKeyType; - /** - * @member {string} [uri] The URI of the server key. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly uri?: string; - /** - * @member {string} [thumbprint] Thumbprint of the server key. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly thumbprint?: string; -} - /** * @interface * An interface representing ManagedInstanceEncryptionProtector. @@ -10632,6 +7323,22 @@ export interface VirtualNetworkRuleListResult extends Array readonly nextLink?: string; } +/** + * @interface + * An interface representing the DatabaseVulnerabilityAssessmentListResult. + * A list of the database's vulnerability assessments. + * + * @extends Array + */ +export interface DatabaseVulnerabilityAssessmentListResult extends Array { + /** + * @member {string} [nextLink] Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + /** * @interface * An interface representing the JobAgentListResult. @@ -10760,6 +7467,22 @@ export interface LongTermRetentionBackupListResult extends Array + */ +export interface ManagedBackupShortTermRetentionPolicyListResult extends Array { + /** + * @member {string} [nextLink] Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + /** * @interface * An interface representing the ManagedDatabaseListResult. @@ -15484,6 +12207,44 @@ export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVul }; }; +/** + * Contains response data for the listByDatabase operation. + */ +export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseVulnerabilityAssessmentListResult; + }; +}; + +/** + * Contains response data for the listByDatabaseNext operation. + */ +export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseVulnerabilityAssessmentListResult; + }; +}; + /** * Contains response data for the listByServer operation. */ @@ -16567,6 +13328,139 @@ export type BackupLongTermRetentionPoliciesBeginCreateOrUpdateResponse = BackupL }; }; +/** + * Contains response data for the get operation. + */ +export type ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ManagedBackupShortTermRetentionPolicy; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ManagedBackupShortTermRetentionPolicy; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ManagedBackupShortTermRetentionPolicy; + }; +}; + +/** + * Contains response data for the listByDatabase operation. + */ +export type ManagedBackupShortTermRetentionPoliciesListByDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ManagedBackupShortTermRetentionPolicyListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type ManagedBackupShortTermRetentionPoliciesBeginCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ManagedBackupShortTermRetentionPolicy; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type ManagedBackupShortTermRetentionPoliciesBeginUpdateResponse = ManagedBackupShortTermRetentionPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ManagedBackupShortTermRetentionPolicy; + }; +}; + +/** + * Contains response data for the listByDatabaseNext operation. + */ +export type ManagedBackupShortTermRetentionPoliciesListByDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ManagedBackupShortTermRetentionPolicyListResult; + }; +}; + /** * Contains response data for the listByInstance operation. */ @@ -17062,9 +13956,9 @@ export type CapabilitiesListByLocationResponse = LocationCapabilities & { }; /** - * Contains response data for the get operation. + * Contains response data for the listByDatabase operation. */ -export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord & { +export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult & { /** * The underlying HTTP response. */ @@ -17076,14 +13970,14 @@ export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAsses /** * The response body as parsed JSON or XML */ - parsedBody: VulnerabilityAssessmentScanRecord; + parsedBody: VulnerabilityAssessmentScanRecordListResult; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult & { +export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord & { /** * The underlying HTTP response. */ @@ -17095,7 +13989,7 @@ export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = Vulnera /** * The response body as parsed JSON or XML */ - parsedBody: VulnerabilityAssessmentScanRecordListResult; + parsedBody: VulnerabilityAssessmentScanRecord; }; }; @@ -17289,6 +14183,44 @@ export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = Data }; }; +/** + * Contains response data for the listByDatabase operation. + */ +export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseVulnerabilityAssessmentListResult; + }; +}; + +/** + * Contains response data for the listByDatabaseNext operation. + */ +export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseVulnerabilityAssessmentListResult; + }; +}; + /** * Contains response data for the get operation. */ diff --git a/packages/@azure/arm-sql/lib/models/instanceFailoverGroupsMappers.ts b/packages/@azure/arm-sql/lib/models/instanceFailoverGroupsMappers.ts index 21872b9f4454..b92425847971 100644 --- a/packages/@azure/arm-sql/lib/models/instanceFailoverGroupsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/instanceFailoverGroupsMappers.ts @@ -87,6 +87,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/jobAgentsMappers.ts b/packages/@azure/arm-sql/lib/models/jobAgentsMappers.ts index fdabb78d4b4e..8a9288852f54 100644 --- a/packages/@azure/arm-sql/lib/models/jobAgentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobAgentsMappers.ts @@ -81,6 +81,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/jobCredentialsMappers.ts b/packages/@azure/arm-sql/lib/models/jobCredentialsMappers.ts index 9e79daee09a1..f4ee313d3d52 100644 --- a/packages/@azure/arm-sql/lib/models/jobCredentialsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobCredentialsMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/jobExecutionsMappers.ts b/packages/@azure/arm-sql/lib/models/jobExecutionsMappers.ts index b37ae1e45107..3d7479081896 100644 --- a/packages/@azure/arm-sql/lib/models/jobExecutionsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobExecutionsMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/jobStepExecutionsMappers.ts b/packages/@azure/arm-sql/lib/models/jobStepExecutionsMappers.ts index b37ae1e45107..3d7479081896 100644 --- a/packages/@azure/arm-sql/lib/models/jobStepExecutionsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobStepExecutionsMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/jobStepsMappers.ts b/packages/@azure/arm-sql/lib/models/jobStepsMappers.ts index fef095ca4076..3d6da6e2ed67 100644 --- a/packages/@azure/arm-sql/lib/models/jobStepsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobStepsMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/jobTargetExecutionsMappers.ts b/packages/@azure/arm-sql/lib/models/jobTargetExecutionsMappers.ts index b37ae1e45107..3d7479081896 100644 --- a/packages/@azure/arm-sql/lib/models/jobTargetExecutionsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobTargetExecutionsMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/jobTargetGroupsMappers.ts b/packages/@azure/arm-sql/lib/models/jobTargetGroupsMappers.ts index 9d112c9c9928..95fa56eeeaf9 100644 --- a/packages/@azure/arm-sql/lib/models/jobTargetGroupsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobTargetGroupsMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/jobVersionsMappers.ts b/packages/@azure/arm-sql/lib/models/jobVersionsMappers.ts index 265896547b44..760e38cac24d 100644 --- a/packages/@azure/arm-sql/lib/models/jobVersionsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobVersionsMappers.ts @@ -82,6 +82,7 @@ export { JobTarget, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/jobsMappers.ts b/packages/@azure/arm-sql/lib/models/jobsMappers.ts index d5b9817bf6a4..4f40e0eb3013 100644 --- a/packages/@azure/arm-sql/lib/models/jobsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobsMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/longTermRetentionBackupsMappers.ts b/packages/@azure/arm-sql/lib/models/longTermRetentionBackupsMappers.ts index 7de5e8e8fe70..729ff8596b35 100644 --- a/packages/@azure/arm-sql/lib/models/longTermRetentionBackupsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/longTermRetentionBackupsMappers.ts @@ -82,6 +82,7 @@ export { JobTarget, JobVersion, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/managedBackupShortTermRetentionPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/managedBackupShortTermRetentionPoliciesMappers.ts new file mode 100644 index 000000000000..ae4059e550d0 --- /dev/null +++ b/packages/@azure/arm-sql/lib/models/managedBackupShortTermRetentionPoliciesMappers.ts @@ -0,0 +1,110 @@ +/* + * 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. + */ + +export { + ManagedBackupShortTermRetentionPolicy, + ProxyResource, + Resource, + BaseResource, + CloudError, + ManagedBackupShortTermRetentionPolicyListResult, + RecoverableDatabase, + RestorableDroppedDatabase, + TrackedResource, + ServerConnectionPolicy, + DatabaseSecurityAlertPolicy, + DataMaskingPolicy, + DataMaskingRule, + FirewallRule, + GeoBackupPolicy, + ImportExportResponse, + RecommendedElasticPool, + RecommendedElasticPoolMetric, + ReplicationLink, + ServerAzureADAdministrator, + ServerCommunicationLink, + ServiceObjective, + ElasticPoolActivity, + ElasticPoolDatabaseActivity, + RecommendedIndex, + OperationImpact, + TransparentDataEncryption, + ServiceTierAdvisor, + SloUsageMetric, + TransparentDataEncryptionActivity, + DatabaseAutomaticTuning, + AutomaticTuningOptions, + EncryptionProtector, + FailoverGroup, + FailoverGroupReadWriteEndpoint, + FailoverGroupReadOnlyEndpoint, + PartnerInfo, + ManagedInstance, + ResourceIdentity, + Sku, + ServerKey, + Server, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SubscriptionUsage, + VirtualNetworkRule, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + ServerBlobAuditingPolicy, + DatabaseBlobAuditingPolicy, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessment, + VulnerabilityAssessmentRecurringScansProperties, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + Job, + JobSchedule, + JobStep, + JobStepAction, + JobStepOutput, + JobStepExecutionOptions, + JobTargetGroup, + JobTarget, + JobVersion, + LongTermRetentionBackup, + BackupLongTermRetentionPolicy, + ManagedDatabase, + ServerAutomaticTuning, + AutomaticTuningServerOptions, + ServerDnsAlias, + ServerSecurityAlertPolicy, + RestorePoint, + DatabaseOperation, + ElasticPoolOperation, + Database, + ElasticPool, + ElasticPoolPerDatabaseSettings, + VulnerabilityAssessmentScanRecord, + VulnerabilityAssessmentScanError, + DatabaseVulnerabilityAssessmentScansExport, + InstanceFailoverGroup, + InstanceFailoverGroupReadWriteEndpoint, + InstanceFailoverGroupReadOnlyEndpoint, + PartnerRegionInfo, + ManagedInstancePairInfo, + BackupShortTermRetentionPolicy, + TdeCertificate, + ManagedInstanceKey, + ManagedInstanceEncryptionProtector +} from "../models/mappers"; + diff --git a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts index 4c01b9b1ced7..e5de49c77ab8 100644 --- a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts @@ -81,6 +81,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts index 4918050ab296..4b88a4be6d2c 100644 --- a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts @@ -85,6 +85,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts index 77fbde5f43b3..c83501ac522f 100644 --- a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts @@ -15,6 +15,7 @@ export { BaseResource, VulnerabilityAssessmentRecurringScansProperties, CloudError, + DatabaseVulnerabilityAssessmentListResult, RecoverableDatabase, RestorableDroppedDatabase, TrackedResource, @@ -81,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/managedDatabasesMappers.ts b/packages/@azure/arm-sql/lib/models/managedDatabasesMappers.ts index e30516255f47..f1056fd301a9 100644 --- a/packages/@azure/arm-sql/lib/models/managedDatabasesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedDatabasesMappers.ts @@ -83,6 +83,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ServerAutomaticTuning, AutomaticTuningServerOptions, ServerDnsAlias, diff --git a/packages/@azure/arm-sql/lib/models/managedInstanceEncryptionProtectorsMappers.ts b/packages/@azure/arm-sql/lib/models/managedInstanceEncryptionProtectorsMappers.ts index fb45e33327ea..11cacaa44d2f 100644 --- a/packages/@azure/arm-sql/lib/models/managedInstanceEncryptionProtectorsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedInstanceEncryptionProtectorsMappers.ts @@ -83,6 +83,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/managedInstanceKeysMappers.ts b/packages/@azure/arm-sql/lib/models/managedInstanceKeysMappers.ts index ce8df033adde..6478ffcebd9e 100644 --- a/packages/@azure/arm-sql/lib/models/managedInstanceKeysMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedInstanceKeysMappers.ts @@ -83,6 +83,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/managedInstanceTdeCertificatesMappers.ts b/packages/@azure/arm-sql/lib/models/managedInstanceTdeCertificatesMappers.ts index 875aa490c155..7e32c20008da 100644 --- a/packages/@azure/arm-sql/lib/models/managedInstanceTdeCertificatesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedInstanceTdeCertificatesMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/managedInstancesMappers.ts b/packages/@azure/arm-sql/lib/models/managedInstancesMappers.ts index deca7f4a5cb0..e71dd290ab2e 100644 --- a/packages/@azure/arm-sql/lib/models/managedInstancesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedInstancesMappers.ts @@ -81,6 +81,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/mappers.ts b/packages/@azure/arm-sql/lib/models/mappers.ts index cf9d48c86268..5b6bbba673f8 100644 --- a/packages/@azure/arm-sql/lib/models/mappers.ts +++ b/packages/@azure/arm-sql/lib/models/mappers.ts @@ -14,44 +14,6 @@ import * as msRest from "ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const RecoverableDatabaseProperties: msRest.CompositeMapper = { - serializedName: "RecoverableDatabaseProperties", - type: { - name: "Composite", - className: "RecoverableDatabaseProperties", - modelProperties: { - edition: { - readOnly: true, - serializedName: "edition", - type: { - name: "String" - } - }, - serviceLevelObjective: { - readOnly: true, - serializedName: "serviceLevelObjective", - type: { - name: "String" - } - }, - elasticPoolName: { - readOnly: true, - serializedName: "elasticPoolName", - type: { - name: "String" - } - }, - lastAvailableBackupDate: { - readOnly: true, - serializedName: "lastAvailableBackupDate", - type: { - name: "DateTime" - } - } - } - } -}; - export const Resource: msRest.CompositeMapper = { serializedName: "Resource", type: { @@ -133,72 +95,6 @@ export const RecoverableDatabase: msRest.CompositeMapper = { } }; -export const RestorableDroppedDatabaseProperties: msRest.CompositeMapper = { - serializedName: "RestorableDroppedDatabaseProperties", - type: { - name: "Composite", - className: "RestorableDroppedDatabaseProperties", - modelProperties: { - databaseName: { - readOnly: true, - serializedName: "databaseName", - type: { - name: "String" - } - }, - edition: { - readOnly: true, - serializedName: "edition", - type: { - name: "String" - } - }, - maxSizeBytes: { - readOnly: true, - serializedName: "maxSizeBytes", - type: { - name: "String" - } - }, - serviceLevelObjective: { - readOnly: true, - serializedName: "serviceLevelObjective", - type: { - name: "String" - } - }, - elasticPoolName: { - readOnly: true, - serializedName: "elasticPoolName", - type: { - name: "String" - } - }, - creationDate: { - readOnly: true, - serializedName: "creationDate", - type: { - name: "DateTime" - } - }, - deletionDate: { - readOnly: true, - serializedName: "deletionDate", - type: { - name: "DateTime" - } - }, - earliestRestoreDate: { - readOnly: true, - serializedName: "earliestRestoreDate", - type: { - name: "DateTime" - } - } - } - } -}; - export const RestorableDroppedDatabase: msRest.CompositeMapper = { serializedName: "RestorableDroppedDatabase", type: { @@ -370,28 +266,6 @@ export const CheckNameAvailabilityResponse: msRest.CompositeMapper = { } }; -export const ServerConnectionPolicyProperties: msRest.CompositeMapper = { - serializedName: "ServerConnectionPolicyProperties", - type: { - name: "Composite", - className: "ServerConnectionPolicyProperties", - modelProperties: { - connectionType: { - required: true, - serializedName: "connectionType", - type: { - name: "Enum", - allowedValues: [ - "Default", - "Proxy", - "Redirect" - ] - } - } - } - } -}; - export const ServerConnectionPolicy: msRest.CompositeMapper = { serializedName: "ServerConnectionPolicy", type: { @@ -429,78 +303,6 @@ export const ServerConnectionPolicy: msRest.CompositeMapper = { } }; -export const DatabaseSecurityAlertPolicyProperties: msRest.CompositeMapper = { - serializedName: "DatabaseSecurityAlertPolicyProperties", - type: { - name: "Composite", - className: "DatabaseSecurityAlertPolicyProperties", - modelProperties: { - state: { - required: true, - serializedName: "state", - type: { - name: "Enum", - allowedValues: [ - "New", - "Enabled", - "Disabled" - ] - } - }, - disabledAlerts: { - serializedName: "disabledAlerts", - type: { - name: "String" - } - }, - emailAddresses: { - serializedName: "emailAddresses", - type: { - name: "String" - } - }, - emailAccountAdmins: { - serializedName: "emailAccountAdmins", - type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] - } - }, - storageEndpoint: { - serializedName: "storageEndpoint", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "storageAccountAccessKey", - type: { - name: "String" - } - }, - retentionDays: { - serializedName: "retentionDays", - type: { - name: "Number" - } - }, - useServerDefault: { - serializedName: "useServerDefault", - type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] - } - } - } - } -}; - export const DatabaseSecurityAlertPolicy: msRest.CompositeMapper = { serializedName: "DatabaseSecurityAlertPolicy", type: { @@ -587,47 +389,6 @@ export const DatabaseSecurityAlertPolicy: msRest.CompositeMapper = { } }; -export const DataMaskingPolicyProperties: msRest.CompositeMapper = { - serializedName: "DataMaskingPolicyProperties", - type: { - name: "Composite", - className: "DataMaskingPolicyProperties", - modelProperties: { - dataMaskingState: { - required: true, - serializedName: "dataMaskingState", - type: { - name: "Enum", - allowedValues: [ - "Disabled", - "Enabled" - ] - } - }, - exemptPrincipals: { - serializedName: "exemptPrincipals", - type: { - name: "String" - } - }, - applicationPrincipals: { - readOnly: true, - serializedName: "applicationPrincipals", - type: { - name: "String" - } - }, - maskingLevel: { - readOnly: true, - serializedName: "maskingLevel", - type: { - name: "String" - } - } - } - } -}; - export const DataMaskingPolicy: msRest.CompositeMapper = { serializedName: "DataMaskingPolicy", type: { @@ -684,27 +445,28 @@ export const DataMaskingPolicy: msRest.CompositeMapper = { } }; -export const DataMaskingRuleProperties: msRest.CompositeMapper = { - serializedName: "DataMaskingRuleProperties", +export const DataMaskingRule: msRest.CompositeMapper = { + serializedName: "DataMaskingRule", type: { name: "Composite", - className: "DataMaskingRuleProperties", + className: "DataMaskingRule", modelProperties: { - id: { + ...ProxyResource.type.modelProperties, + dataMaskingRuleId: { readOnly: true, - serializedName: "id", + serializedName: "properties.id", type: { name: "String" } }, aliasName: { - serializedName: "aliasName", + serializedName: "properties.aliasName", type: { name: "String" } }, ruleState: { - serializedName: "ruleState", + serializedName: "properties.ruleState", type: { name: "Enum", allowedValues: [ @@ -715,28 +477,28 @@ export const DataMaskingRuleProperties: msRest.CompositeMapper = { }, schemaName: { required: true, - serializedName: "schemaName", + serializedName: "properties.schemaName", type: { name: "String" } }, tableName: { required: true, - serializedName: "tableName", + serializedName: "properties.tableName", type: { name: "String" } }, columnName: { required: true, - serializedName: "columnName", + serializedName: "properties.columnName", type: { name: "String" } }, maskingFunction: { required: true, - serializedName: "maskingFunction", + serializedName: "properties.maskingFunction", type: { name: "Enum", allowedValues: [ @@ -750,31 +512,45 @@ export const DataMaskingRuleProperties: msRest.CompositeMapper = { } }, numberFrom: { - serializedName: "numberFrom", + serializedName: "properties.numberFrom", type: { name: "String" } }, numberTo: { - serializedName: "numberTo", + serializedName: "properties.numberTo", type: { name: "String" } }, prefixSize: { - serializedName: "prefixSize", + serializedName: "properties.prefixSize", type: { name: "String" } }, suffixSize: { - serializedName: "suffixSize", + serializedName: "properties.suffixSize", type: { name: "String" } }, replacementString: { - serializedName: "replacementString", + serializedName: "properties.replacementString", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + kind: { + readOnly: true, + serializedName: "kind", type: { name: "String" } @@ -783,154 +559,16 @@ export const DataMaskingRuleProperties: msRest.CompositeMapper = { } }; -export const DataMaskingRule: msRest.CompositeMapper = { - serializedName: "DataMaskingRule", +export const FirewallRule: msRest.CompositeMapper = { + serializedName: "FirewallRule", type: { name: "Composite", - className: "DataMaskingRule", + className: "FirewallRule", modelProperties: { ...ProxyResource.type.modelProperties, - dataMaskingRuleId: { + kind: { readOnly: true, - serializedName: "properties.id", - type: { - name: "String" - } - }, - aliasName: { - serializedName: "properties.aliasName", - type: { - name: "String" - } - }, - ruleState: { - serializedName: "properties.ruleState", - type: { - name: "Enum", - allowedValues: [ - "Disabled", - "Enabled" - ] - } - }, - schemaName: { - required: true, - serializedName: "properties.schemaName", - type: { - name: "String" - } - }, - tableName: { - required: true, - serializedName: "properties.tableName", - type: { - name: "String" - } - }, - columnName: { - required: true, - serializedName: "properties.columnName", - type: { - name: "String" - } - }, - maskingFunction: { - required: true, - serializedName: "properties.maskingFunction", - type: { - name: "Enum", - allowedValues: [ - "Default", - "CCN", - "Email", - "Number", - "SSN", - "Text" - ] - } - }, - numberFrom: { - serializedName: "properties.numberFrom", - type: { - name: "String" - } - }, - numberTo: { - serializedName: "properties.numberTo", - type: { - name: "String" - } - }, - prefixSize: { - serializedName: "properties.prefixSize", - type: { - name: "String" - } - }, - suffixSize: { - serializedName: "properties.suffixSize", - type: { - name: "String" - } - }, - replacementString: { - serializedName: "properties.replacementString", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - kind: { - readOnly: true, - serializedName: "kind", - type: { - name: "String" - } - } - } - } -}; - -export const FirewallRuleProperties: msRest.CompositeMapper = { - serializedName: "FirewallRuleProperties", - type: { - name: "Composite", - className: "FirewallRuleProperties", - modelProperties: { - startIpAddress: { - required: true, - serializedName: "startIpAddress", - type: { - name: "String" - } - }, - endIpAddress: { - required: true, - serializedName: "endIpAddress", - type: { - name: "String" - } - } - } - } -}; - -export const FirewallRule: msRest.CompositeMapper = { - serializedName: "FirewallRule", - type: { - name: "Composite", - className: "FirewallRule", - modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - readOnly: true, - serializedName: "kind", + serializedName: "kind", type: { name: "String" } @@ -960,34 +598,6 @@ export const FirewallRule: msRest.CompositeMapper = { } }; -export const GeoBackupPolicyProperties: msRest.CompositeMapper = { - serializedName: "GeoBackupPolicyProperties", - type: { - name: "Composite", - className: "GeoBackupPolicyProperties", - modelProperties: { - state: { - required: true, - serializedName: "state", - type: { - name: "Enum", - allowedValues: [ - "Disabled", - "Enabled" - ] - } - }, - storageType: { - readOnly: true, - serializedName: "storageType", - type: { - name: "String" - } - } - } - } -}; - export const GeoBackupPolicy: msRest.CompositeMapper = { serializedName: "GeoBackupPolicy", type: { @@ -1031,86 +641,6 @@ export const GeoBackupPolicy: msRest.CompositeMapper = { } }; -export const ExportRequest: msRest.CompositeMapper = { - serializedName: "ExportRequest", - type: { - name: "Composite", - className: "ExportRequest", - modelProperties: { - storageKeyType: { - required: true, - serializedName: "storageKeyType", - type: { - name: "Enum", - allowedValues: [ - "StorageAccessKey", - "SharedAccessKey" - ] - } - }, - storageKey: { - required: true, - serializedName: "storageKey", - type: { - name: "String" - } - }, - storageUri: { - required: true, - serializedName: "storageUri", - type: { - name: "String" - } - }, - administratorLogin: { - required: true, - serializedName: "administratorLogin", - type: { - name: "String" - } - }, - administratorLoginPassword: { - required: true, - serializedName: "administratorLoginPassword", - type: { - name: "String" - } - }, - authenticationType: { - serializedName: "authenticationType", - defaultValue: 'SQL', - type: { - name: "Enum", - allowedValues: [ - "SQL", - "ADPassword" - ] - } - } - } - } -}; - -export const ImportExtensionProperties: msRest.CompositeMapper = { - serializedName: "ImportExtensionProperties", - type: { - name: "Composite", - className: "ImportExtensionProperties", - modelProperties: { - ...ExportRequest.type.modelProperties, - operationMode: { - required: true, - isConstant: true, - serializedName: "operationMode", - defaultValue: 'Import', - type: { - name: "String" - } - } - } - } -}; - export const ImportExtensionRequest: msRest.CompositeMapper = { serializedName: "ImportExtensionRequest", type: { @@ -1192,71 +722,72 @@ export const ImportExtensionRequest: msRest.CompositeMapper = { } }; -export const ImportExportResponseProperties: msRest.CompositeMapper = { - serializedName: "ImportExportResponseProperties", +export const ImportExportResponse: msRest.CompositeMapper = { + serializedName: "ImportExportResponse", type: { name: "Composite", - className: "ImportExportResponseProperties", + className: "ImportExportResponse", modelProperties: { + ...ProxyResource.type.modelProperties, requestType: { readOnly: true, - serializedName: "requestType", + serializedName: "properties.requestType", type: { name: "String" } }, requestId: { readOnly: true, - serializedName: "requestId", + serializedName: "properties.requestId", type: { name: "Uuid" } }, serverName: { readOnly: true, - serializedName: "serverName", + serializedName: "properties.serverName", type: { name: "String" } }, databaseName: { readOnly: true, - serializedName: "databaseName", + serializedName: "properties.databaseName", type: { name: "String" } }, status: { readOnly: true, - serializedName: "status", + serializedName: "properties.status", type: { name: "String" } }, lastModifiedTime: { readOnly: true, - serializedName: "lastModifiedTime", + serializedName: "properties.lastModifiedTime", type: { name: "String" } }, queuedTime: { readOnly: true, - serializedName: "queuedTime", + serializedName: "properties.queuedTime", type: { name: "String" } }, blobUri: { readOnly: true, - serializedName: "blobUri", + serializedName: "properties.blobUri", type: { name: "String" } }, errorMessage: { readOnly: true, - serializedName: "errorMessage", + serializedName: "properties.errorMessage", type: { name: "String" } @@ -1265,74 +796,60 @@ export const ImportExportResponseProperties: msRest.CompositeMapper = { } }; -export const ImportExportResponse: msRest.CompositeMapper = { - serializedName: "ImportExportResponse", +export const ExportRequest: msRest.CompositeMapper = { + serializedName: "ExportRequest", type: { name: "Composite", - className: "ImportExportResponse", + className: "ExportRequest", modelProperties: { - ...ProxyResource.type.modelProperties, - requestType: { - readOnly: true, - serializedName: "properties.requestType", - type: { - name: "String" - } - }, - requestId: { - readOnly: true, - serializedName: "properties.requestId", - type: { - name: "Uuid" - } - }, - serverName: { - readOnly: true, - serializedName: "properties.serverName", - type: { - name: "String" - } - }, - databaseName: { - readOnly: true, - serializedName: "properties.databaseName", + storageKeyType: { + required: true, + serializedName: "storageKeyType", type: { - name: "String" + name: "Enum", + allowedValues: [ + "StorageAccessKey", + "SharedAccessKey" + ] } }, - status: { - readOnly: true, - serializedName: "properties.status", + storageKey: { + required: true, + serializedName: "storageKey", type: { name: "String" } }, - lastModifiedTime: { - readOnly: true, - serializedName: "properties.lastModifiedTime", + storageUri: { + required: true, + serializedName: "storageUri", type: { name: "String" } }, - queuedTime: { - readOnly: true, - serializedName: "properties.queuedTime", + administratorLogin: { + required: true, + serializedName: "administratorLogin", type: { name: "String" } }, - blobUri: { - readOnly: true, - serializedName: "properties.blobUri", + administratorLoginPassword: { + required: true, + serializedName: "administratorLoginPassword", type: { name: "String" } }, - errorMessage: { - readOnly: true, - serializedName: "properties.errorMessage", + authenticationType: { + serializedName: "authenticationType", + defaultValue: 'SQL', type: { - name: "String" + name: "Enum", + allowedValues: [ + "SQL", + "ADPassword" + ] } } } @@ -1617,101 +1134,6 @@ export const RecommendedElasticPoolMetric: msRest.CompositeMapper = { } }; -export const RecommendedElasticPoolProperties: msRest.CompositeMapper = { - serializedName: "RecommendedElasticPoolProperties", - type: { - name: "Composite", - className: "RecommendedElasticPoolProperties", - modelProperties: { - databaseEdition: { - readOnly: true, - serializedName: "databaseEdition", - type: { - name: "String" - } - }, - dtu: { - serializedName: "dtu", - type: { - name: "Number" - } - }, - databaseDtuMin: { - serializedName: "databaseDtuMin", - type: { - name: "Number" - } - }, - databaseDtuMax: { - serializedName: "databaseDtuMax", - type: { - name: "Number" - } - }, - storageMB: { - serializedName: "storageMB", - type: { - name: "Number" - } - }, - observationPeriodStart: { - readOnly: true, - serializedName: "observationPeriodStart", - type: { - name: "DateTime" - } - }, - observationPeriodEnd: { - readOnly: true, - serializedName: "observationPeriodEnd", - type: { - name: "DateTime" - } - }, - maxObservedDtu: { - readOnly: true, - serializedName: "maxObservedDtu", - type: { - name: "Number" - } - }, - maxObservedStorageMB: { - readOnly: true, - serializedName: "maxObservedStorageMB", - type: { - name: "Number" - } - }, - databases: { - readOnly: true, - serializedName: "databases", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TrackedResource" - } - } - } - }, - metrics: { - readOnly: true, - serializedName: "metrics", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedElasticPoolMetric" - } - } - } - } - } - } -}; - export const RecommendedElasticPool: msRest.CompositeMapper = { serializedName: "RecommendedElasticPool", type: { @@ -1808,100 +1230,6 @@ export const RecommendedElasticPool: msRest.CompositeMapper = { } }; -export const ReplicationLinkProperties: msRest.CompositeMapper = { - serializedName: "ReplicationLinkProperties", - type: { - name: "Composite", - className: "ReplicationLinkProperties", - modelProperties: { - isTerminationAllowed: { - readOnly: true, - serializedName: "isTerminationAllowed", - type: { - name: "Boolean" - } - }, - replicationMode: { - readOnly: true, - serializedName: "replicationMode", - type: { - name: "String" - } - }, - partnerServer: { - readOnly: true, - serializedName: "partnerServer", - type: { - name: "String" - } - }, - partnerDatabase: { - readOnly: true, - serializedName: "partnerDatabase", - type: { - name: "String" - } - }, - partnerLocation: { - readOnly: true, - serializedName: "partnerLocation", - type: { - name: "String" - } - }, - role: { - readOnly: true, - serializedName: "role", - type: { - name: "Enum", - allowedValues: [ - "Primary", - "Secondary", - "NonReadableSecondary", - "Source", - "Copy" - ] - } - }, - partnerRole: { - readOnly: true, - serializedName: "partnerRole", - type: { - name: "Enum", - allowedValues: [ - "Primary", - "Secondary", - "NonReadableSecondary", - "Source", - "Copy" - ] - } - }, - startTime: { - readOnly: true, - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - percentComplete: { - readOnly: true, - serializedName: "percentComplete", - type: { - name: "Number" - } - }, - replicationState: { - readOnly: true, - serializedName: "replicationState", - type: { - name: "String" - } - } - } - } -}; - export const ReplicationLink: msRest.CompositeMapper = { serializedName: "ReplicationLink", type: { @@ -2004,16 +1332,17 @@ export const ReplicationLink: msRest.CompositeMapper = { } }; -export const ServerAdministratorProperties: msRest.CompositeMapper = { - serializedName: "ServerAdministratorProperties", +export const ServerAzureADAdministrator: msRest.CompositeMapper = { + serializedName: "ServerAzureADAdministrator", type: { name: "Composite", - className: "ServerAdministratorProperties", + className: "ServerAzureADAdministrator", modelProperties: { + ...ProxyResource.type.modelProperties, administratorType: { required: true, isConstant: true, - serializedName: "administratorType", + serializedName: "properties.administratorType", defaultValue: 'ActiveDirectory', type: { name: "String" @@ -2021,21 +1350,21 @@ export const ServerAdministratorProperties: msRest.CompositeMapper = { }, login: { required: true, - serializedName: "login", + serializedName: "properties.login", type: { name: "String" } }, sid: { required: true, - serializedName: "sid", + serializedName: "properties.sid", type: { name: "Uuid" } }, tenantId: { required: true, - serializedName: "tenantId", + serializedName: "properties.tenantId", type: { name: "Uuid" } @@ -2044,88 +1373,23 @@ export const ServerAdministratorProperties: msRest.CompositeMapper = { } }; -export const ServerAzureADAdministrator: msRest.CompositeMapper = { - serializedName: "ServerAzureADAdministrator", +export const ServerCommunicationLink: msRest.CompositeMapper = { + serializedName: "ServerCommunicationLink", type: { name: "Composite", - className: "ServerAzureADAdministrator", + className: "ServerCommunicationLink", modelProperties: { ...ProxyResource.type.modelProperties, - administratorType: { - required: true, - isConstant: true, - serializedName: "properties.administratorType", - defaultValue: 'ActiveDirectory', + state: { + readOnly: true, + serializedName: "properties.state", type: { name: "String" } }, - login: { + partnerServer: { required: true, - serializedName: "properties.login", - type: { - name: "String" - } - }, - sid: { - required: true, - serializedName: "properties.sid", - type: { - name: "Uuid" - } - }, - tenantId: { - required: true, - serializedName: "properties.tenantId", - type: { - name: "Uuid" - } - } - } - } -}; - -export const ServerCommunicationLinkProperties: msRest.CompositeMapper = { - serializedName: "ServerCommunicationLinkProperties", - type: { - name: "Composite", - className: "ServerCommunicationLinkProperties", - modelProperties: { - state: { - readOnly: true, - serializedName: "state", - type: { - name: "String" - } - }, - partnerServer: { - required: true, - serializedName: "partnerServer", - type: { - name: "String" - } - } - } - } -}; - -export const ServerCommunicationLink: msRest.CompositeMapper = { - serializedName: "ServerCommunicationLink", - type: { - name: "Composite", - className: "ServerCommunicationLink", - modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "String" - } - }, - partnerServer: { - required: true, - serializedName: "properties.partnerServer", + serializedName: "properties.partnerServer", type: { name: "String" } @@ -2148,54 +1412,6 @@ export const ServerCommunicationLink: msRest.CompositeMapper = { } }; -export const ServiceObjectiveProperties: msRest.CompositeMapper = { - serializedName: "ServiceObjectiveProperties", - type: { - name: "Composite", - className: "ServiceObjectiveProperties", - modelProperties: { - serviceObjectiveName: { - readOnly: true, - serializedName: "serviceObjectiveName", - type: { - name: "String" - } - }, - isDefault: { - nullable: false, - readOnly: true, - serializedName: "isDefault", - type: { - name: "Boolean" - } - }, - isSystem: { - nullable: false, - readOnly: true, - serializedName: "isSystem", - type: { - name: "Boolean" - } - }, - description: { - readOnly: true, - serializedName: "description", - type: { - name: "String" - } - }, - enabled: { - nullable: false, - readOnly: true, - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - export const ServiceObjective: msRest.CompositeMapper = { serializedName: "ServiceObjective", type: { @@ -2245,43 +1461,50 @@ export const ServiceObjective: msRest.CompositeMapper = { } }; -export const ElasticPoolActivityProperties: msRest.CompositeMapper = { - serializedName: "ElasticPoolActivityProperties", +export const ElasticPoolActivity: msRest.CompositeMapper = { + serializedName: "ElasticPoolActivity", type: { name: "Composite", - className: "ElasticPoolActivityProperties", + className: "ElasticPoolActivity", modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + type: { + name: "String" + } + }, endTime: { readOnly: true, - serializedName: "endTime", + serializedName: "properties.endTime", type: { name: "DateTime" } }, errorCode: { readOnly: true, - serializedName: "errorCode", + serializedName: "properties.errorCode", type: { name: "Number" } }, errorMessage: { readOnly: true, - serializedName: "errorMessage", + serializedName: "properties.errorMessage", type: { name: "String" } }, errorSeverity: { readOnly: true, - serializedName: "errorSeverity", + serializedName: "properties.errorSeverity", type: { name: "Number" } }, operation: { readOnly: true, - serializedName: "operation", + serializedName: "properties.operation", type: { name: "String" } @@ -2289,105 +1512,105 @@ export const ElasticPoolActivityProperties: msRest.CompositeMapper = { operationId: { nullable: false, readOnly: true, - serializedName: "operationId", + serializedName: "properties.operationId", type: { name: "Uuid" } }, percentComplete: { readOnly: true, - serializedName: "percentComplete", + serializedName: "properties.percentComplete", type: { name: "Number" } }, requestedDatabaseDtuMax: { readOnly: true, - serializedName: "requestedDatabaseDtuMax", + serializedName: "properties.requestedDatabaseDtuMax", type: { name: "Number" } }, requestedDatabaseDtuMin: { readOnly: true, - serializedName: "requestedDatabaseDtuMin", + serializedName: "properties.requestedDatabaseDtuMin", type: { name: "Number" } }, requestedDtu: { readOnly: true, - serializedName: "requestedDtu", + serializedName: "properties.requestedDtu", type: { name: "Number" } }, requestedElasticPoolName: { readOnly: true, - serializedName: "requestedElasticPoolName", + serializedName: "properties.requestedElasticPoolName", type: { name: "String" } }, requestedStorageLimitInGB: { readOnly: true, - serializedName: "requestedStorageLimitInGB", + serializedName: "properties.requestedStorageLimitInGB", type: { name: "Number" } }, elasticPoolName: { readOnly: true, - serializedName: "elasticPoolName", + serializedName: "properties.elasticPoolName", type: { name: "String" } }, serverName: { readOnly: true, - serializedName: "serverName", + serializedName: "properties.serverName", type: { name: "String" } }, startTime: { readOnly: true, - serializedName: "startTime", + serializedName: "properties.startTime", type: { name: "DateTime" } }, state: { readOnly: true, - serializedName: "state", + serializedName: "properties.state", type: { name: "String" } }, requestedStorageLimitInMB: { readOnly: true, - serializedName: "requestedStorageLimitInMB", + serializedName: "properties.requestedStorageLimitInMB", type: { name: "Number" } }, requestedDatabaseDtuGuarantee: { readOnly: true, - serializedName: "requestedDatabaseDtuGuarantee", + serializedName: "properties.requestedDatabaseDtuGuarantee", type: { name: "Number" } }, requestedDatabaseDtuCap: { readOnly: true, - serializedName: "requestedDatabaseDtuCap", + serializedName: "properties.requestedDatabaseDtuCap", type: { name: "Number" } }, requestedDtuGuarantee: { readOnly: true, - serializedName: "requestedDtuGuarantee", + serializedName: "properties.requestedDtuGuarantee", type: { name: "Number" } @@ -2396,11 +1619,11 @@ export const ElasticPoolActivityProperties: msRest.CompositeMapper = { } }; -export const ElasticPoolActivity: msRest.CompositeMapper = { - serializedName: "ElasticPoolActivity", +export const ElasticPoolDatabaseActivity: msRest.CompositeMapper = { + serializedName: "ElasticPoolDatabaseActivity", type: { name: "Composite", - className: "ElasticPoolActivity", + className: "ElasticPoolDatabaseActivity", modelProperties: { ...ProxyResource.type.modelProperties, location: { @@ -2409,6 +1632,13 @@ export const ElasticPoolActivity: msRest.CompositeMapper = { name: "String" } }, + databaseName: { + readOnly: true, + serializedName: "properties.databaseName", + type: { + name: "String" + } + }, endTime: { readOnly: true, serializedName: "properties.endTime", @@ -2459,44 +1689,30 @@ export const ElasticPoolActivity: msRest.CompositeMapper = { name: "Number" } }, - requestedDatabaseDtuMax: { - readOnly: true, - serializedName: "properties.requestedDatabaseDtuMax", - type: { - name: "Number" - } - }, - requestedDatabaseDtuMin: { - readOnly: true, - serializedName: "properties.requestedDatabaseDtuMin", - type: { - name: "Number" - } - }, - requestedDtu: { + requestedElasticPoolName: { readOnly: true, - serializedName: "properties.requestedDtu", + serializedName: "properties.requestedElasticPoolName", type: { - name: "Number" + name: "String" } }, - requestedElasticPoolName: { + currentElasticPoolName: { readOnly: true, - serializedName: "properties.requestedElasticPoolName", + serializedName: "properties.currentElasticPoolName", type: { name: "String" } }, - requestedStorageLimitInGB: { + currentServiceObjective: { readOnly: true, - serializedName: "properties.requestedStorageLimitInGB", + serializedName: "properties.currentServiceObjective", type: { - name: "Number" + name: "String" } }, - elasticPoolName: { + requestedServiceObjective: { readOnly: true, - serializedName: "properties.elasticPoolName", + serializedName: "properties.requestedServiceObjective", type: { name: "String" } @@ -2521,31 +1737,41 @@ export const ElasticPoolActivity: msRest.CompositeMapper = { type: { name: "String" } - }, - requestedStorageLimitInMB: { + } + } + } +}; + +export const OperationImpact: msRest.CompositeMapper = { + serializedName: "OperationImpact", + type: { + name: "Composite", + className: "OperationImpact", + modelProperties: { + name: { readOnly: true, - serializedName: "properties.requestedStorageLimitInMB", + serializedName: "name", type: { - name: "Number" + name: "String" } }, - requestedDatabaseDtuGuarantee: { + unit: { readOnly: true, - serializedName: "properties.requestedDatabaseDtuGuarantee", + serializedName: "unit", type: { - name: "Number" + name: "String" } }, - requestedDatabaseDtuCap: { + changeValueAbsolute: { readOnly: true, - serializedName: "properties.requestedDatabaseDtuCap", + serializedName: "changeValueAbsolute", type: { name: "Number" } }, - requestedDtuGuarantee: { + changeValueRelative: { readOnly: true, - serializedName: "properties.requestedDtuGuarantee", + serializedName: "changeValueRelative", type: { name: "Number" } @@ -2554,275 +1780,351 @@ export const ElasticPoolActivity: msRest.CompositeMapper = { } }; -export const ElasticPoolDatabaseActivityProperties: msRest.CompositeMapper = { - serializedName: "ElasticPoolDatabaseActivityProperties", +export const RecommendedIndex: msRest.CompositeMapper = { + serializedName: "RecommendedIndex", type: { name: "Composite", - className: "ElasticPoolDatabaseActivityProperties", + className: "RecommendedIndex", modelProperties: { - databaseName: { + ...ProxyResource.type.modelProperties, + action: { readOnly: true, - serializedName: "databaseName", + serializedName: "properties.action", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Create", + "Drop", + "Rebuild" + ] } }, - endTime: { + state: { readOnly: true, - serializedName: "endTime", + serializedName: "properties.state", type: { - name: "DateTime" + name: "Enum", + allowedValues: [ + "Active", + "Pending", + "Executing", + "Verifying", + "Pending Revert", + "Reverting", + "Reverted", + "Ignored", + "Expired", + "Blocked", + "Success" + ] } }, - errorCode: { + created: { readOnly: true, - serializedName: "errorCode", + serializedName: "properties.created", type: { - name: "Number" + name: "DateTime" } }, - errorMessage: { + lastModified: { readOnly: true, - serializedName: "errorMessage", + serializedName: "properties.lastModified", type: { - name: "String" + name: "DateTime" } }, - errorSeverity: { + indexType: { readOnly: true, - serializedName: "errorSeverity", + serializedName: "properties.indexType", type: { - name: "Number" + name: "Enum", + allowedValues: [ + "CLUSTERED", + "NONCLUSTERED", + "COLUMNSTORE", + "CLUSTERED COLUMNSTORE" + ] } }, - operation: { + schema: { readOnly: true, - serializedName: "operation", + serializedName: "properties.schema", type: { name: "String" } }, - operationId: { - nullable: false, + table: { readOnly: true, - serializedName: "operationId", + serializedName: "properties.table", type: { - name: "Uuid" + name: "String" } }, - percentComplete: { + columns: { readOnly: true, - serializedName: "percentComplete", + serializedName: "properties.columns", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - requestedElasticPoolName: { + includedColumns: { readOnly: true, - serializedName: "requestedElasticPoolName", + serializedName: "properties.includedColumns", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - currentElasticPoolName: { + indexScript: { readOnly: true, - serializedName: "currentElasticPoolName", + serializedName: "properties.indexScript", type: { name: "String" } }, - currentServiceObjective: { + estimatedImpact: { readOnly: true, - serializedName: "currentServiceObjective", + serializedName: "properties.estimatedImpact", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationImpact" + } + } } }, - requestedServiceObjective: { + reportedImpact: { + readOnly: true, + serializedName: "properties.reportedImpact", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationImpact" + } + } + } + } + } + } +}; + +export const TransparentDataEncryption: msRest.CompositeMapper = { + serializedName: "TransparentDataEncryption", + type: { + name: "Composite", + className: "TransparentDataEncryption", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { readOnly: true, - serializedName: "requestedServiceObjective", + serializedName: "location", type: { name: "String" } }, - serverName: { + status: { + serializedName: "properties.status", + type: { + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled" + ] + } + } + } + } +}; + +export const SloUsageMetric: msRest.CompositeMapper = { + serializedName: "SloUsageMetric", + type: { + name: "Composite", + className: "SloUsageMetric", + modelProperties: { + serviceLevelObjective: { readOnly: true, - serializedName: "serverName", + serializedName: "serviceLevelObjective", type: { name: "String" } }, - startTime: { + serviceLevelObjectiveId: { + nullable: false, readOnly: true, - serializedName: "startTime", + serializedName: "serviceLevelObjectiveId", type: { - name: "DateTime" + name: "Uuid" } }, - state: { + inRangeTimeRatio: { + nullable: false, readOnly: true, - serializedName: "state", + serializedName: "inRangeTimeRatio", type: { - name: "String" + name: "Number" } } } } }; -export const ElasticPoolDatabaseActivity: msRest.CompositeMapper = { - serializedName: "ElasticPoolDatabaseActivity", +export const ServiceTierAdvisor: msRest.CompositeMapper = { + serializedName: "ServiceTierAdvisor", type: { name: "Composite", - className: "ElasticPoolDatabaseActivity", + className: "ServiceTierAdvisor", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - databaseName: { + observationPeriodStart: { readOnly: true, - serializedName: "properties.databaseName", + serializedName: "properties.observationPeriodStart", type: { - name: "String" + name: "DateTime" } }, - endTime: { + observationPeriodEnd: { readOnly: true, - serializedName: "properties.endTime", + serializedName: "properties.observationPeriodEnd", type: { name: "DateTime" } }, - errorCode: { + activeTimeRatio: { readOnly: true, - serializedName: "properties.errorCode", + serializedName: "properties.activeTimeRatio", type: { name: "Number" } }, - errorMessage: { + minDtu: { readOnly: true, - serializedName: "properties.errorMessage", + serializedName: "properties.minDtu", type: { - name: "String" + name: "Number" } }, - errorSeverity: { + avgDtu: { readOnly: true, - serializedName: "properties.errorSeverity", + serializedName: "properties.avgDtu", type: { name: "Number" } }, - operation: { + maxDtu: { readOnly: true, - serializedName: "properties.operation", + serializedName: "properties.maxDtu", type: { - name: "String" + name: "Number" } }, - operationId: { - nullable: false, + maxSizeInGB: { readOnly: true, - serializedName: "properties.operationId", + serializedName: "properties.maxSizeInGB", type: { - name: "Uuid" + name: "Number" } }, - percentComplete: { + serviceLevelObjectiveUsageMetrics: { readOnly: true, - serializedName: "properties.percentComplete", + serializedName: "properties.serviceLevelObjectiveUsageMetrics", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SloUsageMetric" + } + } } }, - requestedElasticPoolName: { + currentServiceLevelObjective: { readOnly: true, - serializedName: "properties.requestedElasticPoolName", + serializedName: "properties.currentServiceLevelObjective", type: { name: "String" } }, - currentElasticPoolName: { + currentServiceLevelObjectiveId: { readOnly: true, - serializedName: "properties.currentElasticPoolName", + serializedName: "properties.currentServiceLevelObjectiveId", type: { - name: "String" + name: "Uuid" } }, - currentServiceObjective: { + usageBasedRecommendationServiceLevelObjective: { readOnly: true, - serializedName: "properties.currentServiceObjective", + serializedName: "properties.usageBasedRecommendationServiceLevelObjective", type: { name: "String" } }, - requestedServiceObjective: { + usageBasedRecommendationServiceLevelObjectiveId: { readOnly: true, - serializedName: "properties.requestedServiceObjective", + serializedName: "properties.usageBasedRecommendationServiceLevelObjectiveId", type: { - name: "String" + name: "Uuid" } }, - serverName: { + databaseSizeBasedRecommendationServiceLevelObjective: { readOnly: true, - serializedName: "properties.serverName", + serializedName: "properties.databaseSizeBasedRecommendationServiceLevelObjective", type: { name: "String" } }, - startTime: { + databaseSizeBasedRecommendationServiceLevelObjectiveId: { readOnly: true, - serializedName: "properties.startTime", + serializedName: "properties.databaseSizeBasedRecommendationServiceLevelObjectiveId", type: { - name: "DateTime" + name: "Uuid" } }, - state: { + disasterPlanBasedRecommendationServiceLevelObjective: { readOnly: true, - serializedName: "properties.state", + serializedName: "properties.disasterPlanBasedRecommendationServiceLevelObjective", type: { name: "String" } - } - } - } -}; - -export const OperationImpact: msRest.CompositeMapper = { - serializedName: "OperationImpact", - type: { - name: "Composite", - className: "OperationImpact", - modelProperties: { - name: { + }, + disasterPlanBasedRecommendationServiceLevelObjectiveId: { readOnly: true, - serializedName: "name", + serializedName: "properties.disasterPlanBasedRecommendationServiceLevelObjectiveId", type: { - name: "String" + name: "Uuid" } }, - unit: { + overallRecommendationServiceLevelObjective: { readOnly: true, - serializedName: "unit", + serializedName: "properties.overallRecommendationServiceLevelObjective", type: { name: "String" } }, - changeValueAbsolute: { + overallRecommendationServiceLevelObjectiveId: { readOnly: true, - serializedName: "changeValueAbsolute", + serializedName: "properties.overallRecommendationServiceLevelObjectiveId", type: { - name: "Number" + name: "Uuid" } }, - changeValueRelative: { + confidence: { + nullable: false, readOnly: true, - serializedName: "changeValueRelative", + serializedName: "properties.confidence", type: { name: "Number" } @@ -2831,1864 +2133,264 @@ export const OperationImpact: msRest.CompositeMapper = { } }; -export const RecommendedIndexProperties: msRest.CompositeMapper = { - serializedName: "RecommendedIndexProperties", +export const TransparentDataEncryptionActivity: msRest.CompositeMapper = { + serializedName: "TransparentDataEncryptionActivity", type: { name: "Composite", - className: "RecommendedIndexProperties", + className: "TransparentDataEncryptionActivity", modelProperties: { - action: { + ...ProxyResource.type.modelProperties, + location: { readOnly: true, - serializedName: "action", - type: { - name: "Enum", - allowedValues: [ - "Create", - "Drop", - "Rebuild" - ] - } - }, - state: { - readOnly: true, - serializedName: "state", - type: { - name: "Enum", - allowedValues: [ - "Active", - "Pending", - "Executing", - "Verifying", - "Pending Revert", - "Reverting", - "Reverted", - "Ignored", - "Expired", - "Blocked", - "Success" - ] - } - }, - created: { - readOnly: true, - serializedName: "created", - type: { - name: "DateTime" - } - }, - lastModified: { - readOnly: true, - serializedName: "lastModified", - type: { - name: "DateTime" - } - }, - indexType: { - readOnly: true, - serializedName: "indexType", - type: { - name: "Enum", - allowedValues: [ - "CLUSTERED", - "NONCLUSTERED", - "COLUMNSTORE", - "CLUSTERED COLUMNSTORE" - ] - } - }, - schema: { - readOnly: true, - serializedName: "schema", - type: { - name: "String" - } - }, - table: { - readOnly: true, - serializedName: "table", - type: { - name: "String" - } - }, - columns: { - readOnly: true, - serializedName: "columns", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - includedColumns: { - readOnly: true, - serializedName: "includedColumns", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - indexScript: { - readOnly: true, - serializedName: "indexScript", - type: { - name: "String" - } - }, - estimatedImpact: { - readOnly: true, - serializedName: "estimatedImpact", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationImpact" - } - } - } - }, - reportedImpact: { - readOnly: true, - serializedName: "reportedImpact", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationImpact" - } - } - } - } - } - } -}; - -export const RecommendedIndex: msRest.CompositeMapper = { - serializedName: "RecommendedIndex", - type: { - name: "Composite", - className: "RecommendedIndex", - modelProperties: { - ...ProxyResource.type.modelProperties, - action: { - readOnly: true, - serializedName: "properties.action", - type: { - name: "Enum", - allowedValues: [ - "Create", - "Drop", - "Rebuild" - ] - } - }, - state: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "Active", - "Pending", - "Executing", - "Verifying", - "Pending Revert", - "Reverting", - "Reverted", - "Ignored", - "Expired", - "Blocked", - "Success" - ] - } - }, - created: { - readOnly: true, - serializedName: "properties.created", - type: { - name: "DateTime" - } - }, - lastModified: { - readOnly: true, - serializedName: "properties.lastModified", - type: { - name: "DateTime" - } - }, - indexType: { - readOnly: true, - serializedName: "properties.indexType", - type: { - name: "Enum", - allowedValues: [ - "CLUSTERED", - "NONCLUSTERED", - "COLUMNSTORE", - "CLUSTERED COLUMNSTORE" - ] - } - }, - schema: { - readOnly: true, - serializedName: "properties.schema", - type: { - name: "String" - } - }, - table: { - readOnly: true, - serializedName: "properties.table", - type: { - name: "String" - } - }, - columns: { - readOnly: true, - serializedName: "properties.columns", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - includedColumns: { - readOnly: true, - serializedName: "properties.includedColumns", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - indexScript: { - readOnly: true, - serializedName: "properties.indexScript", - type: { - name: "String" - } - }, - estimatedImpact: { - readOnly: true, - serializedName: "properties.estimatedImpact", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationImpact" - } - } - } - }, - reportedImpact: { - readOnly: true, - serializedName: "properties.reportedImpact", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationImpact" - } - } - } - } - } - } -}; - -export const TransparentDataEncryptionProperties: msRest.CompositeMapper = { - serializedName: "TransparentDataEncryptionProperties", - type: { - name: "Composite", - className: "TransparentDataEncryptionProperties", - modelProperties: { - status: { - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] - } - } - } - } -}; - -export const TransparentDataEncryption: msRest.CompositeMapper = { - serializedName: "TransparentDataEncryption", - type: { - name: "Composite", - className: "TransparentDataEncryption", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - status: { - serializedName: "properties.status", - type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] - } - } - } - } -}; - -export const SloUsageMetric: msRest.CompositeMapper = { - serializedName: "SloUsageMetric", - type: { - name: "Composite", - className: "SloUsageMetric", - modelProperties: { - serviceLevelObjective: { - readOnly: true, - serializedName: "serviceLevelObjective", - type: { - name: "String" - } - }, - serviceLevelObjectiveId: { - nullable: false, - readOnly: true, - serializedName: "serviceLevelObjectiveId", - type: { - name: "Uuid" - } - }, - inRangeTimeRatio: { - nullable: false, - readOnly: true, - serializedName: "inRangeTimeRatio", - type: { - name: "Number" - } - } - } - } -}; - -export const ServiceTierAdvisorProperties: msRest.CompositeMapper = { - serializedName: "ServiceTierAdvisorProperties", - type: { - name: "Composite", - className: "ServiceTierAdvisorProperties", - modelProperties: { - observationPeriodStart: { - readOnly: true, - serializedName: "observationPeriodStart", - type: { - name: "DateTime" - } - }, - observationPeriodEnd: { - readOnly: true, - serializedName: "observationPeriodEnd", - type: { - name: "DateTime" - } - }, - activeTimeRatio: { - readOnly: true, - serializedName: "activeTimeRatio", - type: { - name: "Number" - } - }, - minDtu: { - readOnly: true, - serializedName: "minDtu", - type: { - name: "Number" - } - }, - avgDtu: { - readOnly: true, - serializedName: "avgDtu", - type: { - name: "Number" - } - }, - maxDtu: { - readOnly: true, - serializedName: "maxDtu", - type: { - name: "Number" - } - }, - maxSizeInGB: { - readOnly: true, - serializedName: "maxSizeInGB", - type: { - name: "Number" - } - }, - serviceLevelObjectiveUsageMetrics: { - readOnly: true, - serializedName: "serviceLevelObjectiveUsageMetrics", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SloUsageMetric" - } - } - } - }, - currentServiceLevelObjective: { - readOnly: true, - serializedName: "currentServiceLevelObjective", - type: { - name: "String" - } - }, - currentServiceLevelObjectiveId: { - readOnly: true, - serializedName: "currentServiceLevelObjectiveId", - type: { - name: "Uuid" - } - }, - usageBasedRecommendationServiceLevelObjective: { - readOnly: true, - serializedName: "usageBasedRecommendationServiceLevelObjective", - type: { - name: "String" - } - }, - usageBasedRecommendationServiceLevelObjectiveId: { - readOnly: true, - serializedName: "usageBasedRecommendationServiceLevelObjectiveId", - type: { - name: "Uuid" - } - }, - databaseSizeBasedRecommendationServiceLevelObjective: { - readOnly: true, - serializedName: "databaseSizeBasedRecommendationServiceLevelObjective", - type: { - name: "String" - } - }, - databaseSizeBasedRecommendationServiceLevelObjectiveId: { - readOnly: true, - serializedName: "databaseSizeBasedRecommendationServiceLevelObjectiveId", - type: { - name: "Uuid" - } - }, - disasterPlanBasedRecommendationServiceLevelObjective: { - readOnly: true, - serializedName: "disasterPlanBasedRecommendationServiceLevelObjective", - type: { - name: "String" - } - }, - disasterPlanBasedRecommendationServiceLevelObjectiveId: { - readOnly: true, - serializedName: "disasterPlanBasedRecommendationServiceLevelObjectiveId", - type: { - name: "Uuid" - } - }, - overallRecommendationServiceLevelObjective: { - readOnly: true, - serializedName: "overallRecommendationServiceLevelObjective", - type: { - name: "String" - } - }, - overallRecommendationServiceLevelObjectiveId: { - readOnly: true, - serializedName: "overallRecommendationServiceLevelObjectiveId", - type: { - name: "Uuid" - } - }, - confidence: { - nullable: false, - readOnly: true, - serializedName: "confidence", - type: { - name: "Number" - } - } - } - } -}; - -export const ServiceTierAdvisor: msRest.CompositeMapper = { - serializedName: "ServiceTierAdvisor", - type: { - name: "Composite", - className: "ServiceTierAdvisor", - modelProperties: { - ...ProxyResource.type.modelProperties, - observationPeriodStart: { - readOnly: true, - serializedName: "properties.observationPeriodStart", - type: { - name: "DateTime" - } - }, - observationPeriodEnd: { - readOnly: true, - serializedName: "properties.observationPeriodEnd", - type: { - name: "DateTime" - } - }, - activeTimeRatio: { - readOnly: true, - serializedName: "properties.activeTimeRatio", - type: { - name: "Number" - } - }, - minDtu: { - readOnly: true, - serializedName: "properties.minDtu", - type: { - name: "Number" - } - }, - avgDtu: { - readOnly: true, - serializedName: "properties.avgDtu", - type: { - name: "Number" - } - }, - maxDtu: { - readOnly: true, - serializedName: "properties.maxDtu", - type: { - name: "Number" - } - }, - maxSizeInGB: { - readOnly: true, - serializedName: "properties.maxSizeInGB", - type: { - name: "Number" - } - }, - serviceLevelObjectiveUsageMetrics: { - readOnly: true, - serializedName: "properties.serviceLevelObjectiveUsageMetrics", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SloUsageMetric" - } - } - } - }, - currentServiceLevelObjective: { - readOnly: true, - serializedName: "properties.currentServiceLevelObjective", - type: { - name: "String" - } - }, - currentServiceLevelObjectiveId: { - readOnly: true, - serializedName: "properties.currentServiceLevelObjectiveId", - type: { - name: "Uuid" - } - }, - usageBasedRecommendationServiceLevelObjective: { - readOnly: true, - serializedName: "properties.usageBasedRecommendationServiceLevelObjective", - type: { - name: "String" - } - }, - usageBasedRecommendationServiceLevelObjectiveId: { - readOnly: true, - serializedName: "properties.usageBasedRecommendationServiceLevelObjectiveId", - type: { - name: "Uuid" - } - }, - databaseSizeBasedRecommendationServiceLevelObjective: { - readOnly: true, - serializedName: "properties.databaseSizeBasedRecommendationServiceLevelObjective", - type: { - name: "String" - } - }, - databaseSizeBasedRecommendationServiceLevelObjectiveId: { - readOnly: true, - serializedName: "properties.databaseSizeBasedRecommendationServiceLevelObjectiveId", - type: { - name: "Uuid" - } - }, - disasterPlanBasedRecommendationServiceLevelObjective: { - readOnly: true, - serializedName: "properties.disasterPlanBasedRecommendationServiceLevelObjective", - type: { - name: "String" - } - }, - disasterPlanBasedRecommendationServiceLevelObjectiveId: { - readOnly: true, - serializedName: "properties.disasterPlanBasedRecommendationServiceLevelObjectiveId", - type: { - name: "Uuid" - } - }, - overallRecommendationServiceLevelObjective: { - readOnly: true, - serializedName: "properties.overallRecommendationServiceLevelObjective", - type: { - name: "String" - } - }, - overallRecommendationServiceLevelObjectiveId: { - readOnly: true, - serializedName: "properties.overallRecommendationServiceLevelObjectiveId", - type: { - name: "Uuid" - } - }, - confidence: { - nullable: false, - readOnly: true, - serializedName: "properties.confidence", - type: { - name: "Number" - } - } - } - } -}; - -export const TransparentDataEncryptionActivityProperties: msRest.CompositeMapper = { - serializedName: "TransparentDataEncryptionActivityProperties", - type: { - name: "Composite", - className: "TransparentDataEncryptionActivityProperties", - modelProperties: { - status: { - readOnly: true, - serializedName: "status", - type: { - name: "String" - } - }, - percentComplete: { - readOnly: true, - serializedName: "percentComplete", - type: { - name: "Number" - } - } - } - } -}; - -export const TransparentDataEncryptionActivity: msRest.CompositeMapper = { - serializedName: "TransparentDataEncryptionActivity", - type: { - name: "Composite", - className: "TransparentDataEncryptionActivity", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - status: { - readOnly: true, - serializedName: "properties.status", - type: { - name: "String" - } - }, - percentComplete: { - readOnly: true, - serializedName: "properties.percentComplete", - type: { - name: "Number" - } - } - } - } -}; - -export const ServerUsage: msRest.CompositeMapper = { - serializedName: "ServerUsage", - type: { - name: "Composite", - className: "ServerUsage", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - resourceName: { - readOnly: true, - serializedName: "resourceName", - type: { - name: "String" - } - }, - displayName: { - readOnly: true, - serializedName: "displayName", - type: { - name: "String" - } - }, - currentValue: { - readOnly: true, - serializedName: "currentValue", - type: { - name: "Number" - } - }, - limit: { - readOnly: true, - serializedName: "limit", - type: { - name: "Number" - } - }, - unit: { - readOnly: true, - serializedName: "unit", - type: { - name: "String" - } - }, - nextResetTime: { - readOnly: true, - serializedName: "nextResetTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const DatabaseUsage: msRest.CompositeMapper = { - serializedName: "DatabaseUsage", - type: { - name: "Composite", - className: "DatabaseUsage", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - resourceName: { - readOnly: true, - serializedName: "resourceName", - type: { - name: "String" - } - }, - displayName: { - readOnly: true, - serializedName: "displayName", - type: { - name: "String" - } - }, - currentValue: { - readOnly: true, - serializedName: "currentValue", - type: { - name: "Number" - } - }, - limit: { - readOnly: true, - serializedName: "limit", - type: { - name: "Number" - } - }, - unit: { - readOnly: true, - serializedName: "unit", - type: { - name: "String" - } - }, - nextResetTime: { - readOnly: true, - serializedName: "nextResetTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const AutomaticTuningOptions: msRest.CompositeMapper = { - serializedName: "AutomaticTuningOptions", - type: { - name: "Composite", - className: "AutomaticTuningOptions", - modelProperties: { - desiredState: { - serializedName: "desiredState", - type: { - name: "Enum", - allowedValues: [ - "Off", - "On", - "Default" - ] - } - }, - actualState: { - readOnly: true, - serializedName: "actualState", - type: { - name: "Enum", - allowedValues: [ - "Off", - "On" - ] - } - }, - reasonCode: { - readOnly: true, - serializedName: "reasonCode", - type: { - name: "Number" - } - }, - reasonDesc: { - readOnly: true, - serializedName: "reasonDesc", - type: { - name: "Enum", - allowedValues: [ - "Default", - "Disabled", - "AutoConfigured", - "InheritedFromServer", - "QueryStoreOff", - "QueryStoreReadOnly", - "NotSupported" - ] - } - } - } - } -}; - -export const DatabaseAutomaticTuningProperties: msRest.CompositeMapper = { - serializedName: "DatabaseAutomaticTuningProperties", - type: { - name: "Composite", - className: "DatabaseAutomaticTuningProperties", - modelProperties: { - desiredState: { - serializedName: "desiredState", - type: { - name: "Enum", - allowedValues: [ - "Inherit", - "Custom", - "Auto", - "Unspecified" - ] - } - }, - actualState: { - readOnly: true, - serializedName: "actualState", - type: { - name: "Enum", - allowedValues: [ - "Inherit", - "Custom", - "Auto", - "Unspecified" - ] - } - }, - options: { - serializedName: "options", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "AutomaticTuningOptions" - } - } - } - } - } - } -}; - -export const DatabaseAutomaticTuning: msRest.CompositeMapper = { - serializedName: "DatabaseAutomaticTuning", - type: { - name: "Composite", - className: "DatabaseAutomaticTuning", - modelProperties: { - ...ProxyResource.type.modelProperties, - desiredState: { - serializedName: "properties.desiredState", - type: { - name: "Enum", - allowedValues: [ - "Inherit", - "Custom", - "Auto", - "Unspecified" - ] - } - }, - actualState: { - readOnly: true, - serializedName: "properties.actualState", - type: { - name: "Enum", - allowedValues: [ - "Inherit", - "Custom", - "Auto", - "Unspecified" - ] - } - }, - options: { - serializedName: "properties.options", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "AutomaticTuningOptions" - } - } - } - } - } - } -}; - -export const EncryptionProtectorProperties: msRest.CompositeMapper = { - serializedName: "EncryptionProtectorProperties", - type: { - name: "Composite", - className: "EncryptionProtectorProperties", - modelProperties: { - subregion: { - readOnly: true, - serializedName: "subregion", - type: { - name: "String" - } - }, - serverKeyName: { - serializedName: "serverKeyName", - type: { - name: "String" - } - }, - serverKeyType: { - required: true, - serializedName: "serverKeyType", - type: { - name: "String" - } - }, - uri: { - readOnly: true, - serializedName: "uri", - type: { - name: "String" - } - }, - thumbprint: { - readOnly: true, - serializedName: "thumbprint", - type: { - name: "String" - } - } - } - } -}; - -export const EncryptionProtector: msRest.CompositeMapper = { - serializedName: "EncryptionProtector", - type: { - name: "Composite", - className: "EncryptionProtector", - modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - subregion: { - readOnly: true, - serializedName: "properties.subregion", - type: { - name: "String" - } - }, - serverKeyName: { - serializedName: "properties.serverKeyName", - type: { - name: "String" - } - }, - serverKeyType: { - required: true, - serializedName: "properties.serverKeyType", - type: { - name: "String" - } - }, - uri: { - readOnly: true, - serializedName: "properties.uri", - type: { - name: "String" - } - }, - thumbprint: { - readOnly: true, - serializedName: "properties.thumbprint", - type: { - name: "String" - } - } - } - } -}; - -export const FailoverGroupReadWriteEndpoint: msRest.CompositeMapper = { - serializedName: "FailoverGroupReadWriteEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint", - modelProperties: { - failoverPolicy: { - required: true, - serializedName: "failoverPolicy", - type: { - name: "String" - } - }, - failoverWithDataLossGracePeriodMinutes: { - serializedName: "failoverWithDataLossGracePeriodMinutes", - type: { - name: "Number" - } - } - } - } -}; - -export const FailoverGroupReadOnlyEndpoint: msRest.CompositeMapper = { - serializedName: "FailoverGroupReadOnlyEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint", - modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", - type: { - name: "String" - } - } - } - } -}; - -export const PartnerInfo: msRest.CompositeMapper = { - serializedName: "PartnerInfo", - type: { - name: "Composite", - className: "PartnerInfo", - modelProperties: { - id: { - required: true, - serializedName: "id", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - replicationRole: { - readOnly: true, - serializedName: "replicationRole", - type: { - name: "String" - } - } - } - } -}; - -export const FailoverGroupProperties: msRest.CompositeMapper = { - serializedName: "FailoverGroupProperties", - type: { - name: "Composite", - className: "FailoverGroupProperties", - modelProperties: { - readWriteEndpoint: { - required: true, - serializedName: "readWriteEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" - } - }, - readOnlyEndpoint: { - serializedName: "readOnlyEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" - } - }, - replicationRole: { - readOnly: true, - serializedName: "replicationRole", - type: { - name: "String" - } - }, - replicationState: { - readOnly: true, - serializedName: "replicationState", - type: { - name: "String" - } - }, - partnerServers: { - required: true, - serializedName: "partnerServers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PartnerInfo" - } - } - } - }, - databases: { - serializedName: "databases", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const FailoverGroup: msRest.CompositeMapper = { - serializedName: "FailoverGroup", - type: { - name: "Composite", - className: "FailoverGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - readWriteEndpoint: { - required: true, - serializedName: "properties.readWriteEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" - } - }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" - } - }, - replicationRole: { - readOnly: true, - serializedName: "properties.replicationRole", - type: { - name: "String" - } - }, - replicationState: { - readOnly: true, - serializedName: "properties.replicationState", - type: { - name: "String" - } - }, - partnerServers: { - required: true, - serializedName: "properties.partnerServers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PartnerInfo" - } - } - } - }, - databases: { - serializedName: "properties.databases", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const FailoverGroupUpdateProperties: msRest.CompositeMapper = { - serializedName: "FailoverGroupUpdateProperties", - type: { - name: "Composite", - className: "FailoverGroupUpdateProperties", - modelProperties: { - readWriteEndpoint: { - serializedName: "readWriteEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" - } - }, - readOnlyEndpoint: { - serializedName: "readOnlyEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" - } - }, - databases: { - serializedName: "databases", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const FailoverGroupUpdate: msRest.CompositeMapper = { - serializedName: "FailoverGroupUpdate", - type: { - name: "Composite", - className: "FailoverGroupUpdate", - modelProperties: { - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" - } - }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" - } - }, - databases: { - serializedName: "properties.databases", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ResourceIdentity: msRest.CompositeMapper = { - serializedName: "ResourceIdentity", - type: { - name: "Composite", - className: "ResourceIdentity", - modelProperties: { - principalId: { - readOnly: true, - serializedName: "principalId", - type: { - name: "Uuid" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - }, - tenantId: { - readOnly: true, - serializedName: "tenantId", - type: { - name: "Uuid" - } - } - } - } -}; - -export const Sku: msRest.CompositeMapper = { - serializedName: "Sku", - type: { - name: "Composite", - className: "Sku", - modelProperties: { - name: { - required: true, - serializedName: "name", - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", - type: { - name: "String" - } - }, - size: { - serializedName: "size", - type: { - name: "String" - } - }, - family: { - serializedName: "family", - type: { - name: "String" - } - }, - capacity: { - serializedName: "capacity", - type: { - name: "Number" - } - } - } - } -}; - -export const ManagedInstanceProperties: msRest.CompositeMapper = { - serializedName: "ManagedInstanceProperties", - type: { - name: "Composite", - className: "ManagedInstanceProperties", - modelProperties: { - fullyQualifiedDomainName: { - readOnly: true, - serializedName: "fullyQualifiedDomainName", - type: { - name: "String" - } - }, - administratorLogin: { - serializedName: "administratorLogin", - type: { - name: "String" - } - }, - administratorLoginPassword: { - serializedName: "administratorLoginPassword", - type: { - name: "String" - } - }, - subnetId: { - serializedName: "subnetId", - type: { - name: "String" - } - }, - state: { - readOnly: true, - serializedName: "state", + serializedName: "location", type: { name: "String" } }, - licenseType: { - serializedName: "licenseType", - type: { - name: "String" - } - }, - vCores: { - serializedName: "vCores", - type: { - name: "Number" - } - }, - storageSizeInGB: { - serializedName: "storageSizeInGB", - type: { - name: "Number" - } - }, - collation: { + status: { readOnly: true, - serializedName: "collation", + serializedName: "properties.status", type: { name: "String" } }, - dnsZone: { + percentComplete: { readOnly: true, - serializedName: "dnsZone", - type: { - name: "String" - } - }, - dnsZonePartner: { - serializedName: "dnsZonePartner", + serializedName: "properties.percentComplete", type: { - name: "String" + name: "Number" } } } } }; -export const ManagedInstance: msRest.CompositeMapper = { - serializedName: "ManagedInstance", +export const ServerUsage: msRest.CompositeMapper = { + serializedName: "ServerUsage", type: { name: "Composite", - className: "ManagedInstance", + className: "ServerUsage", modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ResourceIdentity" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - fullyQualifiedDomainName: { + name: { readOnly: true, - serializedName: "properties.fullyQualifiedDomainName", - type: { - name: "String" - } - }, - administratorLogin: { - serializedName: "properties.administratorLogin", - type: { - name: "String" - } - }, - administratorLoginPassword: { - serializedName: "properties.administratorLoginPassword", - type: { - name: "String" - } - }, - subnetId: { - serializedName: "properties.subnetId", + serializedName: "name", type: { name: "String" } }, - state: { + resourceName: { readOnly: true, - serializedName: "properties.state", + serializedName: "resourceName", type: { name: "String" } }, - licenseType: { - serializedName: "properties.licenseType", + displayName: { + readOnly: true, + serializedName: "displayName", type: { name: "String" } }, - vCores: { - serializedName: "properties.vCores", + currentValue: { + readOnly: true, + serializedName: "currentValue", type: { name: "Number" } }, - storageSizeInGB: { - serializedName: "properties.storageSizeInGB", + limit: { + readOnly: true, + serializedName: "limit", type: { name: "Number" } }, - collation: { + unit: { readOnly: true, - serializedName: "properties.collation", + serializedName: "unit", type: { name: "String" } }, - dnsZone: { + nextResetTime: { readOnly: true, - serializedName: "properties.dnsZone", - type: { - name: "String" - } - }, - dnsZonePartner: { - serializedName: "properties.dnsZonePartner", + serializedName: "nextResetTime", type: { - name: "String" + name: "DateTime" } } } } }; -export const ManagedInstanceUpdate: msRest.CompositeMapper = { - serializedName: "ManagedInstanceUpdate", +export const DatabaseUsage: msRest.CompositeMapper = { + serializedName: "DatabaseUsage", type: { name: "Composite", - className: "ManagedInstanceUpdate", + className: "DatabaseUsage", modelProperties: { - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - fullyQualifiedDomainName: { - readOnly: true, - serializedName: "properties.fullyQualifiedDomainName", - type: { - name: "String" - } - }, - administratorLogin: { - serializedName: "properties.administratorLogin", - type: { - name: "String" - } - }, - administratorLoginPassword: { - serializedName: "properties.administratorLoginPassword", - type: { - name: "String" - } - }, - subnetId: { - serializedName: "properties.subnetId", - type: { - name: "String" - } - }, - state: { + name: { readOnly: true, - serializedName: "properties.state", - type: { - name: "String" - } - }, - licenseType: { - serializedName: "properties.licenseType", + serializedName: "name", type: { name: "String" } }, - vCores: { - serializedName: "properties.vCores", - type: { - name: "Number" - } - }, - storageSizeInGB: { - serializedName: "properties.storageSizeInGB", - type: { - name: "Number" - } - }, - collation: { + resourceName: { readOnly: true, - serializedName: "properties.collation", + serializedName: "resourceName", type: { name: "String" } }, - dnsZone: { + displayName: { readOnly: true, - serializedName: "properties.dnsZone", - type: { - name: "String" - } - }, - dnsZonePartner: { - serializedName: "properties.dnsZonePartner", + serializedName: "displayName", type: { name: "String" } }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const OperationDisplay: msRest.CompositeMapper = { - serializedName: "OperationDisplay", - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { + currentValue: { readOnly: true, - serializedName: "provider", + serializedName: "currentValue", type: { - name: "String" + name: "Number" } }, - resource: { + limit: { readOnly: true, - serializedName: "resource", + serializedName: "limit", type: { - name: "String" + name: "Number" } }, - operation: { + unit: { readOnly: true, - serializedName: "operation", + serializedName: "unit", type: { name: "String" } }, - description: { + nextResetTime: { readOnly: true, - serializedName: "description", + serializedName: "nextResetTime", type: { - name: "String" + name: "DateTime" } } } } }; -export const Operation: msRest.CompositeMapper = { - serializedName: "Operation", +export const AutomaticTuningOptions: msRest.CompositeMapper = { + serializedName: "AutomaticTuningOptions", type: { name: "Composite", - className: "Operation", + className: "AutomaticTuningOptions", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + desiredState: { + serializedName: "desiredState", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Off", + "On", + "Default" + ] } }, - display: { + actualState: { readOnly: true, - serializedName: "display", + serializedName: "actualState", type: { - name: "Composite", - className: "OperationDisplay" + name: "Enum", + allowedValues: [ + "Off", + "On" + ] } }, - origin: { + reasonCode: { readOnly: true, - serializedName: "origin", + serializedName: "reasonCode", type: { - name: "String" + name: "Number" } }, - properties: { + reasonDesc: { readOnly: true, - serializedName: "properties", + serializedName: "reasonDesc", type: { - name: "Dictionary", - value: { - type: { - name: "Object" - } - } + name: "Enum", + allowedValues: [ + "Default", + "Disabled", + "AutoConfigured", + "InheritedFromServer", + "QueryStoreOff", + "QueryStoreReadOnly", + "NotSupported" + ] } } } } }; -export const ServerKeyProperties: msRest.CompositeMapper = { - serializedName: "ServerKeyProperties", +export const DatabaseAutomaticTuning: msRest.CompositeMapper = { + serializedName: "DatabaseAutomaticTuning", type: { name: "Composite", - className: "ServerKeyProperties", + className: "DatabaseAutomaticTuning", modelProperties: { - subregion: { - readOnly: true, - serializedName: "subregion", - type: { - name: "String" - } - }, - serverKeyType: { - required: true, - serializedName: "serverKeyType", - type: { - name: "String" - } - }, - uri: { - serializedName: "uri", + ...ProxyResource.type.modelProperties, + desiredState: { + serializedName: "properties.desiredState", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Inherit", + "Custom", + "Auto", + "Unspecified" + ] } }, - thumbprint: { - serializedName: "thumbprint", + actualState: { + readOnly: true, + serializedName: "properties.actualState", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Inherit", + "Custom", + "Auto", + "Unspecified" + ] } }, - creationDate: { - serializedName: "creationDate", + options: { + serializedName: "properties.options", type: { - name: "DateTime" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "AutomaticTuningOptions" + } + } } } } } }; -export const ServerKey: msRest.CompositeMapper = { - serializedName: "ServerKey", +export const EncryptionProtector: msRest.CompositeMapper = { + serializedName: "EncryptionProtector", type: { name: "Composite", - className: "ServerKey", + className: "EncryptionProtector", modelProperties: { ...ProxyResource.type.modelProperties, kind: { @@ -4711,6 +2413,12 @@ export const ServerKey: msRest.CompositeMapper = { name: "String" } }, + serverKeyName: { + serializedName: "properties.serverKeyName", + type: { + name: "String" + } + }, serverKeyType: { required: true, serializedName: "properties.serverKeyType", @@ -4719,61 +2427,85 @@ export const ServerKey: msRest.CompositeMapper = { } }, uri: { + readOnly: true, serializedName: "properties.uri", type: { name: "String" } }, thumbprint: { + readOnly: true, serializedName: "properties.thumbprint", type: { name: "String" } - }, - creationDate: { - serializedName: "properties.creationDate", - type: { - name: "DateTime" - } } } } }; -export const ServerProperties: msRest.CompositeMapper = { - serializedName: "ServerProperties", +export const FailoverGroupReadWriteEndpoint: msRest.CompositeMapper = { + serializedName: "FailoverGroupReadWriteEndpoint", type: { name: "Composite", - className: "ServerProperties", + className: "FailoverGroupReadWriteEndpoint", modelProperties: { - administratorLogin: { - serializedName: "administratorLogin", + failoverPolicy: { + required: true, + serializedName: "failoverPolicy", type: { name: "String" } }, - administratorLoginPassword: { - serializedName: "administratorLoginPassword", + failoverWithDataLossGracePeriodMinutes: { + serializedName: "failoverWithDataLossGracePeriodMinutes", + type: { + name: "Number" + } + } + } + } +}; + +export const FailoverGroupReadOnlyEndpoint: msRest.CompositeMapper = { + serializedName: "FailoverGroupReadOnlyEndpoint", + type: { + name: "Composite", + className: "FailoverGroupReadOnlyEndpoint", + modelProperties: { + failoverPolicy: { + serializedName: "failoverPolicy", type: { name: "String" } - }, - version: { - serializedName: "version", + } + } + } +}; + +export const PartnerInfo: msRest.CompositeMapper = { + serializedName: "PartnerInfo", + type: { + name: "Composite", + className: "PartnerInfo", + modelProperties: { + id: { + required: true, + serializedName: "id", type: { name: "String" } }, - state: { + location: { readOnly: true, - serializedName: "state", + serializedName: "location", type: { name: "String" } }, - fullyQualifiedDomainName: { + replicationRole: { readOnly: true, - serializedName: "fullyQualifiedDomainName", + serializedName: "replicationRole", type: { name: "String" } @@ -4782,99 +2514,117 @@ export const ServerProperties: msRest.CompositeMapper = { } }; -export const Server: msRest.CompositeMapper = { - serializedName: "Server", +export const FailoverGroup: msRest.CompositeMapper = { + serializedName: "FailoverGroup", type: { name: "Composite", - className: "Server", + className: "FailoverGroup", modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ResourceIdentity" - } - }, - kind: { + ...ProxyResource.type.modelProperties, + location: { readOnly: true, - serializedName: "kind", + serializedName: "location", type: { name: "String" } }, - administratorLogin: { - serializedName: "properties.administratorLogin", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } }, - administratorLoginPassword: { - serializedName: "properties.administratorLoginPassword", + readWriteEndpoint: { + required: true, + serializedName: "properties.readWriteEndpoint", type: { - name: "String" + name: "Composite", + className: "FailoverGroupReadWriteEndpoint" } }, - version: { - serializedName: "properties.version", + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", type: { - name: "String" + name: "Composite", + className: "FailoverGroupReadOnlyEndpoint" } }, - state: { + replicationRole: { readOnly: true, - serializedName: "properties.state", + serializedName: "properties.replicationRole", type: { name: "String" } }, - fullyQualifiedDomainName: { + replicationState: { readOnly: true, - serializedName: "properties.fullyQualifiedDomainName", + serializedName: "properties.replicationState", type: { name: "String" } + }, + partnerServers: { + required: true, + serializedName: "properties.partnerServers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PartnerInfo" + } + } + } + }, + databases: { + serializedName: "properties.databases", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const ServerUpdate: msRest.CompositeMapper = { - serializedName: "ServerUpdate", +export const FailoverGroupUpdate: msRest.CompositeMapper = { + serializedName: "FailoverGroupUpdate", type: { - name: "Composite", - className: "ServerUpdate", - modelProperties: { - administratorLogin: { - serializedName: "properties.administratorLogin", - type: { - name: "String" - } - }, - administratorLoginPassword: { - serializedName: "properties.administratorLoginPassword", - type: { - name: "String" - } - }, - version: { - serializedName: "properties.version", + name: "Composite", + className: "FailoverGroupUpdate", + modelProperties: { + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", type: { - name: "String" + name: "Composite", + className: "FailoverGroupReadWriteEndpoint" } }, - state: { - readOnly: true, - serializedName: "properties.state", + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", type: { - name: "String" + name: "Composite", + className: "FailoverGroupReadOnlyEndpoint" } }, - fullyQualifiedDomainName: { - readOnly: true, - serializedName: "properties.fullyQualifiedDomainName", + databases: { + serializedName: "properties.databases", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, tags: { @@ -4892,237 +2642,163 @@ export const ServerUpdate: msRest.CompositeMapper = { } }; -export const SyncAgentProperties: msRest.CompositeMapper = { - serializedName: "SyncAgentProperties", +export const ResourceIdentity: msRest.CompositeMapper = { + serializedName: "ResourceIdentity", type: { name: "Composite", - className: "SyncAgentProperties", + className: "ResourceIdentity", modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - syncDatabaseId: { - serializedName: "syncDatabaseId", - type: { - name: "String" - } - }, - lastAliveTime: { + principalId: { readOnly: true, - serializedName: "lastAliveTime", + serializedName: "principalId", type: { - name: "DateTime" + name: "Uuid" } }, - state: { - readOnly: true, - serializedName: "state", + type: { + serializedName: "type", type: { name: "String" } }, - isUpToDate: { - readOnly: true, - serializedName: "isUpToDate", - type: { - name: "Boolean" - } - }, - expiryTime: { - readOnly: true, - serializedName: "expiryTime", - type: { - name: "DateTime" - } - }, - version: { + tenantId: { readOnly: true, - serializedName: "version", + serializedName: "tenantId", type: { - name: "String" + name: "Uuid" } } } } }; -export const SyncAgent: msRest.CompositeMapper = { - serializedName: "SyncAgent", +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", type: { name: "Composite", - className: "SyncAgent", + className: "Sku", modelProperties: { - ...ProxyResource.type.modelProperties, - syncAgentName: { - readOnly: true, - serializedName: "properties.name", + name: { + required: true, + serializedName: "name", type: { name: "String" } }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + tier: { + serializedName: "tier", type: { name: "String" } }, - lastAliveTime: { - readOnly: true, - serializedName: "properties.lastAliveTime", - type: { - name: "DateTime" - } - }, - state: { - readOnly: true, - serializedName: "properties.state", + size: { + serializedName: "size", type: { name: "String" } }, - isUpToDate: { - readOnly: true, - serializedName: "properties.isUpToDate", - type: { - name: "Boolean" - } - }, - expiryTime: { - readOnly: true, - serializedName: "properties.expiryTime", + family: { + serializedName: "family", type: { - name: "DateTime" + name: "String" } }, - version: { - readOnly: true, - serializedName: "properties.version", + capacity: { + serializedName: "capacity", type: { - name: "String" + name: "Number" } } } } }; -export const SyncAgentKeyProperties: msRest.CompositeMapper = { - serializedName: "SyncAgentKeyProperties", +export const ManagedInstance: msRest.CompositeMapper = { + serializedName: "ManagedInstance", type: { name: "Composite", - className: "SyncAgentKeyProperties", + className: "ManagedInstance", modelProperties: { - syncAgentKey: { - readOnly: true, - serializedName: "syncAgentKey", + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "ResourceIdentity" } - } - } - } -}; - -export const SyncAgentLinkedDatabaseProperties: msRest.CompositeMapper = { - serializedName: "SyncAgentLinkedDatabaseProperties", - type: { - name: "Composite", - className: "SyncAgentLinkedDatabaseProperties", - modelProperties: { - databaseType: { - readOnly: true, - serializedName: "databaseType", + }, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - databaseId: { + fullyQualifiedDomainName: { readOnly: true, - serializedName: "databaseId", + serializedName: "properties.fullyQualifiedDomainName", type: { name: "String" } }, - description: { - readOnly: true, - serializedName: "description", + administratorLogin: { + serializedName: "properties.administratorLogin", type: { name: "String" } }, - serverName: { - readOnly: true, - serializedName: "serverName", + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", type: { name: "String" } }, - databaseName: { - readOnly: true, - serializedName: "databaseName", + subnetId: { + serializedName: "properties.subnetId", type: { name: "String" } }, - userName: { + state: { readOnly: true, - serializedName: "userName", + serializedName: "properties.state", type: { name: "String" } - } - } - } -}; - -export const SyncAgentLinkedDatabase: msRest.CompositeMapper = { - serializedName: "SyncAgentLinkedDatabase", - type: { - name: "Composite", - className: "SyncAgentLinkedDatabase", - modelProperties: { - ...ProxyResource.type.modelProperties, - databaseType: { - readOnly: true, - serializedName: "properties.databaseType", + }, + licenseType: { + serializedName: "properties.licenseType", type: { name: "String" } }, - databaseId: { - readOnly: true, - serializedName: "properties.databaseId", + vCores: { + serializedName: "properties.vCores", type: { - name: "String" + name: "Number" } }, - description: { - readOnly: true, - serializedName: "properties.description", + storageSizeInGB: { + serializedName: "properties.storageSizeInGB", type: { - name: "String" + name: "Number" } }, - serverName: { - readOnly: true, - serializedName: "properties.serverName", + collation: { + serializedName: "properties.collation", type: { name: "String" } }, - databaseName: { + dnsZone: { readOnly: true, - serializedName: "properties.databaseName", + serializedName: "properties.dnsZone", type: { name: "String" } }, - userName: { - readOnly: true, - serializedName: "properties.userName", + dnsZonePartner: { + serializedName: "properties.dnsZonePartner", type: { name: "String" } @@ -5131,125 +2807,133 @@ export const SyncAgentLinkedDatabase: msRest.CompositeMapper = { } }; -export const SyncDatabaseIdProperties: msRest.CompositeMapper = { - serializedName: "SyncDatabaseIdProperties", +export const ManagedInstanceUpdate: msRest.CompositeMapper = { + serializedName: "ManagedInstanceUpdate", type: { name: "Composite", - className: "SyncDatabaseIdProperties", + className: "ManagedInstanceUpdate", modelProperties: { - id: { + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + fullyQualifiedDomainName: { readOnly: true, - serializedName: "id", + serializedName: "properties.fullyQualifiedDomainName", type: { name: "String" } - } - } - } -}; - -export const SyncFullSchemaTableColumn: msRest.CompositeMapper = { - serializedName: "SyncFullSchemaTableColumn", - type: { - name: "Composite", - className: "SyncFullSchemaTableColumn", - modelProperties: { - dataSize: { - readOnly: true, - serializedName: "dataSize", + }, + administratorLogin: { + serializedName: "properties.administratorLogin", + type: { + name: "String" + } + }, + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", type: { name: "String" } }, - dataType: { - readOnly: true, - serializedName: "dataType", + subnetId: { + serializedName: "properties.subnetId", type: { name: "String" } }, - errorId: { + state: { readOnly: true, - serializedName: "errorId", + serializedName: "properties.state", type: { name: "String" } }, - hasError: { - readOnly: true, - serializedName: "hasError", + licenseType: { + serializedName: "properties.licenseType", type: { - name: "Boolean" + name: "String" } }, - isPrimaryKey: { - readOnly: true, - serializedName: "isPrimaryKey", + vCores: { + serializedName: "properties.vCores", type: { - name: "Boolean" + name: "Number" } }, - name: { - readOnly: true, - serializedName: "name", + storageSizeInGB: { + serializedName: "properties.storageSizeInGB", + type: { + name: "Number" + } + }, + collation: { + serializedName: "properties.collation", type: { name: "String" } }, - quotedName: { + dnsZone: { readOnly: true, - serializedName: "quotedName", + serializedName: "properties.dnsZone", + type: { + name: "String" + } + }, + dnsZonePartner: { + serializedName: "properties.dnsZonePartner", type: { name: "String" } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } } } } }; -export const SyncFullSchemaTable: msRest.CompositeMapper = { - serializedName: "SyncFullSchemaTable", +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "OperationDisplay", type: { name: "Composite", - className: "SyncFullSchemaTable", + className: "OperationDisplay", modelProperties: { - columns: { - readOnly: true, - serializedName: "columns", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncFullSchemaTableColumn" - } - } - } - }, - errorId: { + provider: { readOnly: true, - serializedName: "errorId", + serializedName: "provider", type: { name: "String" } }, - hasError: { + resource: { readOnly: true, - serializedName: "hasError", + serializedName: "resource", type: { - name: "Boolean" + name: "String" } }, - name: { + operation: { readOnly: true, - serializedName: "name", + serializedName: "operation", type: { name: "String" } }, - quotedName: { + description: { readOnly: true, - serializedName: "quotedName", + serializedName: "description", type: { name: "String" } @@ -5258,164 +2942,155 @@ export const SyncFullSchemaTable: msRest.CompositeMapper = { } }; -export const SyncFullSchemaProperties: msRest.CompositeMapper = { - serializedName: "SyncFullSchemaProperties", +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", type: { name: "Composite", - className: "SyncFullSchemaProperties", + className: "Operation", modelProperties: { - tables: { + name: { readOnly: true, - serializedName: "tables", + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncFullSchemaTable" - } - } + name: "String" } }, - lastUpdateTime: { + display: { readOnly: true, - serializedName: "lastUpdateTime", + serializedName: "display", type: { - name: "DateTime" + name: "Composite", + className: "OperationDisplay" + } + }, + origin: { + readOnly: true, + serializedName: "origin", + type: { + name: "String" + } + }, + properties: { + readOnly: true, + serializedName: "properties", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } } } } } }; -export const SyncGroupLogProperties: msRest.CompositeMapper = { - serializedName: "SyncGroupLogProperties", +export const ServerKey: msRest.CompositeMapper = { + serializedName: "ServerKey", type: { name: "Composite", - className: "SyncGroupLogProperties", + className: "ServerKey", modelProperties: { - timestamp: { - readOnly: true, - serializedName: "timestamp", + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", type: { - name: "DateTime" + name: "String" } }, - type: { + location: { readOnly: true, - serializedName: "type", + serializedName: "location", type: { name: "String" } }, - source: { + subregion: { readOnly: true, - serializedName: "source", + serializedName: "properties.subregion", type: { name: "String" } }, - details: { - readOnly: true, - serializedName: "details", + serverKeyType: { + required: true, + serializedName: "properties.serverKeyType", type: { name: "String" } }, - tracingId: { - readOnly: true, - serializedName: "tracingId", + uri: { + serializedName: "properties.uri", type: { - name: "Uuid" + name: "String" } }, - operationStatus: { - readOnly: true, - serializedName: "operationStatus", + thumbprint: { + serializedName: "properties.thumbprint", type: { name: "String" } + }, + creationDate: { + serializedName: "properties.creationDate", + type: { + name: "DateTime" + } } } } }; -export const SyncGroupSchemaTableColumn: msRest.CompositeMapper = { - serializedName: "SyncGroupSchemaTableColumn", +export const Server: msRest.CompositeMapper = { + serializedName: "Server", type: { name: "Composite", - className: "SyncGroupSchemaTableColumn", + className: "Server", modelProperties: { - quotedName: { - serializedName: "quotedName", + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "ResourceIdentity" } }, - dataSize: { - serializedName: "dataSize", + kind: { + readOnly: true, + serializedName: "kind", type: { name: "String" } }, - dataType: { - serializedName: "dataType", + administratorLogin: { + serializedName: "properties.administratorLogin", type: { name: "String" } - } - } - } -}; - -export const SyncGroupSchemaTable: msRest.CompositeMapper = { - serializedName: "SyncGroupSchemaTable", - type: { - name: "Composite", - className: "SyncGroupSchemaTable", - modelProperties: { - columns: { - serializedName: "columns", + }, + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncGroupSchemaTableColumn" - } - } + name: "String" } }, - quotedName: { - serializedName: "quotedName", + version: { + serializedName: "properties.version", type: { name: "String" } - } - } - } -}; - -export const SyncGroupSchema: msRest.CompositeMapper = { - serializedName: "SyncGroupSchema", - type: { - name: "Composite", - className: "SyncGroupSchema", - modelProperties: { - tables: { - serializedName: "tables", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncGroupSchemaTable" - } - } + }, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "String" } }, - masterSyncMemberName: { - serializedName: "masterSyncMemberName", + fullyQualifiedDomainName: { + readOnly: true, + serializedName: "properties.fullyQualifiedDomainName", type: { name: "String" } @@ -5424,186 +3099,197 @@ export const SyncGroupSchema: msRest.CompositeMapper = { } }; -export const SyncGroupProperties: msRest.CompositeMapper = { - serializedName: "SyncGroupProperties", +export const ServerUpdate: msRest.CompositeMapper = { + serializedName: "ServerUpdate", type: { name: "Composite", - className: "SyncGroupProperties", + className: "ServerUpdate", modelProperties: { - interval: { - serializedName: "interval", - type: { - name: "Number" - } - }, - lastSyncTime: { - readOnly: true, - serializedName: "lastSyncTime", - type: { - name: "DateTime" - } - }, - conflictResolutionPolicy: { - serializedName: "conflictResolutionPolicy", + administratorLogin: { + serializedName: "properties.administratorLogin", type: { name: "String" } }, - syncDatabaseId: { - serializedName: "syncDatabaseId", + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", type: { name: "String" } }, - hubDatabaseUserName: { - serializedName: "hubDatabaseUserName", + version: { + serializedName: "properties.version", type: { name: "String" } }, - hubDatabasePassword: { - serializedName: "hubDatabasePassword", + state: { + readOnly: true, + serializedName: "properties.state", type: { name: "String" } }, - syncState: { + fullyQualifiedDomainName: { readOnly: true, - serializedName: "syncState", + serializedName: "properties.fullyQualifiedDomainName", type: { name: "String" } }, - schema: { - serializedName: "schema", + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "SyncGroupSchema" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } } }; -export const SyncGroup: msRest.CompositeMapper = { - serializedName: "SyncGroup", +export const SyncAgent: msRest.CompositeMapper = { + serializedName: "SyncAgent", type: { name: "Composite", - className: "SyncGroup", + className: "SyncAgent", modelProperties: { ...ProxyResource.type.modelProperties, - interval: { - serializedName: "properties.interval", + syncAgentName: { + readOnly: true, + serializedName: "properties.name", type: { - name: "Number" + name: "String" } }, - lastSyncTime: { - readOnly: true, - serializedName: "properties.lastSyncTime", + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", type: { - name: "DateTime" + name: "String" } }, - conflictResolutionPolicy: { - serializedName: "properties.conflictResolutionPolicy", + lastAliveTime: { + readOnly: true, + serializedName: "properties.lastAliveTime", type: { - name: "String" + name: "DateTime" } }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + state: { + readOnly: true, + serializedName: "properties.state", type: { name: "String" } }, - hubDatabaseUserName: { - serializedName: "properties.hubDatabaseUserName", + isUpToDate: { + readOnly: true, + serializedName: "properties.isUpToDate", type: { - name: "String" + name: "Boolean" } }, - hubDatabasePassword: { - serializedName: "properties.hubDatabasePassword", + expiryTime: { + readOnly: true, + serializedName: "properties.expiryTime", type: { - name: "String" + name: "DateTime" } }, - syncState: { + version: { readOnly: true, - serializedName: "properties.syncState", + serializedName: "properties.version", type: { name: "String" } - }, - schema: { - serializedName: "properties.schema", + } + } + } +}; + +export const SyncAgentKeyProperties: msRest.CompositeMapper = { + serializedName: "SyncAgentKeyProperties", + type: { + name: "Composite", + className: "SyncAgentKeyProperties", + modelProperties: { + syncAgentKey: { + readOnly: true, + serializedName: "syncAgentKey", type: { - name: "Composite", - className: "SyncGroupSchema" + name: "String" } } } } }; -export const SyncMemberProperties: msRest.CompositeMapper = { - serializedName: "SyncMemberProperties", +export const SyncAgentLinkedDatabase: msRest.CompositeMapper = { + serializedName: "SyncAgentLinkedDatabase", type: { name: "Composite", - className: "SyncMemberProperties", + className: "SyncAgentLinkedDatabase", modelProperties: { + ...ProxyResource.type.modelProperties, databaseType: { - serializedName: "databaseType", + readOnly: true, + serializedName: "properties.databaseType", type: { name: "String" } }, - syncAgentId: { - serializedName: "syncAgentId", + databaseId: { + readOnly: true, + serializedName: "properties.databaseId", type: { name: "String" } }, - sqlServerDatabaseId: { - serializedName: "sqlServerDatabaseId", + description: { + readOnly: true, + serializedName: "properties.description", type: { - name: "Uuid" + name: "String" } }, serverName: { - serializedName: "serverName", + readOnly: true, + serializedName: "properties.serverName", type: { name: "String" } }, databaseName: { - serializedName: "databaseName", + readOnly: true, + serializedName: "properties.databaseName", type: { name: "String" } }, userName: { - serializedName: "userName", - type: { - name: "String" - } - }, - password: { - serializedName: "password", - type: { - name: "String" - } - }, - syncDirection: { - serializedName: "syncDirection", + readOnly: true, + serializedName: "properties.userName", type: { name: "String" } - }, - syncState: { + } + } + } +}; + +export const SyncDatabaseIdProperties: msRest.CompositeMapper = { + serializedName: "SyncDatabaseIdProperties", + type: { + name: "Composite", + className: "SyncDatabaseIdProperties", + modelProperties: { + id: { readOnly: true, - serializedName: "syncState", + serializedName: "id", type: { name: "String" } @@ -5612,64 +3298,108 @@ export const SyncMemberProperties: msRest.CompositeMapper = { } }; -export const SyncMember: msRest.CompositeMapper = { - serializedName: "SyncMember", +export const SyncFullSchemaTableColumn: msRest.CompositeMapper = { + serializedName: "SyncFullSchemaTableColumn", type: { name: "Composite", - className: "SyncMember", + className: "SyncFullSchemaTableColumn", modelProperties: { - ...ProxyResource.type.modelProperties, - databaseType: { - serializedName: "properties.databaseType", + dataSize: { + readOnly: true, + serializedName: "dataSize", type: { name: "String" } }, - syncAgentId: { - serializedName: "properties.syncAgentId", + dataType: { + readOnly: true, + serializedName: "dataType", type: { name: "String" } }, - sqlServerDatabaseId: { - serializedName: "properties.sqlServerDatabaseId", + errorId: { + readOnly: true, + serializedName: "errorId", type: { - name: "Uuid" + name: "String" } }, - serverName: { - serializedName: "properties.serverName", + hasError: { + readOnly: true, + serializedName: "hasError", type: { - name: "String" + name: "Boolean" } }, - databaseName: { - serializedName: "properties.databaseName", + isPrimaryKey: { + readOnly: true, + serializedName: "isPrimaryKey", + type: { + name: "Boolean" + } + }, + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - userName: { - serializedName: "properties.userName", + quotedName: { + readOnly: true, + serializedName: "quotedName", type: { name: "String" } + } + } + } +}; + +export const SyncFullSchemaTable: msRest.CompositeMapper = { + serializedName: "SyncFullSchemaTable", + type: { + name: "Composite", + className: "SyncFullSchemaTable", + modelProperties: { + columns: { + readOnly: true, + serializedName: "columns", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncFullSchemaTableColumn" + } + } + } }, - password: { - serializedName: "properties.password", + errorId: { + readOnly: true, + serializedName: "errorId", type: { name: "String" } }, - syncDirection: { - serializedName: "properties.syncDirection", + hasError: { + readOnly: true, + serializedName: "hasError", + type: { + name: "Boolean" + } + }, + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - syncState: { + quotedName: { readOnly: true, - serializedName: "properties.syncState", + serializedName: "quotedName", type: { name: "String" } @@ -5678,75 +3408,80 @@ export const SyncMember: msRest.CompositeMapper = { } }; -export const SubscriptionUsageProperties: msRest.CompositeMapper = { - serializedName: "SubscriptionUsageProperties", +export const SyncFullSchemaProperties: msRest.CompositeMapper = { + serializedName: "SyncFullSchemaProperties", type: { name: "Composite", - className: "SubscriptionUsageProperties", + className: "SyncFullSchemaProperties", modelProperties: { - displayName: { - readOnly: true, - serializedName: "displayName", - type: { - name: "String" - } - }, - currentValue: { - readOnly: true, - serializedName: "currentValue", - type: { - name: "Number" - } - }, - limit: { + tables: { readOnly: true, - serializedName: "limit", + serializedName: "tables", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncFullSchemaTable" + } + } } }, - unit: { + lastUpdateTime: { readOnly: true, - serializedName: "unit", + serializedName: "lastUpdateTime", type: { - name: "String" + name: "DateTime" } } } } }; -export const SubscriptionUsage: msRest.CompositeMapper = { - serializedName: "SubscriptionUsage", +export const SyncGroupLogProperties: msRest.CompositeMapper = { + serializedName: "SyncGroupLogProperties", type: { name: "Composite", - className: "SubscriptionUsage", + className: "SyncGroupLogProperties", modelProperties: { - ...ProxyResource.type.modelProperties, - displayName: { + timestamp: { readOnly: true, - serializedName: "properties.displayName", + serializedName: "timestamp", + type: { + name: "DateTime" + } + }, + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } }, - currentValue: { + source: { readOnly: true, - serializedName: "properties.currentValue", + serializedName: "source", type: { - name: "Number" + name: "String" } }, - limit: { + details: { readOnly: true, - serializedName: "properties.limit", + serializedName: "details", type: { - name: "Number" + name: "String" } }, - unit: { + tracingId: { readOnly: true, - serializedName: "properties.unit", + serializedName: "tracingId", + type: { + name: "Uuid" + } + }, + operationStatus: { + readOnly: true, + serializedName: "operationStatus", type: { name: "String" } @@ -5755,28 +3490,26 @@ export const SubscriptionUsage: msRest.CompositeMapper = { } }; -export const VirtualNetworkRuleProperties: msRest.CompositeMapper = { - serializedName: "VirtualNetworkRuleProperties", +export const SyncGroupSchemaTableColumn: msRest.CompositeMapper = { + serializedName: "SyncGroupSchemaTableColumn", type: { name: "Composite", - className: "VirtualNetworkRuleProperties", + className: "SyncGroupSchemaTableColumn", modelProperties: { - virtualNetworkSubnetId: { - required: true, - serializedName: "virtualNetworkSubnetId", + quotedName: { + serializedName: "quotedName", type: { name: "String" } }, - ignoreMissingVnetServiceEndpoint: { - serializedName: "ignoreMissingVnetServiceEndpoint", + dataSize: { + serializedName: "dataSize", type: { - name: "Boolean" + name: "String" } }, - state: { - readOnly: true, - serializedName: "state", + dataType: { + serializedName: "dataType", type: { name: "String" } @@ -5785,29 +3518,54 @@ export const VirtualNetworkRuleProperties: msRest.CompositeMapper = { } }; -export const VirtualNetworkRule: msRest.CompositeMapper = { - serializedName: "VirtualNetworkRule", +export const SyncGroupSchemaTable: msRest.CompositeMapper = { + serializedName: "SyncGroupSchemaTable", type: { name: "Composite", - className: "VirtualNetworkRule", + className: "SyncGroupSchemaTable", modelProperties: { - ...ProxyResource.type.modelProperties, - virtualNetworkSubnetId: { - required: true, - serializedName: "properties.virtualNetworkSubnetId", + columns: { + serializedName: "columns", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncGroupSchemaTableColumn" + } + } } }, - ignoreMissingVnetServiceEndpoint: { - serializedName: "properties.ignoreMissingVnetServiceEndpoint", + quotedName: { + serializedName: "quotedName", type: { - name: "Boolean" + name: "String" + } + } + } + } +}; + +export const SyncGroupSchema: msRest.CompositeMapper = { + serializedName: "SyncGroupSchema", + type: { + name: "Composite", + className: "SyncGroupSchema", + modelProperties: { + tables: { + serializedName: "tables", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncGroupSchemaTable" + } + } } }, - state: { - readOnly: true, - serializedName: "properties.state", + masterSyncMemberName: { + serializedName: "masterSyncMemberName", type: { name: "String" } @@ -5816,216 +3574,209 @@ export const VirtualNetworkRule: msRest.CompositeMapper = { } }; -export const ExtendedDatabaseBlobAuditingPolicyProperties: msRest.CompositeMapper = { - serializedName: "ExtendedDatabaseBlobAuditingPolicyProperties", +export const SyncGroup: msRest.CompositeMapper = { + serializedName: "SyncGroup", type: { name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicyProperties", + className: "SyncGroup", modelProperties: { - predicateExpression: { - serializedName: "predicateExpression", + ...ProxyResource.type.modelProperties, + interval: { + serializedName: "properties.interval", type: { - name: "String" + name: "Number" } }, - state: { - required: true, - serializedName: "state", + lastSyncTime: { + readOnly: true, + serializedName: "properties.lastSyncTime", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] + name: "DateTime" } }, - storageEndpoint: { - serializedName: "storageEndpoint", + conflictResolutionPolicy: { + serializedName: "properties.conflictResolutionPolicy", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "storageAccountAccessKey", + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", type: { name: "String" } }, - retentionDays: { - serializedName: "retentionDays", + hubDatabaseUserName: { + serializedName: "properties.hubDatabaseUserName", type: { - name: "Number" + name: "String" } }, - auditActionsAndGroups: { - serializedName: "auditActionsAndGroups", + hubDatabasePassword: { + serializedName: "properties.hubDatabasePassword", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "storageAccountSubscriptionId", + syncState: { + readOnly: true, + serializedName: "properties.syncState", type: { - name: "Uuid" + name: "String" } }, - isStorageSecondaryKeyInUse: { - serializedName: "isStorageSecondaryKeyInUse", + schema: { + serializedName: "properties.schema", type: { - name: "Boolean" + name: "Composite", + className: "SyncGroupSchema" } } } } }; -export const ExtendedDatabaseBlobAuditingPolicy: msRest.CompositeMapper = { - serializedName: "ExtendedDatabaseBlobAuditingPolicy", +export const SyncMember: msRest.CompositeMapper = { + serializedName: "SyncMember", type: { name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicy", + className: "SyncMember", modelProperties: { ...ProxyResource.type.modelProperties, - predicateExpression: { - serializedName: "properties.predicateExpression", + databaseType: { + serializedName: "properties.databaseType", type: { name: "String" } }, - state: { - required: true, - serializedName: "properties.state", + syncAgentId: { + serializedName: "properties.syncAgentId", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + sqlServerDatabaseId: { + serializedName: "properties.sqlServerDatabaseId", type: { - name: "String" + name: "Uuid" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + serverName: { + serializedName: "properties.serverName", type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + databaseName: { + serializedName: "properties.databaseName", type: { - name: "Number" + name: "String" } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + userName: { + serializedName: "properties.userName", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" + } + }, + password: { + serializedName: "properties.password", + type: { + name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + syncDirection: { + serializedName: "properties.syncDirection", type: { - name: "Uuid" + name: "String" } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + syncState: { + readOnly: true, + serializedName: "properties.syncState", type: { - name: "Boolean" + name: "String" } } } } }; -export const ExtendedServerBlobAuditingPolicyProperties: msRest.CompositeMapper = { - serializedName: "ExtendedServerBlobAuditingPolicyProperties", +export const SubscriptionUsage: msRest.CompositeMapper = { + serializedName: "SubscriptionUsage", type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicyProperties", + className: "SubscriptionUsage", modelProperties: { - predicateExpression: { - serializedName: "predicateExpression", + ...ProxyResource.type.modelProperties, + displayName: { + readOnly: true, + serializedName: "properties.displayName", type: { name: "String" } }, - state: { - required: true, - serializedName: "state", + currentValue: { + readOnly: true, + serializedName: "properties.currentValue", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] + name: "Number" } }, - storageEndpoint: { - serializedName: "storageEndpoint", + limit: { + readOnly: true, + serializedName: "properties.limit", type: { - name: "String" + name: "Number" } }, - storageAccountAccessKey: { - serializedName: "storageAccountAccessKey", + unit: { + readOnly: true, + serializedName: "properties.unit", type: { name: "String" } - }, - retentionDays: { - serializedName: "retentionDays", - type: { - name: "Number" - } - }, - auditActionsAndGroups: { - serializedName: "auditActionsAndGroups", + } + } + } +}; + +export const VirtualNetworkRule: msRest.CompositeMapper = { + serializedName: "VirtualNetworkRule", + type: { + name: "Composite", + className: "VirtualNetworkRule", + modelProperties: { + ...ProxyResource.type.modelProperties, + virtualNetworkSubnetId: { + required: true, + serializedName: "properties.virtualNetworkSubnetId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "storageAccountSubscriptionId", + ignoreMissingVnetServiceEndpoint: { + serializedName: "properties.ignoreMissingVnetServiceEndpoint", type: { - name: "Uuid" + name: "Boolean" } }, - isStorageSecondaryKeyInUse: { - serializedName: "isStorageSecondaryKeyInUse", + state: { + readOnly: true, + serializedName: "properties.state", type: { - name: "Boolean" + name: "String" } } } } }; -export const ExtendedServerBlobAuditingPolicy: msRest.CompositeMapper = { - serializedName: "ExtendedServerBlobAuditingPolicy", +export const ExtendedDatabaseBlobAuditingPolicy: msRest.CompositeMapper = { + serializedName: "ExtendedDatabaseBlobAuditingPolicy", type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicy", + className: "ExtendedDatabaseBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, predicateExpression: { @@ -6085,20 +3836,33 @@ export const ExtendedServerBlobAuditingPolicy: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" + } } } } }; -export const ServerBlobAuditingPolicyProperties: msRest.CompositeMapper = { - serializedName: "ServerBlobAuditingPolicyProperties", +export const ExtendedServerBlobAuditingPolicy: msRest.CompositeMapper = { + serializedName: "ExtendedServerBlobAuditingPolicy", type: { name: "Composite", - className: "ServerBlobAuditingPolicyProperties", + className: "ExtendedServerBlobAuditingPolicy", modelProperties: { + ...ProxyResource.type.modelProperties, + predicateExpression: { + serializedName: "properties.predicateExpression", + type: { + name: "String" + } + }, state: { required: true, - serializedName: "state", + serializedName: "properties.state", type: { name: "Enum", allowedValues: [ @@ -6108,25 +3872,25 @@ export const ServerBlobAuditingPolicyProperties: msRest.CompositeMapper = { } }, storageEndpoint: { - serializedName: "storageEndpoint", + serializedName: "properties.storageEndpoint", type: { name: "String" } }, storageAccountAccessKey: { - serializedName: "storageAccountAccessKey", + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, retentionDays: { - serializedName: "retentionDays", + serializedName: "properties.retentionDays", type: { name: "Number" } }, auditActionsAndGroups: { - serializedName: "auditActionsAndGroups", + serializedName: "properties.auditActionsAndGroups", type: { name: "Sequence", element: { @@ -6137,13 +3901,19 @@ export const ServerBlobAuditingPolicyProperties: msRest.CompositeMapper = { } }, storageAccountSubscriptionId: { - serializedName: "storageAccountSubscriptionId", + serializedName: "properties.storageAccountSubscriptionId", type: { name: "Uuid" } }, isStorageSecondaryKeyInUse: { - serializedName: "isStorageSecondaryKeyInUse", + serializedName: "properties.isStorageSecondaryKeyInUse", + type: { + name: "Boolean" + } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { name: "Boolean" } @@ -6210,65 +3980,9 @@ export const ServerBlobAuditingPolicy: msRest.CompositeMapper = { type: { name: "Boolean" } - } - } - } -}; - -export const DatabaseBlobAuditingPolicyProperties: msRest.CompositeMapper = { - serializedName: "DatabaseBlobAuditingPolicyProperties", - type: { - name: "Composite", - className: "DatabaseBlobAuditingPolicyProperties", - modelProperties: { - state: { - required: true, - serializedName: "state", - type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] - } - }, - storageEndpoint: { - serializedName: "storageEndpoint", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "storageAccountAccessKey", - type: { - name: "String" - } - }, - retentionDays: { - serializedName: "retentionDays", - type: { - name: "Number" - } - }, - auditActionsAndGroups: { - serializedName: "auditActionsAndGroups", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - storageAccountSubscriptionId: { - serializedName: "storageAccountSubscriptionId", - type: { - name: "Uuid" - } }, - isStorageSecondaryKeyInUse: { - serializedName: "isStorageSecondaryKeyInUse", + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { name: "Boolean" } @@ -6342,6 +4056,12 @@ export const DatabaseBlobAuditingPolicy: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" + } } } } @@ -6369,29 +4089,6 @@ export const DatabaseVulnerabilityAssessmentRuleBaselineItem: msRest.CompositeMa } }; -export const DatabaseVulnerabilityAssessmentRuleBaselineProperties: msRest.CompositeMapper = { - serializedName: "DatabaseVulnerabilityAssessmentRuleBaselineProperties", - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaselineProperties", - modelProperties: { - baselineResults: { - required: true, - serializedName: "baselineResults", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" - } - } - } - } - } - } -}; - export const DatabaseVulnerabilityAssessmentRuleBaseline: msRest.CompositeMapper = { serializedName: "DatabaseVulnerabilityAssessmentRuleBaseline", type: { @@ -6450,42 +4147,6 @@ export const VulnerabilityAssessmentRecurringScansProperties: msRest.CompositeMa } }; -export const DatabaseVulnerabilityAssessmentProperties: msRest.CompositeMapper = { - serializedName: "DatabaseVulnerabilityAssessmentProperties", - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentProperties", - modelProperties: { - storageContainerPath: { - required: true, - serializedName: "storageContainerPath", - type: { - name: "String" - } - }, - storageContainerSasKey: { - serializedName: "storageContainerSasKey", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "storageAccountAccessKey", - type: { - name: "String" - } - }, - recurringScans: { - serializedName: "recurringScans", - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" - } - } - } - } -}; - export const DatabaseVulnerabilityAssessment: msRest.CompositeMapper = { serializedName: "DatabaseVulnerabilityAssessment", type: { @@ -6494,7 +4155,6 @@ export const DatabaseVulnerabilityAssessment: msRest.CompositeMapper = { modelProperties: { ...ProxyResource.type.modelProperties, storageContainerPath: { - required: true, serializedName: "properties.storageContainerPath", type: { name: "String" @@ -6523,30 +4183,6 @@ export const DatabaseVulnerabilityAssessment: msRest.CompositeMapper = { } }; -export const JobAgentProperties: msRest.CompositeMapper = { - serializedName: "JobAgentProperties", - type: { - name: "Composite", - className: "JobAgentProperties", - modelProperties: { - databaseId: { - required: true, - serializedName: "databaseId", - type: { - name: "String" - } - }, - state: { - readOnly: true, - serializedName: "state", - type: { - name: "String" - } - } - } - } -}; - export const JobAgent: msRest.CompositeMapper = { serializedName: "JobAgent", type: { @@ -6593,31 +4229,7 @@ export const JobAgentUpdate: msRest.CompositeMapper = { type: { name: "String" } - } - } - } - } - } -}; - -export const JobCredentialProperties: msRest.CompositeMapper = { - serializedName: "JobCredentialProperties", - type: { - name: "Composite", - className: "JobCredentialProperties", - modelProperties: { - username: { - required: true, - serializedName: "username", - type: { - name: "String" - } - }, - password: { - required: true, - serializedName: "password", - type: { - name: "String" + } } } } @@ -6680,107 +4292,6 @@ export const JobExecutionTarget: msRest.CompositeMapper = { } }; -export const JobExecutionProperties: msRest.CompositeMapper = { - serializedName: "JobExecutionProperties", - type: { - name: "Composite", - className: "JobExecutionProperties", - modelProperties: { - jobVersion: { - readOnly: true, - serializedName: "jobVersion", - type: { - name: "Number" - } - }, - stepName: { - readOnly: true, - serializedName: "stepName", - type: { - name: "String" - } - }, - stepId: { - readOnly: true, - serializedName: "stepId", - type: { - name: "Number" - } - }, - jobExecutionId: { - readOnly: true, - serializedName: "jobExecutionId", - type: { - name: "Uuid" - } - }, - lifecycle: { - readOnly: true, - serializedName: "lifecycle", - type: { - name: "String" - } - }, - provisioningState: { - readOnly: true, - serializedName: "provisioningState", - type: { - name: "String" - } - }, - createTime: { - readOnly: true, - serializedName: "createTime", - type: { - name: "DateTime" - } - }, - startTime: { - readOnly: true, - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - endTime: { - readOnly: true, - serializedName: "endTime", - type: { - name: "DateTime" - } - }, - currentAttempts: { - serializedName: "currentAttempts", - type: { - name: "Number" - } - }, - currentAttemptStartTime: { - readOnly: true, - serializedName: "currentAttemptStartTime", - type: { - name: "DateTime" - } - }, - lastMessage: { - readOnly: true, - serializedName: "lastMessage", - type: { - name: "String" - } - }, - target: { - readOnly: true, - serializedName: "target", - type: { - name: "Composite", - className: "JobExecutionTarget" - } - } - } - } -}; - export const JobExecution: msRest.CompositeMapper = { serializedName: "JobExecution", type: { @@ -6930,37 +4441,6 @@ export const JobSchedule: msRest.CompositeMapper = { } }; -export const JobProperties: msRest.CompositeMapper = { - serializedName: "JobProperties", - type: { - name: "Composite", - className: "JobProperties", - modelProperties: { - description: { - serializedName: "description", - defaultValue: '', - type: { - name: "String" - } - }, - version: { - readOnly: true, - serializedName: "version", - type: { - name: "Number" - } - }, - schedule: { - serializedName: "schedule", - type: { - name: "Composite", - className: "JobSchedule" - } - } - } - } -}; - export const Job: msRest.CompositeMapper = { serializedName: "Job", type: { @@ -7133,58 +4613,6 @@ export const JobStepExecutionOptions: msRest.CompositeMapper = { } }; -export const JobStepProperties: msRest.CompositeMapper = { - serializedName: "JobStepProperties", - type: { - name: "Composite", - className: "JobStepProperties", - modelProperties: { - stepId: { - serializedName: "stepId", - type: { - name: "Number" - } - }, - targetGroup: { - required: true, - serializedName: "targetGroup", - type: { - name: "String" - } - }, - credential: { - required: true, - serializedName: "credential", - type: { - name: "String" - } - }, - action: { - required: true, - serializedName: "action", - type: { - name: "Composite", - className: "JobStepAction" - } - }, - output: { - serializedName: "output", - type: { - name: "Composite", - className: "JobStepOutput" - } - }, - executionOptions: { - serializedName: "executionOptions", - type: { - name: "Composite", - className: "JobStepExecutionOptions" - } - } - } - } -}; - export const JobStep: msRest.CompositeMapper = { serializedName: "JobStep", type: { @@ -7289,123 +4717,48 @@ export const JobTarget: msRest.CompositeMapper = { refreshCredential: { serializedName: "refreshCredential", type: { - name: "String" - } - } - } - } -}; - -export const JobTargetGroupProperties: msRest.CompositeMapper = { - serializedName: "JobTargetGroupProperties", - type: { - name: "Composite", - className: "JobTargetGroupProperties", - modelProperties: { - members: { - required: true, - serializedName: "members", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobTarget" - } - } - } - } - } - } -}; - -export const JobTargetGroup: msRest.CompositeMapper = { - serializedName: "JobTargetGroup", - type: { - name: "Composite", - className: "JobTargetGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - members: { - required: true, - serializedName: "properties.members", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobTarget" - } - } - } - } - } - } -}; - -export const JobVersion: msRest.CompositeMapper = { - serializedName: "JobVersion", - type: { - name: "Composite", - className: "JobVersion", - modelProperties: { - ...ProxyResource.type.modelProperties - } - } -}; - -export const LongTermRetentionBackupProperties: msRest.CompositeMapper = { - serializedName: "LongTermRetentionBackupProperties", - type: { - name: "Composite", - className: "LongTermRetentionBackupProperties", - modelProperties: { - serverName: { - readOnly: true, - serializedName: "serverName", - type: { - name: "String" - } - }, - serverCreateTime: { - readOnly: true, - serializedName: "serverCreateTime", - type: { - name: "DateTime" - } - }, - databaseName: { - readOnly: true, - serializedName: "databaseName", - type: { - name: "String" - } - }, - databaseDeletionTime: { - readOnly: true, - serializedName: "databaseDeletionTime", - type: { - name: "DateTime" - } - }, - backupTime: { - readOnly: true, - serializedName: "backupTime", - type: { - name: "DateTime" - } - }, - backupExpirationTime: { - readOnly: true, - serializedName: "backupExpirationTime", + name: "String" + } + } + } + } +}; + +export const JobTargetGroup: msRest.CompositeMapper = { + serializedName: "JobTargetGroup", + type: { + name: "Composite", + className: "JobTargetGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + members: { + required: true, + serializedName: "properties.members", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobTarget" + } + } } } } } }; +export const JobVersion: msRest.CompositeMapper = { + serializedName: "JobVersion", + type: { + name: "Composite", + className: "JobVersion", + modelProperties: { + ...ProxyResource.type.modelProperties + } + } +}; + export const LongTermRetentionBackup: msRest.CompositeMapper = { serializedName: "LongTermRetentionBackup", type: { @@ -7459,40 +4812,6 @@ export const LongTermRetentionBackup: msRest.CompositeMapper = { } }; -export const LongTermRetentionPolicyProperties: msRest.CompositeMapper = { - serializedName: "LongTermRetentionPolicyProperties", - type: { - name: "Composite", - className: "LongTermRetentionPolicyProperties", - modelProperties: { - weeklyRetention: { - serializedName: "weeklyRetention", - type: { - name: "String" - } - }, - monthlyRetention: { - serializedName: "monthlyRetention", - type: { - name: "String" - } - }, - yearlyRetention: { - serializedName: "yearlyRetention", - type: { - name: "String" - } - }, - weekOfYear: { - serializedName: "weekOfYear", - type: { - name: "Number" - } - } - } - } -}; - export const BackupLongTermRetentionPolicy: msRest.CompositeMapper = { serializedName: "BackupLongTermRetentionPolicy", type: { @@ -7528,102 +4847,32 @@ export const BackupLongTermRetentionPolicy: msRest.CompositeMapper = { } }; -export const CompleteDatabaseRestoreDefinition: msRest.CompositeMapper = { - serializedName: "CompleteDatabaseRestoreDefinition", +export const ManagedBackupShortTermRetentionPolicy: msRest.CompositeMapper = { + serializedName: "ManagedBackupShortTermRetentionPolicy", type: { name: "Composite", - className: "CompleteDatabaseRestoreDefinition", + className: "ManagedBackupShortTermRetentionPolicy", modelProperties: { - lastBackupName: { - required: true, - serializedName: "lastBackupName", + ...ProxyResource.type.modelProperties, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } } } } }; -export const ManagedDatabaseProperties: msRest.CompositeMapper = { - serializedName: "ManagedDatabaseProperties", +export const CompleteDatabaseRestoreDefinition: msRest.CompositeMapper = { + serializedName: "CompleteDatabaseRestoreDefinition", type: { name: "Composite", - className: "ManagedDatabaseProperties", + className: "CompleteDatabaseRestoreDefinition", modelProperties: { - collation: { - serializedName: "collation", - type: { - name: "String" - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "String" - } - }, - creationDate: { - readOnly: true, - serializedName: "creationDate", - type: { - name: "DateTime" - } - }, - earliestRestorePoint: { - readOnly: true, - serializedName: "earliestRestorePoint", - type: { - name: "DateTime" - } - }, - restorePointInTime: { - serializedName: "restorePointInTime", - type: { - name: "DateTime" - } - }, - defaultSecondaryLocation: { - readOnly: true, - serializedName: "defaultSecondaryLocation", - type: { - name: "String" - } - }, - catalogCollation: { - serializedName: "catalogCollation", - type: { - name: "String" - } - }, - createMode: { - serializedName: "createMode", - type: { - name: "String" - } - }, - storageContainerUri: { - serializedName: "storageContainerUri", - type: { - name: "String" - } - }, - sourceDatabaseId: { - serializedName: "sourceDatabaseId", - type: { - name: "String" - } - }, - storageContainerSasToken: { - serializedName: "storageContainerSasToken", - type: { - name: "String" - } - }, - failoverGroupId: { - readOnly: true, - serializedName: "failoverGroupId", + lastBackupName: { + required: true, + serializedName: "lastBackupName", type: { name: "String" } @@ -7869,51 +5118,6 @@ export const AutomaticTuningServerOptions: msRest.CompositeMapper = { } }; -export const AutomaticTuningServerProperties: msRest.CompositeMapper = { - serializedName: "AutomaticTuningServerProperties", - type: { - name: "Composite", - className: "AutomaticTuningServerProperties", - modelProperties: { - desiredState: { - serializedName: "desiredState", - type: { - name: "Enum", - allowedValues: [ - "Custom", - "Auto", - "Unspecified" - ] - } - }, - actualState: { - readOnly: true, - serializedName: "actualState", - type: { - name: "Enum", - allowedValues: [ - "Custom", - "Auto", - "Unspecified" - ] - } - }, - options: { - serializedName: "options", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "AutomaticTuningServerOptions" - } - } - } - } - } - } -}; - export const ServerAutomaticTuning: msRest.CompositeMapper = { serializedName: "ServerAutomaticTuning", type: { @@ -7960,23 +5164,6 @@ export const ServerAutomaticTuning: msRest.CompositeMapper = { } }; -export const ServerDnsAliasProperties: msRest.CompositeMapper = { - serializedName: "ServerDnsAliasProperties", - type: { - name: "Composite", - className: "ServerDnsAliasProperties", - modelProperties: { - azureDnsRecord: { - readOnly: true, - serializedName: "azureDnsRecord", - type: { - name: "String" - } - } - } - } -}; - export const ServerDnsAlias: msRest.CompositeMapper = { serializedName: "ServerDnsAlias", type: { @@ -7996,84 +5183,16 @@ export const ServerDnsAlias: msRest.CompositeMapper = { }; export const ServerDnsAliasAcquisition: msRest.CompositeMapper = { - serializedName: "ServerDnsAliasAcquisition", - type: { - name: "Composite", - className: "ServerDnsAliasAcquisition", - modelProperties: { - oldServerDnsAliasId: { - serializedName: "oldServerDnsAliasId", - type: { - name: "String" - } - } - } - } -}; - -export const SecurityAlertPolicyProperties: msRest.CompositeMapper = { - serializedName: "SecurityAlertPolicyProperties", - type: { - name: "Composite", - className: "SecurityAlertPolicyProperties", - modelProperties: { - state: { - required: true, - serializedName: "state", - type: { - name: "Enum", - allowedValues: [ - "New", - "Enabled", - "Disabled" - ] - } - }, - disabledAlerts: { - serializedName: "disabledAlerts", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - emailAddresses: { - serializedName: "emailAddresses", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - emailAccountAdmins: { - serializedName: "emailAccountAdmins", - type: { - name: "Boolean" - } - }, - storageEndpoint: { - serializedName: "storageEndpoint", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "storageAccountAccessKey", + serializedName: "ServerDnsAliasAcquisition", + type: { + name: "Composite", + className: "ServerDnsAliasAcquisition", + modelProperties: { + oldServerDnsAliasId: { + serializedName: "oldServerDnsAliasId", type: { name: "String" } - }, - retentionDays: { - serializedName: "retentionDays", - type: { - name: "Number" - } } } } @@ -8148,48 +5267,6 @@ export const ServerSecurityAlertPolicy: msRest.CompositeMapper = { } }; -export const RestorePointProperties: msRest.CompositeMapper = { - serializedName: "RestorePointProperties", - type: { - name: "Composite", - className: "RestorePointProperties", - modelProperties: { - restorePointType: { - readOnly: true, - serializedName: "restorePointType", - type: { - name: "Enum", - allowedValues: [ - "CONTINUOUS", - "DISCRETE" - ] - } - }, - earliestRestoreDate: { - readOnly: true, - serializedName: "earliestRestoreDate", - type: { - name: "DateTime" - } - }, - restorePointCreationDate: { - readOnly: true, - serializedName: "restorePointCreationDate", - type: { - name: "DateTime" - } - }, - restorePointLabel: { - readOnly: true, - serializedName: "restorePointLabel", - type: { - name: "String" - } - } - } - } -}; - export const RestorePoint: msRest.CompositeMapper = { serializedName: "RestorePoint", type: { @@ -8239,341 +5316,125 @@ export const RestorePoint: msRest.CompositeMapper = { } } }; - -export const CreateDatabaseRestorePointDefinition: msRest.CompositeMapper = { - serializedName: "CreateDatabaseRestorePointDefinition", - type: { - name: "Composite", - className: "CreateDatabaseRestorePointDefinition", - modelProperties: { - restorePointLabel: { - required: true, - serializedName: "restorePointLabel", - type: { - name: "String" - } - } - } - } -}; - -export const DatabaseOperationProperties: msRest.CompositeMapper = { - serializedName: "DatabaseOperationProperties", - type: { - name: "Composite", - className: "DatabaseOperationProperties", - modelProperties: { - databaseName: { - readOnly: true, - serializedName: "databaseName", - type: { - name: "String" - } - }, - operation: { - readOnly: true, - serializedName: "operation", - type: { - name: "String" - } - }, - operationFriendlyName: { - readOnly: true, - serializedName: "operationFriendlyName", - type: { - name: "String" - } - }, - percentComplete: { - readOnly: true, - serializedName: "percentComplete", - type: { - name: "Number" - } - }, - serverName: { - readOnly: true, - serializedName: "serverName", - type: { - name: "String" - } - }, - startTime: { - readOnly: true, - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - state: { - readOnly: true, - serializedName: "state", - type: { - name: "String" - } - }, - errorCode: { - readOnly: true, - serializedName: "errorCode", - type: { - name: "Number" - } - }, - errorDescription: { - readOnly: true, - serializedName: "errorDescription", - type: { - name: "String" - } - }, - errorSeverity: { - readOnly: true, - serializedName: "errorSeverity", - type: { - name: "Number" - } - }, - isUserError: { - readOnly: true, - serializedName: "isUserError", - type: { - name: "Boolean" - } - }, - estimatedCompletionTime: { - readOnly: true, - serializedName: "estimatedCompletionTime", - type: { - name: "DateTime" - } - }, - description: { - readOnly: true, - serializedName: "description", - type: { - name: "String" - } - }, - isCancellable: { - readOnly: true, - serializedName: "isCancellable", - type: { - name: "Boolean" - } - } - } - } -}; - -export const DatabaseOperation: msRest.CompositeMapper = { - serializedName: "DatabaseOperation", - type: { - name: "Composite", - className: "DatabaseOperation", - modelProperties: { - ...ProxyResource.type.modelProperties, - databaseName: { - readOnly: true, - serializedName: "properties.databaseName", - type: { - name: "String" - } - }, - operation: { - readOnly: true, - serializedName: "properties.operation", - type: { - name: "String" - } - }, - operationFriendlyName: { - readOnly: true, - serializedName: "properties.operationFriendlyName", - type: { - name: "String" - } - }, - percentComplete: { - readOnly: true, - serializedName: "properties.percentComplete", - type: { - name: "Number" - } - }, - serverName: { - readOnly: true, - serializedName: "properties.serverName", - type: { - name: "String" - } - }, - startTime: { - readOnly: true, - serializedName: "properties.startTime", - type: { - name: "DateTime" - } - }, - state: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "String" - } - }, - errorCode: { - readOnly: true, - serializedName: "properties.errorCode", - type: { - name: "Number" - } - }, - errorDescription: { - readOnly: true, - serializedName: "properties.errorDescription", - type: { - name: "String" - } - }, - errorSeverity: { - readOnly: true, - serializedName: "properties.errorSeverity", - type: { - name: "Number" - } - }, - isUserError: { - readOnly: true, - serializedName: "properties.isUserError", - type: { - name: "Boolean" - } - }, - estimatedCompletionTime: { - readOnly: true, - serializedName: "properties.estimatedCompletionTime", - type: { - name: "DateTime" - } - }, - description: { - readOnly: true, - serializedName: "properties.description", + +export const CreateDatabaseRestorePointDefinition: msRest.CompositeMapper = { + serializedName: "CreateDatabaseRestorePointDefinition", + type: { + name: "Composite", + className: "CreateDatabaseRestorePointDefinition", + modelProperties: { + restorePointLabel: { + required: true, + serializedName: "restorePointLabel", type: { name: "String" } - }, - isCancellable: { - readOnly: true, - serializedName: "properties.isCancellable", - type: { - name: "Boolean" - } } } } }; -export const ElasticPoolOperationProperties: msRest.CompositeMapper = { - serializedName: "ElasticPoolOperationProperties", +export const DatabaseOperation: msRest.CompositeMapper = { + serializedName: "DatabaseOperation", type: { name: "Composite", - className: "ElasticPoolOperationProperties", + className: "DatabaseOperation", modelProperties: { - elasticPoolName: { + ...ProxyResource.type.modelProperties, + databaseName: { readOnly: true, - serializedName: "elasticPoolName", + serializedName: "properties.databaseName", type: { name: "String" } }, operation: { readOnly: true, - serializedName: "operation", + serializedName: "properties.operation", type: { name: "String" } }, operationFriendlyName: { readOnly: true, - serializedName: "operationFriendlyName", + serializedName: "properties.operationFriendlyName", type: { name: "String" } }, percentComplete: { readOnly: true, - serializedName: "percentComplete", + serializedName: "properties.percentComplete", type: { name: "Number" } }, serverName: { readOnly: true, - serializedName: "serverName", + serializedName: "properties.serverName", type: { name: "String" } }, startTime: { readOnly: true, - serializedName: "startTime", + serializedName: "properties.startTime", type: { name: "DateTime" } }, state: { readOnly: true, - serializedName: "state", + serializedName: "properties.state", type: { name: "String" } }, errorCode: { readOnly: true, - serializedName: "errorCode", + serializedName: "properties.errorCode", type: { name: "Number" } }, errorDescription: { readOnly: true, - serializedName: "errorDescription", + serializedName: "properties.errorDescription", type: { name: "String" } }, errorSeverity: { readOnly: true, - serializedName: "errorSeverity", + serializedName: "properties.errorSeverity", type: { name: "Number" } }, isUserError: { readOnly: true, - serializedName: "isUserError", + serializedName: "properties.isUserError", type: { name: "Boolean" } }, estimatedCompletionTime: { readOnly: true, - serializedName: "estimatedCompletionTime", + serializedName: "properties.estimatedCompletionTime", type: { name: "DateTime" } }, description: { readOnly: true, - serializedName: "description", + serializedName: "properties.description", type: { name: "String" } }, isCancellable: { readOnly: true, - serializedName: "isCancellable", + serializedName: "properties.isCancellable", type: { name: "Boolean" } @@ -9507,301 +6368,124 @@ export const ManagedInstanceEditionCapability: msRest.CompositeMapper = { "Available", "Default", "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstanceVersionCapability: msRest.CompositeMapper = { - serializedName: "ManagedInstanceVersionCapability", - type: { - name: "Composite", - className: "ManagedInstanceVersionCapability", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - supportedEditions: { - readOnly: true, - serializedName: "supportedEditions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceEditionCapability" - } - } - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const LocationCapabilities: msRest.CompositeMapper = { - serializedName: "LocationCapabilities", - type: { - name: "Composite", - className: "LocationCapabilities", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - supportedServerVersions: { - readOnly: true, - serializedName: "supportedServerVersions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerVersionCapability" - } - } - } - }, - supportedManagedInstanceVersions: { - readOnly: true, - serializedName: "supportedManagedInstanceVersions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceVersionCapability" - } - } - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const DatabaseProperties: msRest.CompositeMapper = { - serializedName: "DatabaseProperties", - type: { - name: "Composite", - className: "DatabaseProperties", - modelProperties: { - createMode: { - serializedName: "createMode", - type: { - name: "String" - } - }, - collation: { - serializedName: "collation", - type: { - name: "String" - } - }, - maxSizeBytes: { - serializedName: "maxSizeBytes", - type: { - name: "Number" - } - }, - sampleName: { - serializedName: "sampleName", - type: { - name: "String" - } - }, - elasticPoolId: { - serializedName: "elasticPoolId", - type: { - name: "String" - } - }, - sourceDatabaseId: { - serializedName: "sourceDatabaseId", - type: { - name: "String" - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "String" - } - }, - databaseId: { - readOnly: true, - serializedName: "databaseId", - type: { - name: "Uuid" - } - }, - creationDate: { - readOnly: true, - serializedName: "creationDate", - type: { - name: "DateTime" - } - }, - currentServiceObjectiveName: { - readOnly: true, - serializedName: "currentServiceObjectiveName", - type: { - name: "String" - } - }, - requestedServiceObjectiveName: { - readOnly: true, - serializedName: "requestedServiceObjectiveName", - type: { - name: "String" - } - }, - defaultSecondaryLocation: { - readOnly: true, - serializedName: "defaultSecondaryLocation", - type: { - name: "String" - } - }, - failoverGroupId: { - readOnly: true, - serializedName: "failoverGroupId", - type: { - name: "String" - } - }, - restorePointInTime: { - serializedName: "restorePointInTime", - type: { - name: "DateTime" - } - }, - sourceDatabaseDeletionDate: { - serializedName: "sourceDatabaseDeletionDate", - type: { - name: "DateTime" - } - }, - recoveryServicesRecoveryPointId: { - serializedName: "recoveryServicesRecoveryPointId", - type: { - name: "String" + ] } }, - longTermRetentionBackupResourceId: { - serializedName: "longTermRetentionBackupResourceId", + reason: { + serializedName: "reason", type: { name: "String" } - }, - recoverableDatabaseId: { - serializedName: "recoverableDatabaseId", + } + } + } +}; + +export const ManagedInstanceVersionCapability: msRest.CompositeMapper = { + serializedName: "ManagedInstanceVersionCapability", + type: { + name: "Composite", + className: "ManagedInstanceVersionCapability", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - restorableDroppedDatabaseId: { - serializedName: "restorableDroppedDatabaseId", + supportedEditions: { + readOnly: true, + serializedName: "supportedEditions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstanceEditionCapability" + } + } } }, - catalogCollation: { - serializedName: "catalogCollation", + status: { + readOnly: true, + serializedName: "status", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] } }, - zoneRedundant: { - serializedName: "zoneRedundant", + reason: { + serializedName: "reason", type: { - name: "Boolean" + name: "String" } - }, - licenseType: { - serializedName: "licenseType", + } + } + } +}; + +export const LocationCapabilities: msRest.CompositeMapper = { + serializedName: "LocationCapabilities", + type: { + name: "Composite", + className: "LocationCapabilities", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - maxLogSizeBytes: { + supportedServerVersions: { readOnly: true, - serializedName: "maxLogSizeBytes", + serializedName: "supportedServerVersions", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerVersionCapability" + } + } } }, - earliestRestoreDate: { + supportedManagedInstanceVersions: { readOnly: true, - serializedName: "earliestRestoreDate", + serializedName: "supportedManagedInstanceVersions", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstanceVersionCapability" + } + } } }, - readScale: { - serializedName: "readScale", + status: { + readOnly: true, + serializedName: "status", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] } }, - currentSku: { - readOnly: true, - serializedName: "currentSku", + reason: { + serializedName: "reason", type: { - name: "Composite", - className: "Sku" + name: "String" } } } @@ -10241,55 +6925,6 @@ export const ElasticPoolPerDatabaseSettings: msRest.CompositeMapper = { } }; -export const ElasticPoolProperties: msRest.CompositeMapper = { - serializedName: "ElasticPoolProperties", - type: { - name: "Composite", - className: "ElasticPoolProperties", - modelProperties: { - state: { - readOnly: true, - serializedName: "state", - type: { - name: "String" - } - }, - creationDate: { - readOnly: true, - serializedName: "creationDate", - type: { - name: "DateTime" - } - }, - maxSizeBytes: { - serializedName: "maxSizeBytes", - type: { - name: "Number" - } - }, - perDatabaseSettings: { - serializedName: "perDatabaseSettings", - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseSettings" - } - }, - zoneRedundant: { - serializedName: "zoneRedundant", - type: { - name: "Boolean" - } - }, - licenseType: { - serializedName: "licenseType", - type: { - name: "String" - } - } - } - } -}; - export const ElasticPool: msRest.CompositeMapper = { serializedName: "ElasticPool", type: { @@ -10354,41 +6989,6 @@ export const ElasticPool: msRest.CompositeMapper = { } }; -export const ElasticPoolUpdateProperties: msRest.CompositeMapper = { - serializedName: "ElasticPoolUpdateProperties", - type: { - name: "Composite", - className: "ElasticPoolUpdateProperties", - modelProperties: { - maxSizeBytes: { - serializedName: "maxSizeBytes", - type: { - name: "Number" - } - }, - perDatabaseSettings: { - serializedName: "perDatabaseSettings", - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseSettings" - } - }, - zoneRedundant: { - serializedName: "zoneRedundant", - type: { - name: "Boolean" - } - }, - licenseType: { - serializedName: "licenseType", - type: { - name: "String" - } - } - } - } -}; - export const ElasticPoolUpdate: msRest.CompositeMapper = { serializedName: "ElasticPoolUpdate", type: { @@ -10413,125 +7013,53 @@ export const ElasticPoolUpdate: msRest.CompositeMapper = { type: { name: "Composite", className: "ElasticPoolPerDatabaseSettings" - } - }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", - type: { - name: "Boolean" - } - }, - licenseType: { - serializedName: "properties.licenseType", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const VulnerabilityAssessmentScanError: msRest.CompositeMapper = { - serializedName: "VulnerabilityAssessmentScanError", - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanError", - modelProperties: { - code: { - readOnly: true, - serializedName: "code", - type: { - name: "String" - } - }, - message: { - readOnly: true, - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - -export const VulnerabilityAssessmentScanRecordProperties: msRest.CompositeMapper = { - serializedName: "VulnerabilityAssessmentScanRecordProperties", - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanRecordProperties", - modelProperties: { - scanId: { - readOnly: true, - serializedName: "scanId", - type: { - name: "String" - } - }, - triggerType: { - readOnly: true, - serializedName: "triggerType", - type: { - name: "String" - } - }, - state: { - readOnly: true, - serializedName: "state", - type: { - name: "String" - } - }, - startTime: { - readOnly: true, - serializedName: "startTime", + } + }, + zoneRedundant: { + serializedName: "properties.zoneRedundant", type: { - name: "DateTime" + name: "Boolean" } }, - endTime: { - readOnly: true, - serializedName: "endTime", + licenseType: { + serializedName: "properties.licenseType", type: { - name: "DateTime" + name: "String" } }, - errors: { - readOnly: true, - serializedName: "errors", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { - name: "Composite", - className: "VulnerabilityAssessmentScanError" + name: "String" } } } - }, - storageContainerPath: { + } + } + } +}; + +export const VulnerabilityAssessmentScanError: msRest.CompositeMapper = { + serializedName: "VulnerabilityAssessmentScanError", + type: { + name: "Composite", + className: "VulnerabilityAssessmentScanError", + modelProperties: { + code: { readOnly: true, - serializedName: "storageContainerPath", + serializedName: "code", type: { name: "String" } }, - numberOfFailedSecurityChecks: { + message: { readOnly: true, - serializedName: "numberOfFailedSecurityChecks", + serializedName: "message", type: { - name: "Number" + name: "String" } } } @@ -10611,23 +7139,6 @@ export const VulnerabilityAssessmentScanRecord: msRest.CompositeMapper = { } }; -export const DatabaseVulnerabilityAssessmentScanExportProperties: msRest.CompositeMapper = { - serializedName: "DatabaseVulnerabilityAssessmentScanExportProperties", - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentScanExportProperties", - modelProperties: { - exportedReportLocation: { - readOnly: true, - serializedName: "exportedReportLocation", - type: { - name: "String" - } - } - } - } -}; - export const DatabaseVulnerabilityAssessmentScansExport: msRest.CompositeMapper = { serializedName: "DatabaseVulnerabilityAssessmentScansExport", type: { @@ -10730,71 +7241,6 @@ export const ManagedInstancePairInfo: msRest.CompositeMapper = { } }; -export const InstanceFailoverGroupProperties: msRest.CompositeMapper = { - serializedName: "InstanceFailoverGroupProperties", - type: { - name: "Composite", - className: "InstanceFailoverGroupProperties", - modelProperties: { - readWriteEndpoint: { - required: true, - serializedName: "readWriteEndpoint", - type: { - name: "Composite", - className: "InstanceFailoverGroupReadWriteEndpoint" - } - }, - readOnlyEndpoint: { - serializedName: "readOnlyEndpoint", - type: { - name: "Composite", - className: "InstanceFailoverGroupReadOnlyEndpoint" - } - }, - replicationRole: { - readOnly: true, - serializedName: "replicationRole", - type: { - name: "String" - } - }, - replicationState: { - readOnly: true, - serializedName: "replicationState", - type: { - name: "String" - } - }, - partnerRegions: { - required: true, - serializedName: "partnerRegions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PartnerRegionInfo" - } - } - } - }, - managedInstancePairs: { - required: true, - serializedName: "managedInstancePairs", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstancePairInfo" - } - } - } - } - } - } -}; - export const InstanceFailoverGroup: msRest.CompositeMapper = { serializedName: "InstanceFailoverGroup", type: { @@ -10861,22 +7307,6 @@ export const InstanceFailoverGroup: msRest.CompositeMapper = { } }; -export const BackupShortTermRetentionPolicyProperties: msRest.CompositeMapper = { - serializedName: "BackupShortTermRetentionPolicyProperties", - type: { - name: "Composite", - className: "BackupShortTermRetentionPolicyProperties", - modelProperties: { - retentionDays: { - serializedName: "retentionDays", - type: { - name: "Number" - } - } - } - } -}; - export const BackupShortTermRetentionPolicy: msRest.CompositeMapper = { serializedName: "BackupShortTermRetentionPolicy", type: { @@ -10894,29 +7324,6 @@ export const BackupShortTermRetentionPolicy: msRest.CompositeMapper = { } }; -export const TdeCertificateProperties: msRest.CompositeMapper = { - serializedName: "TdeCertificateProperties", - type: { - name: "Composite", - className: "TdeCertificateProperties", - modelProperties: { - privateBlob: { - required: true, - serializedName: "privateBlob", - type: { - name: "String" - } - }, - certPassword: { - serializedName: "certPassword", - type: { - name: "String" - } - } - } - } -}; - export const TdeCertificate: msRest.CompositeMapper = { serializedName: "TdeCertificate", type: { @@ -10941,43 +7348,6 @@ export const TdeCertificate: msRest.CompositeMapper = { } }; -export const ManagedInstanceKeyProperties: msRest.CompositeMapper = { - serializedName: "ManagedInstanceKeyProperties", - type: { - name: "Composite", - className: "ManagedInstanceKeyProperties", - modelProperties: { - serverKeyType: { - required: true, - serializedName: "serverKeyType", - type: { - name: "String" - } - }, - uri: { - serializedName: "uri", - type: { - name: "String" - } - }, - thumbprint: { - readOnly: true, - serializedName: "thumbprint", - type: { - name: "String" - } - }, - creationDate: { - readOnly: true, - serializedName: "creationDate", - type: { - name: "DateTime" - } - } - } - } -}; - export const ManagedInstanceKey: msRest.CompositeMapper = { serializedName: "ManagedInstanceKey", type: { @@ -11023,43 +7393,6 @@ export const ManagedInstanceKey: msRest.CompositeMapper = { } }; -export const ManagedInstanceEncryptionProtectorProperties: msRest.CompositeMapper = { - serializedName: "ManagedInstanceEncryptionProtectorProperties", - type: { - name: "Composite", - className: "ManagedInstanceEncryptionProtectorProperties", - modelProperties: { - serverKeyName: { - serializedName: "serverKeyName", - type: { - name: "String" - } - }, - serverKeyType: { - required: true, - serializedName: "serverKeyType", - type: { - name: "String" - } - }, - uri: { - readOnly: true, - serializedName: "uri", - type: { - name: "String" - } - }, - thumbprint: { - readOnly: true, - serializedName: "thumbprint", - type: { - name: "String" - } - } - } - } -}; - export const ManagedInstanceEncryptionProtector: msRest.CompositeMapper = { serializedName: "ManagedInstanceEncryptionProtector", type: { @@ -12046,6 +8379,36 @@ export const VirtualNetworkRuleListResult: msRest.CompositeMapper = { } }; +export const DatabaseVulnerabilityAssessmentListResult: msRest.CompositeMapper = { + serializedName: "DatabaseVulnerabilityAssessmentListResult", + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessmentListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessment" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const JobAgentListResult: msRest.CompositeMapper = { serializedName: "JobAgentListResult", type: { @@ -12286,6 +8649,36 @@ export const LongTermRetentionBackupListResult: msRest.CompositeMapper = { } }; +export const ManagedBackupShortTermRetentionPolicyListResult: msRest.CompositeMapper = { + serializedName: "ManagedBackupShortTermRetentionPolicyListResult", + type: { + name: "Composite", + className: "ManagedBackupShortTermRetentionPolicyListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedBackupShortTermRetentionPolicy" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ManagedDatabaseListResult: msRest.CompositeMapper = { serializedName: "ManagedDatabaseListResult", type: { diff --git a/packages/@azure/arm-sql/lib/models/recommendedElasticPoolsMappers.ts b/packages/@azure/arm-sql/lib/models/recommendedElasticPoolsMappers.ts index c44a4ce9075c..23a481351d27 100644 --- a/packages/@azure/arm-sql/lib/models/recommendedElasticPoolsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/recommendedElasticPoolsMappers.ts @@ -83,6 +83,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/recoverableDatabasesMappers.ts b/packages/@azure/arm-sql/lib/models/recoverableDatabasesMappers.ts index c08d7907f332..6a5a445df1f8 100644 --- a/packages/@azure/arm-sql/lib/models/recoverableDatabasesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/recoverableDatabasesMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/replicationLinksMappers.ts b/packages/@azure/arm-sql/lib/models/replicationLinksMappers.ts index fad71cb6222b..7466f03bf94c 100644 --- a/packages/@azure/arm-sql/lib/models/replicationLinksMappers.ts +++ b/packages/@azure/arm-sql/lib/models/replicationLinksMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/restorableDroppedDatabasesMappers.ts b/packages/@azure/arm-sql/lib/models/restorableDroppedDatabasesMappers.ts index 92757142e66a..fc9cca58b677 100644 --- a/packages/@azure/arm-sql/lib/models/restorableDroppedDatabasesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/restorableDroppedDatabasesMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/restorePointsMappers.ts b/packages/@azure/arm-sql/lib/models/restorePointsMappers.ts index 69cda7589ffd..39fd7ac22e8d 100644 --- a/packages/@azure/arm-sql/lib/models/restorePointsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/restorePointsMappers.ts @@ -84,6 +84,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/serverAutomaticTuningOperationsMappers.ts b/packages/@azure/arm-sql/lib/models/serverAutomaticTuningOperationsMappers.ts index 418d63556f00..4306c0e017e2 100644 --- a/packages/@azure/arm-sql/lib/models/serverAutomaticTuningOperationsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverAutomaticTuningOperationsMappers.ts @@ -83,6 +83,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerDnsAlias, ServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/serverAzureADAdministratorsMappers.ts b/packages/@azure/arm-sql/lib/models/serverAzureADAdministratorsMappers.ts index 204de81eb9a8..7c5d9f53b09d 100644 --- a/packages/@azure/arm-sql/lib/models/serverAzureADAdministratorsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverAzureADAdministratorsMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/serverBlobAuditingPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/serverBlobAuditingPoliciesMappers.ts index dd50d42daa89..35efeed79d0e 100644 --- a/packages/@azure/arm-sql/lib/models/serverBlobAuditingPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverBlobAuditingPoliciesMappers.ts @@ -81,6 +81,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/serverCommunicationLinksMappers.ts b/packages/@azure/arm-sql/lib/models/serverCommunicationLinksMappers.ts index 32a466fb0cfe..15f2faf54fad 100644 --- a/packages/@azure/arm-sql/lib/models/serverCommunicationLinksMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverCommunicationLinksMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/serverConnectionPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/serverConnectionPoliciesMappers.ts index 46bb1b102496..86b830d87273 100644 --- a/packages/@azure/arm-sql/lib/models/serverConnectionPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverConnectionPoliciesMappers.ts @@ -81,6 +81,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/serverDnsAliasesMappers.ts b/packages/@azure/arm-sql/lib/models/serverDnsAliasesMappers.ts index dc58e238402b..8c8c05afbd7a 100644 --- a/packages/@azure/arm-sql/lib/models/serverDnsAliasesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverDnsAliasesMappers.ts @@ -84,6 +84,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/serverKeysMappers.ts b/packages/@azure/arm-sql/lib/models/serverKeysMappers.ts index 1834ee2570b6..b2080f341cae 100644 --- a/packages/@azure/arm-sql/lib/models/serverKeysMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverKeysMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/serverSecurityAlertPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/serverSecurityAlertPoliciesMappers.ts index 799f71f87054..c8b86e9d12d9 100644 --- a/packages/@azure/arm-sql/lib/models/serverSecurityAlertPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverSecurityAlertPoliciesMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/serversMappers.ts b/packages/@azure/arm-sql/lib/models/serversMappers.ts index 793b518f5559..793878df0108 100644 --- a/packages/@azure/arm-sql/lib/models/serversMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serversMappers.ts @@ -83,6 +83,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/serviceObjectivesMappers.ts b/packages/@azure/arm-sql/lib/models/serviceObjectivesMappers.ts index 8071f9fe25a0..2ff47f20acba 100644 --- a/packages/@azure/arm-sql/lib/models/serviceObjectivesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serviceObjectivesMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/serviceTierAdvisorsMappers.ts b/packages/@azure/arm-sql/lib/models/serviceTierAdvisorsMappers.ts index 542af796420d..a12eb3168530 100644 --- a/packages/@azure/arm-sql/lib/models/serviceTierAdvisorsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serviceTierAdvisorsMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/subscriptionUsagesMappers.ts b/packages/@azure/arm-sql/lib/models/subscriptionUsagesMappers.ts index 19456d922e37..205e9bf0ecf1 100644 --- a/packages/@azure/arm-sql/lib/models/subscriptionUsagesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/subscriptionUsagesMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/syncAgentsMappers.ts b/packages/@azure/arm-sql/lib/models/syncAgentsMappers.ts index 037fbf44a7ed..dce7b127faef 100644 --- a/packages/@azure/arm-sql/lib/models/syncAgentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/syncAgentsMappers.ts @@ -84,6 +84,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/syncGroupsMappers.ts b/packages/@azure/arm-sql/lib/models/syncGroupsMappers.ts index a9158744d062..9d36b8edf172 100644 --- a/packages/@azure/arm-sql/lib/models/syncGroupsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/syncGroupsMappers.ts @@ -90,6 +90,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/syncMembersMappers.ts b/packages/@azure/arm-sql/lib/models/syncMembersMappers.ts index ad32fedffee3..1a8ec197f9fc 100644 --- a/packages/@azure/arm-sql/lib/models/syncMembersMappers.ts +++ b/packages/@azure/arm-sql/lib/models/syncMembersMappers.ts @@ -86,6 +86,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/tdeCertificatesMappers.ts b/packages/@azure/arm-sql/lib/models/tdeCertificatesMappers.ts index 875aa490c155..7e32c20008da 100644 --- a/packages/@azure/arm-sql/lib/models/tdeCertificatesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/tdeCertificatesMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/transparentDataEncryptionActivitiesMappers.ts b/packages/@azure/arm-sql/lib/models/transparentDataEncryptionActivitiesMappers.ts index 99956ae75547..d7b0a3cb28cb 100644 --- a/packages/@azure/arm-sql/lib/models/transparentDataEncryptionActivitiesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/transparentDataEncryptionActivitiesMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/transparentDataEncryptionsMappers.ts b/packages/@azure/arm-sql/lib/models/transparentDataEncryptionsMappers.ts index 006bc91d1400..830567c75698 100644 --- a/packages/@azure/arm-sql/lib/models/transparentDataEncryptionsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/transparentDataEncryptionsMappers.ts @@ -81,6 +81,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/models/virtualNetworkRulesMappers.ts b/packages/@azure/arm-sql/lib/models/virtualNetworkRulesMappers.ts index d886f8a0accd..02470668746e 100644 --- a/packages/@azure/arm-sql/lib/models/virtualNetworkRulesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/virtualNetworkRulesMappers.ts @@ -82,6 +82,7 @@ export { JobVersion, LongTermRetentionBackup, BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ServerAutomaticTuning, AutomaticTuningServerOptions, diff --git a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentScans.ts b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentScans.ts index f897e4781cd0..1a5b2ad8434b 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentScans.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentScans.ts @@ -28,100 +28,100 @@ export class DatabaseVulnerabilityAssessmentScans { } /** - * Gets a vulnerability assessment scan record of a database. + * Lists the vulnerability assessment scans of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param callback The callback */ - get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, - scanId, options }, - getOperationSpec, - callback) as Promise; + listByDatabaseOperationSpec, + callback) as Promise; } /** - * Executes a Vulnerability Assessment database scan. + * Gets a vulnerability assessment scan record of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param [options] The optional parameters - * @returns Promise - */ - initiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginInitiateScan(resourceGroupName,serverName,databaseName,scanId,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Lists the vulnerability assessment scans of a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param callback The callback */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The optional parameters * @param callback The callback */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, + scanId, options }, - listByDatabaseOperationSpec, - callback) as Promise; + getOperationSpec, + callback) as Promise; + } + + /** + * Executes a Vulnerability Assessment database scan. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param [options] The optional parameters + * @returns Promise + */ + initiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginInitiateScan(resourceGroupName,serverName,databaseName,scanId,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -221,15 +221,14 @@ export class DatabaseVulnerabilityAssessmentScans { // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const listByDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, Parameters.vulnerabilityAssessmentName, - Parameters.scanId, Parameters.subscriptionId ], queryParameters: [ @@ -240,7 +239,7 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecord + bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult }, default: { bodyMapper: Mappers.CloudError @@ -249,14 +248,15 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listByDatabaseOperationSpec: msRest.OperationSpec = { +const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, Parameters.vulnerabilityAssessmentName, + Parameters.scanId, Parameters.subscriptionId ], queryParameters: [ @@ -267,7 +267,7 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult + bodyMapper: Mappers.VulnerabilityAssessmentScanRecord }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts index 40519a05d735..4cc14b598567 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts @@ -146,6 +146,76 @@ export class DatabaseVulnerabilityAssessments { deleteMethodOperationSpec, callback); } + + /** + * Lists the vulnerability assessment policies associated with a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database for which the vulnerability assessment policies are + * defined. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database for which the vulnerability assessment policies are + * defined. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database for which the vulnerability assessment policies are + * defined. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Lists the vulnerability assessment policies associated with a database. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -238,3 +308,50 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-sql/lib/operations/index.ts b/packages/@azure/arm-sql/lib/operations/index.ts index 7630dd61d64a..40e61a59f70b 100644 --- a/packages/@azure/arm-sql/lib/operations/index.ts +++ b/packages/@azure/arm-sql/lib/operations/index.ts @@ -59,6 +59,7 @@ export * from "./jobTargetGroups"; export * from "./jobVersions"; export * from "./longTermRetentionBackups"; export * from "./backupLongTermRetentionPolicies"; +export * from "./managedBackupShortTermRetentionPolicies"; export * from "./managedDatabases"; export * from "./serverAutomaticTuningOperations"; export * from "./serverDnsAliases"; diff --git a/packages/@azure/arm-sql/lib/operations/managedBackupShortTermRetentionPolicies.ts b/packages/@azure/arm-sql/lib/operations/managedBackupShortTermRetentionPolicies.ts new file mode 100644 index 000000000000..e4516b607382 --- /dev/null +++ b/packages/@azure/arm-sql/lib/operations/managedBackupShortTermRetentionPolicies.ts @@ -0,0 +1,357 @@ +/* + * 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. + */ + +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/managedBackupShortTermRetentionPoliciesMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ManagedBackupShortTermRetentionPolicies. */ +export class ManagedBackupShortTermRetentionPolicies { + private readonly client: SqlManagementClientContext; + + /** + * Create a ManagedBackupShortTermRetentionPolicies. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a managed database's short term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Updates a managed database's short term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters The short term retention policy info. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedBackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,managedInstanceName,databaseName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates a managed database's short term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters The short term retention policy info. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedBackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,managedInstanceName,databaseName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets a managed database's short term retention policy list. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Updates a managed database's short term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters The short term retention policy info. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedBackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Updates a managed database's short term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters The short term retention policy info. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedBackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + parameters, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Gets a managed database's short term retention policy list. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.policyName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicy + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.policyName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ManagedBackupShortTermRetentionPolicy, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicy + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.policyName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ManagedBackupShortTermRetentionPolicy, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicy + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts b/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts index e3f16e6df7c5..e750987e8fc4 100644 --- a/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts +++ b/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts @@ -146,6 +146,73 @@ export class ManagedDatabaseVulnerabilityAssessments { deleteMethodOperationSpec, callback); } + + /** + * Lists the vulnerability assessments of a managed database. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database for which the vulnerability assessment is defined. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database for which the vulnerability assessment is defined. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database for which the vulnerability assessment is defined. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Lists the vulnerability assessments of a managed database. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -238,3 +305,50 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-sql/lib/sqlManagementClient.ts b/packages/@azure/arm-sql/lib/sqlManagementClient.ts index fd97feb168df..5f651fe4ecb3 100644 --- a/packages/@azure/arm-sql/lib/sqlManagementClient.ts +++ b/packages/@azure/arm-sql/lib/sqlManagementClient.ts @@ -68,6 +68,7 @@ class SqlManagementClient extends SqlManagementClientContext { jobVersions: operations.JobVersions; longTermRetentionBackups: operations.LongTermRetentionBackups; backupLongTermRetentionPolicies: operations.BackupLongTermRetentionPolicies; + managedBackupShortTermRetentionPolicies: operations.ManagedBackupShortTermRetentionPolicies; managedDatabases: operations.ManagedDatabases; serverAutomaticTuning: operations.ServerAutomaticTuningOperations; serverDnsAliases: operations.ServerDnsAliases; @@ -146,6 +147,7 @@ class SqlManagementClient extends SqlManagementClientContext { this.jobVersions = new operations.JobVersions(this); this.longTermRetentionBackups = new operations.LongTermRetentionBackups(this); this.backupLongTermRetentionPolicies = new operations.BackupLongTermRetentionPolicies(this); + this.managedBackupShortTermRetentionPolicies = new operations.ManagedBackupShortTermRetentionPolicies(this); this.managedDatabases = new operations.ManagedDatabases(this); this.serverAutomaticTuning = new operations.ServerAutomaticTuningOperations(this); this.serverDnsAliases = new operations.ServerDnsAliases(this); diff --git a/packages/@azure/arm-sql/package.json b/packages/@azure/arm-sql/package.json index e20fd1e22d9d..ca3ab478af7c 100644 --- a/packages/@azure/arm-sql/package.json +++ b/packages/@azure/arm-sql/package.json @@ -4,8 +4,8 @@ "description": "SqlManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0-preview", "dependencies": { - "ms-rest-azure-js": "^1.0.172", - "ms-rest-js": "^1.0.443", + "ms-rest-azure-js": "^1.0.166", + "ms-rest-js": "^1.0.439", "tslib": "^1.9.3" }, "keywords": [ @@ -25,7 +25,7 @@ "rollup-plugin-node-resolve": "^3.4.0", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js", + "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/arm-sql", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git"