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