From adc61afd997c9bc5594e126b68b2a32b38e09682 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 24 Oct 2018 09:36:10 -0700 Subject: [PATCH 1/6] Generated from 9350812b803a8652d44b6ed4e9d752c01b6be70e (#296) fixed spelling mistake --- packages/@azure/arm-sql/.npmignore | 70 +- packages/@azure/arm-sql/LICENSE.txt | 42 +- packages/@azure/arm-sql/README.md | 166 +- .../arm-sql/lib/models/databasesMappers.ts | 1 - packages/@azure/arm-sql/lib/models/index.ts | 3986 +---------- packages/@azure/arm-sql/lib/models/mappers.ts | 6271 ++++------------- packages/@azure/arm-sql/package.json | 6 +- 7 files changed, 1713 insertions(+), 8829 deletions(-) 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/databasesMappers.ts b/packages/@azure/arm-sql/lib/models/databasesMappers.ts index f8ccfa291f6c..216a5e2dd05d 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, diff --git a/packages/@azure/arm-sql/lib/models/index.ts b/packages/@azure/arm-sql/lib/models/index.ts index de28484b25fa..540a9d64f83b 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. @@ -3825,39 +2467,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 +2512,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 +2601,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 +2670,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 +2720,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 { - /** - * @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; +export interface SyncDatabaseIdProperties { /** - * @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 +2950,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 +3003,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 +3066,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 +3100,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 +3130,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. @@ -4953,12 +3253,12 @@ export interface ExtendedDatabaseBlobAuditingPolicyProperties { /** * @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. @@ -5076,16 +3376,12 @@ export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { /** * @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 @@ -5198,17 +3494,18 @@ export interface ExtendedServerBlobAuditingPolicyProperties { /** * @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 @@ -5321,516 +3618,26 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { /** * @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 { +export interface DatabaseVulnerabilityAssessmentRuleBaselineItem { /** - * @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[]} result The rule baseline result */ - 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 ServerBlobAuditingPolicy. - * A server blob auditing policy. - * - * @extends ProxyResource - */ -export interface ServerBlobAuditingPolicy 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' - */ - 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 DatabaseBlobAuditingPolicyProperties. - * Properties of a database blob auditing policy. - * - */ -export interface DatabaseBlobAuditingPolicyProperties { - /** - * @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 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 { + result: string[]; +} + +/** + * @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 @@ -5862,39 +3669,6 @@ export interface VulnerabilityAssessmentRecurringScansProperties { 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. @@ -5929,27 +3703,6 @@ export interface DatabaseVulnerabilityAssessment extends ProxyResource { 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. @@ -5989,23 +3742,6 @@ export interface JobAgentUpdate { 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. @@ -6054,100 +3790,6 @@ export interface JobExecutionTarget { 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. @@ -6276,30 +3918,6 @@ export interface JobSchedule { 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. @@ -6428,45 +4046,6 @@ export interface JobStepExecutionOptions { 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. @@ -6547,20 +4126,7 @@ export interface JobTarget { * 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[]; + refreshCredential?: string; } /** @@ -6587,54 +4153,6 @@ export interface JobTargetGroup 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. @@ -6684,35 +4202,6 @@ export interface LongTermRetentionBackup extends ProxyResource { 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. - */ - yearlyRetention?: string; - /** - * @member {number} [weekOfYear] The week of year to take the yearly backup - * in an ISO 8601 format. - */ - weekOfYear?: number; -} - /** * @interface * An interface representing BackupLongTermRetentionPolicy. @@ -6727,8 +4216,8 @@ export interface BackupLongTermRetentionPolicy extends ProxyResource { */ weeklyRetention?: string; /** - * @member {string} [monthlyRetention] The montly retention policy for an LTR - * backup in an ISO 8601 format. + * @member {string} [monthlyRetention] The monthly retention policy for an + * LTR backup in an ISO 8601 format. */ monthlyRetention?: string; /** @@ -6757,94 +4246,6 @@ export interface CompleteDatabaseRestoreDefinition { lastBackupName: string; } -/** - * @interface - * An interface representing ManagedDatabaseProperties. - * The managed database's properties. - * - */ -export interface ManagedDatabaseProperties { - /** - * @member {string} [collation] Collation of the managed database. - */ - collation?: string; - /** - * @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 status?: ManagedDatabaseStatus; - /** - * @member {Date} [creationDate] Creation date of the database. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly creationDate?: Date; - /** - * @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 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; - /** - * @member {string} [defaultSecondaryLocation] Geo paired region. - * **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; - /** - * @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. - */ - storageContainerUri?: string; - /** - * @member {string} [sourceDatabaseId] The resource identifier of the source - * database associated with create operation of this database. - */ - 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 ManagedDatabase. @@ -7062,32 +4463,6 @@ export interface AutomaticTuningServerOptions { readonly reasonDesc?: AutomaticTuningServerReason; } -/** - * @interface - * An interface representing AutomaticTuningServerProperties. - * Server-level Automatic Tuning properties. - * - */ -export interface AutomaticTuningServerProperties { - /** - * @member {AutomaticTuningServerMode} [desiredState] Automatic tuning - * desired state. Possible values include: 'Custom', 'Auto', 'Unspecified' - */ - desiredState?: AutomaticTuningServerMode; - /** - * @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 actualState?: AutomaticTuningServerMode; - /** - * @member {{ [propertyName: string]: AutomaticTuningServerOptions }} - * [options] Automatic tuning options definition. - */ - options?: { [propertyName: string]: AutomaticTuningServerOptions }; -} - /** * @interface * An interface representing ServerAutomaticTuning. @@ -7113,98 +4488,36 @@ export interface ServerAutomaticTuning extends ProxyResource { * [options] Automatic tuning options definition. */ options?: { [propertyName: string]: AutomaticTuningServerOptions }; -} - -/** - * @interface - * An interface representing ServerDnsAliasProperties. - * Properties of a server DNS alias. - * - */ -export interface ServerDnsAliasProperties { - /** - * @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 azureDnsRecord?: string; -} - -/** - * @interface - * An interface representing ServerDnsAlias. - * A server DNS alias. - * - * @extends ProxyResource - */ -export interface ServerDnsAlias 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.** - */ - readonly azureDnsRecord?: string; -} - -/** - * @interface - * An interface representing ServerDnsAliasAcquisition. - * A server DNS alias acquisition request. - * - */ -export interface ServerDnsAliasAcquisition { - /** - * @member {string} [oldServerDnsAliasId] The id of the server alias that - * will be acquired to point to this server instead. - */ - oldServerDnsAliasId?: string; -} - -/** - * @interface - * An interface representing SecurityAlertPolicyProperties. - * Properties of a security alert policy. - * - */ -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; - /** - * @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 - */ - disabledAlerts?: string[]; - /** - * @member {string[]} [emailAddresses] Specifies an array of e-mail addresses - * to which the alert is sent. - */ - emailAddresses?: string[]; - /** - * @member {boolean} [emailAccountAdmins] Specifies that the alert is sent to - * the account administrators. - */ - emailAccountAdmins?: boolean; - /** - * @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; +} + +/** + * @interface + * An interface representing ServerDnsAlias. + * A server DNS alias. + * + * @extends ProxyResource + */ +export interface ServerDnsAlias extends ProxyResource { /** - * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the Threat Detection audit storage account. + * @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.** */ - storageAccountAccessKey?: string; + readonly azureDnsRecord?: string; +} + +/** + * @interface + * An interface representing ServerDnsAliasAcquisition. + * A server DNS alias acquisition request. + * + */ +export interface ServerDnsAliasAcquisition { /** - * @member {number} [retentionDays] Specifies the number of days to keep in - * the Threat Detection audit logs. + * @member {string} [oldServerDnsAliasId] The id of the server alias that + * will be acquired to point to this server instead. */ - retentionDays?: number; + oldServerDnsAliasId?: string; } /** @@ -7255,42 +4568,6 @@ export interface ServerSecurityAlertPolicy extends ProxyResource { retentionDays?: number; } -/** - * @interface - * An interface representing RestorePointProperties. - * Properties of a database restore point - * - */ -export interface RestorePointProperties { - /** - * @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 restorePointType?: RestorePointType; - /** - * @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 earliestRestoreDate?: Date; - /** - * @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 restorePointCreationDate?: Date; - /** - * @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 restorePointLabel?: string; -} - /** * @interface * An interface representing RestorePoint. @@ -7348,104 +4625,6 @@ export interface CreateDatabaseRestorePointDefinition { restorePointLabel: string; } -/** - * @interface - * An interface representing DatabaseOperationProperties. - * The properties of a database operation. - * - */ -export interface DatabaseOperationProperties { - /** - * @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 databaseName?: string; - /** - * @member {string} [operation] The name of operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly operation?: string; - /** - * @member {string} [operationFriendlyName] The friendly name of operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly operationFriendlyName?: string; - /** - * @member {number} [percentComplete] The percentage of the operation - * completed. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly percentComplete?: number; - /** - * @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; - /** - * @member {Date} [startTime] The operation start time. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly startTime?: Date; - /** - * @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?: ManagementOperationState; - /** - * @member {number} [errorCode] The operation error code. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly errorCode?: number; - /** - * @member {string} [errorDescription] The operation error description. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly errorDescription?: string; - /** - * @member {number} [errorSeverity] The operation error severity. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly errorSeverity?: number; - /** - * @member {boolean} [isUserError] Whether or not the error is a user error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly isUserError?: boolean; - /** - * @member {Date} [estimatedCompletionTime] The estimated completion time of - * the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly estimatedCompletionTime?: Date; - /** - * @member {string} [description] The operation description. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly description?: string; - /** - * @member {boolean} [isCancellable] Whether the operation can be cancelled. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly isCancellable?: boolean; -} - /** * @interface * An interface representing DatabaseOperation. @@ -7493,109 +4672,13 @@ export interface DatabaseOperation extends ProxyResource { */ readonly startTime?: Date; /** - * @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?: ManagementOperationState; - /** - * @member {number} [errorCode] The operation error code. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly errorCode?: number; - /** - * @member {string} [errorDescription] The operation error description. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly errorDescription?: string; - /** - * @member {number} [errorSeverity] The operation error severity. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly errorSeverity?: number; - /** - * @member {boolean} [isUserError] Whether or not the error is a user error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly isUserError?: boolean; - /** - * @member {Date} [estimatedCompletionTime] The estimated completion time of - * the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly estimatedCompletionTime?: Date; - /** - * @member {string} [description] The operation description. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly description?: string; - /** - * @member {boolean} [isCancellable] Whether the operation can be cancelled. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly isCancellable?: boolean; -} - -/** - * @interface - * An interface representing ElasticPoolOperationProperties. - * The properties of a elastic pool operation. - * - */ -export interface ElasticPoolOperationProperties { - /** - * @member {string} [elasticPoolName] The name of the elastic pool the - * operation is being performed on. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly elasticPoolName?: string; - /** - * @member {string} [operation] The name of operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly operation?: string; - /** - * @member {string} [operationFriendlyName] The friendly name of operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly operationFriendlyName?: string; - /** - * @member {number} [percentComplete] The percentage of the operation - * completed. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly percentComplete?: number; - /** - * @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; - /** - * @member {Date} [startTime] The operation start time. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - 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 @@ -8427,207 +5510,6 @@ export interface LocationCapabilities { 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' - */ - readScale?: DatabaseReadScale; - /** - * @member {Sku} [currentSku] The name and tier of the SKU. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly currentSku?: Sku; -} - /** * @interface * An interface representing Database. @@ -9058,79 +5940,34 @@ export interface DatabaseUpdate { /** * @interface - * An interface representing ResourceMoveDefinition. - * Contains the information necessary to perform a resource move (rename). - * - */ -export interface ResourceMoveDefinition { - /** - * @member {string} id The target ID for the resource - */ - id: string; -} - -/** - * @interface - * An interface representing ElasticPoolPerDatabaseSettings. - * Per database settings of an elastic pool. - * - */ -export interface ElasticPoolPerDatabaseSettings { - /** - * @member {number} [minCapacity] The minimum capacity all databases are - * guaranteed. - */ - minCapacity?: number; - /** - * @member {number} [maxCapacity] The maximum capacity any one database can - * consume. - */ - 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; + * An interface representing ResourceMoveDefinition. + * Contains the information necessary to perform a resource move (rename). + * + */ +export interface ResourceMoveDefinition { /** - * @member {ElasticPoolPerDatabaseSettings} [perDatabaseSettings] The per - * database settings for the elastic pool. + * @member {string} id The target ID for the resource */ - perDatabaseSettings?: ElasticPoolPerDatabaseSettings; + id: string; +} + +/** + * @interface + * An interface representing ElasticPoolPerDatabaseSettings. + * Per database settings of an elastic pool. + * + */ +export interface 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. + * @member {number} [minCapacity] The minimum capacity all databases are + * guaranteed. */ - zoneRedundant?: boolean; + minCapacity?: number; /** - * @member {ElasticPoolLicenseType} [licenseType] The license type to apply - * for this elastic pool. Possible values include: 'LicenseIncluded', - * 'BasePrice' + * @member {number} [maxCapacity] The maximum capacity any one database can + * consume. */ - licenseType?: ElasticPoolLicenseType; + maxCapacity?: number; } /** @@ -9190,37 +6027,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 +6087,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 +6149,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 +6245,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 +6290,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 +6305,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. @@ -9670,38 +6323,6 @@ export interface TdeCertificate extends ProxyResource { 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.** - */ - readonly creationDate?: Date; -} - /** * @interface * An interface representing ManagedInstanceKey. @@ -9742,37 +6363,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. diff --git a/packages/@azure/arm-sql/lib/models/mappers.ts b/packages/@azure/arm-sql/lib/models/mappers.ts index cf9d48c86268..1209800c98d2 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", - type: { - name: "String" - } - }, - licenseType: { - serializedName: "licenseType", + serializedName: "location", 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", - type: { - name: "String" - } - } - } - } -}; - -export const ServerUpdate: msRest.CompositeMapper = { - serializedName: "ServerUpdate", - type: { - name: "Composite", - className: "ServerUpdate", - modelProperties: { - administratorLogin: { - serializedName: "properties.administratorLogin", + serializedName: "properties.replicationState", type: { name: "String" } }, - administratorLoginPassword: { - serializedName: "properties.administratorLoginPassword", + partnerServers: { + required: true, + serializedName: "properties.partnerServers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PartnerInfo" + } + } } }, - version: { - serializedName: "properties.version", + databases: { + serializedName: "properties.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: "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,184 +2642,164 @@ 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: { + principalId: { readOnly: true, - serializedName: "name", + serializedName: "principalId", type: { - name: "String" + name: "Uuid" } }, - syncDatabaseId: { - serializedName: "syncDatabaseId", + type: { + serializedName: "type", type: { name: "String" } }, - lastAliveTime: { + tenantId: { readOnly: true, - serializedName: "lastAliveTime", + serializedName: "tenantId", type: { - name: "DateTime" + name: "Uuid" } - }, - state: { - readOnly: true, - serializedName: "state", + } + } + } +}; + +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", + type: { + name: "Composite", + className: "Sku", + modelProperties: { + name: { + required: true, + serializedName: "name", type: { name: "String" } }, - isUpToDate: { - readOnly: true, - serializedName: "isUpToDate", + tier: { + serializedName: "tier", type: { - name: "Boolean" + name: "String" } }, - expiryTime: { - readOnly: true, - serializedName: "expiryTime", + size: { + serializedName: "size", type: { - name: "DateTime" + name: "String" } }, - version: { - readOnly: true, - serializedName: "version", + family: { + serializedName: "family", type: { name: "String" } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } } } } }; -export const SyncAgent: msRest.CompositeMapper = { - serializedName: "SyncAgent", +export const ManagedInstance: msRest.CompositeMapper = { + serializedName: "ManagedInstance", type: { name: "Composite", - className: "SyncAgent", + className: "ManagedInstance", modelProperties: { - ...ProxyResource.type.modelProperties, - syncAgentName: { - readOnly: true, - serializedName: "properties.name", - type: { - name: "String" - } - }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "ResourceIdentity" } }, - lastAliveTime: { - readOnly: true, - serializedName: "properties.lastAliveTime", + sku: { + serializedName: "sku", type: { - name: "DateTime" + name: "Composite", + className: "Sku" } }, - state: { + fullyQualifiedDomainName: { readOnly: true, - serializedName: "properties.state", + serializedName: "properties.fullyQualifiedDomainName", type: { name: "String" } }, - isUpToDate: { - readOnly: true, - serializedName: "properties.isUpToDate", + administratorLogin: { + serializedName: "properties.administratorLogin", type: { - name: "Boolean" + name: "String" } }, - expiryTime: { - readOnly: true, - serializedName: "properties.expiryTime", + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", type: { - name: "DateTime" + name: "String" } }, - version: { - readOnly: true, - serializedName: "properties.version", + subnetId: { + serializedName: "properties.subnetId", type: { name: "String" } - } - } - } -}; - -export const SyncAgentKeyProperties: msRest.CompositeMapper = { - serializedName: "SyncAgentKeyProperties", - type: { - name: "Composite", - className: "SyncAgentKeyProperties", - modelProperties: { - syncAgentKey: { + }, + state: { readOnly: true, - serializedName: "syncAgentKey", + serializedName: "properties.state", type: { name: "String" } - } - } - } -}; - -export const SyncAgentLinkedDatabaseProperties: msRest.CompositeMapper = { - serializedName: "SyncAgentLinkedDatabaseProperties", - type: { - name: "Composite", - className: "SyncAgentLinkedDatabaseProperties", - modelProperties: { - databaseType: { - readOnly: true, - serializedName: "databaseType", + }, + licenseType: { + serializedName: "properties.licenseType", type: { name: "String" } }, - databaseId: { - readOnly: true, - serializedName: "databaseId", + vCores: { + serializedName: "properties.vCores", type: { - name: "String" + name: "Number" } }, - description: { - readOnly: true, - serializedName: "description", + storageSizeInGB: { + serializedName: "properties.storageSizeInGB", type: { - name: "String" + name: "Number" } }, - serverName: { + collation: { readOnly: true, - serializedName: "serverName", + serializedName: "properties.collation", type: { name: "String" } }, - databaseName: { + dnsZone: { readOnly: true, - serializedName: "databaseName", + serializedName: "properties.dnsZone", type: { name: "String" } }, - userName: { - readOnly: true, - serializedName: "userName", + dnsZonePartner: { + serializedName: "properties.dnsZonePartner", type: { name: "String" } @@ -5078,178 +2808,134 @@ export const SyncAgentLinkedDatabaseProperties: msRest.CompositeMapper = { } }; -export const SyncAgentLinkedDatabase: msRest.CompositeMapper = { - serializedName: "SyncAgentLinkedDatabase", +export const ManagedInstanceUpdate: msRest.CompositeMapper = { + serializedName: "ManagedInstanceUpdate", type: { name: "Composite", - className: "SyncAgentLinkedDatabase", + className: "ManagedInstanceUpdate", modelProperties: { - ...ProxyResource.type.modelProperties, - databaseType: { - readOnly: true, - serializedName: "properties.databaseType", - type: { - name: "String" - } - }, - databaseId: { - readOnly: true, - serializedName: "properties.databaseId", + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - description: { + fullyQualifiedDomainName: { readOnly: true, - serializedName: "properties.description", + serializedName: "properties.fullyQualifiedDomainName", type: { name: "String" } }, - serverName: { - readOnly: true, - serializedName: "properties.serverName", + administratorLogin: { + serializedName: "properties.administratorLogin", type: { name: "String" } }, - databaseName: { - readOnly: true, - serializedName: "properties.databaseName", + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", type: { name: "String" } }, - userName: { - readOnly: true, - serializedName: "properties.userName", - type: { - name: "String" - } - } - } - } -}; - -export const SyncDatabaseIdProperties: msRest.CompositeMapper = { - serializedName: "SyncDatabaseIdProperties", - type: { - name: "Composite", - className: "SyncDatabaseIdProperties", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", + subnetId: { + serializedName: "properties.subnetId", type: { name: "String" } - } - } - } -}; - -export const SyncFullSchemaTableColumn: msRest.CompositeMapper = { - serializedName: "SyncFullSchemaTableColumn", - type: { - name: "Composite", - className: "SyncFullSchemaTableColumn", - modelProperties: { - dataSize: { + }, + state: { readOnly: true, - serializedName: "dataSize", + serializedName: "properties.state", type: { name: "String" } }, - dataType: { - readOnly: true, - serializedName: "dataType", + licenseType: { + serializedName: "properties.licenseType", type: { name: "String" } }, - errorId: { - readOnly: true, - serializedName: "errorId", + vCores: { + serializedName: "properties.vCores", type: { - name: "String" + name: "Number" } }, - hasError: { - readOnly: true, - serializedName: "hasError", + storageSizeInGB: { + serializedName: "properties.storageSizeInGB", type: { - name: "Boolean" + name: "Number" } }, - isPrimaryKey: { + collation: { readOnly: true, - serializedName: "isPrimaryKey", + serializedName: "properties.collation", type: { - name: "Boolean" + name: "String" } }, - name: { + dnsZone: { readOnly: true, - serializedName: "name", + serializedName: "properties.dnsZone", type: { name: "String" } }, - quotedName: { - readOnly: true, - serializedName: "quotedName", + 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 +2944,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", + }, + state: { + readOnly: true, + serializedName: "properties.state", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncGroupSchemaTable" - } - } + name: "String" } }, - masterSyncMemberName: { - serializedName: "masterSyncMemberName", + fullyQualifiedDomainName: { + readOnly: true, + serializedName: "properties.fullyQualifiedDomainName", type: { name: "String" } @@ -5424,186 +3101,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 +3300,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: "Boolean" + } + }, + isPrimaryKey: { + readOnly: true, + serializedName: "isPrimaryKey", + type: { + name: "Boolean" + } + }, + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - databaseName: { - serializedName: "properties.databaseName", + 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" + } + } + } }, - userName: { - serializedName: "properties.userName", + errorId: { + readOnly: true, + serializedName: "errorId", type: { name: "String" } }, - password: { - serializedName: "properties.password", + hasError: { + readOnly: true, + serializedName: "hasError", type: { - name: "String" + name: "Boolean" } }, - syncDirection: { - serializedName: "properties.syncDirection", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - syncState: { + quotedName: { readOnly: true, - serializedName: "properties.syncState", + serializedName: "quotedName", type: { name: "String" } @@ -5678,75 +3410,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 +3492,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 +3520,26 @@ 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", - type: { - name: "String" - } - }, - ignoreMissingVnetServiceEndpoint: { - serializedName: "properties.ignoreMissingVnetServiceEndpoint", + columns: { + serializedName: "columns", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncGroupSchemaTableColumn" + } + } } }, - state: { - readOnly: true, - serializedName: "properties.state", + quotedName: { + serializedName: "quotedName", type: { name: "String" } @@ -5816,289 +3548,248 @@ export const VirtualNetworkRule: msRest.CompositeMapper = { } }; -export const ExtendedDatabaseBlobAuditingPolicyProperties: msRest.CompositeMapper = { - serializedName: "ExtendedDatabaseBlobAuditingPolicyProperties", +export const SyncGroupSchema: msRest.CompositeMapper = { + serializedName: "SyncGroupSchema", type: { name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicyProperties", + className: "SyncGroupSchema", modelProperties: { - predicateExpression: { - serializedName: "predicateExpression", - type: { - name: "String" - } - }, - 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", + tables: { + serializedName: "tables", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "SyncGroupSchemaTable" } } } }, - storageAccountSubscriptionId: { - serializedName: "storageAccountSubscriptionId", - type: { - name: "Uuid" - } - }, - isStorageSecondaryKeyInUse: { - serializedName: "isStorageSecondaryKeyInUse", + masterSyncMemberName: { + serializedName: "masterSyncMemberName", type: { - name: "Boolean" + name: "String" } } } } }; -export const ExtendedDatabaseBlobAuditingPolicy: msRest.CompositeMapper = { - serializedName: "ExtendedDatabaseBlobAuditingPolicy", +export const SyncGroup: msRest.CompositeMapper = { + serializedName: "SyncGroup", type: { name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicy", + className: "SyncGroup", modelProperties: { ...ProxyResource.type.modelProperties, - predicateExpression: { - serializedName: "properties.predicateExpression", + interval: { + serializedName: "properties.interval", type: { - name: "String" + name: "Number" } }, - state: { - required: true, - serializedName: "properties.state", + lastSyncTime: { + readOnly: true, + serializedName: "properties.lastSyncTime", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] + name: "DateTime" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + conflictResolutionPolicy: { + serializedName: "properties.conflictResolutionPolicy", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + hubDatabaseUserName: { + serializedName: "properties.hubDatabaseUserName", type: { - name: "Number" + name: "String" } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + hubDatabasePassword: { + serializedName: "properties.hubDatabasePassword", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + syncState: { + readOnly: true, + serializedName: "properties.syncState", type: { - name: "Uuid" + name: "String" } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + schema: { + serializedName: "properties.schema", type: { - name: "Boolean" + name: "Composite", + className: "SyncGroupSchema" } } } } }; -export const ExtendedServerBlobAuditingPolicyProperties: msRest.CompositeMapper = { - serializedName: "ExtendedServerBlobAuditingPolicyProperties", +export const SyncMember: msRest.CompositeMapper = { + serializedName: "SyncMember", type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicyProperties", + className: "SyncMember", modelProperties: { - predicateExpression: { - serializedName: "predicateExpression", + ...ProxyResource.type.modelProperties, + databaseType: { + serializedName: "properties.databaseType", + type: { + name: "String" + } + }, + syncAgentId: { + serializedName: "properties.syncAgentId", type: { name: "String" } }, - state: { - required: true, - serializedName: "state", + sqlServerDatabaseId: { + serializedName: "properties.sqlServerDatabaseId", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] + name: "Uuid" } }, - storageEndpoint: { - serializedName: "storageEndpoint", + serverName: { + serializedName: "properties.serverName", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "storageAccountAccessKey", + databaseName: { + serializedName: "properties.databaseName", type: { name: "String" } }, - retentionDays: { - serializedName: "retentionDays", + userName: { + serializedName: "properties.userName", type: { - name: "Number" + name: "String" } }, - auditActionsAndGroups: { - serializedName: "auditActionsAndGroups", + password: { + serializedName: "properties.password", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "storageAccountSubscriptionId", + syncDirection: { + serializedName: "properties.syncDirection", type: { - name: "Uuid" + name: "String" } }, - isStorageSecondaryKeyInUse: { - serializedName: "isStorageSecondaryKeyInUse", + syncState: { + readOnly: true, + serializedName: "properties.syncState", type: { - name: "Boolean" + name: "String" } } } } }; -export const ExtendedServerBlobAuditingPolicy: msRest.CompositeMapper = { - serializedName: "ExtendedServerBlobAuditingPolicy", +export const SubscriptionUsage: msRest.CompositeMapper = { + serializedName: "SubscriptionUsage", type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicy", + className: "SubscriptionUsage", modelProperties: { ...ProxyResource.type.modelProperties, - predicateExpression: { - serializedName: "properties.predicateExpression", + displayName: { + readOnly: true, + serializedName: "properties.displayName", type: { name: "String" } }, - state: { - required: true, - serializedName: "properties.state", + currentValue: { + readOnly: true, + serializedName: "properties.currentValue", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] + name: "Number" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + limit: { + readOnly: true, + serializedName: "properties.limit", type: { - name: "String" + name: "Number" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + unit: { + readOnly: true, + serializedName: "properties.unit", type: { name: "String" } - }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - auditActionsAndGroups: { - serializedName: "properties.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: "properties.storageAccountSubscriptionId", + ignoreMissingVnetServiceEndpoint: { + serializedName: "properties.ignoreMissingVnetServiceEndpoint", type: { - name: "Uuid" + name: "Boolean" } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + state: { + readOnly: true, + serializedName: "properties.state", type: { - name: "Boolean" + name: "String" } } } } }; -export const ServerBlobAuditingPolicyProperties: msRest.CompositeMapper = { - serializedName: "ServerBlobAuditingPolicyProperties", +export const ExtendedDatabaseBlobAuditingPolicy: msRest.CompositeMapper = { + serializedName: "ExtendedDatabaseBlobAuditingPolicy", type: { name: "Composite", - className: "ServerBlobAuditingPolicyProperties", + className: "ExtendedDatabaseBlobAuditingPolicy", 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 +3799,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 +3828,13 @@ export const ServerBlobAuditingPolicyProperties: msRest.CompositeMapper = { } }, storageAccountSubscriptionId: { - serializedName: "storageAccountSubscriptionId", + serializedName: "properties.storageAccountSubscriptionId", type: { name: "Uuid" } }, isStorageSecondaryKeyInUse: { - serializedName: "isStorageSecondaryKeyInUse", + serializedName: "properties.isStorageSecondaryKeyInUse", type: { name: "Boolean" } @@ -6152,13 +3843,19 @@ export const ServerBlobAuditingPolicyProperties: msRest.CompositeMapper = { } }; -export const ServerBlobAuditingPolicy: msRest.CompositeMapper = { - serializedName: "ServerBlobAuditingPolicy", +export const ExtendedServerBlobAuditingPolicy: msRest.CompositeMapper = { + serializedName: "ExtendedServerBlobAuditingPolicy", type: { name: "Composite", - className: "ServerBlobAuditingPolicy", + className: "ExtendedServerBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, + predicateExpression: { + serializedName: "properties.predicateExpression", + type: { + name: "String" + } + }, state: { required: true, serializedName: "properties.state", @@ -6215,15 +3912,16 @@ export const ServerBlobAuditingPolicy: msRest.CompositeMapper = { } }; -export const DatabaseBlobAuditingPolicyProperties: msRest.CompositeMapper = { - serializedName: "DatabaseBlobAuditingPolicyProperties", +export const ServerBlobAuditingPolicy: msRest.CompositeMapper = { + serializedName: "ServerBlobAuditingPolicy", type: { name: "Composite", - className: "DatabaseBlobAuditingPolicyProperties", + className: "ServerBlobAuditingPolicy", modelProperties: { + ...ProxyResource.type.modelProperties, state: { required: true, - serializedName: "state", + serializedName: "properties.state", type: { name: "Enum", allowedValues: [ @@ -6233,25 +3931,25 @@ export const DatabaseBlobAuditingPolicyProperties: 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: { @@ -6262,13 +3960,13 @@ export const DatabaseBlobAuditingPolicyProperties: msRest.CompositeMapper = { } }, storageAccountSubscriptionId: { - serializedName: "storageAccountSubscriptionId", + serializedName: "properties.storageAccountSubscriptionId", type: { name: "Uuid" } }, isStorageSecondaryKeyInUse: { - serializedName: "isStorageSecondaryKeyInUse", + serializedName: "properties.isStorageSecondaryKeyInUse", type: { name: "Boolean" } @@ -6369,29 +4067,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 +4125,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: { @@ -6523,30 +4162,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: { @@ -6589,35 +4204,11 @@ export const JobAgentUpdate: msRest.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { - 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" + value: { + type: { + name: "String" + } + } } } } @@ -6680,107 +4271,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 +4420,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 +4592,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: { @@ -7283,129 +4690,54 @@ export const JobTarget: msRest.CompositeMapper = { shardMapName: { serializedName: "shardMapName", type: { - name: "String" - } - }, - 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" + name: "String" } }, - backupTime: { - readOnly: true, - serializedName: "backupTime", + refreshCredential: { + serializedName: "refreshCredential", type: { - name: "DateTime" + name: "String" } - }, - backupExpirationTime: { - readOnly: true, - serializedName: "backupExpirationTime", + } + } + } +}; + +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 +4791,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: { @@ -7545,93 +4843,6 @@ export const CompleteDatabaseRestoreDefinition: msRest.CompositeMapper = { } }; -export const ManagedDatabaseProperties: msRest.CompositeMapper = { - serializedName: "ManagedDatabaseProperties", - type: { - name: "Composite", - className: "ManagedDatabaseProperties", - 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", - type: { - name: "String" - } - } - } - } -}; - export const ManagedDatabase: msRest.CompositeMapper = { serializedName: "ManagedDatabase", type: { @@ -7869,51 +5080,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 +5126,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: { @@ -8004,75 +5153,7 @@ export const ServerDnsAliasAcquisition: msRest.CompositeMapper = { 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", - type: { - name: "String" - } - }, - retentionDays: { - serializedName: "retentionDays", - type: { - name: "Number" + name: "String" } } } @@ -8148,48 +5229,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: { @@ -8210,370 +5249,154 @@ export const RestorePoint: msRest.CompositeMapper = { type: { name: "Enum", allowedValues: [ - "CONTINUOUS", - "DISCRETE" - ] - } - }, - earliestRestoreDate: { - readOnly: true, - serializedName: "properties.earliestRestoreDate", - type: { - name: "DateTime" - } - }, - restorePointCreationDate: { - readOnly: true, - serializedName: "properties.restorePointCreationDate", - type: { - name: "DateTime" - } - }, - restorePointLabel: { - readOnly: true, - serializedName: "properties.restorePointLabel", - type: { - name: "String" - } - } - } - } -}; - -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" + "CONTINUOUS", + "DISCRETE" + ] } }, - isUserError: { + earliestRestoreDate: { readOnly: true, - serializedName: "properties.isUserError", + serializedName: "properties.earliestRestoreDate", type: { - name: "Boolean" + name: "DateTime" } }, - estimatedCompletionTime: { + restorePointCreationDate: { readOnly: true, - serializedName: "properties.estimatedCompletionTime", + serializedName: "properties.restorePointCreationDate", type: { name: "DateTime" } }, - description: { + restorePointLabel: { readOnly: true, - serializedName: "properties.description", + serializedName: "properties.restorePointLabel", type: { name: "String" } - }, - isCancellable: { - readOnly: true, - serializedName: "properties.isCancellable", + } + } + } +}; + +export const CreateDatabaseRestorePointDefinition: msRest.CompositeMapper = { + serializedName: "CreateDatabaseRestorePointDefinition", + type: { + name: "Composite", + className: "CreateDatabaseRestorePointDefinition", + modelProperties: { + restorePointLabel: { + required: true, + serializedName: "restorePointLabel", type: { - name: "Boolean" + name: "String" } } } } }; -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" } @@ -9631,183 +6454,6 @@ export const LocationCapabilities: msRest.CompositeMapper = { } }; -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", - type: { - name: "String" - } - }, - recoverableDatabaseId: { - serializedName: "recoverableDatabaseId", - type: { - name: "String" - } - }, - restorableDroppedDatabaseId: { - serializedName: "restorableDroppedDatabaseId", - type: { - name: "String" - } - }, - catalogCollation: { - serializedName: "catalogCollation", - type: { - name: "String" - } - }, - zoneRedundant: { - serializedName: "zoneRedundant", - type: { - name: "Boolean" - } - }, - licenseType: { - serializedName: "licenseType", - type: { - name: "String" - } - }, - maxLogSizeBytes: { - readOnly: true, - serializedName: "maxLogSizeBytes", - type: { - name: "Number" - } - }, - earliestRestoreDate: { - readOnly: true, - serializedName: "earliestRestoreDate", - type: { - name: "DateTime" - } - }, - readScale: { - serializedName: "readScale", - type: { - name: "String" - } - }, - currentSku: { - readOnly: true, - serializedName: "currentSku", - type: { - name: "Composite", - className: "Sku" - } - } - } - } -}; - export const Database: msRest.CompositeMapper = { serializedName: "Database", type: { @@ -10232,58 +6878,9 @@ export const ElasticPoolPerDatabaseSettings: msRest.CompositeMapper = { } }, maxCapacity: { - serializedName: "maxCapacity", - type: { - name: "Number" - } - } - } - } -}; - -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", + serializedName: "maxCapacity", type: { - name: "String" + name: "Number" } } } @@ -10354,41 +6951,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: { @@ -10466,78 +7028,6 @@ export const VulnerabilityAssessmentScanError: msRest.CompositeMapper = { } }; -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", - type: { - name: "DateTime" - } - }, - endTime: { - readOnly: true, - serializedName: "endTime", - type: { - name: "DateTime" - } - }, - errors: { - readOnly: true, - serializedName: "errors", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanError" - } - } - } - }, - storageContainerPath: { - readOnly: true, - serializedName: "storageContainerPath", - type: { - name: "String" - } - }, - numberOfFailedSecurityChecks: { - readOnly: true, - serializedName: "numberOfFailedSecurityChecks", - type: { - name: "Number" - } - } - } - } -}; - export const VulnerabilityAssessmentScanRecord: msRest.CompositeMapper = { serializedName: "VulnerabilityAssessmentScanRecord", type: { @@ -10611,23 +7101,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 +7203,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 +7269,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 +7286,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 +7310,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 +7355,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: { 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" From 40a83fee8ebad6490cf7b4218a2b3138da5afd21 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Fri, 26 Oct 2018 16:55:29 +0000 Subject: [PATCH 2/6] Regenerated "@azure/arm-sql" SDK. --- packages/@azure/arm-sql/README.md | 2 +- packages/@azure/arm-sql/lib/models/index.ts | 4 +-- .../@azure/arm-sql/lib/models/parameters.ts | 36 +++++++++---------- packages/@azure/arm-sql/package.json | 15 +++++++- 4 files changed, 35 insertions(+), 22 deletions(-) diff --git a/packages/@azure/arm-sql/README.md b/packages/@azure/arm-sql/README.md index fb8a6107e748..fd114bf7f2b5 100644 --- a/packages/@azure/arm-sql/README.md +++ b/packages/@azure/arm-sql/README.md @@ -68,7 +68,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to console.log("The result is:"); console.log(result); }).catch((err) => { - console.log('An error occurred:'); + console.log("An error occurred:"); console.error(err); }); }); diff --git a/packages/@azure/arm-sql/lib/models/index.ts b/packages/@azure/arm-sql/lib/models/index.ts index 1b62bfe5b4fb..540a9d64f83b 100644 --- a/packages/@azure/arm-sql/lib/models/index.ts +++ b/packages/@azure/arm-sql/lib/models/index.ts @@ -4216,8 +4216,8 @@ export interface BackupLongTermRetentionPolicy extends ProxyResource { */ weeklyRetention?: string; /** - * @member {string} [monthlyRetention] The montly retention policy for an LTR - * backup in an ISO 8601 format. + * @member {string} [monthlyRetention] The monthly retention policy for an + * LTR backup in an ISO 8601 format. */ monthlyRetention?: string; /** diff --git a/packages/@azure/arm-sql/lib/models/parameters.ts b/packages/@azure/arm-sql/lib/models/parameters.ts index 089818eaf567..3f364f4f144d 100644 --- a/packages/@azure/arm-sql/lib/models/parameters.ts +++ b/packages/@azure/arm-sql/lib/models/parameters.ts @@ -184,45 +184,45 @@ export const credentialName: msRest.OperationURLParameter = { } } }; -export const databaseName: msRest.OperationURLParameter = { - parameterPath: "databaseName", +export const dataMaskingPolicyName: msRest.OperationURLParameter = { + parameterPath: "dataMaskingPolicyName", mapper: { required: true, - serializedName: "databaseName", + isConstant: true, + serializedName: "dataMaskingPolicyName", + defaultValue: 'Default', type: { name: "String" } } }; -export const databaseState: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "databaseState" - ], +export const dataMaskingRuleName: msRest.OperationURLParameter = { + parameterPath: "dataMaskingRuleName", mapper: { - serializedName: "databaseState", + required: true, + serializedName: "dataMaskingRuleName", type: { name: "String" } } }; -export const dataMaskingPolicyName: msRest.OperationURLParameter = { - parameterPath: "dataMaskingPolicyName", +export const databaseName: msRest.OperationURLParameter = { + parameterPath: "databaseName", mapper: { required: true, - isConstant: true, - serializedName: "dataMaskingPolicyName", - defaultValue: 'Default', + serializedName: "databaseName", type: { name: "String" } } }; -export const dataMaskingRuleName: msRest.OperationURLParameter = { - parameterPath: "dataMaskingRuleName", +export const databaseState: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "databaseState" + ], mapper: { - required: true, - serializedName: "dataMaskingRuleName", + serializedName: "databaseState", type: { name: "String" } diff --git a/packages/@azure/arm-sql/package.json b/packages/@azure/arm-sql/package.json index 7e83da845f8b..29af2561c37e 100644 --- a/packages/@azure/arm-sql/package.json +++ b/packages/@azure/arm-sql/package.json @@ -33,10 +33,23 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "lib/**/*.ts", + "rollup.config.js", + "tsconfig.json" + ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-sql.js.map'\" -o ./dist/arm-sql.min.js ./dist/arm-sql.js", - "prepare": "npm run build" + "prepack": "npm install && npm run build" }, "sideEffects": false } From 286d4f44b6f6aa30653c8e542b0c86288fc3d9e9 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Fri, 26 Oct 2018 17:07:55 +0000 Subject: [PATCH 3/6] Regenerated "@azure/arm-sql" SDK. From d99ff83f5ce80134ad02b7ccd58ebb276f4ba555 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 6 Nov 2018 14:39:09 -0800 Subject: [PATCH 4/6] Generated from 299395494bd8984518fec288f4e564e9b9852a13 (#412) fix blob auditing alignment --- packages/@azure/arm-sql/README.md | 166 ++++++------ ...databaseVulnerabilityAssessmentsMappers.ts | 1 + packages/@azure/arm-sql/lib/models/index.ts | 240 +++++++++++++++--- ...DatabaseVulnerabilityAssessmentsMappers.ts | 1 + packages/@azure/arm-sql/lib/models/mappers.ts | 55 +++- .../@azure/arm-sql/lib/models/parameters.ts | 36 +-- .../databaseVulnerabilityAssessments.ts | 117 +++++++++ ...managedDatabaseVulnerabilityAssessments.ts | 114 +++++++++ .../arm-sql/lib/sqlManagementClientContext.ts | 6 - 9 files changed, 599 insertions(+), 137 deletions(-) diff --git a/packages/@azure/arm-sql/README.md b/packages/@azure/arm-sql/README.md index fd114bf7f2b5..53d21b390613 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/databaseVulnerabilityAssessmentsMappers.ts b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts index 77fbde5f43b3..d3613306eb3f 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, diff --git a/packages/@azure/arm-sql/lib/models/index.ts b/packages/@azure/arm-sql/lib/models/index.ts index 540a9d64f83b..ae61a81726f8 100644 --- a/packages/@azure/arm-sql/lib/models/index.ts +++ b/packages/@azure/arm-sql/lib/models/index.ts @@ -3143,7 +3143,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; @@ -3155,13 +3155,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; /** @@ -3223,11 +3223,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: @@ -3249,6 +3249,28 @@ 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; } /** @@ -3266,7 +3288,7 @@ export interface ExtendedServerBlobAuditingPolicy 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; @@ -3278,13 +3300,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; /** @@ -3346,11 +3368,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: @@ -3372,6 +3394,28 @@ 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; } /** @@ -3384,7 +3428,7 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { 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; @@ -3396,13 +3440,13 @@ export interface ServerBlobAuditingPolicy 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; /** @@ -3464,11 +3508,11 @@ export interface ServerBlobAuditingPolicy 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: @@ -3490,6 +3534,28 @@ export interface ServerBlobAuditingPolicy 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; } /** @@ -3508,7 +3574,7 @@ export interface DatabaseBlobAuditingPolicy extends ProxyResource { 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; @@ -3520,13 +3586,13 @@ export interface DatabaseBlobAuditingPolicy 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; /** @@ -3588,11 +3654,11 @@ export interface DatabaseBlobAuditingPolicy 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: @@ -3614,6 +3680,28 @@ export interface DatabaseBlobAuditingPolicy 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; } /** @@ -3678,11 +3766,12 @@ export interface VulnerabilityAssessmentRecurringScansProperties { */ export interface DatabaseVulnerabilityAssessment extends ProxyResource { /** - * @member {string} storageContainerPath A blob storage container path to + * @member {string} [storageContainerPath] A blob storage container path to * hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). + * https://myStorage.blob.core.windows.net/VaScans/). It is required if + * server level vulnerability assessment policy doesn't set */ - storageContainerPath: string; + storageContainerPath?: string; /** * @member {string} [storageContainerSasKey] A shared access signature (SAS * Key) that has write access to the blob container specified in @@ -3692,8 +3781,9 @@ export interface DatabaseVulnerabilityAssessment extends ProxyResource { storageContainerSasKey?: string; /** * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the vulnerability assessment storage account. If 'StorageContainerSasKey' - * isn't specified, storageAccountAccessKey is required. + * the storage account for vulnerability assessment scan results. If + * 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is + * required. */ storageAccountAccessKey?: string; /** @@ -7222,6 +7312,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. @@ -12074,6 +12180,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. */ @@ -13879,6 +14023,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/managedDatabaseVulnerabilityAssessmentsMappers.ts b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts index 77fbde5f43b3..d3613306eb3f 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, diff --git a/packages/@azure/arm-sql/lib/models/mappers.ts b/packages/@azure/arm-sql/lib/models/mappers.ts index 1209800c98d2..fe6bdb437e26 100644 --- a/packages/@azure/arm-sql/lib/models/mappers.ts +++ b/packages/@azure/arm-sql/lib/models/mappers.ts @@ -3838,6 +3838,12 @@ export const ExtendedDatabaseBlobAuditingPolicy: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" + } } } } @@ -3907,6 +3913,12 @@ export const ExtendedServerBlobAuditingPolicy: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" + } } } } @@ -3970,6 +3982,12 @@ export const ServerBlobAuditingPolicy: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" + } } } } @@ -4040,6 +4058,12 @@ export const DatabaseBlobAuditingPolicy: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" + } } } } @@ -4133,7 +4157,6 @@ export const DatabaseVulnerabilityAssessment: msRest.CompositeMapper = { modelProperties: { ...ProxyResource.type.modelProperties, storageContainerPath: { - required: true, serializedName: "properties.storageContainerPath", type: { name: "String" @@ -8341,6 +8364,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: { diff --git a/packages/@azure/arm-sql/lib/models/parameters.ts b/packages/@azure/arm-sql/lib/models/parameters.ts index 3f364f4f144d..089818eaf567 100644 --- a/packages/@azure/arm-sql/lib/models/parameters.ts +++ b/packages/@azure/arm-sql/lib/models/parameters.ts @@ -184,45 +184,45 @@ export const credentialName: msRest.OperationURLParameter = { } } }; -export const dataMaskingPolicyName: msRest.OperationURLParameter = { - parameterPath: "dataMaskingPolicyName", +export const databaseName: msRest.OperationURLParameter = { + parameterPath: "databaseName", mapper: { required: true, - isConstant: true, - serializedName: "dataMaskingPolicyName", - defaultValue: 'Default', + serializedName: "databaseName", type: { name: "String" } } }; -export const dataMaskingRuleName: msRest.OperationURLParameter = { - parameterPath: "dataMaskingRuleName", +export const databaseState: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "databaseState" + ], mapper: { - required: true, - serializedName: "dataMaskingRuleName", + serializedName: "databaseState", type: { name: "String" } } }; -export const databaseName: msRest.OperationURLParameter = { - parameterPath: "databaseName", +export const dataMaskingPolicyName: msRest.OperationURLParameter = { + parameterPath: "dataMaskingPolicyName", mapper: { required: true, - serializedName: "databaseName", + isConstant: true, + serializedName: "dataMaskingPolicyName", + defaultValue: 'Default', type: { name: "String" } } }; -export const databaseState: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "databaseState" - ], +export const dataMaskingRuleName: msRest.OperationURLParameter = { + parameterPath: "dataMaskingRuleName", mapper: { - serializedName: "databaseState", + required: true, + serializedName: "dataMaskingRuleName", type: { name: "String" } 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/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/sqlManagementClientContext.ts b/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts index 3b7dd7021f73..90e0186f833f 100644 --- a/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts +++ b/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts @@ -16,15 +16,9 @@ const packageName = "@azure/arm-sql"; const packageVersion = "1.0.0-preview"; export class SqlManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - subscriptionId: string; - acceptLanguage: string; - - longRunningOperationRetryTimeout: number; - /** * Initializes a new instance of the SqlManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. From c172d88a6a43904aa3701cb430cee121a7fbfc7b Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 6 Nov 2018 15:32:13 -0800 Subject: [PATCH 5/6] [AutoPR sql/resource-manager] Update Vulnerability Assessment swaggers (#396) * Generated from 63e4176e8577c1abaf1a1496628dc432c7fa5479 Update Vulnerability Assessment swaggers Update Vulnerability Assessment swaggers * Generated from 63e4176e8577c1abaf1a1496628dc432c7fa5479 Update Vulnerability Assessment swaggers Update Vulnerability Assessment swaggers --- ...baseVulnerabilityAssessmentScansMappers.ts | 2 +- packages/@azure/arm-sql/lib/models/index.ts | 12 +-- .../databaseVulnerabilityAssessmentScans.ts | 82 +++++++++---------- 3 files changed, 48 insertions(+), 48 deletions(-) diff --git a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentScansMappers.ts b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentScansMappers.ts index e5c8650c35ad..4918050ab296 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, diff --git a/packages/@azure/arm-sql/lib/models/index.ts b/packages/@azure/arm-sql/lib/models/index.ts index ae61a81726f8..3128960563c8 100644 --- a/packages/@azure/arm-sql/lib/models/index.ts +++ b/packages/@azure/arm-sql/lib/models/index.ts @@ -13796,9 +13796,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. */ @@ -13810,14 +13810,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. */ @@ -13829,7 +13829,7 @@ export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = Vulnera /** * The response body as parsed JSON or XML */ - parsedBody: VulnerabilityAssessmentScanRecordListResult; + parsedBody: VulnerabilityAssessmentScanRecord; }; }; 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 From 373884efd9646aef6206a751d39208c8bb344b3b Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Wed, 7 Nov 2018 17:17:11 +0000 Subject: [PATCH 6/6] Regenerated "@azure/arm-sql" SDK. --- packages/@azure/arm-sql/lib/models/index.ts | 942 +++--------------- .../backupLongTermRetentionPolicies.ts | 4 +- .../backupShortTermRetentionPolicies.ts | 6 +- .../arm-sql/lib/operations/capabilities.ts | 2 +- .../lib/operations/dataMaskingPolicies.ts | 4 +- .../lib/operations/dataMaskingRules.ts | 4 +- .../databaseAutomaticTuningOperations.ts | 4 +- .../databaseBlobAuditingPolicies.ts | 4 +- .../lib/operations/databaseOperations.ts | 6 +- .../databaseThreatDetectionPolicies.ts | 4 +- .../arm-sql/lib/operations/databaseUsages.ts | 2 +- ...aseVulnerabilityAssessmentRuleBaselines.ts | 6 +- .../databaseVulnerabilityAssessmentScans.ts | 8 +- .../databaseVulnerabilityAssessments.ts | 10 +- .../arm-sql/lib/operations/databases.ts | 16 +- .../lib/operations/elasticPoolActivities.ts | 2 +- .../elasticPoolDatabaseActivities.ts | 2 +- .../lib/operations/elasticPoolOperations.ts | 6 +- .../arm-sql/lib/operations/elasticPools.ts | 10 +- .../lib/operations/encryptionProtectors.ts | 6 +- .../extendedDatabaseBlobAuditingPolicies.ts | 4 +- .../extendedServerBlobAuditingPolicies.ts | 2 +- .../arm-sql/lib/operations/failoverGroups.ts | 6 +- .../arm-sql/lib/operations/firewallRules.ts | 8 +- .../lib/operations/geoBackupPolicies.ts | 6 +- .../lib/operations/instanceFailoverGroups.ts | 6 +- .../arm-sql/lib/operations/jobAgents.ts | 6 +- .../arm-sql/lib/operations/jobCredentials.ts | 10 +- .../arm-sql/lib/operations/jobExecutions.ts | 12 +- .../lib/operations/jobStepExecutions.ts | 6 +- .../@azure/arm-sql/lib/operations/jobSteps.ts | 16 +- .../lib/operations/jobTargetExecutions.ts | 10 +- .../arm-sql/lib/operations/jobTargetGroups.ts | 10 +- .../arm-sql/lib/operations/jobVersions.ts | 6 +- .../@azure/arm-sql/lib/operations/jobs.ts | 10 +- .../operations/longTermRetentionBackups.ts | 14 +- ...aseVulnerabilityAssessmentRuleBaselines.ts | 6 +- ...gedDatabaseVulnerabilityAssessmentScans.ts | 8 +- ...managedDatabaseVulnerabilityAssessments.ts | 10 +- .../lib/operations/managedDatabases.ts | 6 +- .../managedInstanceEncryptionProtectors.ts | 6 +- .../lib/operations/managedInstanceKeys.ts | 6 +- .../lib/operations/managedInstances.ts | 10 +- .../arm-sql/lib/operations/operations.ts | 4 +- .../lib/operations/recommendedElasticPools.ts | 6 +- .../lib/operations/recoverableDatabases.ts | 4 +- .../lib/operations/replicationLinks.ts | 6 +- .../operations/restorableDroppedDatabases.ts | 4 +- .../arm-sql/lib/operations/restorePoints.ts | 6 +- .../serverAutomaticTuningOperations.ts | 4 +- .../operations/serverAzureADAdministrators.ts | 4 +- .../operations/serverBlobAuditingPolicies.ts | 2 +- .../operations/serverCommunicationLinks.ts | 6 +- .../operations/serverConnectionPolicies.ts | 4 +- .../lib/operations/serverDnsAliases.ts | 6 +- .../arm-sql/lib/operations/serverKeys.ts | 6 +- .../operations/serverSecurityAlertPolicies.ts | 2 +- .../arm-sql/lib/operations/serverUsages.ts | 2 +- .../@azure/arm-sql/lib/operations/servers.ts | 12 +- .../lib/operations/serviceObjectives.ts | 4 +- .../lib/operations/serviceTierAdvisors.ts | 4 +- .../lib/operations/subscriptionUsages.ts | 6 +- .../arm-sql/lib/operations/syncAgents.ts | 12 +- .../arm-sql/lib/operations/syncGroups.ts | 22 +- .../arm-sql/lib/operations/syncMembers.ts | 10 +- .../transparentDataEncryptionActivities.ts | 2 +- .../operations/transparentDataEncryptions.ts | 4 +- .../lib/operations/virtualNetworkRules.ts | 6 +- .../arm-sql/lib/sqlManagementClientContext.ts | 8 +- packages/@azure/arm-sql/package.json | 6 +- 70 files changed, 352 insertions(+), 1042 deletions(-) diff --git a/packages/@azure/arm-sql/lib/models/index.ts b/packages/@azure/arm-sql/lib/models/index.ts index 3128960563c8..3188a585decb 100644 --- a/packages/@azure/arm-sql/lib/models/index.ts +++ b/packages/@azure/arm-sql/lib/models/index.ts @@ -7622,10 +7622,7 @@ export interface ManagedInstanceEncryptionProtectorListResult extends Array"someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', 'Free', + * 'Stretch', 'DataWarehouse', 'System', 'System2' * @readonly * @enum {string} */ -export enum DatabaseEdition { - Web = 'Web', - Business = 'Business', - Basic = 'Basic', - Standard = 'Standard', - Premium = 'Premium', - PremiumRS = 'PremiumRS', - Free = 'Free', - Stretch = 'Stretch', - DataWarehouse = 'DataWarehouse', - System = 'System', - System2 = 'System2', -} +export type DatabaseEdition = 'Web' | 'Business' | 'Basic' | 'Standard' | 'Premium' | 'PremiumRS' | 'Free' | 'Stretch' | 'DataWarehouse' | 'System' | 'System2'; /** * Defines values for ServiceObjectiveName. - * Possible values include: 'System', 'System0', 'System1', 'System2', - * 'System3', 'System4', 'System2L', 'System3L', 'System4L', 'Free', 'Basic', - * 'S0', 'S1', 'S2', 'S3', 'S4', 'S6', 'S7', 'S9', 'S12', 'P1', 'P2', 'P3', - * 'P4', 'P6', 'P11', 'P15', 'PRS1', 'PRS2', 'PRS4', 'PRS6', 'DW100', 'DW200', - * 'DW300', 'DW400', 'DW500', 'DW600', 'DW1000', 'DW1200', 'DW1000c', 'DW1500', - * 'DW1500c', 'DW2000', 'DW2000c', 'DW3000', 'DW2500c', 'DW3000c', 'DW6000', - * 'DW5000c', 'DW6000c', 'DW7500c', 'DW10000c', 'DW15000c', 'DW30000c', - * 'DS100', 'DS200', 'DS300', 'DS400', 'DS500', 'DS600', 'DS1000', 'DS1200', - * 'DS1500', 'DS2000', 'ElasticPool' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ServiceObjectiveName = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'System', 'System0', 'System1', 'System2', 'System3', 'System4', + * 'System2L', 'System3L', 'System4L', 'Free', 'Basic', 'S0', 'S1', 'S2', 'S3', 'S4', 'S6', 'S7', + * 'S9', 'S12', 'P1', 'P2', 'P3', 'P4', 'P6', 'P11', 'P15', 'PRS1', 'PRS2', 'PRS4', 'PRS6', + * 'DW100', 'DW200', 'DW300', 'DW400', 'DW500', 'DW600', 'DW1000', 'DW1200', 'DW1000c', 'DW1500', + * 'DW1500c', 'DW2000', 'DW2000c', 'DW3000', 'DW2500c', 'DW3000c', 'DW6000', 'DW5000c', 'DW6000c', + * 'DW7500c', 'DW10000c', 'DW15000c', 'DW30000c', 'DS100', 'DS200', 'DS300', 'DS400', 'DS500', + * 'DS600', 'DS1000', 'DS1200', 'DS1500', 'DS2000', 'ElasticPool' * @readonly * @enum {string} */ -export enum ServiceObjectiveName { - System = 'System', - System0 = 'System0', - System1 = 'System1', - System2 = 'System2', - System3 = 'System3', - System4 = 'System4', - System2L = 'System2L', - System3L = 'System3L', - System4L = 'System4L', - Free = 'Free', - Basic = 'Basic', - S0 = 'S0', - S1 = 'S1', - S2 = 'S2', - S3 = 'S3', - S4 = 'S4', - S6 = 'S6', - S7 = 'S7', - S9 = 'S9', - S12 = 'S12', - P1 = 'P1', - P2 = 'P2', - P3 = 'P3', - P4 = 'P4', - P6 = 'P6', - P11 = 'P11', - P15 = 'P15', - PRS1 = 'PRS1', - PRS2 = 'PRS2', - PRS4 = 'PRS4', - PRS6 = 'PRS6', - DW100 = 'DW100', - DW200 = 'DW200', - DW300 = 'DW300', - DW400 = 'DW400', - DW500 = 'DW500', - DW600 = 'DW600', - DW1000 = 'DW1000', - DW1200 = 'DW1200', - DW1000c = 'DW1000c', - DW1500 = 'DW1500', - DW1500c = 'DW1500c', - DW2000 = 'DW2000', - DW2000c = 'DW2000c', - DW3000 = 'DW3000', - DW2500c = 'DW2500c', - DW3000c = 'DW3000c', - DW6000 = 'DW6000', - DW5000c = 'DW5000c', - DW6000c = 'DW6000c', - DW7500c = 'DW7500c', - DW10000c = 'DW10000c', - DW15000c = 'DW15000c', - DW30000c = 'DW30000c', - DS100 = 'DS100', - DS200 = 'DS200', - DS300 = 'DS300', - DS400 = 'DS400', - DS500 = 'DS500', - DS600 = 'DS600', - DS1000 = 'DS1000', - DS1200 = 'DS1200', - DS1500 = 'DS1500', - DS2000 = 'DS2000', - ElasticPool = 'ElasticPool', -} +export type ServiceObjectiveName = 'System' | 'System0' | 'System1' | 'System2' | 'System3' | 'System4' | 'System2L' | 'System3L' | 'System4L' | 'Free' | 'Basic' | 'S0' | 'S1' | 'S2' | 'S3' | 'S4' | 'S6' | 'S7' | 'S9' | 'S12' | 'P1' | 'P2' | 'P3' | 'P4' | 'P6' | 'P11' | 'P15' | 'PRS1' | 'PRS2' | 'PRS4' | 'PRS6' | 'DW100' | 'DW200' | 'DW300' | 'DW400' | 'DW500' | 'DW600' | 'DW1000' | 'DW1200' | 'DW1000c' | 'DW1500' | 'DW1500c' | 'DW2000' | 'DW2000c' | 'DW3000' | 'DW2500c' | 'DW3000c' | 'DW6000' | 'DW5000c' | 'DW6000c' | 'DW7500c' | 'DW10000c' | 'DW15000c' | 'DW30000c' | 'DS100' | 'DS200' | 'DS300' | 'DS400' | 'DS500' | 'DS600' | 'DS1000' | 'DS1200' | 'DS1500' | 'DS2000' | 'ElasticPool'; /** * Defines values for StorageKeyType. @@ -7840,10 +7717,7 @@ export enum ServiceObjectiveName { * @readonly * @enum {string} */ -export enum StorageKeyType { - StorageAccessKey = 'StorageAccessKey', - SharedAccessKey = 'SharedAccessKey', -} +export type StorageKeyType = 'StorageAccessKey' | 'SharedAccessKey'; /** * Defines values for AuthenticationType. @@ -7851,122 +7725,57 @@ export enum StorageKeyType { * @readonly * @enum {string} */ -export enum AuthenticationType { - SQL = 'SQL', - ADPassword = 'ADPassword', -} +export type AuthenticationType = 'SQL' | 'ADPassword'; /** * Defines values for UnitType. - * Possible values include: 'count', 'bytes', 'seconds', 'percent', - * 'countPerSecond', 'bytesPerSecond' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: UnitType = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'count', 'bytes', 'seconds', 'percent', 'countPerSecond', + * 'bytesPerSecond' * @readonly * @enum {string} */ -export enum UnitType { - Count = 'count', - Bytes = 'bytes', - Seconds = 'seconds', - Percent = 'percent', - CountPerSecond = 'countPerSecond', - BytesPerSecond = 'bytesPerSecond', -} +export type UnitType = 'count' | 'bytes' | 'seconds' | 'percent' | 'countPerSecond' | 'bytesPerSecond'; /** * Defines values for PrimaryAggregationType. - * Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', - * 'Total' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: PrimaryAggregationType = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total' * @readonly * @enum {string} */ -export enum PrimaryAggregationType { - None = 'None', - Average = 'Average', - Count = 'Count', - Minimum = 'Minimum', - Maximum = 'Maximum', - Total = 'Total', -} +export type PrimaryAggregationType = 'None' | 'Average' | 'Count' | 'Minimum' | 'Maximum' | 'Total'; /** * Defines values for UnitDefinitionType. - * Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', - * 'CountPerSecond', 'BytesPerSecond' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: UnitDefinitionType = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', + * 'BytesPerSecond' * @readonly * @enum {string} */ -export enum UnitDefinitionType { - Count = 'Count', - Bytes = 'Bytes', - Seconds = 'Seconds', - Percent = 'Percent', - CountPerSecond = 'CountPerSecond', - BytesPerSecond = 'BytesPerSecond', -} +export type UnitDefinitionType = 'Count' | 'Bytes' | 'Seconds' | 'Percent' | 'CountPerSecond' | 'BytesPerSecond'; /** * Defines values for ElasticPoolEdition. * Possible values include: 'Basic', 'Standard', 'Premium' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ElasticPoolEdition = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ElasticPoolEdition { - Basic = 'Basic', - Standard = 'Standard', - Premium = 'Premium', -} +export type ElasticPoolEdition = 'Basic' | 'Standard' | 'Premium'; /** * Defines values for ReplicationRole. - * Possible values include: 'Primary', 'Secondary', 'NonReadableSecondary', - * 'Source', 'Copy' + * Possible values include: 'Primary', 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' * @readonly * @enum {string} */ -export enum ReplicationRole { - Primary = 'Primary', - Secondary = 'Secondary', - NonReadableSecondary = 'NonReadableSecondary', - Source = 'Source', - Copy = 'Copy', -} +export type ReplicationRole = 'Primary' | 'Secondary' | 'NonReadableSecondary' | 'Source' | 'Copy'; /** * Defines values for ReplicationState. * Possible values include: 'PENDING', 'SEEDING', 'CATCH_UP', 'SUSPENDED' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ReplicationState = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ReplicationState { - PENDING = 'PENDING', - SEEDING = 'SEEDING', - CATCHUP = 'CATCH_UP', - SUSPENDED = 'SUSPENDED', -} +export type ReplicationState = 'PENDING' | 'SEEDING' | 'CATCH_UP' | 'SUSPENDED'; /** * Defines values for RecommendedIndexAction. @@ -7974,47 +7783,24 @@ export enum ReplicationState { * @readonly * @enum {string} */ -export enum RecommendedIndexAction { - Create = 'Create', - Drop = 'Drop', - Rebuild = 'Rebuild', -} +export type RecommendedIndexAction = 'Create' | 'Drop' | 'Rebuild'; /** * Defines values for RecommendedIndexState. - * Possible values include: 'Active', 'Pending', 'Executing', 'Verifying', - * 'Pending Revert', 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', - * 'Success' + * Possible values include: 'Active', 'Pending', 'Executing', 'Verifying', 'Pending Revert', + * 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', 'Success' * @readonly * @enum {string} */ -export enum RecommendedIndexState { - Active = 'Active', - Pending = 'Pending', - Executing = 'Executing', - Verifying = 'Verifying', - PendingRevert = 'Pending Revert', - Reverting = 'Reverting', - Reverted = 'Reverted', - Ignored = 'Ignored', - Expired = 'Expired', - Blocked = 'Blocked', - Success = 'Success', -} +export type RecommendedIndexState = 'Active' | 'Pending' | 'Executing' | 'Verifying' | 'Pending Revert' | 'Reverting' | 'Reverted' | 'Ignored' | 'Expired' | 'Blocked' | 'Success'; /** * Defines values for RecommendedIndexType. - * Possible values include: 'CLUSTERED', 'NONCLUSTERED', 'COLUMNSTORE', - * 'CLUSTERED COLUMNSTORE' + * Possible values include: 'CLUSTERED', 'NONCLUSTERED', 'COLUMNSTORE', 'CLUSTERED COLUMNSTORE' * @readonly * @enum {string} */ -export enum RecommendedIndexType { - CLUSTERED = 'CLUSTERED', - NONCLUSTERED = 'NONCLUSTERED', - COLUMNSTORE = 'COLUMNSTORE', - CLUSTEREDCOLUMNSTORE = 'CLUSTERED COLUMNSTORE', -} +export type RecommendedIndexType = 'CLUSTERED' | 'NONCLUSTERED' | 'COLUMNSTORE' | 'CLUSTERED COLUMNSTORE'; /** * Defines values for TransparentDataEncryptionStatus. @@ -8022,26 +7808,15 @@ export enum RecommendedIndexType { * @readonly * @enum {string} */ -export enum TransparentDataEncryptionStatus { - Enabled = 'Enabled', - Disabled = 'Disabled', -} +export type TransparentDataEncryptionStatus = 'Enabled' | 'Disabled'; /** * Defines values for TransparentDataEncryptionActivityStatus. * Possible values include: 'Encrypting', 'Decrypting' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: TransparentDataEncryptionActivityStatus = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum TransparentDataEncryptionActivityStatus { - Encrypting = 'Encrypting', - Decrypting = 'Decrypting', -} +export type TransparentDataEncryptionActivityStatus = 'Encrypting' | 'Decrypting'; /** * Defines values for AutomaticTuningMode. @@ -8049,12 +7824,7 @@ export enum TransparentDataEncryptionActivityStatus { * @readonly * @enum {string} */ -export enum AutomaticTuningMode { - Inherit = 'Inherit', - Custom = 'Custom', - Auto = 'Auto', - Unspecified = 'Unspecified', -} +export type AutomaticTuningMode = 'Inherit' | 'Custom' | 'Auto' | 'Unspecified'; /** * Defines values for AutomaticTuningOptionModeDesired. @@ -8062,11 +7832,7 @@ export enum AutomaticTuningMode { * @readonly * @enum {string} */ -export enum AutomaticTuningOptionModeDesired { - Off = 'Off', - On = 'On', - Default = 'Default', -} +export type AutomaticTuningOptionModeDesired = 'Off' | 'On' | 'Default'; /** * Defines values for AutomaticTuningOptionModeActual. @@ -8074,284 +7840,132 @@ export enum AutomaticTuningOptionModeDesired { * @readonly * @enum {string} */ -export enum AutomaticTuningOptionModeActual { - Off = 'Off', - On = 'On', -} +export type AutomaticTuningOptionModeActual = 'Off' | 'On'; /** * Defines values for AutomaticTuningDisabledReason. - * Possible values include: 'Default', 'Disabled', 'AutoConfigured', - * 'InheritedFromServer', 'QueryStoreOff', 'QueryStoreReadOnly', 'NotSupported' + * Possible values include: 'Default', 'Disabled', 'AutoConfigured', 'InheritedFromServer', + * 'QueryStoreOff', 'QueryStoreReadOnly', 'NotSupported' * @readonly * @enum {string} */ -export enum AutomaticTuningDisabledReason { - Default = 'Default', - Disabled = 'Disabled', - AutoConfigured = 'AutoConfigured', - InheritedFromServer = 'InheritedFromServer', - QueryStoreOff = 'QueryStoreOff', - QueryStoreReadOnly = 'QueryStoreReadOnly', - NotSupported = 'NotSupported', -} +export type AutomaticTuningDisabledReason = 'Default' | 'Disabled' | 'AutoConfigured' | 'InheritedFromServer' | 'QueryStoreOff' | 'QueryStoreReadOnly' | 'NotSupported'; /** * Defines values for ServerKeyType. * Possible values include: 'ServiceManaged', 'AzureKeyVault' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ServerKeyType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServerKeyType { - ServiceManaged = 'ServiceManaged', - AzureKeyVault = 'AzureKeyVault', -} +export type ServerKeyType = 'ServiceManaged' | 'AzureKeyVault'; /** * Defines values for ReadWriteEndpointFailoverPolicy. * Possible values include: 'Manual', 'Automatic' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ReadWriteEndpointFailoverPolicy = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ReadWriteEndpointFailoverPolicy { - Manual = 'Manual', - Automatic = 'Automatic', -} +export type ReadWriteEndpointFailoverPolicy = 'Manual' | 'Automatic'; /** * Defines values for ReadOnlyEndpointFailoverPolicy. * Possible values include: 'Disabled', 'Enabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ReadOnlyEndpointFailoverPolicy = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ReadOnlyEndpointFailoverPolicy { - Disabled = 'Disabled', - Enabled = 'Enabled', -} +export type ReadOnlyEndpointFailoverPolicy = 'Disabled' | 'Enabled'; /** * Defines values for FailoverGroupReplicationRole. * Possible values include: 'Primary', 'Secondary' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: FailoverGroupReplicationRole = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum FailoverGroupReplicationRole { - Primary = 'Primary', - Secondary = 'Secondary', -} +export type FailoverGroupReplicationRole = 'Primary' | 'Secondary'; /** * Defines values for IdentityType. * Possible values include: 'SystemAssigned' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: IdentityType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum IdentityType { - SystemAssigned = 'SystemAssigned', -} +export type IdentityType = 'SystemAssigned'; /** * Defines values for OperationOrigin. * Possible values include: 'user', 'system' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: OperationOrigin = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum OperationOrigin { - User = 'user', - System = 'system', -} +export type OperationOrigin = 'user' | 'system'; /** * Defines values for SyncAgentState. * Possible values include: 'Online', 'Offline', 'NeverConnected' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncAgentState = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SyncAgentState { - Online = 'Online', - Offline = 'Offline', - NeverConnected = 'NeverConnected', -} +export type SyncAgentState = 'Online' | 'Offline' | 'NeverConnected'; /** * Defines values for SyncMemberDbType. * Possible values include: 'AzureSqlDatabase', 'SqlServerDatabase' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncMemberDbType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SyncMemberDbType { - AzureSqlDatabase = 'AzureSqlDatabase', - SqlServerDatabase = 'SqlServerDatabase', -} +export type SyncMemberDbType = 'AzureSqlDatabase' | 'SqlServerDatabase'; /** * Defines values for SyncGroupLogType. * Possible values include: 'All', 'Error', 'Warning', 'Success' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncGroupLogType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SyncGroupLogType { - All = 'All', - Error = 'Error', - Warning = 'Warning', - Success = 'Success', -} +export type SyncGroupLogType = 'All' | 'Error' | 'Warning' | 'Success'; /** * Defines values for SyncConflictResolutionPolicy. * Possible values include: 'HubWin', 'MemberWin' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncConflictResolutionPolicy = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SyncConflictResolutionPolicy { - HubWin = 'HubWin', - MemberWin = 'MemberWin', -} +export type SyncConflictResolutionPolicy = 'HubWin' | 'MemberWin'; /** * Defines values for SyncGroupState. - * Possible values include: 'NotReady', 'Error', 'Warning', 'Progressing', - * 'Good' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncGroupState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'NotReady', 'Error', 'Warning', 'Progressing', 'Good' * @readonly * @enum {string} */ -export enum SyncGroupState { - NotReady = 'NotReady', - Error = 'Error', - Warning = 'Warning', - Progressing = 'Progressing', - Good = 'Good', -} +export type SyncGroupState = 'NotReady' | 'Error' | 'Warning' | 'Progressing' | 'Good'; /** * Defines values for SyncDirection. - * Possible values include: 'Bidirectional', 'OneWayMemberToHub', - * 'OneWayHubToMember' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncDirection = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Bidirectional', 'OneWayMemberToHub', 'OneWayHubToMember' * @readonly * @enum {string} */ -export enum SyncDirection { - Bidirectional = 'Bidirectional', - OneWayMemberToHub = 'OneWayMemberToHub', - OneWayHubToMember = 'OneWayHubToMember', -} +export type SyncDirection = 'Bidirectional' | 'OneWayMemberToHub' | 'OneWayHubToMember'; /** * Defines values for SyncMemberState. * Possible values include: 'SyncInProgress', 'SyncSucceeded', 'SyncFailed', - * 'DisabledTombstoneCleanup', 'DisabledBackupRestore', - * 'SyncSucceededWithWarnings', 'SyncCancelling', 'SyncCancelled', - * 'UnProvisioned', 'Provisioning', 'Provisioned', 'ProvisionFailed', - * 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', 'Reprovisioning', + * 'DisabledTombstoneCleanup', 'DisabledBackupRestore', 'SyncSucceededWithWarnings', + * 'SyncCancelling', 'SyncCancelled', 'UnProvisioned', 'Provisioning', 'Provisioned', + * 'ProvisionFailed', 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', 'Reprovisioning', * 'ReprovisionFailed', 'UnReprovisioned' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncMemberState = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SyncMemberState { - SyncInProgress = 'SyncInProgress', - SyncSucceeded = 'SyncSucceeded', - SyncFailed = 'SyncFailed', - DisabledTombstoneCleanup = 'DisabledTombstoneCleanup', - DisabledBackupRestore = 'DisabledBackupRestore', - SyncSucceededWithWarnings = 'SyncSucceededWithWarnings', - SyncCancelling = 'SyncCancelling', - SyncCancelled = 'SyncCancelled', - UnProvisioned = 'UnProvisioned', - Provisioning = 'Provisioning', - Provisioned = 'Provisioned', - ProvisionFailed = 'ProvisionFailed', - DeProvisioning = 'DeProvisioning', - DeProvisioned = 'DeProvisioned', - DeProvisionFailed = 'DeProvisionFailed', - Reprovisioning = 'Reprovisioning', - ReprovisionFailed = 'ReprovisionFailed', - UnReprovisioned = 'UnReprovisioned', -} +export type SyncMemberState = 'SyncInProgress' | 'SyncSucceeded' | 'SyncFailed' | 'DisabledTombstoneCleanup' | 'DisabledBackupRestore' | 'SyncSucceededWithWarnings' | 'SyncCancelling' | 'SyncCancelled' | 'UnProvisioned' | 'Provisioning' | 'Provisioned' | 'ProvisionFailed' | 'DeProvisioning' | 'DeProvisioned' | 'DeProvisionFailed' | 'Reprovisioning' | 'ReprovisionFailed' | 'UnReprovisioned'; /** * Defines values for VirtualNetworkRuleState. - * Possible values include: 'Initializing', 'InProgress', 'Ready', 'Deleting', - * 'Unknown' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: VirtualNetworkRuleState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' * @readonly * @enum {string} */ -export enum VirtualNetworkRuleState { - Initializing = 'Initializing', - InProgress = 'InProgress', - Ready = 'Ready', - Deleting = 'Deleting', - Unknown = 'Unknown', -} +export type VirtualNetworkRuleState = 'Initializing' | 'InProgress' | 'Ready' | 'Deleting' | 'Unknown'; /** * Defines values for BlobAuditingPolicyState. @@ -8359,96 +7973,42 @@ export enum VirtualNetworkRuleState { * @readonly * @enum {string} */ -export enum BlobAuditingPolicyState { - Enabled = 'Enabled', - Disabled = 'Disabled', -} +export type BlobAuditingPolicyState = 'Enabled' | 'Disabled'; /** * Defines values for JobAgentState. - * Possible values include: 'Creating', 'Ready', 'Updating', 'Deleting', - * 'Disabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: JobAgentState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Creating', 'Ready', 'Updating', 'Deleting', 'Disabled' * @readonly * @enum {string} */ -export enum JobAgentState { - Creating = 'Creating', - Ready = 'Ready', - Updating = 'Updating', - Deleting = 'Deleting', - Disabled = 'Disabled', -} +export type JobAgentState = 'Creating' | 'Ready' | 'Updating' | 'Deleting' | 'Disabled'; /** * Defines values for JobExecutionLifecycle. - * Possible values include: 'Created', 'InProgress', - * 'WaitingForChildJobExecutions', 'WaitingForRetry', 'Succeeded', - * 'SucceededWithSkipped', 'Failed', 'TimedOut', 'Canceled', 'Skipped' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: JobExecutionLifecycle = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Created', 'InProgress', 'WaitingForChildJobExecutions', + * 'WaitingForRetry', 'Succeeded', 'SucceededWithSkipped', 'Failed', 'TimedOut', 'Canceled', + * 'Skipped' * @readonly * @enum {string} */ -export enum JobExecutionLifecycle { - Created = 'Created', - InProgress = 'InProgress', - WaitingForChildJobExecutions = 'WaitingForChildJobExecutions', - WaitingForRetry = 'WaitingForRetry', - Succeeded = 'Succeeded', - SucceededWithSkipped = 'SucceededWithSkipped', - Failed = 'Failed', - TimedOut = 'TimedOut', - Canceled = 'Canceled', - Skipped = 'Skipped', -} +export type JobExecutionLifecycle = 'Created' | 'InProgress' | 'WaitingForChildJobExecutions' | 'WaitingForRetry' | 'Succeeded' | 'SucceededWithSkipped' | 'Failed' | 'TimedOut' | 'Canceled' | 'Skipped'; /** * Defines values for ProvisioningState. - * Possible values include: 'Created', 'InProgress', 'Succeeded', 'Failed', - * 'Canceled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ProvisioningState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Created', 'InProgress', 'Succeeded', 'Failed', 'Canceled' * @readonly * @enum {string} */ -export enum ProvisioningState { - Created = 'Created', - InProgress = 'InProgress', - Succeeded = 'Succeeded', - Failed = 'Failed', - Canceled = 'Canceled', -} +export type ProvisioningState = 'Created' | 'InProgress' | 'Succeeded' | 'Failed' | 'Canceled'; /** * Defines values for JobTargetType. - * Possible values include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', - * 'SqlShardMap', 'SqlServer' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: JobTargetType = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', + * 'SqlServer' * @readonly * @enum {string} */ -export enum JobTargetType { - TargetGroup = 'TargetGroup', - SqlDatabase = 'SqlDatabase', - SqlElasticPool = 'SqlElasticPool', - SqlShardMap = 'SqlShardMap', - SqlServer = 'SqlServer', -} +export type JobTargetType = 'TargetGroup' | 'SqlDatabase' | 'SqlElasticPool' | 'SqlShardMap' | 'SqlServer'; /** * Defines values for JobScheduleType. @@ -8456,55 +8016,31 @@ export enum JobTargetType { * @readonly * @enum {string} */ -export enum JobScheduleType { - Once = 'Once', - Recurring = 'Recurring', -} +export type JobScheduleType = 'Once' | 'Recurring'; /** * Defines values for JobStepActionType. * Possible values include: 'TSql' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: JobStepActionType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum JobStepActionType { - TSql = 'TSql', -} +export type JobStepActionType = 'TSql'; /** * Defines values for JobStepActionSource. * Possible values include: 'Inline' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: JobStepActionSource = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum JobStepActionSource { - Inline = 'Inline', -} +export type JobStepActionSource = 'Inline'; /** * Defines values for JobStepOutputType. * Possible values include: 'SqlDatabase' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: JobStepOutputType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum JobStepOutputType { - SqlDatabase = 'SqlDatabase', -} +export type JobStepOutputType = 'SqlDatabase'; /** * Defines values for JobTargetGroupMembershipType. @@ -8512,64 +8048,31 @@ export enum JobStepOutputType { * @readonly * @enum {string} */ -export enum JobTargetGroupMembershipType { - Include = 'Include', - Exclude = 'Exclude', -} +export type JobTargetGroupMembershipType = 'Include' | 'Exclude'; /** * Defines values for ManagedDatabaseStatus. - * Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', - * 'Inaccessible' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ManagedDatabaseStatus = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible' * @readonly * @enum {string} */ -export enum ManagedDatabaseStatus { - Online = 'Online', - Offline = 'Offline', - Shutdown = 'Shutdown', - Creating = 'Creating', - Inaccessible = 'Inaccessible', -} +export type ManagedDatabaseStatus = 'Online' | 'Offline' | 'Shutdown' | 'Creating' | 'Inaccessible'; /** * Defines values for CatalogCollationType. * Possible values include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: CatalogCollationType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum CatalogCollationType { - DATABASEDEFAULT = 'DATABASE_DEFAULT', - SQLLatin1GeneralCP1CIAS = 'SQL_Latin1_General_CP1_CI_AS', -} +export type CatalogCollationType = 'DATABASE_DEFAULT' | 'SQL_Latin1_General_CP1_CI_AS'; /** * Defines values for ManagedDatabaseCreateMode. - * Possible values include: 'Default', 'RestoreExternalBackup', - * 'PointInTimeRestore' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ManagedDatabaseCreateMode = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore' * @readonly * @enum {string} */ -export enum ManagedDatabaseCreateMode { - Default = 'Default', - RestoreExternalBackup = 'RestoreExternalBackup', - PointInTimeRestore = 'PointInTimeRestore', -} +export type ManagedDatabaseCreateMode = 'Default' | 'RestoreExternalBackup' | 'PointInTimeRestore'; /** * Defines values for AutomaticTuningServerMode. @@ -8577,11 +8080,7 @@ export enum ManagedDatabaseCreateMode { * @readonly * @enum {string} */ -export enum AutomaticTuningServerMode { - Custom = 'Custom', - Auto = 'Auto', - Unspecified = 'Unspecified', -} +export type AutomaticTuningServerMode = 'Custom' | 'Auto' | 'Unspecified'; /** * Defines values for AutomaticTuningServerReason. @@ -8589,11 +8088,7 @@ export enum AutomaticTuningServerMode { * @readonly * @enum {string} */ -export enum AutomaticTuningServerReason { - Default = 'Default', - Disabled = 'Disabled', - AutoConfigured = 'AutoConfigured', -} +export type AutomaticTuningServerReason = 'Default' | 'Disabled' | 'AutoConfigured'; /** * Defines values for RestorePointType. @@ -8601,69 +8096,32 @@ export enum AutomaticTuningServerReason { * @readonly * @enum {string} */ -export enum RestorePointType { - CONTINUOUS = 'CONTINUOUS', - DISCRETE = 'DISCRETE', -} +export type RestorePointType = 'CONTINUOUS' | 'DISCRETE'; /** * Defines values for ManagementOperationState. - * Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', - * 'CancelInProgress', 'Cancelled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ManagementOperationState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', 'CancelInProgress', + * 'Cancelled' * @readonly * @enum {string} */ -export enum ManagementOperationState { - Pending = 'Pending', - InProgress = 'InProgress', - Succeeded = 'Succeeded', - Failed = 'Failed', - CancelInProgress = 'CancelInProgress', - Cancelled = 'Cancelled', -} +export type ManagementOperationState = 'Pending' | 'InProgress' | 'Succeeded' | 'Failed' | 'CancelInProgress' | 'Cancelled'; /** * Defines values for MaxSizeUnit. * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MaxSizeUnit = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MaxSizeUnit { - Megabytes = 'Megabytes', - Gigabytes = 'Gigabytes', - Terabytes = 'Terabytes', - Petabytes = 'Petabytes', -} +export type MaxSizeUnit = 'Megabytes' | 'Gigabytes' | 'Terabytes' | 'Petabytes'; /** * Defines values for LogSizeUnit. - * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes', - * 'Percent' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: LogSizeUnit = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes', 'Percent' * @readonly * @enum {string} */ -export enum LogSizeUnit { - Megabytes = 'Megabytes', - Gigabytes = 'Gigabytes', - Terabytes = 'Terabytes', - Petabytes = 'Petabytes', - Percent = 'Percent', -} +export type LogSizeUnit = 'Megabytes' | 'Gigabytes' | 'Terabytes' | 'Petabytes' | 'Percent'; /** * Defines values for CapabilityStatus. @@ -8671,238 +8129,107 @@ export enum LogSizeUnit { * @readonly * @enum {string} */ -export enum CapabilityStatus { - Visible = 'Visible', - Available = 'Available', - Default = 'Default', - Disabled = 'Disabled', -} +export type CapabilityStatus = 'Visible' | 'Available' | 'Default' | 'Disabled'; /** * Defines values for PerformanceLevelUnit. * Possible values include: 'DTU', 'VCores' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: PerformanceLevelUnit = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum PerformanceLevelUnit { - DTU = 'DTU', - VCores = 'VCores', -} +export type PerformanceLevelUnit = 'DTU' | 'VCores'; /** * Defines values for CreateMode. - * Possible values include: 'Default', 'Copy', 'Secondary', - * 'PointInTimeRestore', 'Restore', 'Recovery', 'RestoreExternalBackup', - * 'RestoreExternalBackupSecondary', 'RestoreLongTermRetentionBackup', - * 'OnlineSecondary' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: CreateMode = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Default', 'Copy', 'Secondary', 'PointInTimeRestore', 'Restore', + * 'Recovery', 'RestoreExternalBackup', 'RestoreExternalBackupSecondary', + * 'RestoreLongTermRetentionBackup', 'OnlineSecondary' * @readonly * @enum {string} */ -export enum CreateMode { - Default = 'Default', - Copy = 'Copy', - Secondary = 'Secondary', - PointInTimeRestore = 'PointInTimeRestore', - Restore = 'Restore', - Recovery = 'Recovery', - RestoreExternalBackup = 'RestoreExternalBackup', - RestoreExternalBackupSecondary = 'RestoreExternalBackupSecondary', - RestoreLongTermRetentionBackup = 'RestoreLongTermRetentionBackup', - OnlineSecondary = 'OnlineSecondary', -} +export type CreateMode = 'Default' | 'Copy' | 'Secondary' | 'PointInTimeRestore' | 'Restore' | 'Recovery' | 'RestoreExternalBackup' | 'RestoreExternalBackupSecondary' | 'RestoreLongTermRetentionBackup' | 'OnlineSecondary'; /** * Defines values for SampleName. - * Possible values include: 'AdventureWorksLT', 'WideWorldImportersStd', - * 'WideWorldImportersFull' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SampleName = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'AdventureWorksLT', 'WideWorldImportersStd', 'WideWorldImportersFull' * @readonly * @enum {string} */ -export enum SampleName { - AdventureWorksLT = 'AdventureWorksLT', - WideWorldImportersStd = 'WideWorldImportersStd', - WideWorldImportersFull = 'WideWorldImportersFull', -} +export type SampleName = 'AdventureWorksLT' | 'WideWorldImportersStd' | 'WideWorldImportersFull'; /** * Defines values for DatabaseStatus. - * Possible values include: 'Online', 'Restoring', 'RecoveryPending', - * 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', - * 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', - * 'Pausing', 'Paused', 'Resuming', 'Scaling' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseStatus = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', + * 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', 'Creating', + * 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling' * @readonly * @enum {string} */ -export enum DatabaseStatus { - Online = 'Online', - Restoring = 'Restoring', - RecoveryPending = 'RecoveryPending', - Recovering = 'Recovering', - Suspect = 'Suspect', - Offline = 'Offline', - Standby = 'Standby', - Shutdown = 'Shutdown', - EmergencyMode = 'EmergencyMode', - AutoClosed = 'AutoClosed', - Copying = 'Copying', - Creating = 'Creating', - Inaccessible = 'Inaccessible', - OfflineSecondary = 'OfflineSecondary', - Pausing = 'Pausing', - Paused = 'Paused', - Resuming = 'Resuming', - Scaling = 'Scaling', -} +export type DatabaseStatus = 'Online' | 'Restoring' | 'RecoveryPending' | 'Recovering' | 'Suspect' | 'Offline' | 'Standby' | 'Shutdown' | 'EmergencyMode' | 'AutoClosed' | 'Copying' | 'Creating' | 'Inaccessible' | 'OfflineSecondary' | 'Pausing' | 'Paused' | 'Resuming' | 'Scaling'; /** * Defines values for DatabaseLicenseType. * Possible values include: 'LicenseIncluded', 'BasePrice' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseLicenseType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum DatabaseLicenseType { - LicenseIncluded = 'LicenseIncluded', - BasePrice = 'BasePrice', -} +export type DatabaseLicenseType = 'LicenseIncluded' | 'BasePrice'; /** * Defines values for DatabaseReadScale. * Possible values include: 'Enabled', 'Disabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseReadScale = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum DatabaseReadScale { - Enabled = 'Enabled', - Disabled = 'Disabled', -} +export type DatabaseReadScale = 'Enabled' | 'Disabled'; /** * Defines values for ElasticPoolState. * Possible values include: 'Creating', 'Ready', 'Disabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ElasticPoolState = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ElasticPoolState { - Creating = 'Creating', - Ready = 'Ready', - Disabled = 'Disabled', -} +export type ElasticPoolState = 'Creating' | 'Ready' | 'Disabled'; /** * Defines values for ElasticPoolLicenseType. * Possible values include: 'LicenseIncluded', 'BasePrice' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ElasticPoolLicenseType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ElasticPoolLicenseType { - LicenseIncluded = 'LicenseIncluded', - BasePrice = 'BasePrice', -} +export type ElasticPoolLicenseType = 'LicenseIncluded' | 'BasePrice'; /** * Defines values for VulnerabilityAssessmentScanTriggerType. * Possible values include: 'OnDemand', 'Recurring' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: VulnerabilityAssessmentScanTriggerType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum VulnerabilityAssessmentScanTriggerType { - OnDemand = 'OnDemand', - Recurring = 'Recurring', -} +export type VulnerabilityAssessmentScanTriggerType = 'OnDemand' | 'Recurring'; /** * Defines values for VulnerabilityAssessmentScanState. * Possible values include: 'Passed', 'Failed', 'FailedToRun', 'InProgress' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: VulnerabilityAssessmentScanState = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum VulnerabilityAssessmentScanState { - Passed = 'Passed', - Failed = 'Failed', - FailedToRun = 'FailedToRun', - InProgress = 'InProgress', -} +export type VulnerabilityAssessmentScanState = 'Passed' | 'Failed' | 'FailedToRun' | 'InProgress'; /** * Defines values for InstanceFailoverGroupReplicationRole. * Possible values include: 'Primary', 'Secondary' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: InstanceFailoverGroupReplicationRole = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum InstanceFailoverGroupReplicationRole { - Primary = 'Primary', - Secondary = 'Secondary', -} +export type InstanceFailoverGroupReplicationRole = 'Primary' | 'Secondary'; /** * Defines values for LongTermRetentionDatabaseState. * Possible values include: 'All', 'Live', 'Deleted' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: LongTermRetentionDatabaseState = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum LongTermRetentionDatabaseState { - All = 'All', - Live = 'Live', - Deleted = 'Deleted', -} +export type LongTermRetentionDatabaseState = 'All' | 'Live' | 'Deleted'; /** * Defines values for VulnerabilityAssessmentPolicyBaselineName. @@ -8910,45 +8237,24 @@ export enum LongTermRetentionDatabaseState { * @readonly * @enum {string} */ -export enum VulnerabilityAssessmentPolicyBaselineName { - Master = 'master', - Default = 'default', -} +export type VulnerabilityAssessmentPolicyBaselineName = 'master' | 'default'; /** * Defines values for CapabilityGroup. - * Possible values include: 'supportedEditions', - * 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: CapabilityGroup = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'supportedEditions', 'supportedElasticPoolEditions', + * 'supportedManagedInstanceVersions' * @readonly * @enum {string} */ -export enum CapabilityGroup { - SupportedEditions = 'supportedEditions', - SupportedElasticPoolEditions = 'supportedElasticPoolEditions', - SupportedManagedInstanceVersions = 'supportedManagedInstanceVersions', -} +export type CapabilityGroup = 'supportedEditions' | 'supportedElasticPoolEditions' | 'supportedManagedInstanceVersions'; /** * Defines values for Type. * Possible values include: 'All', 'Error', 'Warning', 'Success' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: Type = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum Type { - All = 'All', - Error = 'Error', - Warning = 'Warning', - Success = 'Success', -} +export type Type = 'All' | 'Error' | 'Warning' | 'Success'; /** * Contains response data for the get operation. diff --git a/packages/@azure/arm-sql/lib/operations/backupLongTermRetentionPolicies.ts b/packages/@azure/arm-sql/lib/operations/backupLongTermRetentionPolicies.ts index 8a8539190861..9d9003c73522 100644 --- a/packages/@azure/arm-sql/lib/operations/backupLongTermRetentionPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/backupLongTermRetentionPolicies.ts @@ -54,7 +54,7 @@ export class BackupLongTermRetentionPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -108,7 +108,7 @@ export class BackupLongTermRetentionPolicies { * @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 { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/backupShortTermRetentionPolicies.ts b/packages/@azure/arm-sql/lib/operations/backupShortTermRetentionPolicies.ts index 194e862ff7b9..a617ad949a8a 100644 --- a/packages/@azure/arm-sql/lib/operations/backupShortTermRetentionPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/backupShortTermRetentionPolicies.ts @@ -54,7 +54,7 @@ export class BackupShortTermRetentionPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -123,7 +123,7 @@ export class BackupShortTermRetentionPolicies { * @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 { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -199,7 +199,7 @@ export class BackupShortTermRetentionPolicies { * @param callback The callback */ listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/capabilities.ts b/packages/@azure/arm-sql/lib/operations/capabilities.ts index 4d922fcc6fa9..8ae55f07de98 100644 --- a/packages/@azure/arm-sql/lib/operations/capabilities.ts +++ b/packages/@azure/arm-sql/lib/operations/capabilities.ts @@ -44,7 +44,7 @@ export class Capabilities { * @param callback The callback */ listByLocation(locationName: string, options: Models.CapabilitiesListByLocationOptionalParams, callback: msRest.ServiceCallback): void; - listByLocation(locationName: string, options?: Models.CapabilitiesListByLocationOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByLocation(locationName: string, options?: Models.CapabilitiesListByLocationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { locationName, diff --git a/packages/@azure/arm-sql/lib/operations/dataMaskingPolicies.ts b/packages/@azure/arm-sql/lib/operations/dataMaskingPolicies.ts index 4b18e2c0b2f6..f3c1b6bbf0ac 100644 --- a/packages/@azure/arm-sql/lib/operations/dataMaskingPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/dataMaskingPolicies.ts @@ -56,7 +56,7 @@ export class DataMaskingPolicies { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DataMaskingPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DataMaskingPolicy, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DataMaskingPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -96,7 +96,7 @@ export class DataMaskingPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/dataMaskingRules.ts b/packages/@azure/arm-sql/lib/operations/dataMaskingRules.ts index e2fd66d0219b..e43e8d5d1b42 100644 --- a/packages/@azure/arm-sql/lib/operations/dataMaskingRules.ts +++ b/packages/@azure/arm-sql/lib/operations/dataMaskingRules.ts @@ -59,7 +59,7 @@ export class DataMaskingRules { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -100,7 +100,7 @@ export class DataMaskingRules { * @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 { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/databaseAutomaticTuningOperations.ts b/packages/@azure/arm-sql/lib/operations/databaseAutomaticTuningOperations.ts index b54a5d288227..cfaeb9ddfa3a 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseAutomaticTuningOperations.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseAutomaticTuningOperations.ts @@ -53,7 +53,7 @@ export class DatabaseAutomaticTuningOperations { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,7 +95,7 @@ export class DatabaseAutomaticTuningOperations { * @param callback The callback */ update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseAutomaticTuning, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseAutomaticTuning, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseAutomaticTuning, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/databaseBlobAuditingPolicies.ts b/packages/@azure/arm-sql/lib/operations/databaseBlobAuditingPolicies.ts index 40b6610f76dc..a21faa8f104e 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseBlobAuditingPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseBlobAuditingPolicies.ts @@ -53,7 +53,7 @@ export class DatabaseBlobAuditingPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,7 +95,7 @@ export class DatabaseBlobAuditingPolicies { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseBlobAuditingPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseBlobAuditingPolicy, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseBlobAuditingPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/databaseOperations.ts b/packages/@azure/arm-sql/lib/operations/databaseOperations.ts index e009d835634d..160c00f10eca 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseOperations.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseOperations.ts @@ -56,7 +56,7 @@ export class DatabaseOperations { * @param callback The callback */ cancel(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - cancel(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + cancel(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -96,7 +96,7 @@ export class DatabaseOperations { * @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 { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -126,7 +126,7 @@ export class DatabaseOperations { * @param callback The callback */ listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/databaseThreatDetectionPolicies.ts b/packages/@azure/arm-sql/lib/operations/databaseThreatDetectionPolicies.ts index 902e065e1624..632378db57f0 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseThreatDetectionPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseThreatDetectionPolicies.ts @@ -56,7 +56,7 @@ export class DatabaseThreatDetectionPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -101,7 +101,7 @@ export class DatabaseThreatDetectionPolicies { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/databaseUsages.ts b/packages/@azure/arm-sql/lib/operations/databaseUsages.ts index 359798a16c38..1371a7ef1350 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseUsages.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseUsages.ts @@ -53,7 +53,7 @@ export class DatabaseUsages { * @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 { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentRuleBaselines.ts b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentRuleBaselines.ts index c9e150ef3a7f..4f53146a5e9c 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentRuleBaselines.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentRuleBaselines.ts @@ -68,7 +68,7 @@ export class DatabaseVulnerabilityAssessmentRuleBaselines { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -127,7 +127,7 @@ export class DatabaseVulnerabilityAssessmentRuleBaselines { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -184,7 +184,7 @@ export class DatabaseVulnerabilityAssessmentRuleBaselines { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentScans.ts b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentScans.ts index 1a5b2ad8434b..8ee776567460 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentScans.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentScans.ts @@ -54,7 +54,7 @@ export class DatabaseVulnerabilityAssessmentScans { * @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 { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -96,7 +96,7 @@ export class DatabaseVulnerabilityAssessmentScans { * @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 { + get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -154,7 +154,7 @@ export class DatabaseVulnerabilityAssessmentScans { * @param callback The callback */ exportMethod(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - exportMethod(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + exportMethod(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -208,7 +208,7 @@ export class DatabaseVulnerabilityAssessmentScans { * @param callback The callback */ listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts index 4cc14b598567..89ea1f41fd7d 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts @@ -53,7 +53,7 @@ export class DatabaseVulnerabilityAssessments { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,7 +95,7 @@ export class DatabaseVulnerabilityAssessments { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -135,7 +135,7 @@ export class DatabaseVulnerabilityAssessments { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -177,7 +177,7 @@ export class DatabaseVulnerabilityAssessments { * @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 { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -207,7 +207,7 @@ export class DatabaseVulnerabilityAssessments { * @param callback The callback */ listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/databases.ts b/packages/@azure/arm-sql/lib/operations/databases.ts index cfc33583ec04..fceebf768045 100644 --- a/packages/@azure/arm-sql/lib/operations/databases.ts +++ b/packages/@azure/arm-sql/lib/operations/databases.ts @@ -102,7 +102,7 @@ export class Databases { * @param callback The callback */ listMetrics(resourceGroupName: string, serverName: string, databaseName: string, filter: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetrics(resourceGroupName: string, serverName: string, databaseName: string, filter: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listMetrics(resourceGroupName: string, serverName: string, databaseName: string, filter: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -142,7 +142,7 @@ export class Databases { * @param callback The callback */ listMetricDefinitions(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetricDefinitions(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listMetricDefinitions(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -192,7 +192,7 @@ export class Databases { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -230,7 +230,7 @@ export class Databases { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -313,7 +313,7 @@ export class Databases { * @param callback The callback */ listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -383,7 +383,7 @@ export class Databases { * @param callback The callback */ rename(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ResourceMoveDefinition, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - rename(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ResourceMoveDefinition, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + rename(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ResourceMoveDefinition, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -612,7 +612,7 @@ export class Databases { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -640,7 +640,7 @@ export class Databases { * @param callback The callback */ listByElasticPoolNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByElasticPoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/elasticPoolActivities.ts b/packages/@azure/arm-sql/lib/operations/elasticPoolActivities.ts index f0cd55a3bf16..b92a53a28564 100644 --- a/packages/@azure/arm-sql/lib/operations/elasticPoolActivities.ts +++ b/packages/@azure/arm-sql/lib/operations/elasticPoolActivities.ts @@ -53,7 +53,7 @@ export class ElasticPoolActivities { * @param callback The callback */ listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/elasticPoolDatabaseActivities.ts b/packages/@azure/arm-sql/lib/operations/elasticPoolDatabaseActivities.ts index 40bd860dad04..ce192573ba8f 100644 --- a/packages/@azure/arm-sql/lib/operations/elasticPoolDatabaseActivities.ts +++ b/packages/@azure/arm-sql/lib/operations/elasticPoolDatabaseActivities.ts @@ -53,7 +53,7 @@ export class ElasticPoolDatabaseActivities { * @param callback The callback */ listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/elasticPoolOperations.ts b/packages/@azure/arm-sql/lib/operations/elasticPoolOperations.ts index a3df02920d9e..466c2521e191 100644 --- a/packages/@azure/arm-sql/lib/operations/elasticPoolOperations.ts +++ b/packages/@azure/arm-sql/lib/operations/elasticPoolOperations.ts @@ -56,7 +56,7 @@ export class ElasticPoolOperations { * @param callback The callback */ cancel(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - cancel(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + cancel(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -96,7 +96,7 @@ export class ElasticPoolOperations { * @param callback The callback */ listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -126,7 +126,7 @@ export class ElasticPoolOperations { * @param callback The callback */ listByElasticPoolNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByElasticPoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/elasticPools.ts b/packages/@azure/arm-sql/lib/operations/elasticPools.ts index 5aac4d0d8dab..7cbca290d4a0 100644 --- a/packages/@azure/arm-sql/lib/operations/elasticPools.ts +++ b/packages/@azure/arm-sql/lib/operations/elasticPools.ts @@ -57,7 +57,7 @@ export class ElasticPools { * @param callback The callback */ listMetrics(resourceGroupName: string, serverName: string, elasticPoolName: string, filter: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetrics(resourceGroupName: string, serverName: string, elasticPoolName: string, filter: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listMetrics(resourceGroupName: string, serverName: string, elasticPoolName: string, filter: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -97,7 +97,7 @@ export class ElasticPools { * @param callback The callback */ listMetricDefinitions(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetricDefinitions(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listMetricDefinitions(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -133,7 +133,7 @@ export class ElasticPools { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: Models.ElasticPoolsListByServerOptionalParams, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: Models.ElasticPoolsListByServerOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: Models.ElasticPoolsListByServerOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -171,7 +171,7 @@ export class ElasticPools { * @param callback The callback */ get(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -312,7 +312,7 @@ export class ElasticPools { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/encryptionProtectors.ts b/packages/@azure/arm-sql/lib/operations/encryptionProtectors.ts index 754eaaccda7e..c71397cbefbd 100644 --- a/packages/@azure/arm-sql/lib/operations/encryptionProtectors.ts +++ b/packages/@azure/arm-sql/lib/operations/encryptionProtectors.ts @@ -51,7 +51,7 @@ export class EncryptionProtectors { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -86,7 +86,7 @@ export class EncryptionProtectors { * @param callback The callback */ get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -150,7 +150,7 @@ export class EncryptionProtectors { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/extendedDatabaseBlobAuditingPolicies.ts b/packages/@azure/arm-sql/lib/operations/extendedDatabaseBlobAuditingPolicies.ts index b7111daf6c03..9159678a491c 100644 --- a/packages/@azure/arm-sql/lib/operations/extendedDatabaseBlobAuditingPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/extendedDatabaseBlobAuditingPolicies.ts @@ -53,7 +53,7 @@ export class ExtendedDatabaseBlobAuditingPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,7 +95,7 @@ export class ExtendedDatabaseBlobAuditingPolicies { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ExtendedDatabaseBlobAuditingPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ExtendedDatabaseBlobAuditingPolicy, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ExtendedDatabaseBlobAuditingPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/extendedServerBlobAuditingPolicies.ts b/packages/@azure/arm-sql/lib/operations/extendedServerBlobAuditingPolicies.ts index ad63a5ca6f15..1c5750a89df1 100644 --- a/packages/@azure/arm-sql/lib/operations/extendedServerBlobAuditingPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/extendedServerBlobAuditingPolicies.ts @@ -51,7 +51,7 @@ export class ExtendedServerBlobAuditingPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/failoverGroups.ts b/packages/@azure/arm-sql/lib/operations/failoverGroups.ts index c91e0c4bbafd..21e1271e129b 100644 --- a/packages/@azure/arm-sql/lib/operations/failoverGroups.ts +++ b/packages/@azure/arm-sql/lib/operations/failoverGroups.ts @@ -54,7 +54,7 @@ export class FailoverGroups { * @param callback The callback */ get(resourceGroupName: string, serverName: string, failoverGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -134,7 +134,7 @@ export class FailoverGroups { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -302,7 +302,7 @@ export class FailoverGroups { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/firewallRules.ts b/packages/@azure/arm-sql/lib/operations/firewallRules.ts index 2e43b97e51d7..973727b6c7b6 100644 --- a/packages/@azure/arm-sql/lib/operations/firewallRules.ts +++ b/packages/@azure/arm-sql/lib/operations/firewallRules.ts @@ -56,7 +56,7 @@ export class FirewallRules { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: Models.FirewallRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: Models.FirewallRule, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: Models.FirewallRule, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -96,7 +96,7 @@ export class FirewallRules { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, firewallRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -135,7 +135,7 @@ export class FirewallRules { * @param callback The callback */ get(resourceGroupName: string, serverName: string, firewallRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -171,7 +171,7 @@ export class FirewallRules { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/geoBackupPolicies.ts b/packages/@azure/arm-sql/lib/operations/geoBackupPolicies.ts index 316213527d55..1d5e8530fe2b 100644 --- a/packages/@azure/arm-sql/lib/operations/geoBackupPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/geoBackupPolicies.ts @@ -56,7 +56,7 @@ export class GeoBackupPolicies { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.GeoBackupPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.GeoBackupPolicy, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.GeoBackupPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -96,7 +96,7 @@ export class GeoBackupPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -135,7 +135,7 @@ export class GeoBackupPolicies { * @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 { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/instanceFailoverGroups.ts b/packages/@azure/arm-sql/lib/operations/instanceFailoverGroups.ts index bffd1e010731..49859eecb3ef 100644 --- a/packages/@azure/arm-sql/lib/operations/instanceFailoverGroups.ts +++ b/packages/@azure/arm-sql/lib/operations/instanceFailoverGroups.ts @@ -54,7 +54,7 @@ export class InstanceFailoverGroups { * @param callback The callback */ get(resourceGroupName: string, locationName: string, failoverGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -119,7 +119,7 @@ export class InstanceFailoverGroups { * @param callback The callback */ listByLocation(resourceGroupName: string, locationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByLocation(resourceGroupName: string, locationName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByLocation(resourceGroupName: string, locationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -264,7 +264,7 @@ export class InstanceFailoverGroups { * @param callback The callback */ listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/jobAgents.ts b/packages/@azure/arm-sql/lib/operations/jobAgents.ts index 69e7bc400df8..903641d6f319 100644 --- a/packages/@azure/arm-sql/lib/operations/jobAgents.ts +++ b/packages/@azure/arm-sql/lib/operations/jobAgents.ts @@ -51,7 +51,7 @@ export class JobAgents { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -89,7 +89,7 @@ export class JobAgents { * @param callback The callback */ get(resourceGroupName: string, serverName: string, jobAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -230,7 +230,7 @@ export class JobAgents { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/jobCredentials.ts b/packages/@azure/arm-sql/lib/operations/jobCredentials.ts index a9d1a3df8077..53c8197733f4 100644 --- a/packages/@azure/arm-sql/lib/operations/jobCredentials.ts +++ b/packages/@azure/arm-sql/lib/operations/jobCredentials.ts @@ -53,7 +53,7 @@ export class JobCredentials { * @param callback The callback */ listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,7 +95,7 @@ export class JobCredentials { * @param callback The callback */ get(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -141,7 +141,7 @@ export class JobCredentials { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, parameters: Models.JobCredential, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, parameters: Models.JobCredential, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, parameters: Models.JobCredential, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -185,7 +185,7 @@ export class JobCredentials { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -216,7 +216,7 @@ export class JobCredentials { * @param callback The callback */ listByAgentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/jobExecutions.ts b/packages/@azure/arm-sql/lib/operations/jobExecutions.ts index e6218dc90edd..1e929e52832a 100644 --- a/packages/@azure/arm-sql/lib/operations/jobExecutions.ts +++ b/packages/@azure/arm-sql/lib/operations/jobExecutions.ts @@ -54,7 +54,7 @@ export class JobExecutions { * @param callback The callback */ listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options: Models.JobExecutionsListByAgentOptionalParams, callback: msRest.ServiceCallback): void; - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: Models.JobExecutionsListByAgentOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: Models.JobExecutionsListByAgentOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -99,7 +99,7 @@ export class JobExecutions { * @param callback The callback */ cancel(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - cancel(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + cancel(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -158,7 +158,7 @@ export class JobExecutions { * @param callback The callback */ listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options: Models.JobExecutionsListByJobOptionalParams, callback: msRest.ServiceCallback): void; - listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: Models.JobExecutionsListByJobOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: Models.JobExecutionsListByJobOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -204,7 +204,7 @@ export class JobExecutions { * @param callback The callback */ get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -300,7 +300,7 @@ export class JobExecutions { * @param callback The callback */ listByAgentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -328,7 +328,7 @@ export class JobExecutions { * @param callback The callback */ listByJobNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/jobStepExecutions.ts b/packages/@azure/arm-sql/lib/operations/jobStepExecutions.ts index f421d4b5b31c..6054ec657780 100644 --- a/packages/@azure/arm-sql/lib/operations/jobStepExecutions.ts +++ b/packages/@azure/arm-sql/lib/operations/jobStepExecutions.ts @@ -59,7 +59,7 @@ export class JobStepExecutions { * @param callback The callback */ listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options: Models.JobStepExecutionsListByJobExecutionOptionalParams, callback: msRest.ServiceCallback): void; - listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: Models.JobStepExecutionsListByJobExecutionOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: Models.JobStepExecutionsListByJobExecutionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -109,7 +109,7 @@ export class JobStepExecutions { * @param callback The callback */ get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -142,7 +142,7 @@ export class JobStepExecutions { * @param callback The callback */ listByJobExecutionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJobExecutionNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByJobExecutionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/jobSteps.ts b/packages/@azure/arm-sql/lib/operations/jobSteps.ts index 861b9991db68..81d830892008 100644 --- a/packages/@azure/arm-sql/lib/operations/jobSteps.ts +++ b/packages/@azure/arm-sql/lib/operations/jobSteps.ts @@ -59,7 +59,7 @@ export class JobSteps { * @param callback The callback */ listByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -109,7 +109,7 @@ export class JobSteps { * @param callback The callback */ getByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, stepName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, stepName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + getByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, stepName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -154,7 +154,7 @@ export class JobSteps { * @param callback The callback */ listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -200,7 +200,7 @@ export class JobSteps { * @param callback The callback */ get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -250,7 +250,7 @@ export class JobSteps { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, parameters: Models.JobStep, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, parameters: Models.JobStep, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, parameters: Models.JobStep, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -298,7 +298,7 @@ export class JobSteps { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -330,7 +330,7 @@ export class JobSteps { * @param callback The callback */ listByVersionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByVersionNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByVersionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -358,7 +358,7 @@ export class JobSteps { * @param callback The callback */ listByJobNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/jobTargetExecutions.ts b/packages/@azure/arm-sql/lib/operations/jobTargetExecutions.ts index 27c0ffd22a4c..96d69772ca6d 100644 --- a/packages/@azure/arm-sql/lib/operations/jobTargetExecutions.ts +++ b/packages/@azure/arm-sql/lib/operations/jobTargetExecutions.ts @@ -59,7 +59,7 @@ export class JobTargetExecutions { * @param callback The callback */ listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options: Models.JobTargetExecutionsListByJobExecutionOptionalParams, callback: msRest.ServiceCallback): void; - listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: Models.JobTargetExecutionsListByJobExecutionOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: Models.JobTargetExecutionsListByJobExecutionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -109,7 +109,7 @@ export class JobTargetExecutions { * @param callback The callback */ listByStep(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options: Models.JobTargetExecutionsListByStepOptionalParams, callback: msRest.ServiceCallback): void; - listByStep(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options?: Models.JobTargetExecutionsListByStepOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByStep(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options?: Models.JobTargetExecutionsListByStepOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -163,7 +163,7 @@ export class JobTargetExecutions { * @param callback The callback */ get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, targetId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, targetId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, targetId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -197,7 +197,7 @@ export class JobTargetExecutions { * @param callback The callback */ listByJobExecutionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJobExecutionNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByJobExecutionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -225,7 +225,7 @@ export class JobTargetExecutions { * @param callback The callback */ listByStepNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByStepNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByStepNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/jobTargetGroups.ts b/packages/@azure/arm-sql/lib/operations/jobTargetGroups.ts index 93f7e3e10b11..e2db4c4a0853 100644 --- a/packages/@azure/arm-sql/lib/operations/jobTargetGroups.ts +++ b/packages/@azure/arm-sql/lib/operations/jobTargetGroups.ts @@ -53,7 +53,7 @@ export class JobTargetGroups { * @param callback The callback */ listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,7 +95,7 @@ export class JobTargetGroups { * @param callback The callback */ get(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -141,7 +141,7 @@ export class JobTargetGroups { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, parameters: Models.JobTargetGroup, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, parameters: Models.JobTargetGroup, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, parameters: Models.JobTargetGroup, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -185,7 +185,7 @@ export class JobTargetGroups { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -216,7 +216,7 @@ export class JobTargetGroups { * @param callback The callback */ listByAgentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/jobVersions.ts b/packages/@azure/arm-sql/lib/operations/jobVersions.ts index 3dc6238682c6..31016c7f1429 100644 --- a/packages/@azure/arm-sql/lib/operations/jobVersions.ts +++ b/packages/@azure/arm-sql/lib/operations/jobVersions.ts @@ -56,7 +56,7 @@ export class JobVersions { * @param callback The callback */ listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -102,7 +102,7 @@ export class JobVersions { * @param callback The callback */ get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -134,7 +134,7 @@ export class JobVersions { * @param callback The callback */ listByJobNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/jobs.ts b/packages/@azure/arm-sql/lib/operations/jobs.ts index 5f98993595ed..c4c46ebb7525 100644 --- a/packages/@azure/arm-sql/lib/operations/jobs.ts +++ b/packages/@azure/arm-sql/lib/operations/jobs.ts @@ -53,7 +53,7 @@ export class Jobs { * @param callback The callback */ listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,7 +95,7 @@ export class Jobs { * @param callback The callback */ get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -141,7 +141,7 @@ export class Jobs { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, parameters: Models.Job, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, parameters: Models.Job, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, parameters: Models.Job, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -185,7 +185,7 @@ export class Jobs { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -216,7 +216,7 @@ export class Jobs { * @param callback The callback */ listByAgentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/longTermRetentionBackups.ts b/packages/@azure/arm-sql/lib/operations/longTermRetentionBackups.ts index f720121359b3..01641e38b809 100644 --- a/packages/@azure/arm-sql/lib/operations/longTermRetentionBackups.ts +++ b/packages/@azure/arm-sql/lib/operations/longTermRetentionBackups.ts @@ -54,7 +54,7 @@ export class LongTermRetentionBackups { * @param callback The callback */ get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { locationName, @@ -105,7 +105,7 @@ export class LongTermRetentionBackups { * @param callback The callback */ listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options: Models.LongTermRetentionBackupsListByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; - listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: Models.LongTermRetentionBackupsListByDatabaseOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: Models.LongTermRetentionBackupsListByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { locationName, @@ -135,7 +135,7 @@ export class LongTermRetentionBackups { * @param callback The callback */ listByLocation(locationName: string, options: Models.LongTermRetentionBackupsListByLocationOptionalParams, callback: msRest.ServiceCallback): void; - listByLocation(locationName: string, options?: Models.LongTermRetentionBackupsListByLocationOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByLocation(locationName: string, options?: Models.LongTermRetentionBackupsListByLocationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { locationName, @@ -166,7 +166,7 @@ export class LongTermRetentionBackups { * @param callback The callback */ listByServer(locationName: string, longTermRetentionServerName: string, options: Models.LongTermRetentionBackupsListByServerOptionalParams, callback: msRest.ServiceCallback): void; - listByServer(locationName: string, longTermRetentionServerName: string, options?: Models.LongTermRetentionBackupsListByServerOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByServer(locationName: string, longTermRetentionServerName: string, options?: Models.LongTermRetentionBackupsListByServerOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { locationName, @@ -217,7 +217,7 @@ export class LongTermRetentionBackups { * @param callback The callback */ listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -245,7 +245,7 @@ export class LongTermRetentionBackups { * @param callback The callback */ listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -273,7 +273,7 @@ export class LongTermRetentionBackups { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts b/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts index 0e597389c0d1..c896f162e50f 100644 --- a/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts +++ b/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts @@ -68,7 +68,7 @@ export class ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * @param callback The callback */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -128,7 +128,7 @@ export class ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * @param callback The callback */ createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -185,7 +185,7 @@ export class ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * @param callback The callback */ deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessmentScans.ts b/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessmentScans.ts index 7ebf91e2a1e6..0e0d7b3a6690 100644 --- a/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessmentScans.ts +++ b/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessmentScans.ts @@ -54,7 +54,7 @@ export class ManagedDatabaseVulnerabilityAssessmentScans { * @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 { + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -96,7 +96,7 @@ export class ManagedDatabaseVulnerabilityAssessmentScans { * @param callback The callback */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -154,7 +154,7 @@ export class ManagedDatabaseVulnerabilityAssessmentScans { * @param callback The callback */ exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -208,7 +208,7 @@ export class ManagedDatabaseVulnerabilityAssessmentScans { * @param callback The callback */ listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts b/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts index e750987e8fc4..1c8ea822e78b 100644 --- a/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts +++ b/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts @@ -53,7 +53,7 @@ export class ManagedDatabaseVulnerabilityAssessments { * @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 { + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,7 +95,7 @@ export class ManagedDatabaseVulnerabilityAssessments { * @param callback The callback */ createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -135,7 +135,7 @@ export class ManagedDatabaseVulnerabilityAssessments { * @param callback The callback */ deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -174,7 +174,7 @@ export class ManagedDatabaseVulnerabilityAssessments { * @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 { + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -204,7 +204,7 @@ export class ManagedDatabaseVulnerabilityAssessments { * @param callback The callback */ listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/managedDatabases.ts b/packages/@azure/arm-sql/lib/operations/managedDatabases.ts index 40dd8c4b9ddc..d8a6f60e4a10 100644 --- a/packages/@azure/arm-sql/lib/operations/managedDatabases.ts +++ b/packages/@azure/arm-sql/lib/operations/managedDatabases.ts @@ -64,7 +64,7 @@ export class ManagedDatabases { * @param callback The callback */ listByInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -102,7 +102,7 @@ export class ManagedDatabases { * @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 { + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -263,7 +263,7 @@ export class ManagedDatabases { * @param callback The callback */ listByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/managedInstanceEncryptionProtectors.ts b/packages/@azure/arm-sql/lib/operations/managedInstanceEncryptionProtectors.ts index 28d6393fd1b7..4246958c299b 100644 --- a/packages/@azure/arm-sql/lib/operations/managedInstanceEncryptionProtectors.ts +++ b/packages/@azure/arm-sql/lib/operations/managedInstanceEncryptionProtectors.ts @@ -51,7 +51,7 @@ export class ManagedInstanceEncryptionProtectors { * @param callback The callback */ listByInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -86,7 +86,7 @@ export class ManagedInstanceEncryptionProtectors { * @param callback The callback */ get(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -150,7 +150,7 @@ export class ManagedInstanceEncryptionProtectors { * @param callback The callback */ listByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/managedInstanceKeys.ts b/packages/@azure/arm-sql/lib/operations/managedInstanceKeys.ts index 3101009705bf..7c47dbcbde46 100644 --- a/packages/@azure/arm-sql/lib/operations/managedInstanceKeys.ts +++ b/packages/@azure/arm-sql/lib/operations/managedInstanceKeys.ts @@ -51,7 +51,7 @@ export class ManagedInstanceKeys { * @param callback The callback */ listByInstance(resourceGroupName: string, managedInstanceName: string, options: Models.ManagedInstanceKeysListByInstanceOptionalParams, callback: msRest.ServiceCallback): void; - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: Models.ManagedInstanceKeysListByInstanceOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: Models.ManagedInstanceKeysListByInstanceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -89,7 +89,7 @@ export class ManagedInstanceKeys { * @param callback The callback */ get(resourceGroupName: string, managedInstanceName: string, keyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -192,7 +192,7 @@ export class ManagedInstanceKeys { * @param callback The callback */ listByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/managedInstances.ts b/packages/@azure/arm-sql/lib/operations/managedInstances.ts index 061d16448fc6..552a3c69f748 100644 --- a/packages/@azure/arm-sql/lib/operations/managedInstances.ts +++ b/packages/@azure/arm-sql/lib/operations/managedInstances.ts @@ -42,7 +42,7 @@ export class ManagedInstances { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -72,7 +72,7 @@ export class ManagedInstances { * @param callback The callback */ listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -106,7 +106,7 @@ export class ManagedInstances { * @param callback The callback */ get(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -237,7 +237,7 @@ export class ManagedInstances { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -265,7 +265,7 @@ export class ManagedInstances { * @param callback The callback */ listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/operations.ts b/packages/@azure/arm-sql/lib/operations/operations.ts index 87f5b2fa5688..177a37976b51 100644 --- a/packages/@azure/arm-sql/lib/operations/operations.ts +++ b/packages/@azure/arm-sql/lib/operations/operations.ts @@ -41,7 +41,7 @@ export class Operations { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -68,7 +68,7 @@ export class Operations { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/recommendedElasticPools.ts b/packages/@azure/arm-sql/lib/operations/recommendedElasticPools.ts index 256982fceaad..460b515c9db3 100644 --- a/packages/@azure/arm-sql/lib/operations/recommendedElasticPools.ts +++ b/packages/@azure/arm-sql/lib/operations/recommendedElasticPools.ts @@ -53,7 +53,7 @@ export class RecommendedElasticPools { * @param callback The callback */ get(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -89,7 +89,7 @@ export class RecommendedElasticPools { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -127,7 +127,7 @@ export class RecommendedElasticPools { * @param callback The callback */ listMetrics(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetrics(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listMetrics(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/recoverableDatabases.ts b/packages/@azure/arm-sql/lib/operations/recoverableDatabases.ts index 192c7c3078cf..95d777731ee6 100644 --- a/packages/@azure/arm-sql/lib/operations/recoverableDatabases.ts +++ b/packages/@azure/arm-sql/lib/operations/recoverableDatabases.ts @@ -53,7 +53,7 @@ export class RecoverableDatabases { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -89,7 +89,7 @@ export class RecoverableDatabases { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/replicationLinks.ts b/packages/@azure/arm-sql/lib/operations/replicationLinks.ts index 55db150f0564..4be73d0fc290 100644 --- a/packages/@azure/arm-sql/lib/operations/replicationLinks.ts +++ b/packages/@azure/arm-sql/lib/operations/replicationLinks.ts @@ -57,7 +57,7 @@ export class ReplicationLinks { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -100,7 +100,7 @@ export class ReplicationLinks { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -172,7 +172,7 @@ export class ReplicationLinks { * @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 { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/restorableDroppedDatabases.ts b/packages/@azure/arm-sql/lib/operations/restorableDroppedDatabases.ts index 786c56b95a7e..d1799028da81 100644 --- a/packages/@azure/arm-sql/lib/operations/restorableDroppedDatabases.ts +++ b/packages/@azure/arm-sql/lib/operations/restorableDroppedDatabases.ts @@ -56,7 +56,7 @@ export class RestorableDroppedDatabases { * @param callback The callback */ get(resourceGroupName: string, serverName: string, restorableDroppededDatabaseId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, restorableDroppededDatabaseId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, restorableDroppededDatabaseId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -92,7 +92,7 @@ export class RestorableDroppedDatabases { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/restorePoints.ts b/packages/@azure/arm-sql/lib/operations/restorePoints.ts index 674c6cc91803..a1496af0b04e 100644 --- a/packages/@azure/arm-sql/lib/operations/restorePoints.ts +++ b/packages/@azure/arm-sql/lib/operations/restorePoints.ts @@ -54,7 +54,7 @@ export class RestorePoints { * @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 { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -111,7 +111,7 @@ export class RestorePoints { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -154,7 +154,7 @@ export class RestorePoints { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/serverAutomaticTuningOperations.ts b/packages/@azure/arm-sql/lib/operations/serverAutomaticTuningOperations.ts index d23ec6a13284..0b9405cc7914 100644 --- a/packages/@azure/arm-sql/lib/operations/serverAutomaticTuningOperations.ts +++ b/packages/@azure/arm-sql/lib/operations/serverAutomaticTuningOperations.ts @@ -50,7 +50,7 @@ export class ServerAutomaticTuningOperations { * @param callback The callback */ get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -88,7 +88,7 @@ export class ServerAutomaticTuningOperations { * @param callback The callback */ update(resourceGroupName: string, serverName: string, parameters: Models.ServerAutomaticTuning, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, serverName: string, parameters: Models.ServerAutomaticTuning, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + update(resourceGroupName: string, serverName: string, parameters: Models.ServerAutomaticTuning, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/serverAzureADAdministrators.ts b/packages/@azure/arm-sql/lib/operations/serverAzureADAdministrators.ts index c16ecded9d18..7d0c9c6730d5 100644 --- a/packages/@azure/arm-sql/lib/operations/serverAzureADAdministrators.ts +++ b/packages/@azure/arm-sql/lib/operations/serverAzureADAdministrators.ts @@ -80,7 +80,7 @@ export class ServerAzureADAdministrators { * @param callback The callback */ get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -115,7 +115,7 @@ export class ServerAzureADAdministrators { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/serverBlobAuditingPolicies.ts b/packages/@azure/arm-sql/lib/operations/serverBlobAuditingPolicies.ts index ab6adc70d82d..9ea90510f866 100644 --- a/packages/@azure/arm-sql/lib/operations/serverBlobAuditingPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/serverBlobAuditingPolicies.ts @@ -51,7 +51,7 @@ export class ServerBlobAuditingPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/serverCommunicationLinks.ts b/packages/@azure/arm-sql/lib/operations/serverCommunicationLinks.ts index 0025b2d52b6a..ea566ec6ee37 100644 --- a/packages/@azure/arm-sql/lib/operations/serverCommunicationLinks.ts +++ b/packages/@azure/arm-sql/lib/operations/serverCommunicationLinks.ts @@ -54,7 +54,7 @@ export class ServerCommunicationLinks { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, communicationLinkName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -93,7 +93,7 @@ export class ServerCommunicationLinks { * @param callback The callback */ get(resourceGroupName: string, serverName: string, communicationLinkName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -144,7 +144,7 @@ export class ServerCommunicationLinks { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/serverConnectionPolicies.ts b/packages/@azure/arm-sql/lib/operations/serverConnectionPolicies.ts index 9f9db7fc570e..571b5136ad20 100644 --- a/packages/@azure/arm-sql/lib/operations/serverConnectionPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/serverConnectionPolicies.ts @@ -53,7 +53,7 @@ export class ServerConnectionPolicies { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerConnectionPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerConnectionPolicy, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerConnectionPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -89,7 +89,7 @@ export class ServerConnectionPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/serverDnsAliases.ts b/packages/@azure/arm-sql/lib/operations/serverDnsAliases.ts index 3ddfb2d90c08..39f226ebecdf 100644 --- a/packages/@azure/arm-sql/lib/operations/serverDnsAliases.ts +++ b/packages/@azure/arm-sql/lib/operations/serverDnsAliases.ts @@ -54,7 +54,7 @@ export class ServerDnsAliases { * @param callback The callback */ get(resourceGroupName: string, serverName: string, dnsAliasName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -118,7 +118,7 @@ export class ServerDnsAliases { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -227,7 +227,7 @@ export class ServerDnsAliases { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/serverKeys.ts b/packages/@azure/arm-sql/lib/operations/serverKeys.ts index 95f55eb26983..794bac8879a7 100644 --- a/packages/@azure/arm-sql/lib/operations/serverKeys.ts +++ b/packages/@azure/arm-sql/lib/operations/serverKeys.ts @@ -51,7 +51,7 @@ export class ServerKeys { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -89,7 +89,7 @@ export class ServerKeys { * @param callback The callback */ get(resourceGroupName: string, serverName: string, keyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, keyName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, keyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -200,7 +200,7 @@ export class ServerKeys { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/serverSecurityAlertPolicies.ts b/packages/@azure/arm-sql/lib/operations/serverSecurityAlertPolicies.ts index eff5e8ca8bc3..f1f28b579fa3 100644 --- a/packages/@azure/arm-sql/lib/operations/serverSecurityAlertPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/serverSecurityAlertPolicies.ts @@ -51,7 +51,7 @@ export class ServerSecurityAlertPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/serverUsages.ts b/packages/@azure/arm-sql/lib/operations/serverUsages.ts index 36045ebdfe7b..66f08058d052 100644 --- a/packages/@azure/arm-sql/lib/operations/serverUsages.ts +++ b/packages/@azure/arm-sql/lib/operations/serverUsages.ts @@ -50,7 +50,7 @@ export class ServerUsages { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/servers.ts b/packages/@azure/arm-sql/lib/operations/servers.ts index 77a1b586600d..9f0f2065699c 100644 --- a/packages/@azure/arm-sql/lib/operations/servers.ts +++ b/packages/@azure/arm-sql/lib/operations/servers.ts @@ -45,7 +45,7 @@ export class Servers { * @param callback The callback */ checkNameAvailability(parameters: Models.CheckNameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkNameAvailability(parameters: Models.CheckNameAvailabilityRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + checkNameAvailability(parameters: Models.CheckNameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -70,7 +70,7 @@ export class Servers { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -100,7 +100,7 @@ export class Servers { * @param callback The callback */ listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -134,7 +134,7 @@ export class Servers { * @param callback The callback */ get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -265,7 +265,7 @@ export class Servers { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -293,7 +293,7 @@ export class Servers { * @param callback The callback */ listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/serviceObjectives.ts b/packages/@azure/arm-sql/lib/operations/serviceObjectives.ts index 4b44b380c420..a4f56319eac3 100644 --- a/packages/@azure/arm-sql/lib/operations/serviceObjectives.ts +++ b/packages/@azure/arm-sql/lib/operations/serviceObjectives.ts @@ -53,7 +53,7 @@ export class ServiceObjectives { * @param callback The callback */ get(resourceGroupName: string, serverName: string, serviceObjectiveName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, serviceObjectiveName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, serviceObjectiveName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -89,7 +89,7 @@ export class ServiceObjectives { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/serviceTierAdvisors.ts b/packages/@azure/arm-sql/lib/operations/serviceTierAdvisors.ts index 0dfa0a866dfd..397138fe3422 100644 --- a/packages/@azure/arm-sql/lib/operations/serviceTierAdvisors.ts +++ b/packages/@azure/arm-sql/lib/operations/serviceTierAdvisors.ts @@ -56,7 +56,7 @@ export class ServiceTierAdvisors { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, serviceTierAdvisorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, serviceTierAdvisorName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, serviceTierAdvisorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -96,7 +96,7 @@ export class ServiceTierAdvisors { * @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 { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/subscriptionUsages.ts b/packages/@azure/arm-sql/lib/operations/subscriptionUsages.ts index cafe1f59310d..d840a52e73e7 100644 --- a/packages/@azure/arm-sql/lib/operations/subscriptionUsages.ts +++ b/packages/@azure/arm-sql/lib/operations/subscriptionUsages.ts @@ -44,7 +44,7 @@ export class SubscriptionUsages { * @param callback The callback */ listByLocation(locationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByLocation(locationName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByLocation(locationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { locationName, @@ -75,7 +75,7 @@ export class SubscriptionUsages { * @param callback The callback */ get(locationName: string, usageName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(locationName: string, usageName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(locationName: string, usageName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { locationName, @@ -104,7 +104,7 @@ export class SubscriptionUsages { * @param callback The callback */ listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/syncAgents.ts b/packages/@azure/arm-sql/lib/operations/syncAgents.ts index 46bb3cf0e95d..c54e459b1be4 100644 --- a/packages/@azure/arm-sql/lib/operations/syncAgents.ts +++ b/packages/@azure/arm-sql/lib/operations/syncAgents.ts @@ -54,7 +54,7 @@ export class SyncAgents { * @param callback The callback */ get(resourceGroupName: string, serverName: string, syncAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -119,7 +119,7 @@ export class SyncAgents { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -157,7 +157,7 @@ export class SyncAgents { * @param callback The callback */ generateKey(resourceGroupName: string, serverName: string, syncAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - generateKey(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + generateKey(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -196,7 +196,7 @@ export class SyncAgents { * @param callback The callback */ listLinkedDatabases(resourceGroupName: string, serverName: string, syncAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listLinkedDatabases(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listLinkedDatabases(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -270,7 +270,7 @@ export class SyncAgents { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -298,7 +298,7 @@ export class SyncAgents { * @param callback The callback */ listLinkedDatabasesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listLinkedDatabasesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listLinkedDatabasesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/syncGroups.ts b/packages/@azure/arm-sql/lib/operations/syncGroups.ts index e329d6e8bea0..166c242dea88 100644 --- a/packages/@azure/arm-sql/lib/operations/syncGroups.ts +++ b/packages/@azure/arm-sql/lib/operations/syncGroups.ts @@ -45,7 +45,7 @@ export class SyncGroups { * @param callback The callback */ listSyncDatabaseIds(locationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSyncDatabaseIds(locationName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSyncDatabaseIds(locationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { locationName, @@ -100,7 +100,7 @@ export class SyncGroups { * @param callback The callback */ listHubSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listHubSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listHubSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -155,7 +155,7 @@ export class SyncGroups { * @param callback The callback */ listLogs(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, startTime: string, endTime: string, type: Models.Type, options: Models.SyncGroupsListLogsOptionalParams, callback: msRest.ServiceCallback): void; - listLogs(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, startTime: string, endTime: string, type: Models.Type, options?: Models.SyncGroupsListLogsOptionalParams, callback?: msRest.ServiceCallback): Promise { + listLogs(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, startTime: string, endTime: string, type: Models.Type, options?: Models.SyncGroupsListLogsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -201,7 +201,7 @@ export class SyncGroups { * @param callback The callback */ cancelSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - cancelSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + cancelSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -244,7 +244,7 @@ export class SyncGroups { * @param callback The callback */ triggerSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - triggerSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + triggerSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -287,7 +287,7 @@ export class SyncGroups { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -374,7 +374,7 @@ export class SyncGroups { * @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 { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -500,7 +500,7 @@ export class SyncGroups { * @param callback The callback */ listSyncDatabaseIdsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSyncDatabaseIdsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSyncDatabaseIdsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -528,7 +528,7 @@ export class SyncGroups { * @param callback The callback */ listHubSchemasNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listHubSchemasNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listHubSchemasNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -556,7 +556,7 @@ export class SyncGroups { * @param callback The callback */ listLogsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listLogsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listLogsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -584,7 +584,7 @@ export class SyncGroups { * @param callback The callback */ listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/syncMembers.ts b/packages/@azure/arm-sql/lib/operations/syncMembers.ts index e17cc5d3c84f..e5c80427fb1c 100644 --- a/packages/@azure/arm-sql/lib/operations/syncMembers.ts +++ b/packages/@azure/arm-sql/lib/operations/syncMembers.ts @@ -60,7 +60,7 @@ export class SyncMembers { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -154,7 +154,7 @@ export class SyncMembers { * @param callback The callback */ listBySyncGroup(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySyncGroup(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listBySyncGroup(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -200,7 +200,7 @@ export class SyncMembers { * @param callback The callback */ listMemberSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMemberSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listMemberSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -352,7 +352,7 @@ export class SyncMembers { * @param callback The callback */ listBySyncGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySyncGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listBySyncGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -380,7 +380,7 @@ export class SyncMembers { * @param callback The callback */ listMemberSchemasNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMemberSchemasNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listMemberSchemasNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/transparentDataEncryptionActivities.ts b/packages/@azure/arm-sql/lib/operations/transparentDataEncryptionActivities.ts index 549b54b27089..7aa76fa6f621 100644 --- a/packages/@azure/arm-sql/lib/operations/transparentDataEncryptionActivities.ts +++ b/packages/@azure/arm-sql/lib/operations/transparentDataEncryptionActivities.ts @@ -53,7 +53,7 @@ export class TransparentDataEncryptionActivities { * @param callback The callback */ listByConfiguration(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByConfiguration(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByConfiguration(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/transparentDataEncryptions.ts b/packages/@azure/arm-sql/lib/operations/transparentDataEncryptions.ts index 6a14b3c1ec27..6298b9c5ac7e 100644 --- a/packages/@azure/arm-sql/lib/operations/transparentDataEncryptions.ts +++ b/packages/@azure/arm-sql/lib/operations/transparentDataEncryptions.ts @@ -59,7 +59,7 @@ export class TransparentDataEncryptions { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.TransparentDataEncryption, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.TransparentDataEncryption, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.TransparentDataEncryption, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -99,7 +99,7 @@ export class TransparentDataEncryptions { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/virtualNetworkRules.ts b/packages/@azure/arm-sql/lib/operations/virtualNetworkRules.ts index 81752c8dd9f7..c54904291fd9 100644 --- a/packages/@azure/arm-sql/lib/operations/virtualNetworkRules.ts +++ b/packages/@azure/arm-sql/lib/operations/virtualNetworkRules.ts @@ -54,7 +54,7 @@ export class VirtualNetworkRules { * @param callback The callback */ get(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -119,7 +119,7 @@ export class VirtualNetworkRules { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -192,7 +192,7 @@ export class VirtualNetworkRules { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts b/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts index 90e0186f833f..7a2ae0da6264 100644 --- a/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts +++ b/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "ms-rest-js"; import * as msRestAzure from "ms-rest-azure-js"; const packageName = "@azure/arm-sql"; -const packageVersion = "1.0.0-preview"; +const packageVersion = "0.1.0"; export class SqlManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -36,6 +36,11 @@ export class SqlManagementClientContext extends msRestAzure.AzureServiceClient { if (!options) { options = {}; } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + super(credentials, options); this.acceptLanguage = 'en-US'; @@ -45,7 +50,6 @@ export class SqlManagementClientContext extends msRestAzure.AzureServiceClient { this.credentials = credentials; this.subscriptionId = subscriptionId; - this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-sql/package.json b/packages/@azure/arm-sql/package.json index 01938af85ae2..1132efc12f51 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": "0.1.0", "dependencies": { - "ms-rest-azure-js": "^1.0.176", - "ms-rest-js": "^1.0.455", + "ms-rest-azure-js": "^1.0.181", + "ms-rest-js": "^1.0.461", "tslib": "^1.9.3" }, "keywords": [ @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +}