diff --git a/lib/services/sqlManagement2/README.md b/lib/services/sqlManagement2/README.md index 9083240548..a488679ebf 100644 --- a/lib/services/sqlManagement2/README.md +++ b/lib/services/sqlManagement2/README.md @@ -3,22 +3,23 @@ uid: azure-arm-sql summary: *content --- -# Microsoft Azure SDK for Node.js - SqlManagementClient +**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://github.com/Azure/azure-sdk-for-js) which works on Node.js and browsers.** +## Microsoft Azure SDK for Node.js - SqlManagementClient This project provides a Node.js package for accessing Azure. Right now it supports: - **Node.js version 6.x.x or higher** -## Features +### Features -## How to Install +### How to Install ```bash npm install azure-arm-sql ``` -## How to use +### How to use -### Authentication, client creation and get recoverableDatabases as an example. +#### Authentication, client creation and get recoverableDatabases as an example. ```javascript const msRestAzure = require("ms-rest-azure"); @@ -38,6 +39,6 @@ msRestAzure.interactiveLogin().then((creds) => { console.dir(err, {depth: null, colors: true}); }); -## Related projects +### Related projects - [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) diff --git a/lib/services/sqlManagement2/lib/models/automaticTuningOptions.js b/lib/services/sqlManagement2/lib/models/automaticTuningOptions.js index cc8a4107e0..a9ea3e6f49 100644 --- a/lib/services/sqlManagement2/lib/models/automaticTuningOptions.js +++ b/lib/services/sqlManagement2/lib/models/automaticTuningOptions.js @@ -17,13 +17,13 @@ class AutomaticTuningOptions { /** * Create a AutomaticTuningOptions. - * @member {string} [desiredState] Automatic tuning option desired state. + * @property {string} [desiredState] Automatic tuning option desired state. * Possible values include: 'Off', 'On', 'Default' - * @member {string} [actualState] Automatic tuning option actual state. + * @property {string} [actualState] Automatic tuning option actual state. * Possible values include: 'Off', 'On' - * @member {number} [reasonCode] Reason code if desired and actual state are - * different. - * @member {string} [reasonDesc] Reason description if desired and actual + * @property {number} [reasonCode] Reason code if desired and actual state + * are different. + * @property {string} [reasonDesc] Reason description if desired and actual * state are different. Possible values include: 'Default', 'Disabled', * 'AutoConfigured', 'InheritedFromServer', 'QueryStoreOff', * 'QueryStoreReadOnly', 'NotSupported' diff --git a/lib/services/sqlManagement2/lib/models/automaticTuningServerOptions.js b/lib/services/sqlManagement2/lib/models/automaticTuningServerOptions.js index 139c420e84..6dd25a26c7 100644 --- a/lib/services/sqlManagement2/lib/models/automaticTuningServerOptions.js +++ b/lib/services/sqlManagement2/lib/models/automaticTuningServerOptions.js @@ -17,13 +17,13 @@ class AutomaticTuningServerOptions { /** * Create a AutomaticTuningServerOptions. - * @member {string} [desiredState] Automatic tuning option desired state. + * @property {string} [desiredState] Automatic tuning option desired state. * Possible values include: 'Off', 'On', 'Default' - * @member {string} [actualState] Automatic tuning option actual state. + * @property {string} [actualState] Automatic tuning option actual state. * Possible values include: 'Off', 'On' - * @member {number} [reasonCode] Reason code if desired and actual state are - * different. - * @member {string} [reasonDesc] Reason description if desired and actual + * @property {number} [reasonCode] Reason code if desired and actual state + * are different. + * @property {string} [reasonDesc] Reason description if desired and actual * state are different. Possible values include: 'Default', 'Disabled', * 'AutoConfigured' */ diff --git a/lib/services/sqlManagement2/lib/models/backupLongTermRetentionPolicy.js b/lib/services/sqlManagement2/lib/models/backupLongTermRetentionPolicy.js index 7eb9cd128c..4c5042bd1c 100644 --- a/lib/services/sqlManagement2/lib/models/backupLongTermRetentionPolicy.js +++ b/lib/services/sqlManagement2/lib/models/backupLongTermRetentionPolicy.js @@ -20,13 +20,13 @@ const models = require('./index'); class BackupLongTermRetentionPolicy extends models['ProxyResource'] { /** * Create a BackupLongTermRetentionPolicy. - * @member {string} [weeklyRetention] The weekly retention policy for an LTR - * backup in an ISO 8601 format. - * @member {string} [monthlyRetention] The monthly retention policy for an + * @property {string} [weeklyRetention] The weekly retention policy for an * LTR backup in an ISO 8601 format. - * @member {string} [yearlyRetention] The yearly retention policy for an LTR - * backup in an ISO 8601 format. - * @member {number} [weekOfYear] The week of year to take the yearly backup + * @property {string} [monthlyRetention] The monthly retention policy for an + * LTR backup in an ISO 8601 format. + * @property {string} [yearlyRetention] The yearly retention policy for an + * LTR backup in an ISO 8601 format. + * @property {number} [weekOfYear] The week of year to take the yearly backup * in an ISO 8601 format. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/backupShortTermRetentionPolicy.js b/lib/services/sqlManagement2/lib/models/backupShortTermRetentionPolicy.js index 1cad08c8c8..02af78013a 100644 --- a/lib/services/sqlManagement2/lib/models/backupShortTermRetentionPolicy.js +++ b/lib/services/sqlManagement2/lib/models/backupShortTermRetentionPolicy.js @@ -20,8 +20,8 @@ const models = require('./index'); class BackupShortTermRetentionPolicy extends models['ProxyResource'] { /** * Create a BackupShortTermRetentionPolicy. - * @member {number} [retentionDays] The backup retention period in days. This - * is how many days Point-in-Time Restore will be supported. + * @property {number} [retentionDays] The backup retention period in days. + * This is how many days Point-in-Time Restore will be supported. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/backupShortTermRetentionPolicyListResult.js b/lib/services/sqlManagement2/lib/models/backupShortTermRetentionPolicyListResult.js index e373fcff28..6802488f39 100644 --- a/lib/services/sqlManagement2/lib/models/backupShortTermRetentionPolicyListResult.js +++ b/lib/services/sqlManagement2/lib/models/backupShortTermRetentionPolicyListResult.js @@ -16,7 +16,7 @@ class BackupShortTermRetentionPolicyListResult extends Array { /** * Create a BackupShortTermRetentionPolicyListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/checkNameAvailabilityRequest.js b/lib/services/sqlManagement2/lib/models/checkNameAvailabilityRequest.js index 7f4a0ea255..14f4260bfd 100644 --- a/lib/services/sqlManagement2/lib/models/checkNameAvailabilityRequest.js +++ b/lib/services/sqlManagement2/lib/models/checkNameAvailabilityRequest.js @@ -17,7 +17,7 @@ class CheckNameAvailabilityRequest { /** * Create a CheckNameAvailabilityRequest. - * @member {string} name The name whose availability is to be checked. + * @property {string} name The name whose availability is to be checked. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/checkNameAvailabilityResponse.js b/lib/services/sqlManagement2/lib/models/checkNameAvailabilityResponse.js index 809bc5094e..3478737e0a 100644 --- a/lib/services/sqlManagement2/lib/models/checkNameAvailabilityResponse.js +++ b/lib/services/sqlManagement2/lib/models/checkNameAvailabilityResponse.js @@ -18,12 +18,12 @@ class CheckNameAvailabilityResponse { /** * Create a CheckNameAvailabilityResponse. - * @member {boolean} [available] True if the name is available, otherwise + * @property {boolean} [available] True if the name is available, otherwise * false. - * @member {string} [message] A message explaining why the name is + * @property {string} [message] A message explaining why the name is * unavailable. Will be null if the name is available. - * @member {string} [name] The name whose availability was checked. - * @member {string} [reason] The reason code explaining why the name is + * @property {string} [name] The name whose availability was checked. + * @property {string} [reason] The reason code explaining why the name is * unavailable. Will be null if the name is available. Possible values * include: 'Invalid', 'AlreadyExists' */ diff --git a/lib/services/sqlManagement2/lib/models/completeDatabaseRestoreDefinition.js b/lib/services/sqlManagement2/lib/models/completeDatabaseRestoreDefinition.js index 65d3fbb01b..af16949c5e 100644 --- a/lib/services/sqlManagement2/lib/models/completeDatabaseRestoreDefinition.js +++ b/lib/services/sqlManagement2/lib/models/completeDatabaseRestoreDefinition.js @@ -18,7 +18,7 @@ class CompleteDatabaseRestoreDefinition { /** * Create a CompleteDatabaseRestoreDefinition. - * @member {string} lastBackupName The last backup name to apply + * @property {string} lastBackupName The last backup name to apply */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/createDatabaseRestorePointDefinition.js b/lib/services/sqlManagement2/lib/models/createDatabaseRestorePointDefinition.js index da8769ff34..088a6fbf34 100644 --- a/lib/services/sqlManagement2/lib/models/createDatabaseRestorePointDefinition.js +++ b/lib/services/sqlManagement2/lib/models/createDatabaseRestorePointDefinition.js @@ -18,7 +18,7 @@ class CreateDatabaseRestorePointDefinition { /** * Create a CreateDatabaseRestorePointDefinition. - * @member {string} restorePointLabel The restore point label to apply + * @property {string} restorePointLabel The restore point label to apply */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/dataMaskingPolicy.js b/lib/services/sqlManagement2/lib/models/dataMaskingPolicy.js index 3c9a7edaa8..06d1b30544 100644 --- a/lib/services/sqlManagement2/lib/models/dataMaskingPolicy.js +++ b/lib/services/sqlManagement2/lib/models/dataMaskingPolicy.js @@ -20,18 +20,18 @@ const models = require('./index'); class DataMaskingPolicy extends models['ProxyResource'] { /** * Create a DataMaskingPolicy. - * @member {string} dataMaskingState The state of the data masking policy. + * @property {string} dataMaskingState The state of the data masking policy. * Possible values include: 'Disabled', 'Enabled' - * @member {string} [exemptPrincipals] The list of the exempt principals. + * @property {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. - * @member {string} [applicationPrincipals] The list of the application + * @property {string} [applicationPrincipals] The list of the application * principals. This is a legacy parameter and is no longer used. - * @member {string} [maskingLevel] The masking level. This is a legacy + * @property {string} [maskingLevel] The masking level. This is a legacy * parameter and is no longer used. - * @member {string} [location] The location of the data masking policy. - * @member {string} [kind] The kind of data masking policy. Metadata, used + * @property {string} [location] The location of the data masking policy. + * @property {string} [kind] The kind of data masking policy. Metadata, used * for Azure portal. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/dataMaskingRule.js b/lib/services/sqlManagement2/lib/models/dataMaskingRule.js index b614679731..dc0b56eb13 100644 --- a/lib/services/sqlManagement2/lib/models/dataMaskingRule.js +++ b/lib/services/sqlManagement2/lib/models/dataMaskingRule.js @@ -20,42 +20,42 @@ const models = require('./index'); class DataMaskingRule extends models['ProxyResource'] { /** * Create a DataMaskingRule. - * @member {string} [dataMaskingRuleId] The rule Id. - * @member {string} [aliasName] The alias name. This is a legacy parameter + * @property {string} [dataMaskingRuleId] The rule Id. + * @property {string} [aliasName] The alias name. This is a legacy parameter * and is no longer used. - * @member {string} [ruleState] The rule state. Used to delete a rule. To + * @property {string} [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} schemaName The schema name on which the data masking rule + * @property {string} schemaName The schema name on which the data masking + * rule is applied. + * @property {string} tableName The table name on which the data masking rule * is applied. - * @member {string} tableName The table name on which the data masking rule - * is applied. - * @member {string} columnName The column name on which the data masking rule - * is applied. - * @member {string} maskingFunction The masking function that is used for the - * data masking rule. Possible values include: 'Default', 'CCN', 'Email', + * @property {string} columnName The column name on which the data masking + * rule is applied. + * @property {string} maskingFunction The masking function that is used for + * the data masking rule. Possible values include: 'Default', 'CCN', 'Email', * 'Number', 'SSN', 'Text' - * @member {string} [numberFrom] The numberFrom property of the masking rule. - * Required if maskingFunction is set to Number, otherwise this parameter - * will be ignored. - * @member {string} [numberTo] The numberTo property of the data masking + * @property {string} [numberFrom] The numberFrom property of the masking + * rule. Required if maskingFunction is set to Number, otherwise this + * parameter will be ignored. + * @property {string} [numberTo] The numberTo property of the data masking * rule. Required if maskingFunction is set to Number, otherwise this * parameter will be ignored. - * @member {string} [prefixSize] If maskingFunction is set to Text, the + * @property {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. - * @member {string} [suffixSize] If maskingFunction is set to Text, the + * @property {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. - * @member {string} [replacementString] If maskingFunction is set to Text, + * @property {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. - * @member {string} [location] The location of the data masking rule. - * @member {string} [kind] The kind of Data Masking Rule. Metadata, used for - * Azure portal. + * @property {string} [location] The location of the data masking rule. + * @property {string} [kind] The kind of Data Masking Rule. Metadata, used + * for Azure portal. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/database.js b/lib/services/sqlManagement2/lib/models/database.js index 7ec6a4ab28..017023e5db 100644 --- a/lib/services/sqlManagement2/lib/models/database.js +++ b/lib/services/sqlManagement2/lib/models/database.js @@ -20,24 +20,24 @@ const models = require('./index'); class Database extends models['TrackedResource'] { /** * Create a Database. - * @member {object} [sku] The name and tier of the SKU. - * @member {string} [sku.name] The name of the SKU. Ex - P3. It is typically - * a letter+number code - * @member {string} [sku.tier] This field is required to be implemented by + * @property {object} [sku] The name and tier of the SKU. + * @property {string} [sku.name] The name of the SKU. Ex - P3. It is + * typically a letter+number code + * @property {string} [sku.tier] This field is required to be implemented by * the Resource Provider if the service has more than one tier, but is not * required on a PUT. - * @member {string} [sku.size] The SKU size. When the name field is the + * @property {string} [sku.size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone * code. - * @member {string} [sku.family] If the service has different generations of - * hardware, for the same SKU, then that can be captured here. - * @member {number} [sku.capacity] If the SKU supports scale out/in then the - * capacity integer should be included. If scale out/in is not possible for - * the resource this may be omitted. - * @member {string} [kind] Kind of database. This is metadata used for the + * @property {string} [sku.family] If the service has different generations + * of hardware, for the same SKU, then that can be captured here. + * @property {number} [sku.capacity] If the SKU supports scale out/in then + * the capacity integer should be included. If scale out/in is not possible + * for the resource this may be omitted. + * @property {string} [kind] Kind of database. This is metadata used for the * Azure portal experience. - * @member {string} [managedBy] Resource that manages the database. - * @member {string} [createMode] Specifies the mode of database creation. + * @property {string} [managedBy] Resource that manages the database. + * @property {string} [createMode] Specifies the mode of database creation. * * Default: regular database creation. * @@ -74,74 +74,76 @@ class Database extends models['TrackedResource'] { * 'Secondary', 'PointInTimeRestore', 'Restore', 'Recovery', * 'RestoreExternalBackup', 'RestoreExternalBackupSecondary', * 'RestoreLongTermRetentionBackup', 'OnlineSecondary' - * @member {string} [collation] The collation of the database. - * @member {number} [maxSizeBytes] The max size of the database expressed in - * bytes. - * @member {string} [sampleName] The name of the sample schema to apply when - * creating this database. Possible values include: 'AdventureWorksLT', + * @property {string} [collation] The collation of the database. + * @property {number} [maxSizeBytes] The max size of the database expressed + * in bytes. + * @property {string} [sampleName] The name of the sample schema to apply + * when creating this database. Possible values include: 'AdventureWorksLT', * 'WideWorldImportersStd', 'WideWorldImportersFull' - * @member {string} [elasticPoolId] The resource identifier of the elastic + * @property {string} [elasticPoolId] The resource identifier of the elastic * pool containing this database. - * @member {string} [sourceDatabaseId] The resource identifier of the source - * database associated with create operation of this database. - * @member {string} [status] The status of the database. Possible values + * @property {string} [sourceDatabaseId] The resource identifier of the + * source database associated with create operation of this database. + * @property {string} [status] The status of the database. Possible values * include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', * 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', * 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', * 'Pausing', 'Paused', 'Resuming', 'Scaling' - * @member {uuid} [databaseId] The ID of the database. - * @member {date} [creationDate] The creation date of the database (ISO8601 + * @property {uuid} [databaseId] The ID of the database. + * @property {date} [creationDate] The creation date of the database (ISO8601 * format). - * @member {string} [currentServiceObjectiveName] The current service level + * @property {string} [currentServiceObjectiveName] The current service level * objective name of the database. - * @member {string} [requestedServiceObjectiveName] The requested service + * @property {string} [requestedServiceObjectiveName] The requested service * level objective name of the database. - * @member {string} [defaultSecondaryLocation] The default secondary region + * @property {string} [defaultSecondaryLocation] The default secondary region * for this database. - * @member {string} [failoverGroupId] Failover Group resource identifier that - * this database belongs to. - * @member {date} [restorePointInTime] Specifies the point in time (ISO8601 + * @property {string} [failoverGroupId] Failover Group resource identifier + * that this database belongs to. + * @property {date} [restorePointInTime] Specifies the point in time (ISO8601 * format) of the source database that will be restored to create the new * database. - * @member {date} [sourceDatabaseDeletionDate] Specifies the time that the + * @property {date} [sourceDatabaseDeletionDate] Specifies the time that the * database was deleted. - * @member {string} [recoveryServicesRecoveryPointId] The resource identifier - * of the recovery point associated with create operation of this database. - * @member {string} [longTermRetentionBackupResourceId] The resource + * @property {string} [recoveryServicesRecoveryPointId] The resource + * identifier of the recovery point associated with create operation of this + * database. + * @property {string} [longTermRetentionBackupResourceId] The resource * identifier of the long term retention backup associated with create * operation of this database. - * @member {string} [recoverableDatabaseId] The resource identifier of the + * @property {string} [recoverableDatabaseId] The resource identifier of the * recoverable database associated with create operation of this database. - * @member {string} [restorableDroppedDatabaseId] The resource identifier of - * the restorable dropped database associated with create operation of this - * database. - * @member {string} [catalogCollation] Collation of the metadata catalog. + * @property {string} [restorableDroppedDatabaseId] The resource identifier + * of the restorable dropped database associated with create operation of + * this database. + * @property {string} [catalogCollation] Collation of the metadata catalog. * Possible values include: 'DATABASE_DEFAULT', * 'SQL_Latin1_General_CP1_CI_AS' - * @member {boolean} [zoneRedundant] Whether or not this database is zone + * @property {boolean} [zoneRedundant] Whether or not this database is zone * redundant, which means the replicas of this database will be spread across * multiple availability zones. - * @member {string} [licenseType] The license type to apply for this + * @property {string} [licenseType] The license type to apply for this * database. Possible values include: 'LicenseIncluded', 'BasePrice' - * @member {number} [maxLogSizeBytes] The max log size for this database. - * @member {date} [earliestRestoreDate] This records the earliest start date - * and time that restore is available for this database (ISO8601 format). - * @member {string} [readScale] The state of read-only routing. If enabled, + * @property {number} [maxLogSizeBytes] The max log size for this database. + * @property {date} [earliestRestoreDate] This records the earliest start + * date and time that restore is available for this database (ISO8601 + * format). + * @property {string} [readScale] The state of read-only routing. If enabled, * connections that have application intent set to readonly in their * connection string may be routed to a readonly secondary replica in the * same region. Possible values include: 'Enabled', 'Disabled' - * @member {object} [currentSku] The name and tier of the SKU. - * @member {string} [currentSku.name] The name of the SKU. Ex - P3. It is + * @property {object} [currentSku] The name and tier of the SKU. + * @property {string} [currentSku.name] The name of the SKU. Ex - P3. It is * typically a letter+number code - * @member {string} [currentSku.tier] This field is required to be + * @property {string} [currentSku.tier] This field is required to be * implemented by the Resource Provider if the service has more than one * tier, but is not required on a PUT. - * @member {string} [currentSku.size] The SKU size. When the name field is + * @property {string} [currentSku.size] The SKU size. When the name field is * the combination of tier and some other value, this would be the standalone * code. - * @member {string} [currentSku.family] If the service has different + * @property {string} [currentSku.family] If the service has different * generations of hardware, for the same SKU, then that can be captured here. - * @member {number} [currentSku.capacity] If the SKU supports scale out/in + * @property {number} [currentSku.capacity] If the SKU supports scale out/in * then the capacity integer should be included. If scale out/in is not * possible for the resource this may be omitted. */ diff --git a/lib/services/sqlManagement2/lib/models/databaseAutomaticTuning.js b/lib/services/sqlManagement2/lib/models/databaseAutomaticTuning.js index c8e4237526..005b702887 100644 --- a/lib/services/sqlManagement2/lib/models/databaseAutomaticTuning.js +++ b/lib/services/sqlManagement2/lib/models/databaseAutomaticTuning.js @@ -20,11 +20,11 @@ const models = require('./index'); class DatabaseAutomaticTuning extends models['ProxyResource'] { /** * Create a DatabaseAutomaticTuning. - * @member {string} [desiredState] Automatic tuning desired state. Possible + * @property {string} [desiredState] Automatic tuning desired state. Possible * values include: 'Inherit', 'Custom', 'Auto', 'Unspecified' - * @member {string} [actualState] Automatic tuning actual state. Possible + * @property {string} [actualState] Automatic tuning actual state. Possible * values include: 'Inherit', 'Custom', 'Auto', 'Unspecified' - * @member {object} [options] Automatic tuning options definition. + * @property {object} [options] Automatic tuning options definition. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/databaseBlobAuditingPolicy.js b/lib/services/sqlManagement2/lib/models/databaseBlobAuditingPolicy.js index 8aa7fdbf10..508446e8d4 100644 --- a/lib/services/sqlManagement2/lib/models/databaseBlobAuditingPolicy.js +++ b/lib/services/sqlManagement2/lib/models/databaseBlobAuditingPolicy.js @@ -20,19 +20,19 @@ const models = require('./index'); class DatabaseBlobAuditingPolicy extends models['ProxyResource'] { /** * Create a DatabaseBlobAuditingPolicy. - * @member {string} [kind] Resource kind. - * @member {string} state Specifies the state of the policy. If state is + * @property {string} [kind] Resource kind. + * @property {string} state Specifies the state of the policy. If state is * Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. * Possible values include: 'Enabled', 'Disabled' - * @member {string} [storageEndpoint] Specifies the blob storage endpoint + * @property {string} [storageEndpoint] Specifies the blob storage endpoint * (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, * storageEndpoint is required. - * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled and storageEndpoint is - * specified, storageAccountAccessKey is required. - * @member {number} [retentionDays] Specifies the number of days to keep in + * @property {string} [storageAccountAccessKey] Specifies the identifier key + * of the auditing storage account. If state is Enabled and storageEndpoint + * is specified, storageAccountAccessKey is required. + * @property {number} [retentionDays] Specifies the number of days to keep in * the audit logs in the storage account. - * @member {array} [auditActionsAndGroups] Specifies the Actions-Groups and + * @property {array} [auditActionsAndGroups] Specifies the Actions-Groups and * Actions to audit. * * The recommended set of action groups to use is the following combination - @@ -104,11 +104,11 @@ class DatabaseBlobAuditingPolicy extends models['ProxyResource'] { * * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - * @member {uuid} [storageAccountSubscriptionId] Specifies the blob storage + * @property {uuid} [storageAccountSubscriptionId] Specifies the blob storage * subscription Id. - * @member {boolean} [isStorageSecondaryKeyInUse] Specifies whether + * @property {boolean} [isStorageSecondaryKeyInUse] Specifies whether * storageAccountAccessKey value is the storage's secondary key. - * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit + * @property {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit * events are sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' * and 'IsAzureMonitorTargetEnabled' as true. diff --git a/lib/services/sqlManagement2/lib/models/databaseListResult.js b/lib/services/sqlManagement2/lib/models/databaseListResult.js index 7e34d7100c..e11db42dd6 100644 --- a/lib/services/sqlManagement2/lib/models/databaseListResult.js +++ b/lib/services/sqlManagement2/lib/models/databaseListResult.js @@ -16,7 +16,7 @@ class DatabaseListResult extends Array { /** * Create a DatabaseListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/databaseOperation.js b/lib/services/sqlManagement2/lib/models/databaseOperation.js index f38745c1c9..65706485f7 100644 --- a/lib/services/sqlManagement2/lib/models/databaseOperation.js +++ b/lib/services/sqlManagement2/lib/models/databaseOperation.js @@ -20,25 +20,27 @@ const models = require('./index'); class DatabaseOperation extends models['ProxyResource'] { /** * Create a DatabaseOperation. - * @member {string} [databaseName] The name of the database the operation is - * being performed on. - * @member {string} [operation] The name of operation. - * @member {string} [operationFriendlyName] The friendly name of operation. - * @member {number} [percentComplete] The percentage of the operation + * @property {string} [databaseName] The name of the database the operation + * is being performed on. + * @property {string} [operation] The name of operation. + * @property {string} [operationFriendlyName] The friendly name of operation. + * @property {number} [percentComplete] The percentage of the operation * completed. - * @member {string} [serverName] The name of the server. - * @member {date} [startTime] The operation start time. - * @member {string} [state] The operation state. Possible values include: + * @property {string} [serverName] The name of the server. + * @property {date} [startTime] The operation start time. + * @property {string} [state] The operation state. Possible values include: * 'Pending', 'InProgress', 'Succeeded', 'Failed', 'CancelInProgress', * 'Cancelled' - * @member {number} [errorCode] The operation error code. - * @member {string} [errorDescription] The operation error description. - * @member {number} [errorSeverity] The operation error severity. - * @member {boolean} [isUserError] Whether or not the error is a user error. - * @member {date} [estimatedCompletionTime] The estimated completion time of - * the operation. - * @member {string} [description] The operation description. - * @member {boolean} [isCancellable] Whether the operation can be cancelled. + * @property {number} [errorCode] The operation error code. + * @property {string} [errorDescription] The operation error description. + * @property {number} [errorSeverity] The operation error severity. + * @property {boolean} [isUserError] Whether or not the error is a user + * error. + * @property {date} [estimatedCompletionTime] The estimated completion time + * of the operation. + * @property {string} [description] The operation description. + * @property {boolean} [isCancellable] Whether the operation can be + * cancelled. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/databaseOperationListResult.js b/lib/services/sqlManagement2/lib/models/databaseOperationListResult.js index 691af26f28..d73553bd61 100644 --- a/lib/services/sqlManagement2/lib/models/databaseOperationListResult.js +++ b/lib/services/sqlManagement2/lib/models/databaseOperationListResult.js @@ -16,7 +16,7 @@ class DatabaseOperationListResult extends Array { /** * Create a DatabaseOperationListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/databaseSecurityAlertPolicy.js b/lib/services/sqlManagement2/lib/models/databaseSecurityAlertPolicy.js index fa640a2222..481dbc1218 100644 --- a/lib/services/sqlManagement2/lib/models/databaseSecurityAlertPolicy.js +++ b/lib/services/sqlManagement2/lib/models/databaseSecurityAlertPolicy.js @@ -20,29 +20,30 @@ const models = require('./index'); class DatabaseSecurityAlertPolicy extends models['ProxyResource'] { /** * Create a DatabaseSecurityAlertPolicy. - * @member {string} [location] The geo-location where the resource lives - * @member {string} [kind] Resource kind. - * @member {string} state Specifies the state of the policy. If state is + * @property {string} [location] The geo-location where the resource lives + * @property {string} [kind] Resource kind. + * @property {string} state Specifies the state of the policy. If state is * Enabled, storageEndpoint and storageAccountAccessKey are required. * Possible values include: 'New', 'Enabled', 'Disabled' - * @member {string} [disabledAlerts] Specifies the semicolon-separated list + * @property {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. - * @member {string} [emailAddresses] Specifies the semicolon-separated list + * @property {string} [emailAddresses] Specifies the semicolon-separated list * of e-mail addresses to which the alert is sent. - * @member {string} [emailAccountAdmins] Specifies that the alert is sent to - * the account administrators. Possible values include: 'Enabled', 'Disabled' - * @member {string} [storageEndpoint] Specifies the blob storage endpoint + * @property {string} [emailAccountAdmins] Specifies that the alert is sent + * to the account administrators. Possible values include: 'Enabled', + * 'Disabled' + * @property {string} [storageEndpoint] Specifies the blob storage endpoint * (e.g. https://MyAccount.blob.core.windows.net). This blob storage will * hold all Threat Detection audit logs. If state is Enabled, storageEndpoint * is required. - * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the Threat Detection audit storage account. If state is Enabled, + * @property {string} [storageAccountAccessKey] Specifies the identifier key + * of the Threat Detection audit storage account. If state is Enabled, * storageAccountAccessKey is required. - * @member {number} [retentionDays] Specifies the number of days to keep in + * @property {number} [retentionDays] Specifies the number of days to keep in * the Threat Detection audit logs. - * @member {string} [useServerDefault] Specifies whether to use the default + * @property {string} [useServerDefault] Specifies whether to use the default * server policy. Possible values include: 'Enabled', 'Disabled' */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/databaseUpdate.js b/lib/services/sqlManagement2/lib/models/databaseUpdate.js index 0f939e0ed1..a6990c3577 100644 --- a/lib/services/sqlManagement2/lib/models/databaseUpdate.js +++ b/lib/services/sqlManagement2/lib/models/databaseUpdate.js @@ -17,21 +17,21 @@ class DatabaseUpdate { /** * Create a DatabaseUpdate. - * @member {object} [sku] The name and tier of the SKU. - * @member {string} [sku.name] The name of the SKU. Ex - P3. It is typically - * a letter+number code - * @member {string} [sku.tier] This field is required to be implemented by + * @property {object} [sku] The name and tier of the SKU. + * @property {string} [sku.name] The name of the SKU. Ex - P3. It is + * typically a letter+number code + * @property {string} [sku.tier] This field is required to be implemented by * the Resource Provider if the service has more than one tier, but is not * required on a PUT. - * @member {string} [sku.size] The SKU size. When the name field is the + * @property {string} [sku.size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone * code. - * @member {string} [sku.family] If the service has different generations of - * hardware, for the same SKU, then that can be captured here. - * @member {number} [sku.capacity] If the SKU supports scale out/in then the - * capacity integer should be included. If scale out/in is not possible for - * the resource this may be omitted. - * @member {string} [createMode] Specifies the mode of database creation. + * @property {string} [sku.family] If the service has different generations + * of hardware, for the same SKU, then that can be captured here. + * @property {number} [sku.capacity] If the SKU supports scale out/in then + * the capacity integer should be included. If scale out/in is not possible + * for the resource this may be omitted. + * @property {string} [createMode] Specifies the mode of database creation. * * Default: regular database creation. * @@ -68,77 +68,79 @@ class DatabaseUpdate { * 'Secondary', 'PointInTimeRestore', 'Restore', 'Recovery', * 'RestoreExternalBackup', 'RestoreExternalBackupSecondary', * 'RestoreLongTermRetentionBackup', 'OnlineSecondary' - * @member {string} [collation] The collation of the database. - * @member {number} [maxSizeBytes] The max size of the database expressed in - * bytes. - * @member {string} [sampleName] The name of the sample schema to apply when - * creating this database. Possible values include: 'AdventureWorksLT', + * @property {string} [collation] The collation of the database. + * @property {number} [maxSizeBytes] The max size of the database expressed + * in bytes. + * @property {string} [sampleName] The name of the sample schema to apply + * when creating this database. Possible values include: 'AdventureWorksLT', * 'WideWorldImportersStd', 'WideWorldImportersFull' - * @member {string} [elasticPoolId] The resource identifier of the elastic + * @property {string} [elasticPoolId] The resource identifier of the elastic * pool containing this database. - * @member {string} [sourceDatabaseId] The resource identifier of the source - * database associated with create operation of this database. - * @member {string} [status] The status of the database. Possible values + * @property {string} [sourceDatabaseId] The resource identifier of the + * source database associated with create operation of this database. + * @property {string} [status] The status of the database. Possible values * include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', * 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', * 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', * 'Pausing', 'Paused', 'Resuming', 'Scaling' - * @member {uuid} [databaseId] The ID of the database. - * @member {date} [creationDate] The creation date of the database (ISO8601 + * @property {uuid} [databaseId] The ID of the database. + * @property {date} [creationDate] The creation date of the database (ISO8601 * format). - * @member {string} [currentServiceObjectiveName] The current service level + * @property {string} [currentServiceObjectiveName] The current service level * objective name of the database. - * @member {string} [requestedServiceObjectiveName] The requested service + * @property {string} [requestedServiceObjectiveName] The requested service * level objective name of the database. - * @member {string} [defaultSecondaryLocation] The default secondary region + * @property {string} [defaultSecondaryLocation] The default secondary region * for this database. - * @member {string} [failoverGroupId] Failover Group resource identifier that - * this database belongs to. - * @member {date} [restorePointInTime] Specifies the point in time (ISO8601 + * @property {string} [failoverGroupId] Failover Group resource identifier + * that this database belongs to. + * @property {date} [restorePointInTime] Specifies the point in time (ISO8601 * format) of the source database that will be restored to create the new * database. - * @member {date} [sourceDatabaseDeletionDate] Specifies the time that the + * @property {date} [sourceDatabaseDeletionDate] Specifies the time that the * database was deleted. - * @member {string} [recoveryServicesRecoveryPointId] The resource identifier - * of the recovery point associated with create operation of this database. - * @member {string} [longTermRetentionBackupResourceId] The resource + * @property {string} [recoveryServicesRecoveryPointId] The resource + * identifier of the recovery point associated with create operation of this + * database. + * @property {string} [longTermRetentionBackupResourceId] The resource * identifier of the long term retention backup associated with create * operation of this database. - * @member {string} [recoverableDatabaseId] The resource identifier of the + * @property {string} [recoverableDatabaseId] The resource identifier of the * recoverable database associated with create operation of this database. - * @member {string} [restorableDroppedDatabaseId] The resource identifier of - * the restorable dropped database associated with create operation of this - * database. - * @member {string} [catalogCollation] Collation of the metadata catalog. + * @property {string} [restorableDroppedDatabaseId] The resource identifier + * of the restorable dropped database associated with create operation of + * this database. + * @property {string} [catalogCollation] Collation of the metadata catalog. * Possible values include: 'DATABASE_DEFAULT', * 'SQL_Latin1_General_CP1_CI_AS' - * @member {boolean} [zoneRedundant] Whether or not this database is zone + * @property {boolean} [zoneRedundant] Whether or not this database is zone * redundant, which means the replicas of this database will be spread across * multiple availability zones. - * @member {string} [licenseType] The license type to apply for this + * @property {string} [licenseType] The license type to apply for this * database. Possible values include: 'LicenseIncluded', 'BasePrice' - * @member {number} [maxLogSizeBytes] The max log size for this database. - * @member {date} [earliestRestoreDate] This records the earliest start date - * and time that restore is available for this database (ISO8601 format). - * @member {string} [readScale] The state of read-only routing. If enabled, + * @property {number} [maxLogSizeBytes] The max log size for this database. + * @property {date} [earliestRestoreDate] This records the earliest start + * date and time that restore is available for this database (ISO8601 + * format). + * @property {string} [readScale] The state of read-only routing. If enabled, * connections that have application intent set to readonly in their * connection string may be routed to a readonly secondary replica in the * same region. Possible values include: 'Enabled', 'Disabled' - * @member {object} [currentSku] The name and tier of the SKU. - * @member {string} [currentSku.name] The name of the SKU. Ex - P3. It is + * @property {object} [currentSku] The name and tier of the SKU. + * @property {string} [currentSku.name] The name of the SKU. Ex - P3. It is * typically a letter+number code - * @member {string} [currentSku.tier] This field is required to be + * @property {string} [currentSku.tier] This field is required to be * implemented by the Resource Provider if the service has more than one * tier, but is not required on a PUT. - * @member {string} [currentSku.size] The SKU size. When the name field is + * @property {string} [currentSku.size] The SKU size. When the name field is * the combination of tier and some other value, this would be the standalone * code. - * @member {string} [currentSku.family] If the service has different + * @property {string} [currentSku.family] If the service has different * generations of hardware, for the same SKU, then that can be captured here. - * @member {number} [currentSku.capacity] If the SKU supports scale out/in + * @property {number} [currentSku.capacity] If the SKU supports scale out/in * then the capacity integer should be included. If scale out/in is not * possible for the resource this may be omitted. - * @member {object} [tags] Resource tags. + * @property {object} [tags] Resource tags. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/databaseUsage.js b/lib/services/sqlManagement2/lib/models/databaseUsage.js index 39145ae398..76ff2c4b57 100644 --- a/lib/services/sqlManagement2/lib/models/databaseUsage.js +++ b/lib/services/sqlManagement2/lib/models/databaseUsage.js @@ -17,13 +17,13 @@ class DatabaseUsage { /** * Create a DatabaseUsage. - * @member {string} [name] The name of the usage metric. - * @member {string} [resourceName] The name of the resource. - * @member {string} [displayName] The usage metric display name. - * @member {number} [currentValue] The current value of the usage metric. - * @member {number} [limit] The current limit of the usage metric. - * @member {string} [unit] The units of the usage metric. - * @member {date} [nextResetTime] The next reset time for the usage metric + * @property {string} [name] The name of the usage metric. + * @property {string} [resourceName] The name of the resource. + * @property {string} [displayName] The usage metric display name. + * @property {number} [currentValue] The current value of the usage metric. + * @property {number} [limit] The current limit of the usage metric. + * @property {string} [unit] The units of the usage metric. + * @property {date} [nextResetTime] The next reset time for the usage metric * (ISO8601 format). */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessment.js b/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessment.js index 9ec9b0bde6..fcba9f74db 100644 --- a/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessment.js +++ b/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessment.js @@ -20,24 +20,24 @@ const models = require('./index'); class DatabaseVulnerabilityAssessment extends models['ProxyResource'] { /** * Create a DatabaseVulnerabilityAssessment. - * @member {string} [storageContainerPath] A blob storage container path to + * @property {string} [storageContainerPath] A blob storage container path to * hold the scan results (e.g. * https://myStorage.blob.core.windows.net/VaScans/). It is required if * server level vulnerability assessment policy doesn't set - * @member {string} [storageContainerSasKey] A shared access signature (SAS + * @property {string} [storageContainerSasKey] A shared access signature (SAS * Key) that has write access to the blob container specified in * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't * specified, StorageContainerSasKey is required. - * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the storage account for vulnerability assessment scan results. If + * @property {string} [storageAccountAccessKey] Specifies the identifier key + * of the storage account for vulnerability assessment scan results. If * 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is * required. - * @member {object} [recurringScans] The recurring scans settings - * @member {boolean} [recurringScans.isEnabled] Recurring scans state. - * @member {boolean} [recurringScans.emailSubscriptionAdmins] Specifies that - * the schedule scan notification will be is sent to the subscription + * @property {object} [recurringScans] The recurring scans settings + * @property {boolean} [recurringScans.isEnabled] Recurring scans state. + * @property {boolean} [recurringScans.emailSubscriptionAdmins] Specifies + * that the schedule scan notification will be is sent to the subscription * administrators. - * @member {array} [recurringScans.emails] Specifies an array of e-mail + * @property {array} [recurringScans.emails] Specifies an array of e-mail * addresses to which the scan notification is sent. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessmentListResult.js b/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessmentListResult.js index 9ecd67425f..2018818ddf 100644 --- a/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessmentListResult.js +++ b/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessmentListResult.js @@ -16,7 +16,7 @@ class DatabaseVulnerabilityAssessmentListResult extends Array { /** * Create a DatabaseVulnerabilityAssessmentListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessmentRuleBaseline.js b/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessmentRuleBaseline.js index 7428613ad7..b321086c4b 100644 --- a/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessmentRuleBaseline.js +++ b/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessmentRuleBaseline.js @@ -20,7 +20,7 @@ const models = require('./index'); class DatabaseVulnerabilityAssessmentRuleBaseline extends models['ProxyResource'] { /** * Create a DatabaseVulnerabilityAssessmentRuleBaseline. - * @member {array} baselineResults The rule baseline result + * @property {array} baselineResults The rule baseline result */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessmentRuleBaselineItem.js b/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessmentRuleBaselineItem.js index cec3924952..091bd5b063 100644 --- a/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessmentRuleBaselineItem.js +++ b/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessmentRuleBaselineItem.js @@ -18,7 +18,7 @@ class DatabaseVulnerabilityAssessmentRuleBaselineItem { /** * Create a DatabaseVulnerabilityAssessmentRuleBaselineItem. - * @member {array} result The rule baseline result + * @property {array} result The rule baseline result */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessmentScansExport.js b/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessmentScansExport.js index 0a46456038..abb7f7d0b9 100644 --- a/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessmentScansExport.js +++ b/lib/services/sqlManagement2/lib/models/databaseVulnerabilityAssessmentScansExport.js @@ -20,8 +20,8 @@ const models = require('./index'); class DatabaseVulnerabilityAssessmentScansExport extends models['ProxyResource'] { /** * Create a DatabaseVulnerabilityAssessmentScansExport. - * @member {string} [exportedReportLocation] Location of the exported report - * (e.g. + * @property {string} [exportedReportLocation] Location of the exported + * report (e.g. * https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/editionCapability.js b/lib/services/sqlManagement2/lib/models/editionCapability.js index 6c5c215d90..f1a851ff5f 100644 --- a/lib/services/sqlManagement2/lib/models/editionCapability.js +++ b/lib/services/sqlManagement2/lib/models/editionCapability.js @@ -17,14 +17,14 @@ class EditionCapability { /** * Create a EditionCapability. - * @member {string} [name] The database edition name. - * @member {array} [supportedServiceLevelObjectives] The list of supported + * @property {string} [name] The database edition name. + * @property {array} [supportedServiceLevelObjectives] The list of supported * service objectives for the edition. - * @member {boolean} [zoneRedundant] Whether or not zone redundancy is + * @property {boolean} [zoneRedundant] Whether or not zone redundancy is * supported for the edition. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being + * @property {string} [reason] The reason for the capability not being * available. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/elasticPool.js b/lib/services/sqlManagement2/lib/models/elasticPool.js index dc8982ea45..081430e63d 100644 --- a/lib/services/sqlManagement2/lib/models/elasticPool.js +++ b/lib/services/sqlManagement2/lib/models/elasticPool.js @@ -20,39 +20,39 @@ const models = require('./index'); class ElasticPool extends models['TrackedResource'] { /** * Create a ElasticPool. - * @member {object} [sku] - * @member {string} [sku.name] The name of the SKU. Ex - P3. It is typically - * a letter+number code - * @member {string} [sku.tier] This field is required to be implemented by + * @property {object} [sku] + * @property {string} [sku.name] The name of the SKU. Ex - P3. It is + * typically a letter+number code + * @property {string} [sku.tier] This field is required to be implemented by * the Resource Provider if the service has more than one tier, but is not * required on a PUT. - * @member {string} [sku.size] The SKU size. When the name field is the + * @property {string} [sku.size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone * code. - * @member {string} [sku.family] If the service has different generations of - * hardware, for the same SKU, then that can be captured here. - * @member {number} [sku.capacity] If the SKU supports scale out/in then the - * capacity integer should be included. If scale out/in is not possible for - * the resource this may be omitted. - * @member {string} [kind] Kind of elastic pool. This is metadata used for + * @property {string} [sku.family] If the service has different generations + * of hardware, for the same SKU, then that can be captured here. + * @property {number} [sku.capacity] If the SKU supports scale out/in then + * the capacity integer should be included. If scale out/in is not possible + * for the resource this may be omitted. + * @property {string} [kind] Kind of elastic pool. This is metadata used for * the Azure portal experience. - * @member {string} [state] The state of the elastic pool. Possible values + * @property {string} [state] The state of the elastic pool. Possible values * include: 'Creating', 'Ready', 'Disabled' - * @member {date} [creationDate] The creation date of the elastic pool + * @property {date} [creationDate] The creation date of the elastic pool * (ISO8601 format). - * @member {number} [maxSizeBytes] The storage limit for the database elastic - * pool in bytes. - * @member {object} [perDatabaseSettings] The per database settings for the + * @property {number} [maxSizeBytes] The storage limit for the database + * elastic pool in bytes. + * @property {object} [perDatabaseSettings] The per database settings for the * elastic pool. - * @member {number} [perDatabaseSettings.minCapacity] The minimum capacity + * @property {number} [perDatabaseSettings.minCapacity] The minimum capacity * all databases are guaranteed. - * @member {number} [perDatabaseSettings.maxCapacity] The maximum capacity + * @property {number} [perDatabaseSettings.maxCapacity] The maximum capacity * any one database can consume. - * @member {boolean} [zoneRedundant] Whether or not this elastic pool is zone - * redundant, which means the replicas of this elastic pool will be spread - * across multiple availability zones. - * @member {string} [licenseType] The license type to apply for this elastic - * pool. Possible values include: 'LicenseIncluded', 'BasePrice' + * @property {boolean} [zoneRedundant] Whether or not this elastic pool is + * zone redundant, which means the replicas of this elastic pool will be + * spread across multiple availability zones. + * @property {string} [licenseType] The license type to apply for this + * elastic pool. Possible values include: 'LicenseIncluded', 'BasePrice' */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/elasticPoolActivity.js b/lib/services/sqlManagement2/lib/models/elasticPoolActivity.js index d454e58f24..507a5e212a 100644 --- a/lib/services/sqlManagement2/lib/models/elasticPoolActivity.js +++ b/lib/services/sqlManagement2/lib/models/elasticPoolActivity.js @@ -20,37 +20,38 @@ const models = require('./index'); class ElasticPoolActivity extends models['ProxyResource'] { /** * Create a ElasticPoolActivity. - * @member {string} [location] The geo-location where the resource lives - * @member {date} [endTime] The time the operation finished (ISO8601 format). - * @member {number} [errorCode] The error code if available. - * @member {string} [errorMessage] The error message if available. - * @member {number} [errorSeverity] The error severity if available. - * @member {string} [operation] The operation name. - * @member {uuid} [operationId] The unique operation ID. - * @member {number} [percentComplete] The percentage complete if available. - * @member {number} [requestedDatabaseDtuMax] The requested max DTU per + * @property {string} [location] The geo-location where the resource lives + * @property {date} [endTime] The time the operation finished (ISO8601 + * format). + * @property {number} [errorCode] The error code if available. + * @property {string} [errorMessage] The error message if available. + * @property {number} [errorSeverity] The error severity if available. + * @property {string} [operation] The operation name. + * @property {uuid} [operationId] The unique operation ID. + * @property {number} [percentComplete] The percentage complete if available. + * @property {number} [requestedDatabaseDtuMax] The requested max DTU per * database if available. - * @member {number} [requestedDatabaseDtuMin] The requested min DTU per + * @property {number} [requestedDatabaseDtuMin] The requested min DTU per * database if available. - * @member {number} [requestedDtu] The requested DTU for the pool if + * @property {number} [requestedDtu] The requested DTU for the pool if * available. - * @member {string} [requestedElasticPoolName] The requested name for the + * @property {string} [requestedElasticPoolName] The requested name for the * elastic pool if available. - * @member {number} [requestedStorageLimitInGB] The requested storage limit + * @property {number} [requestedStorageLimitInGB] The requested storage limit * for the pool in GB if available. - * @member {string} [elasticPoolName] The name of the elastic pool. - * @member {string} [serverName] The name of the server the elastic pool is + * @property {string} [elasticPoolName] The name of the elastic pool. + * @property {string} [serverName] The name of the server the elastic pool is * in. - * @member {date} [startTime] The time the operation started (ISO8601 + * @property {date} [startTime] The time the operation started (ISO8601 * format). - * @member {string} [state] The current state of the operation. - * @member {number} [requestedStorageLimitInMB] The requested storage limit + * @property {string} [state] The current state of the operation. + * @property {number} [requestedStorageLimitInMB] The requested storage limit * in MB. - * @member {number} [requestedDatabaseDtuGuarantee] The requested per + * @property {number} [requestedDatabaseDtuGuarantee] The requested per * database DTU guarantee. - * @member {number} [requestedDatabaseDtuCap] The requested per database DTU - * cap. - * @member {number} [requestedDtuGuarantee] The requested DTU guarantee. + * @property {number} [requestedDatabaseDtuCap] The requested per database + * DTU cap. + * @property {number} [requestedDtuGuarantee] The requested DTU guarantee. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/elasticPoolDatabaseActivity.js b/lib/services/sqlManagement2/lib/models/elasticPoolDatabaseActivity.js index 428f6c163e..0471364168 100644 --- a/lib/services/sqlManagement2/lib/models/elasticPoolDatabaseActivity.js +++ b/lib/services/sqlManagement2/lib/models/elasticPoolDatabaseActivity.js @@ -20,28 +20,29 @@ const models = require('./index'); class ElasticPoolDatabaseActivity extends models['ProxyResource'] { /** * Create a ElasticPoolDatabaseActivity. - * @member {string} [location] The geo-location where the resource lives - * @member {string} [databaseName] The database name. - * @member {date} [endTime] The time the operation finished (ISO8601 format). - * @member {number} [errorCode] The error code if available. - * @member {string} [errorMessage] The error message if available. - * @member {number} [errorSeverity] The error severity if available. - * @member {string} [operation] The operation name. - * @member {uuid} [operationId] The unique operation ID. - * @member {number} [percentComplete] The percentage complete if available. - * @member {string} [requestedElasticPoolName] The name for the elastic pool - * the database is moving into if available. - * @member {string} [currentElasticPoolName] The name of the current elastic - * pool the database is in if available. - * @member {string} [currentServiceObjective] The name of the current service - * objective if available. - * @member {string} [requestedServiceObjective] The name of the requested + * @property {string} [location] The geo-location where the resource lives + * @property {string} [databaseName] The database name. + * @property {date} [endTime] The time the operation finished (ISO8601 + * format). + * @property {number} [errorCode] The error code if available. + * @property {string} [errorMessage] The error message if available. + * @property {number} [errorSeverity] The error severity if available. + * @property {string} [operation] The operation name. + * @property {uuid} [operationId] The unique operation ID. + * @property {number} [percentComplete] The percentage complete if available. + * @property {string} [requestedElasticPoolName] The name for the elastic + * pool the database is moving into if available. + * @property {string} [currentElasticPoolName] The name of the current + * elastic pool the database is in if available. + * @property {string} [currentServiceObjective] The name of the current + * service objective if available. + * @property {string} [requestedServiceObjective] The name of the requested * service objective if available. - * @member {string} [serverName] The name of the server the elastic pool is + * @property {string} [serverName] The name of the server the elastic pool is * in. - * @member {date} [startTime] The time the operation started (ISO8601 + * @property {date} [startTime] The time the operation started (ISO8601 * format). - * @member {string} [state] The current state of the operation. + * @property {string} [state] The current state of the operation. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/elasticPoolEditionCapability.js b/lib/services/sqlManagement2/lib/models/elasticPoolEditionCapability.js index d04d7bc292..a5aeb901c1 100644 --- a/lib/services/sqlManagement2/lib/models/elasticPoolEditionCapability.js +++ b/lib/services/sqlManagement2/lib/models/elasticPoolEditionCapability.js @@ -17,14 +17,14 @@ class ElasticPoolEditionCapability { /** * Create a ElasticPoolEditionCapability. - * @member {string} [name] The elastic pool edition name. - * @member {array} [supportedElasticPoolPerformanceLevels] The list of + * @property {string} [name] The elastic pool edition name. + * @property {array} [supportedElasticPoolPerformanceLevels] The list of * supported elastic pool DTU levels for the edition. - * @member {boolean} [zoneRedundant] Whether or not zone redundancy is + * @property {boolean} [zoneRedundant] Whether or not zone redundancy is * supported for the edition. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being + * @property {string} [reason] The reason for the capability not being * available. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/elasticPoolListResult.js b/lib/services/sqlManagement2/lib/models/elasticPoolListResult.js index d0c17d09a4..093245c3ba 100644 --- a/lib/services/sqlManagement2/lib/models/elasticPoolListResult.js +++ b/lib/services/sqlManagement2/lib/models/elasticPoolListResult.js @@ -16,7 +16,7 @@ class ElasticPoolListResult extends Array { /** * Create a ElasticPoolListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/elasticPoolOperation.js b/lib/services/sqlManagement2/lib/models/elasticPoolOperation.js index 3a9d43357b..ceada6a892 100644 --- a/lib/services/sqlManagement2/lib/models/elasticPoolOperation.js +++ b/lib/services/sqlManagement2/lib/models/elasticPoolOperation.js @@ -20,23 +20,25 @@ const models = require('./index'); class ElasticPoolOperation extends models['ProxyResource'] { /** * Create a ElasticPoolOperation. - * @member {string} [elasticPoolName] The name of the elastic pool the + * @property {string} [elasticPoolName] The name of the elastic pool the * operation is being performed on. - * @member {string} [operation] The name of operation. - * @member {string} [operationFriendlyName] The friendly name of operation. - * @member {number} [percentComplete] The percentage of the operation + * @property {string} [operation] The name of operation. + * @property {string} [operationFriendlyName] The friendly name of operation. + * @property {number} [percentComplete] The percentage of the operation * completed. - * @member {string} [serverName] The name of the server. - * @member {date} [startTime] The operation start time. - * @member {string} [state] The operation state. - * @member {number} [errorCode] The operation error code. - * @member {string} [errorDescription] The operation error description. - * @member {number} [errorSeverity] The operation error severity. - * @member {boolean} [isUserError] Whether or not the error is a user error. - * @member {date} [estimatedCompletionTime] The estimated completion time of - * the operation. - * @member {string} [description] The operation description. - * @member {boolean} [isCancellable] Whether the operation can be cancelled. + * @property {string} [serverName] The name of the server. + * @property {date} [startTime] The operation start time. + * @property {string} [state] The operation state. + * @property {number} [errorCode] The operation error code. + * @property {string} [errorDescription] The operation error description. + * @property {number} [errorSeverity] The operation error severity. + * @property {boolean} [isUserError] Whether or not the error is a user + * error. + * @property {date} [estimatedCompletionTime] The estimated completion time + * of the operation. + * @property {string} [description] The operation description. + * @property {boolean} [isCancellable] Whether the operation can be + * cancelled. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/elasticPoolOperationListResult.js b/lib/services/sqlManagement2/lib/models/elasticPoolOperationListResult.js index c389d12c01..91a54d17e8 100644 --- a/lib/services/sqlManagement2/lib/models/elasticPoolOperationListResult.js +++ b/lib/services/sqlManagement2/lib/models/elasticPoolOperationListResult.js @@ -16,7 +16,7 @@ class ElasticPoolOperationListResult extends Array { /** * Create a ElasticPoolOperationListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/elasticPoolPerDatabaseMaxPerformanceLevelCapability.js b/lib/services/sqlManagement2/lib/models/elasticPoolPerDatabaseMaxPerformanceLevelCapability.js index e7bc6fa05e..654d5d580c 100644 --- a/lib/services/sqlManagement2/lib/models/elasticPoolPerDatabaseMaxPerformanceLevelCapability.js +++ b/lib/services/sqlManagement2/lib/models/elasticPoolPerDatabaseMaxPerformanceLevelCapability.js @@ -17,14 +17,14 @@ class ElasticPoolPerDatabaseMaxPerformanceLevelCapability { /** * Create a ElasticPoolPerDatabaseMaxPerformanceLevelCapability. - * @member {number} [limit] The maximum performance level per database. - * @member {string} [unit] Unit type used to measure performance level. + * @property {number} [limit] The maximum performance level per database. + * @property {string} [unit] Unit type used to measure performance level. * Possible values include: 'DTU', 'VCores' - * @member {array} [supportedPerDatabaseMinPerformanceLevels] The list of + * @property {array} [supportedPerDatabaseMinPerformanceLevels] The list of * supported min database performance levels. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being + * @property {string} [reason] The reason for the capability not being * available. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/elasticPoolPerDatabaseMinPerformanceLevelCapability.js b/lib/services/sqlManagement2/lib/models/elasticPoolPerDatabaseMinPerformanceLevelCapability.js index 679c62dc47..b2436c7536 100644 --- a/lib/services/sqlManagement2/lib/models/elasticPoolPerDatabaseMinPerformanceLevelCapability.js +++ b/lib/services/sqlManagement2/lib/models/elasticPoolPerDatabaseMinPerformanceLevelCapability.js @@ -17,12 +17,12 @@ class ElasticPoolPerDatabaseMinPerformanceLevelCapability { /** * Create a ElasticPoolPerDatabaseMinPerformanceLevelCapability. - * @member {number} [limit] The minimum performance level per database. - * @member {string} [unit] Unit type used to measure performance level. + * @property {number} [limit] The minimum performance level per database. + * @property {string} [unit] Unit type used to measure performance level. * Possible values include: 'DTU', 'VCores' - * @member {string} [status] The status of the capability. Possible values + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being + * @property {string} [reason] The reason for the capability not being * available. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/elasticPoolPerDatabaseSettings.js b/lib/services/sqlManagement2/lib/models/elasticPoolPerDatabaseSettings.js index 5810f7eca6..cb854e0d91 100644 --- a/lib/services/sqlManagement2/lib/models/elasticPoolPerDatabaseSettings.js +++ b/lib/services/sqlManagement2/lib/models/elasticPoolPerDatabaseSettings.js @@ -17,9 +17,9 @@ class ElasticPoolPerDatabaseSettings { /** * Create a ElasticPoolPerDatabaseSettings. - * @member {number} [minCapacity] The minimum capacity all databases are + * @property {number} [minCapacity] The minimum capacity all databases are * guaranteed. - * @member {number} [maxCapacity] The maximum capacity any one database can + * @property {number} [maxCapacity] The maximum capacity any one database can * consume. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/elasticPoolPerformanceLevelCapability.js b/lib/services/sqlManagement2/lib/models/elasticPoolPerformanceLevelCapability.js index 60d33e1c8b..efe37bf13e 100644 --- a/lib/services/sqlManagement2/lib/models/elasticPoolPerformanceLevelCapability.js +++ b/lib/services/sqlManagement2/lib/models/elasticPoolPerformanceLevelCapability.js @@ -17,42 +17,42 @@ class ElasticPoolPerformanceLevelCapability { /** * Create a ElasticPoolPerformanceLevelCapability. - * @member {object} [performanceLevel] The performance level for the pool. - * @member {number} [performanceLevel.value] Performance level value. - * @member {string} [performanceLevel.unit] Unit type used to measure + * @property {object} [performanceLevel] The performance level for the pool. + * @property {number} [performanceLevel.value] Performance level value. + * @property {string} [performanceLevel.unit] Unit type used to measure * performance level. Possible values include: 'DTU', 'VCores' - * @member {object} [sku] The sku. - * @member {string} [sku.name] The name of the SKU. Ex - P3. It is typically - * a letter+number code - * @member {string} [sku.tier] This field is required to be implemented by + * @property {object} [sku] The sku. + * @property {string} [sku.name] The name of the SKU. Ex - P3. It is + * typically a letter+number code + * @property {string} [sku.tier] This field is required to be implemented by * the Resource Provider if the service has more than one tier, but is not * required on a PUT. - * @member {string} [sku.size] The SKU size. When the name field is the + * @property {string} [sku.size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone * code. - * @member {string} [sku.family] If the service has different generations of - * hardware, for the same SKU, then that can be captured here. - * @member {number} [sku.capacity] If the SKU supports scale out/in then the - * capacity integer should be included. If scale out/in is not possible for - * the resource this may be omitted. - * @member {array} [supportedLicenseTypes] List of supported license types. - * @member {number} [maxDatabaseCount] The maximum number of databases + * @property {string} [sku.family] If the service has different generations + * of hardware, for the same SKU, then that can be captured here. + * @property {number} [sku.capacity] If the SKU supports scale out/in then + * the capacity integer should be included. If scale out/in is not possible + * for the resource this may be omitted. + * @property {array} [supportedLicenseTypes] List of supported license types. + * @property {number} [maxDatabaseCount] The maximum number of databases * supported. - * @member {object} [includedMaxSize] The included (free) max size for this + * @property {object} [includedMaxSize] The included (free) max size for this * performance level. - * @member {number} [includedMaxSize.limit] The maximum size limit (see + * @property {number} [includedMaxSize.limit] The maximum size limit (see * 'unit' for the units). - * @member {string} [includedMaxSize.unit] The units that the limit is + * @property {string} [includedMaxSize.unit] The units that the limit is * expressed in. Possible values include: 'Megabytes', 'Gigabytes', * 'Terabytes', 'Petabytes' - * @member {array} [supportedMaxSizes] The list of supported max sizes. - * @member {array} [supportedPerDatabaseMaxSizes] The list of supported per + * @property {array} [supportedMaxSizes] The list of supported max sizes. + * @property {array} [supportedPerDatabaseMaxSizes] The list of supported per * database max sizes. - * @member {array} [supportedPerDatabaseMaxPerformanceLevels] The list of + * @property {array} [supportedPerDatabaseMaxPerformanceLevels] The list of * supported per database max performance levels. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being + * @property {string} [reason] The reason for the capability not being * available. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/elasticPoolUpdate.js b/lib/services/sqlManagement2/lib/models/elasticPoolUpdate.js index 072b9fe6f3..124d637969 100644 --- a/lib/services/sqlManagement2/lib/models/elasticPoolUpdate.js +++ b/lib/services/sqlManagement2/lib/models/elasticPoolUpdate.js @@ -17,34 +17,34 @@ class ElasticPoolUpdate { /** * Create a ElasticPoolUpdate. - * @member {object} [sku] - * @member {string} [sku.name] The name of the SKU. Ex - P3. It is typically - * a letter+number code - * @member {string} [sku.tier] This field is required to be implemented by + * @property {object} [sku] + * @property {string} [sku.name] The name of the SKU. Ex - P3. It is + * typically a letter+number code + * @property {string} [sku.tier] This field is required to be implemented by * the Resource Provider if the service has more than one tier, but is not * required on a PUT. - * @member {string} [sku.size] The SKU size. When the name field is the + * @property {string} [sku.size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone * code. - * @member {string} [sku.family] If the service has different generations of - * hardware, for the same SKU, then that can be captured here. - * @member {number} [sku.capacity] If the SKU supports scale out/in then the - * capacity integer should be included. If scale out/in is not possible for - * the resource this may be omitted. - * @member {number} [maxSizeBytes] The storage limit for the database elastic - * pool in bytes. - * @member {object} [perDatabaseSettings] The per database settings for the + * @property {string} [sku.family] If the service has different generations + * of hardware, for the same SKU, then that can be captured here. + * @property {number} [sku.capacity] If the SKU supports scale out/in then + * the capacity integer should be included. If scale out/in is not possible + * for the resource this may be omitted. + * @property {number} [maxSizeBytes] The storage limit for the database + * elastic pool in bytes. + * @property {object} [perDatabaseSettings] The per database settings for the * elastic pool. - * @member {number} [perDatabaseSettings.minCapacity] The minimum capacity + * @property {number} [perDatabaseSettings.minCapacity] The minimum capacity * all databases are guaranteed. - * @member {number} [perDatabaseSettings.maxCapacity] The maximum capacity + * @property {number} [perDatabaseSettings.maxCapacity] The maximum capacity * any one database can consume. - * @member {boolean} [zoneRedundant] Whether or not this elastic pool is zone - * redundant, which means the replicas of this elastic pool will be spread - * across multiple availability zones. - * @member {string} [licenseType] The license type to apply for this elastic - * pool. Possible values include: 'LicenseIncluded', 'BasePrice' - * @member {object} [tags] Resource tags. + * @property {boolean} [zoneRedundant] Whether or not this elastic pool is + * zone redundant, which means the replicas of this elastic pool will be + * spread across multiple availability zones. + * @property {string} [licenseType] The license type to apply for this + * elastic pool. Possible values include: 'LicenseIncluded', 'BasePrice' + * @property {object} [tags] Resource tags. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/encryptionProtector.js b/lib/services/sqlManagement2/lib/models/encryptionProtector.js index 5ad16ca040..0706609a87 100644 --- a/lib/services/sqlManagement2/lib/models/encryptionProtector.js +++ b/lib/services/sqlManagement2/lib/models/encryptionProtector.js @@ -20,16 +20,16 @@ const models = require('./index'); class EncryptionProtector extends models['ProxyResource'] { /** * Create a EncryptionProtector. - * @member {string} [kind] Kind of encryption protector. This is metadata + * @property {string} [kind] Kind of encryption protector. This is metadata * used for the Azure portal experience. - * @member {string} [location] Resource location. - * @member {string} [subregion] Subregion of the encryption protector. - * @member {string} [serverKeyName] The name of the server key. - * @member {string} serverKeyType The encryption protector type like + * @property {string} [location] Resource location. + * @property {string} [subregion] Subregion of the encryption protector. + * @property {string} [serverKeyName] The name of the server key. + * @property {string} serverKeyType The encryption protector type like * 'ServiceManaged', 'AzureKeyVault'. Possible values include: * 'ServiceManaged', 'AzureKeyVault' - * @member {string} [uri] The URI of the server key. - * @member {string} [thumbprint] Thumbprint of the server key. + * @property {string} [uri] The URI of the server key. + * @property {string} [thumbprint] Thumbprint of the server key. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/encryptionProtectorListResult.js b/lib/services/sqlManagement2/lib/models/encryptionProtectorListResult.js index a3edae3876..d33a4d2cdd 100644 --- a/lib/services/sqlManagement2/lib/models/encryptionProtectorListResult.js +++ b/lib/services/sqlManagement2/lib/models/encryptionProtectorListResult.js @@ -16,7 +16,7 @@ class EncryptionProtectorListResult extends Array { /** * Create a EncryptionProtectorListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/exportRequest.js b/lib/services/sqlManagement2/lib/models/exportRequest.js index 990b46c4b6..386c94ea64 100644 --- a/lib/services/sqlManagement2/lib/models/exportRequest.js +++ b/lib/services/sqlManagement2/lib/models/exportRequest.js @@ -17,15 +17,15 @@ class ExportRequest { /** * Create a ExportRequest. - * @member {string} storageKeyType The type of the storage key to use. + * @property {string} storageKeyType The type of the storage key to use. * Possible values include: 'StorageAccessKey', 'SharedAccessKey' - * @member {string} storageKey The storage key to use. If storage key type + * @property {string} storageKey The storage key to use. If storage key type * is SharedAccessKey, it must be preceded with a "?." - * @member {string} storageUri The storage uri to use. - * @member {string} administratorLogin The name of the SQL administrator. - * @member {string} administratorLoginPassword The password of the SQL + * @property {string} storageUri The storage uri to use. + * @property {string} administratorLogin The name of the SQL administrator. + * @property {string} administratorLoginPassword The password of the SQL * administrator. - * @member {string} [authenticationType] The authentication type. Possible + * @property {string} [authenticationType] The authentication type. Possible * values include: 'SQL', 'ADPassword'. Default value: 'SQL' . */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/extendedDatabaseBlobAuditingPolicy.js b/lib/services/sqlManagement2/lib/models/extendedDatabaseBlobAuditingPolicy.js index 00bbe39ca9..894d584e74 100644 --- a/lib/services/sqlManagement2/lib/models/extendedDatabaseBlobAuditingPolicy.js +++ b/lib/services/sqlManagement2/lib/models/extendedDatabaseBlobAuditingPolicy.js @@ -20,20 +20,20 @@ const models = require('./index'); class ExtendedDatabaseBlobAuditingPolicy extends models['ProxyResource'] { /** * Create a ExtendedDatabaseBlobAuditingPolicy. - * @member {string} [predicateExpression] Specifies condition of where clause - * when creating an audit. - * @member {string} state Specifies the state of the policy. If state is + * @property {string} [predicateExpression] Specifies condition of where + * clause when creating an audit. + * @property {string} state Specifies the state of the policy. If state is * Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. * Possible values include: 'Enabled', 'Disabled' - * @member {string} [storageEndpoint] Specifies the blob storage endpoint + * @property {string} [storageEndpoint] Specifies the blob storage endpoint * (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, * storageEndpoint is required. - * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled and storageEndpoint is - * specified, storageAccountAccessKey is required. - * @member {number} [retentionDays] Specifies the number of days to keep in + * @property {string} [storageAccountAccessKey] Specifies the identifier key + * of the auditing storage account. If state is Enabled and storageEndpoint + * is specified, storageAccountAccessKey is required. + * @property {number} [retentionDays] Specifies the number of days to keep in * the audit logs in the storage account. - * @member {array} [auditActionsAndGroups] Specifies the Actions-Groups and + * @property {array} [auditActionsAndGroups] Specifies the Actions-Groups and * Actions to audit. * * The recommended set of action groups to use is the following combination - @@ -105,11 +105,11 @@ class ExtendedDatabaseBlobAuditingPolicy extends models['ProxyResource'] { * * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - * @member {uuid} [storageAccountSubscriptionId] Specifies the blob storage + * @property {uuid} [storageAccountSubscriptionId] Specifies the blob storage * subscription Id. - * @member {boolean} [isStorageSecondaryKeyInUse] Specifies whether + * @property {boolean} [isStorageSecondaryKeyInUse] Specifies whether * storageAccountAccessKey value is the storage's secondary key. - * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit + * @property {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit * events are sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' * and 'IsAzureMonitorTargetEnabled' as true. diff --git a/lib/services/sqlManagement2/lib/models/extendedServerBlobAuditingPolicy.js b/lib/services/sqlManagement2/lib/models/extendedServerBlobAuditingPolicy.js index c104d030a6..e46a107948 100644 --- a/lib/services/sqlManagement2/lib/models/extendedServerBlobAuditingPolicy.js +++ b/lib/services/sqlManagement2/lib/models/extendedServerBlobAuditingPolicy.js @@ -20,20 +20,20 @@ const models = require('./index'); class ExtendedServerBlobAuditingPolicy extends models['ProxyResource'] { /** * Create a ExtendedServerBlobAuditingPolicy. - * @member {string} [predicateExpression] Specifies condition of where clause - * when creating an audit. - * @member {string} state Specifies the state of the policy. If state is + * @property {string} [predicateExpression] Specifies condition of where + * clause when creating an audit. + * @property {string} state Specifies the state of the policy. If state is * Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. * Possible values include: 'Enabled', 'Disabled' - * @member {string} [storageEndpoint] Specifies the blob storage endpoint + * @property {string} [storageEndpoint] Specifies the blob storage endpoint * (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, * storageEndpoint is required. - * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled and storageEndpoint is - * specified, storageAccountAccessKey is required. - * @member {number} [retentionDays] Specifies the number of days to keep in + * @property {string} [storageAccountAccessKey] Specifies the identifier key + * of the auditing storage account. If state is Enabled and storageEndpoint + * is specified, storageAccountAccessKey is required. + * @property {number} [retentionDays] Specifies the number of days to keep in * the audit logs in the storage account. - * @member {array} [auditActionsAndGroups] Specifies the Actions-Groups and + * @property {array} [auditActionsAndGroups] Specifies the Actions-Groups and * Actions to audit. * * The recommended set of action groups to use is the following combination - @@ -105,11 +105,11 @@ class ExtendedServerBlobAuditingPolicy extends models['ProxyResource'] { * * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - * @member {uuid} [storageAccountSubscriptionId] Specifies the blob storage + * @property {uuid} [storageAccountSubscriptionId] Specifies the blob storage * subscription Id. - * @member {boolean} [isStorageSecondaryKeyInUse] Specifies whether + * @property {boolean} [isStorageSecondaryKeyInUse] Specifies whether * storageAccountAccessKey value is the storage's secondary key. - * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit + * @property {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit * events are sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' * and 'IsAzureMonitorTargetEnabled' as true. diff --git a/lib/services/sqlManagement2/lib/models/failoverGroup.js b/lib/services/sqlManagement2/lib/models/failoverGroup.js index d27e41c1ca..30562af4d7 100644 --- a/lib/services/sqlManagement2/lib/models/failoverGroup.js +++ b/lib/services/sqlManagement2/lib/models/failoverGroup.js @@ -20,31 +20,31 @@ const models = require('./index'); class FailoverGroup extends models['ProxyResource'] { /** * Create a FailoverGroup. - * @member {string} [location] Resource location. - * @member {object} [tags] Resource tags. - * @member {object} readWriteEndpoint Read-write endpoint of the failover + * @property {string} [location] Resource location. + * @property {object} [tags] Resource tags. + * @property {object} readWriteEndpoint Read-write endpoint of the failover * group instance. - * @member {string} [readWriteEndpoint.failoverPolicy] Failover policy of the - * read-write endpoint for the failover group. If failoverPolicy is Automatic - * then failoverWithDataLossGracePeriodMinutes is required. Possible values - * include: 'Manual', 'Automatic' - * @member {number} + * @property {string} [readWriteEndpoint.failoverPolicy] Failover policy of + * the read-write endpoint for the failover group. If failoverPolicy is + * Automatic then failoverWithDataLossGracePeriodMinutes is required. + * Possible values include: 'Manual', 'Automatic' + * @property {number} * [readWriteEndpoint.failoverWithDataLossGracePeriodMinutes] Grace period * before failover with data loss is attempted for the read-write endpoint. * If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes * is required. - * @member {object} [readOnlyEndpoint] Read-only endpoint of the failover + * @property {object} [readOnlyEndpoint] Read-only endpoint of the failover * group instance. - * @member {string} [readOnlyEndpoint.failoverPolicy] Failover policy of the - * read-only endpoint for the failover group. Possible values include: + * @property {string} [readOnlyEndpoint.failoverPolicy] Failover policy of + * the read-only endpoint for the failover group. Possible values include: * 'Disabled', 'Enabled' - * @member {string} [replicationRole] Local replication role of the failover - * group instance. Possible values include: 'Primary', 'Secondary' - * @member {string} [replicationState] Replication state of the failover + * @property {string} [replicationRole] Local replication role of the + * failover group instance. Possible values include: 'Primary', 'Secondary' + * @property {string} [replicationState] Replication state of the failover * group instance. - * @member {array} partnerServers List of partner server information for the - * failover group. - * @member {array} [databases] List of databases in the failover group. + * @property {array} partnerServers List of partner server information for + * the failover group. + * @property {array} [databases] List of databases in the failover group. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/failoverGroupListResult.js b/lib/services/sqlManagement2/lib/models/failoverGroupListResult.js index 859c8242e6..209b319195 100644 --- a/lib/services/sqlManagement2/lib/models/failoverGroupListResult.js +++ b/lib/services/sqlManagement2/lib/models/failoverGroupListResult.js @@ -16,7 +16,7 @@ class FailoverGroupListResult extends Array { /** * Create a FailoverGroupListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/failoverGroupReadOnlyEndpoint.js b/lib/services/sqlManagement2/lib/models/failoverGroupReadOnlyEndpoint.js index 3e6404a5a1..f34f3634b4 100644 --- a/lib/services/sqlManagement2/lib/models/failoverGroupReadOnlyEndpoint.js +++ b/lib/services/sqlManagement2/lib/models/failoverGroupReadOnlyEndpoint.js @@ -17,7 +17,7 @@ class FailoverGroupReadOnlyEndpoint { /** * Create a FailoverGroupReadOnlyEndpoint. - * @member {string} [failoverPolicy] Failover policy of the read-only + * @property {string} [failoverPolicy] Failover policy of the read-only * endpoint for the failover group. Possible values include: 'Disabled', * 'Enabled' */ diff --git a/lib/services/sqlManagement2/lib/models/failoverGroupReadWriteEndpoint.js b/lib/services/sqlManagement2/lib/models/failoverGroupReadWriteEndpoint.js index 74623717fe..b1b74d3425 100644 --- a/lib/services/sqlManagement2/lib/models/failoverGroupReadWriteEndpoint.js +++ b/lib/services/sqlManagement2/lib/models/failoverGroupReadWriteEndpoint.js @@ -17,11 +17,11 @@ class FailoverGroupReadWriteEndpoint { /** * Create a FailoverGroupReadWriteEndpoint. - * @member {string} failoverPolicy Failover policy of the read-write endpoint - * for the failover group. If failoverPolicy is Automatic then + * @property {string} failoverPolicy Failover policy of the read-write + * endpoint for the failover group. If failoverPolicy is Automatic then * failoverWithDataLossGracePeriodMinutes is required. Possible values * include: 'Manual', 'Automatic' - * @member {number} [failoverWithDataLossGracePeriodMinutes] Grace period + * @property {number} [failoverWithDataLossGracePeriodMinutes] Grace period * before failover with data loss is attempted for the read-write endpoint. * If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes * is required. diff --git a/lib/services/sqlManagement2/lib/models/failoverGroupUpdate.js b/lib/services/sqlManagement2/lib/models/failoverGroupUpdate.js index 2147497cbc..8e12245903 100644 --- a/lib/services/sqlManagement2/lib/models/failoverGroupUpdate.js +++ b/lib/services/sqlManagement2/lib/models/failoverGroupUpdate.js @@ -17,24 +17,24 @@ class FailoverGroupUpdate { /** * Create a FailoverGroupUpdate. - * @member {object} [readWriteEndpoint] Read-write endpoint of the failover + * @property {object} [readWriteEndpoint] Read-write endpoint of the failover * group instance. - * @member {string} [readWriteEndpoint.failoverPolicy] Failover policy of the - * read-write endpoint for the failover group. If failoverPolicy is Automatic - * then failoverWithDataLossGracePeriodMinutes is required. Possible values - * include: 'Manual', 'Automatic' - * @member {number} + * @property {string} [readWriteEndpoint.failoverPolicy] Failover policy of + * the read-write endpoint for the failover group. If failoverPolicy is + * Automatic then failoverWithDataLossGracePeriodMinutes is required. + * Possible values include: 'Manual', 'Automatic' + * @property {number} * [readWriteEndpoint.failoverWithDataLossGracePeriodMinutes] Grace period * before failover with data loss is attempted for the read-write endpoint. * If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes * is required. - * @member {object} [readOnlyEndpoint] Read-only endpoint of the failover + * @property {object} [readOnlyEndpoint] Read-only endpoint of the failover * group instance. - * @member {string} [readOnlyEndpoint.failoverPolicy] Failover policy of the - * read-only endpoint for the failover group. Possible values include: + * @property {string} [readOnlyEndpoint.failoverPolicy] Failover policy of + * the read-only endpoint for the failover group. Possible values include: * 'Disabled', 'Enabled' - * @member {array} [databases] List of databases in the failover group. - * @member {object} [tags] Resource tags. + * @property {array} [databases] List of databases in the failover group. + * @property {object} [tags] Resource tags. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/firewallRule.js b/lib/services/sqlManagement2/lib/models/firewallRule.js index 1881861d7f..32cafc42fb 100644 --- a/lib/services/sqlManagement2/lib/models/firewallRule.js +++ b/lib/services/sqlManagement2/lib/models/firewallRule.js @@ -20,13 +20,13 @@ const models = require('./index'); class FirewallRule extends models['ProxyResource'] { /** * Create a FirewallRule. - * @member {string} [kind] Kind of server that contains this firewall rule. - * @member {string} [location] Location of the server that contains this + * @property {string} [kind] Kind of server that contains this firewall rule. + * @property {string} [location] Location of the server that contains this * firewall rule. - * @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. - * @member {string} endIpAddress The end IP address of the firewall rule. + * @property {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. + * @property {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. */ diff --git a/lib/services/sqlManagement2/lib/models/geoBackupPolicy.js b/lib/services/sqlManagement2/lib/models/geoBackupPolicy.js index aadea0ed6c..2efb0c06a5 100644 --- a/lib/services/sqlManagement2/lib/models/geoBackupPolicy.js +++ b/lib/services/sqlManagement2/lib/models/geoBackupPolicy.js @@ -20,12 +20,13 @@ const models = require('./index'); class GeoBackupPolicy extends models['ProxyResource'] { /** * Create a GeoBackupPolicy. - * @member {string} state The state of the geo backup policy. Possible values - * include: 'Disabled', 'Enabled' - * @member {string} [storageType] The storage type of the geo backup policy. - * @member {string} [kind] Kind of geo backup policy. This is metadata used - * for the Azure portal experience. - * @member {string} [location] Backup policy location. + * @property {string} state The state of the geo backup policy. Possible + * values include: 'Disabled', 'Enabled' + * @property {string} [storageType] The storage type of the geo backup + * policy. + * @property {string} [kind] Kind of geo backup policy. This is metadata + * used for the Azure portal experience. + * @property {string} [location] Backup policy location. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/importExportResponse.js b/lib/services/sqlManagement2/lib/models/importExportResponse.js index 7b8469de61..aff284c8a4 100644 --- a/lib/services/sqlManagement2/lib/models/importExportResponse.js +++ b/lib/services/sqlManagement2/lib/models/importExportResponse.js @@ -20,16 +20,16 @@ const models = require('./index'); class ImportExportResponse extends models['ProxyResource'] { /** * Create a ImportExportResponse. - * @member {string} [requestType] The request type of the operation. - * @member {uuid} [requestId] The request type of the operation. - * @member {string} [serverName] The name of the server. - * @member {string} [databaseName] The name of the database. - * @member {string} [status] The status message returned from the server. - * @member {string} [lastModifiedTime] The operation status last modified + * @property {string} [requestType] The request type of the operation. + * @property {uuid} [requestId] The request type of the operation. + * @property {string} [serverName] The name of the server. + * @property {string} [databaseName] The name of the database. + * @property {string} [status] The status message returned from the server. + * @property {string} [lastModifiedTime] The operation status last modified * time. - * @member {string} [queuedTime] The operation queued time. - * @member {string} [blobUri] The blob uri. - * @member {string} [errorMessage] The error message returned from the + * @property {string} [queuedTime] The operation queued time. + * @property {string} [blobUri] The blob uri. + * @property {string} [errorMessage] The error message returned from the * server. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/importExtensionRequest.js b/lib/services/sqlManagement2/lib/models/importExtensionRequest.js index 523e25b61b..69ac7173b4 100644 --- a/lib/services/sqlManagement2/lib/models/importExtensionRequest.js +++ b/lib/services/sqlManagement2/lib/models/importExtensionRequest.js @@ -17,17 +17,17 @@ class ImportExtensionRequest { /** * Create a ImportExtensionRequest. - * @member {string} [name] The name of the extension. - * @member {string} [type] The type of the extension. - * @member {string} storageKeyType The type of the storage key to use. + * @property {string} [name] The name of the extension. + * @property {string} [type] The type of the extension. + * @property {string} storageKeyType The type of the storage key to use. * Possible values include: 'StorageAccessKey', 'SharedAccessKey' - * @member {string} storageKey The storage key to use. If storage key type + * @property {string} storageKey The storage key to use. If storage key type * is SharedAccessKey, it must be preceded with a "?." - * @member {string} storageUri The storage uri to use. - * @member {string} administratorLogin The name of the SQL administrator. - * @member {string} administratorLoginPassword The password of the SQL + * @property {string} storageUri The storage uri to use. + * @property {string} administratorLogin The name of the SQL administrator. + * @property {string} administratorLoginPassword The password of the SQL * administrator. - * @member {string} [authenticationType] The authentication type. Possible + * @property {string} [authenticationType] The authentication type. Possible * values include: 'SQL', 'ADPassword'. Default value: 'SQL' . */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/importRequest.js b/lib/services/sqlManagement2/lib/models/importRequest.js index 474fc662c8..62869f7435 100644 --- a/lib/services/sqlManagement2/lib/models/importRequest.js +++ b/lib/services/sqlManagement2/lib/models/importRequest.js @@ -20,13 +20,13 @@ const models = require('./index'); class ImportRequest extends models['ExportRequest'] { /** * Create a ImportRequest. - * @member {string} databaseName The name of the database to import. - * @member {string} edition The edition for the database being created. + * @property {string} databaseName The name of the database to import. + * @property {string} edition The edition for the database being created. * Possible values include: 'Web', 'Business', 'Basic', 'Standard', * 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', 'System', * 'System2' - * @member {string} serviceObjectiveName The name of the service objective to - * assign to the database. Possible values include: 'System', 'System0', + * @property {string} serviceObjectiveName The name of the service objective + * to assign to the database. Possible values include: 'System', 'System0', * 'System1', 'System2', 'System3', 'System4', 'System2L', 'System3L', * 'System4L', 'Free', 'Basic', 'S0', 'S1', 'S2', 'S3', 'S4', 'S6', 'S7', * 'S9', 'S12', 'P1', 'P2', 'P3', 'P4', 'P6', 'P11', 'P15', 'PRS1', 'PRS2', @@ -35,7 +35,7 @@ class ImportRequest extends models['ExportRequest'] { * 'DW3000', 'DW2500c', 'DW3000c', 'DW6000', 'DW5000c', 'DW6000c', 'DW7500c', * 'DW10000c', 'DW15000c', 'DW30000c', 'DS100', 'DS200', 'DS300', 'DS400', * 'DS500', 'DS600', 'DS1000', 'DS1200', 'DS1500', 'DS2000', 'ElasticPool' - * @member {string} maxSizeBytes The maximum size for the newly imported + * @property {string} maxSizeBytes The maximum size for the newly imported * database. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/index.d.ts b/lib/services/sqlManagement2/lib/models/index.d.ts index b1601cde32..5b827998f1 100644 --- a/lib/services/sqlManagement2/lib/models/index.d.ts +++ b/lib/services/sqlManagement2/lib/models/index.d.ts @@ -22,9 +22,9 @@ export { CloudError } from 'ms-rest-azure'; * @constructor * ARM resource. * - * @member {string} [id] Resource ID. - * @member {string} [name] Resource name. - * @member {string} [type] Resource type. + * @property {string} [id] Resource ID. + * @property {string} [name] Resource name. + * @property {string} [type] Resource type. */ export interface Resource extends BaseResource { readonly id?: string; @@ -48,11 +48,11 @@ export interface ProxyResource extends Resource { * @constructor * A recoverable database * - * @member {string} [edition] The edition of the database - * @member {string} [serviceLevelObjective] The service level objective name of - * the database - * @member {string} [elasticPoolName] The elastic pool name of the database - * @member {date} [lastAvailableBackupDate] The last available backup date of + * @property {string} [edition] The edition of the database + * @property {string} [serviceLevelObjective] The service level objective name + * of the database + * @property {string} [elasticPoolName] The elastic pool name of the database + * @property {date} [lastAvailableBackupDate] The last available backup date of * the database (ISO8601 format) */ export interface RecoverableDatabase extends ProxyResource { @@ -68,18 +68,18 @@ export interface RecoverableDatabase extends ProxyResource { * @constructor * A restorable dropped database * - * @member {string} [location] The geo-location where the resource lives - * @member {string} [databaseName] The name of the database - * @member {string} [edition] The edition of the database - * @member {string} [maxSizeBytes] The max size in bytes of the database - * @member {string} [serviceLevelObjective] The service level objective name of - * the database - * @member {string} [elasticPoolName] The elastic pool name of the database - * @member {date} [creationDate] The creation date of the database (ISO8601 + * @property {string} [location] The geo-location where the resource lives + * @property {string} [databaseName] The name of the database + * @property {string} [edition] The edition of the database + * @property {string} [maxSizeBytes] The max size in bytes of the database + * @property {string} [serviceLevelObjective] The service level objective name + * of the database + * @property {string} [elasticPoolName] The elastic pool name of the database + * @property {date} [creationDate] The creation date of the database (ISO8601 * format) - * @member {date} [deletionDate] The deletion date of the database (ISO8601 + * @property {date} [deletionDate] The deletion date of the database (ISO8601 * format) - * @member {date} [earliestRestoreDate] The earliest restore date of the + * @property {date} [earliestRestoreDate] The earliest restore date of the * database (ISO8601 format) */ export interface RestorableDroppedDatabase extends ProxyResource { @@ -100,8 +100,8 @@ export interface RestorableDroppedDatabase extends ProxyResource { * @constructor * ARM tracked top level resource. * - * @member {string} location Resource location. - * @member {object} [tags] Resource tags. + * @property {string} location Resource location. + * @property {object} [tags] Resource tags. */ export interface TrackedResource extends Resource { location: string; @@ -114,7 +114,7 @@ export interface TrackedResource extends Resource { * @constructor * A request to check whether the specified name for a resource is available. * - * @member {string} name The name whose availability is to be checked. + * @property {string} name The name whose availability is to be checked. */ export interface CheckNameAvailabilityRequest { name: string; @@ -127,12 +127,12 @@ export interface CheckNameAvailabilityRequest { * A response indicating whether the specified name for a resource is * available. * - * @member {boolean} [available] True if the name is available, otherwise + * @property {boolean} [available] True if the name is available, otherwise * false. - * @member {string} [message] A message explaining why the name is unavailable. - * Will be null if the name is available. - * @member {string} [name] The name whose availability was checked. - * @member {string} [reason] The reason code explaining why the name is + * @property {string} [message] A message explaining why the name is + * unavailable. Will be null if the name is available. + * @property {string} [name] The name whose availability was checked. + * @property {string} [reason] The reason code explaining why the name is * unavailable. Will be null if the name is available. Possible values include: * 'Invalid', 'AlreadyExists' */ @@ -149,10 +149,10 @@ export interface CheckNameAvailabilityResponse { * @constructor * A server secure connection policy. * - * @member {string} [kind] Metadata used for the Azure portal experience. - * @member {string} [location] Resource location. - * @member {string} connectionType The server connection type. Possible values - * include: 'Default', 'Proxy', 'Redirect' + * @property {string} [kind] Metadata used for the Azure portal experience. + * @property {string} [location] Resource location. + * @property {string} connectionType The server connection type. Possible + * values include: 'Default', 'Proxy', 'Redirect' */ export interface ServerConnectionPolicy extends ProxyResource { readonly kind?: string; @@ -166,29 +166,29 @@ export interface ServerConnectionPolicy extends ProxyResource { * @constructor * Contains information about a database Threat Detection policy. * - * @member {string} [location] The geo-location where the resource lives - * @member {string} [kind] Resource kind. - * @member {string} state Specifies the state of the policy. If state is + * @property {string} [location] The geo-location where the resource lives + * @property {string} [kind] Resource kind. + * @property {string} state Specifies the state of the policy. If state is * Enabled, storageEndpoint and storageAccountAccessKey are required. Possible * values include: 'New', 'Enabled', 'Disabled' - * @member {string} [disabledAlerts] Specifies the semicolon-separated list of - * alerts that are disabled, or empty string to disable no alerts. Possible + * @property {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. - * @member {string} [emailAddresses] Specifies the semicolon-separated list of - * e-mail addresses to which the alert is sent. - * @member {string} [emailAccountAdmins] Specifies that the alert is sent to + * @property {string} [emailAddresses] Specifies the semicolon-separated list + * of e-mail addresses to which the alert is sent. + * @property {string} [emailAccountAdmins] Specifies that the alert is sent to * the account administrators. Possible values include: 'Enabled', 'Disabled' - * @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 + * @property {string} [storageEndpoint] Specifies the blob storage endpoint + * (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold + * all Threat Detection audit logs. If state is Enabled, storageEndpoint is * required. - * @member {string} [storageAccountAccessKey] Specifies the identifier key of + * @property {string} [storageAccountAccessKey] Specifies the identifier key of * the Threat Detection audit storage account. If state is Enabled, * storageAccountAccessKey is required. - * @member {number} [retentionDays] Specifies the number of days to keep in the - * Threat Detection audit logs. - * @member {string} [useServerDefault] Specifies whether to use the default + * @property {number} [retentionDays] Specifies the number of days to keep in + * the Threat Detection audit logs. + * @property {string} [useServerDefault] Specifies whether to use the default * server policy. Possible values include: 'Enabled', 'Disabled' */ export interface DatabaseSecurityAlertPolicy extends ProxyResource { @@ -210,19 +210,19 @@ export interface DatabaseSecurityAlertPolicy extends ProxyResource { * @constructor * Represents a database data masking policy. * - * @member {string} dataMaskingState The state of the data masking policy. + * @property {string} dataMaskingState The state of the data masking policy. * Possible values include: 'Disabled', 'Enabled' - * @member {string} [exemptPrincipals] The list of the exempt principals. + * @property {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. - * @member {string} [applicationPrincipals] The list of the application + * @property {string} [applicationPrincipals] The list of the application * principals. This is a legacy parameter and is no longer used. - * @member {string} [maskingLevel] The masking level. This is a legacy + * @property {string} [maskingLevel] The masking level. This is a legacy * parameter and is no longer used. - * @member {string} [location] The location of the data masking policy. - * @member {string} [kind] The kind of data masking policy. Metadata, used for - * Azure portal. + * @property {string} [location] The location of the data masking policy. + * @property {string} [kind] The kind of data masking policy. Metadata, used + * for Azure portal. */ export interface DataMaskingPolicy extends ProxyResource { dataMaskingState: string; @@ -239,41 +239,41 @@ export interface DataMaskingPolicy extends ProxyResource { * @constructor * Represents a database data masking rule. * - * @member {string} [dataMaskingRuleId] The rule Id. - * @member {string} [aliasName] The alias name. This is a legacy parameter and - * is no longer used. - * @member {string} [ruleState] The rule state. Used to delete a rule. To + * @property {string} [dataMaskingRuleId] The rule Id. + * @property {string} [aliasName] The alias name. This is a legacy parameter + * and is no longer used. + * @property {string} [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} schemaName The schema name on which the data masking rule + * @property {string} schemaName The schema name on which the data masking rule + * is applied. + * @property {string} tableName The table name on which the data masking rule * is applied. - * @member {string} tableName The table name on which the data masking rule is - * applied. - * @member {string} columnName The column name on which the data masking rule + * @property {string} columnName The column name on which the data masking rule * is applied. - * @member {string} maskingFunction The masking function that is used for the + * @property {string} maskingFunction The masking function that is used for the * data masking rule. Possible values include: 'Default', 'CCN', 'Email', * 'Number', 'SSN', 'Text' - * @member {string} [numberFrom] The numberFrom property of the masking rule. - * Required if maskingFunction is set to Number, otherwise this parameter will - * be ignored. - * @member {string} [numberTo] The numberTo property of the data masking rule. + * @property {string} [numberFrom] The numberFrom property of the masking rule. * Required if maskingFunction is set to Number, otherwise this parameter will * be ignored. - * @member {string} [prefixSize] If maskingFunction is set to Text, the number - * of characters to show unmasked in the beginning of the string. Otherwise, + * @property {string} [numberTo] The numberTo property of the data masking + * rule. Required if maskingFunction is set to Number, otherwise this parameter + * will be ignored. + * @property {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. + * @property {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. - * @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. - * @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. - * @member {string} [location] The location of the data masking rule. - * @member {string} [kind] The kind of Data Masking Rule. Metadata, used for + * @property {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. + * @property {string} [location] The location of the data masking rule. + * @property {string} [kind] The kind of Data Masking Rule. Metadata, used for * Azure portal. */ export interface DataMaskingRule extends ProxyResource { @@ -299,15 +299,15 @@ export interface DataMaskingRule extends ProxyResource { * @constructor * Represents a server firewall rule. * - * @member {string} [kind] Kind of server that contains this firewall rule. - * @member {string} [location] Location of the server that contains this + * @property {string} [kind] Kind of server that contains this firewall rule. + * @property {string} [location] Location of the server that contains this * firewall rule. - * @member {string} startIpAddress The start IP address of the firewall rule. + * @property {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. - * @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. + * @property {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. */ export interface FirewallRule extends ProxyResource { readonly kind?: string; @@ -322,12 +322,12 @@ export interface FirewallRule extends ProxyResource { * @constructor * A database geo backup policy. * - * @member {string} state The state of the geo backup policy. Possible values + * @property {string} state The state of the geo backup policy. Possible values * include: 'Disabled', 'Enabled' - * @member {string} [storageType] The storage type of the geo backup policy. - * @member {string} [kind] Kind of geo backup policy. This is metadata used + * @property {string} [storageType] The storage type of the geo backup policy. + * @property {string} [kind] Kind of geo backup policy. This is metadata used * for the Azure portal experience. - * @member {string} [location] Backup policy location. + * @property {string} [location] Backup policy location. */ export interface GeoBackupPolicy extends ProxyResource { state: string; @@ -342,17 +342,17 @@ export interface GeoBackupPolicy extends ProxyResource { * @constructor * Import database parameters. * - * @member {string} [name] The name of the extension. - * @member {string} [type] The type of the extension. - * @member {string} storageKeyType The type of the storage key to use. Possible - * values include: 'StorageAccessKey', 'SharedAccessKey' - * @member {string} storageKey The storage key to use. If storage key type is - * SharedAccessKey, it must be preceded with a "?." - * @member {string} storageUri The storage uri to use. - * @member {string} administratorLogin The name of the SQL administrator. - * @member {string} administratorLoginPassword The password of the SQL + * @property {string} [name] The name of the extension. + * @property {string} [type] The type of the extension. + * @property {string} storageKeyType The type of the storage key to use. + * Possible values include: 'StorageAccessKey', 'SharedAccessKey' + * @property {string} storageKey The storage key to use. If storage key type + * is SharedAccessKey, it must be preceded with a "?." + * @property {string} storageUri The storage uri to use. + * @property {string} administratorLogin The name of the SQL administrator. + * @property {string} administratorLoginPassword The password of the SQL * administrator. - * @member {string} [authenticationType] The authentication type. Possible + * @property {string} [authenticationType] The authentication type. Possible * values include: 'SQL', 'ADPassword'. Default value: 'SQL' . */ export interface ImportExtensionRequest { @@ -372,15 +372,17 @@ export interface ImportExtensionRequest { * @constructor * Response for Import/Export Get operation. * - * @member {string} [requestType] The request type of the operation. - * @member {uuid} [requestId] The request type of the operation. - * @member {string} [serverName] The name of the server. - * @member {string} [databaseName] The name of the database. - * @member {string} [status] The status message returned from the server. - * @member {string} [lastModifiedTime] The operation status last modified time. - * @member {string} [queuedTime] The operation queued time. - * @member {string} [blobUri] The blob uri. - * @member {string} [errorMessage] The error message returned from the server. + * @property {string} [requestType] The request type of the operation. + * @property {uuid} [requestId] The request type of the operation. + * @property {string} [serverName] The name of the server. + * @property {string} [databaseName] The name of the database. + * @property {string} [status] The status message returned from the server. + * @property {string} [lastModifiedTime] The operation status last modified + * time. + * @property {string} [queuedTime] The operation queued time. + * @property {string} [blobUri] The blob uri. + * @property {string} [errorMessage] The error message returned from the + * server. */ export interface ImportExportResponse extends ProxyResource { readonly requestType?: string; @@ -400,15 +402,15 @@ export interface ImportExportResponse extends ProxyResource { * @constructor * Export database parameters. * - * @member {string} storageKeyType The type of the storage key to use. Possible - * values include: 'StorageAccessKey', 'SharedAccessKey' - * @member {string} storageKey The storage key to use. If storage key type is - * SharedAccessKey, it must be preceded with a "?." - * @member {string} storageUri The storage uri to use. - * @member {string} administratorLogin The name of the SQL administrator. - * @member {string} administratorLoginPassword The password of the SQL + * @property {string} storageKeyType The type of the storage key to use. + * Possible values include: 'StorageAccessKey', 'SharedAccessKey' + * @property {string} storageKey The storage key to use. If storage key type + * is SharedAccessKey, it must be preceded with a "?." + * @property {string} storageUri The storage uri to use. + * @property {string} administratorLogin The name of the SQL administrator. + * @property {string} administratorLoginPassword The password of the SQL * administrator. - * @member {string} [authenticationType] The authentication type. Possible + * @property {string} [authenticationType] The authentication type. Possible * values include: 'SQL', 'ADPassword'. Default value: 'SQL' . */ export interface ExportRequest { @@ -426,11 +428,11 @@ export interface ExportRequest { * @constructor * Import database parameters. * - * @member {string} databaseName The name of the database to import. - * @member {string} edition The edition for the database being created. + * @property {string} databaseName The name of the database to import. + * @property {string} edition The edition for the database being created. * Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', * 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', 'System', 'System2' - * @member {string} serviceObjectiveName The name of the service objective to + * @property {string} serviceObjectiveName The name of the service objective to * assign to the database. Possible values include: 'System', 'System0', * 'System1', 'System2', 'System3', 'System4', 'System2L', 'System3L', * 'System4L', 'Free', 'Basic', 'S0', 'S1', 'S2', 'S3', 'S4', 'S6', 'S7', 'S9', @@ -440,7 +442,7 @@ export interface ExportRequest { * 'DW2500c', 'DW3000c', 'DW6000', 'DW5000c', 'DW6000c', 'DW7500c', 'DW10000c', * 'DW15000c', 'DW30000c', 'DS100', 'DS200', 'DS300', 'DS400', 'DS500', * 'DS600', 'DS1000', 'DS1200', 'DS1500', 'DS2000', 'ElasticPool' - * @member {string} maxSizeBytes The maximum size for the newly imported + * @property {string} maxSizeBytes The maximum size for the newly imported * database. */ export interface ImportRequest extends ExportRequest { @@ -456,12 +458,12 @@ export interface ImportRequest extends ExportRequest { * @constructor * Represents database metrics. * - * @member {number} [count] The number of values for the metric. - * @member {number} [average] The average value of the metric. - * @member {number} [maximum] The max value of the metric. - * @member {number} [minimum] The min value of the metric. - * @member {date} [timestamp] The metric timestamp (ISO-8601 format). - * @member {number} [total] The total value of the metric. + * @property {number} [count] The number of values for the metric. + * @property {number} [average] The average value of the metric. + * @property {number} [maximum] The max value of the metric. + * @property {number} [minimum] The min value of the metric. + * @property {date} [timestamp] The metric timestamp (ISO-8601 format). + * @property {number} [total] The total value of the metric. */ export interface MetricValue { readonly count?: number; @@ -478,8 +480,9 @@ export interface MetricValue { * @constructor * A database metric name. * - * @member {string} [value] The name of the database metric. - * @member {string} [localizedValue] The friendly name of the database metric. + * @property {string} [value] The name of the database metric. + * @property {string} [localizedValue] The friendly name of the database + * metric. */ export interface MetricName { readonly value?: string; @@ -492,17 +495,18 @@ export interface MetricName { * @constructor * Database metrics. * - * @member {date} [startTime] The start time for the metric (ISO-8601 format). - * @member {date} [endTime] The end time for the metric (ISO-8601 format). - * @member {string} [timeGrain] The time step to be used to summarize the + * @property {date} [startTime] The start time for the metric (ISO-8601 + * format). + * @property {date} [endTime] The end time for the metric (ISO-8601 format). + * @property {string} [timeGrain] The time step to be used to summarize the * metric values. - * @member {string} [unit] The unit of the metric. Possible values include: + * @property {string} [unit] The unit of the metric. Possible values include: * 'count', 'bytes', 'seconds', 'percent', 'countPerSecond', 'bytesPerSecond' - * @member {object} [name] The name information for the metric. - * @member {string} [name.value] The name of the database metric. - * @member {string} [name.localizedValue] The friendly name of the database + * @property {object} [name] The name information for the metric. + * @property {string} [name.value] The name of the database metric. + * @property {string} [name.localizedValue] The friendly name of the database * metric. - * @member {array} [metricValues] The metric values for the specified time + * @property {array} [metricValues] The metric values for the specified time * window and timestep. */ export interface Metric { @@ -520,9 +524,9 @@ export interface Metric { * @constructor * A metric availability value. * - * @member {string} [retention] The length of retention for the database + * @property {string} [retention] The length of retention for the database * metric. - * @member {string} [timeGrain] The granularity of the database metric. + * @property {string} [timeGrain] The granularity of the database metric. */ export interface MetricAvailability { readonly retention?: string; @@ -535,17 +539,17 @@ export interface MetricAvailability { * @constructor * A database metric definition. * - * @member {object} [name] The name information for the metric. - * @member {string} [name.value] The name of the database metric. - * @member {string} [name.localizedValue] The friendly name of the database + * @property {object} [name] The name information for the metric. + * @property {string} [name.value] The name of the database metric. + * @property {string} [name.localizedValue] The friendly name of the database * metric. - * @member {string} [primaryAggregationType] The primary aggregation type + * @property {string} [primaryAggregationType] The primary aggregation type * defining how metric values are displayed. Possible values include: 'None', * 'Average', 'Count', 'Minimum', 'Maximum', 'Total' - * @member {string} [resourceUri] The resource uri of the database. - * @member {string} [unit] The unit of the metric. Possible values include: + * @property {string} [resourceUri] The resource uri of the database. + * @property {string} [unit] The unit of the metric. Possible values include: * 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' - * @member {array} [metricAvailabilities] The list of database metric + * @property {array} [metricAvailabilities] The list of database metric * availabities for the metric. */ export interface MetricDefinition { @@ -562,11 +566,11 @@ export interface MetricDefinition { * @constructor * Represents recommended elastic pool metric. * - * @member {date} [dateTime] The time of metric (ISO8601 format). - * @member {number} [dtu] Gets or sets the DTUs (Database Transaction Units). + * @property {date} [dateTime] The time of metric (ISO8601 format). + * @property {number} [dtu] Gets or sets the DTUs (Database Transaction Units). * See * https://azure.microsoft.com/documentation/articles/sql-database-what-is-a-dtu/ - * @member {number} [sizeGB] Gets or sets size in gigabytes. + * @property {number} [sizeGB] Gets or sets size in gigabytes. */ export interface RecommendedElasticPoolMetric { dateTime?: Date; @@ -580,23 +584,23 @@ export interface RecommendedElasticPoolMetric { * @constructor * Represents a recommented elastic pool. * - * @member {string} [databaseEdition] The edition of the recommended elastic + * @property {string} [databaseEdition] The edition of the recommended elastic * pool. The ElasticPoolEdition enumeration contains all the valid editions. * Possible values include: 'Basic', 'Standard', 'Premium' - * @member {number} [dtu] The DTU for the recommended elastic pool. - * @member {number} [databaseDtuMin] The minimum DTU for the database. - * @member {number} [databaseDtuMax] The maximum DTU for the database. - * @member {number} [storageMB] Gets storage size in megabytes. - * @member {date} [observationPeriodStart] The observation period start + * @property {number} [dtu] The DTU for the recommended elastic pool. + * @property {number} [databaseDtuMin] The minimum DTU for the database. + * @property {number} [databaseDtuMax] The maximum DTU for the database. + * @property {number} [storageMB] Gets storage size in megabytes. + * @property {date} [observationPeriodStart] The observation period start * (ISO8601 format). - * @member {date} [observationPeriodEnd] The observation period start (ISO8601 - * format). - * @member {number} [maxObservedDtu] Gets maximum observed DTU. - * @member {number} [maxObservedStorageMB] Gets maximum observed storage in + * @property {date} [observationPeriodEnd] The observation period start + * (ISO8601 format). + * @property {number} [maxObservedDtu] Gets maximum observed DTU. + * @property {number} [maxObservedStorageMB] Gets maximum observed storage in * megabytes. - * @member {array} [databases] The list of databases in this pool. Expanded + * @property {array} [databases] The list of databases in this pool. Expanded * property - * @member {array} [metrics] The list of databases housed in the server. + * @property {array} [metrics] The list of databases housed in the server. * Expanded property */ export interface RecommendedElasticPool extends ProxyResource { @@ -619,26 +623,27 @@ export interface RecommendedElasticPool extends ProxyResource { * @constructor * Represents a database replication link. * - * @member {string} [location] Location of the server that contains this + * @property {string} [location] Location of the server that contains this * firewall rule. - * @member {boolean} [isTerminationAllowed] Legacy value indicating whether + * @property {boolean} [isTerminationAllowed] Legacy value indicating whether * termination is allowed. Currently always returns true. - * @member {string} [replicationMode] Replication mode of this replication + * @property {string} [replicationMode] Replication mode of this replication * link. - * @member {string} [partnerServer] The name of the server hosting the partner + * @property {string} [partnerServer] The name of the server hosting the + * partner database. + * @property {string} [partnerDatabase] The name of the partner database. + * @property {string} [partnerLocation] The Azure Region of the partner * database. - * @member {string} [partnerDatabase] The name of the partner database. - * @member {string} [partnerLocation] The Azure Region of the partner database. - * @member {string} [role] The role of the database in the replication link. + * @property {string} [role] The role of the database in the replication link. * Possible values include: 'Primary', 'Secondary', 'NonReadableSecondary', * 'Source', 'Copy' - * @member {string} [partnerRole] The role of the partner database in the + * @property {string} [partnerRole] The role of the partner database in the * replication link. Possible values include: 'Primary', 'Secondary', * 'NonReadableSecondary', 'Source', 'Copy' - * @member {date} [startTime] The start time for the replication link. - * @member {number} [percentComplete] The percentage of seeding complete for + * @property {date} [startTime] The start time for the replication link. + * @property {number} [percentComplete] The percentage of seeding complete for * the replication link. - * @member {string} [replicationState] The replication state for the + * @property {string} [replicationState] The replication state for the * replication link. Possible values include: 'PENDING', 'SEEDING', 'CATCH_UP', * 'SUSPENDED' */ @@ -662,9 +667,10 @@ export interface ReplicationLink extends ProxyResource { * @constructor * An server Active Directory Administrator. * - * @member {string} login The server administrator login value. - * @member {uuid} sid The server administrator Sid (Secure ID). - * @member {uuid} tenantId The server Active Directory Administrator tenant id. + * @property {string} login The server administrator login value. + * @property {uuid} sid The server administrator Sid (Secure ID). + * @property {uuid} tenantId The server Active Directory Administrator tenant + * id. */ export interface ServerAzureADAdministrator extends ProxyResource { login: string; @@ -678,11 +684,11 @@ export interface ServerAzureADAdministrator extends ProxyResource { * @constructor * Server communication link. * - * @member {string} [state] The state. - * @member {string} partnerServer The name of the partner server. - * @member {string} [location] Communication link location. - * @member {string} [kind] Communication link kind. This property is used for - * Azure Portal metadata. + * @property {string} [state] The state. + * @property {string} partnerServer The name of the partner server. + * @property {string} [location] Communication link location. + * @property {string} [kind] Communication link kind. This property is used + * for Azure Portal metadata. */ export interface ServerCommunicationLink extends ProxyResource { readonly state?: string; @@ -697,14 +703,15 @@ export interface ServerCommunicationLink extends ProxyResource { * @constructor * Represents a database service objective. * - * @member {string} [serviceObjectiveName] The name for the service objective. - * @member {boolean} [isDefault] Gets whether the service level objective is + * @property {string} [serviceObjectiveName] The name for the service + * objective. + * @property {boolean} [isDefault] Gets whether the service level objective is * the default service objective. - * @member {boolean} [isSystem] Gets whether the service level objective is a + * @property {boolean} [isSystem] Gets whether the service level objective is a * system service objective. - * @member {string} [description] The description for the service level + * @property {string} [description] The description for the service level * objective. - * @member {boolean} [enabled] Gets whether the service level objective is + * @property {boolean} [enabled] Gets whether the service level objective is * enabled. */ export interface ServiceObjective extends ProxyResource { @@ -721,34 +728,37 @@ export interface ServiceObjective extends ProxyResource { * @constructor * Represents the activity on an elastic pool. * - * @member {string} [location] The geo-location where the resource lives - * @member {date} [endTime] The time the operation finished (ISO8601 format). - * @member {number} [errorCode] The error code if available. - * @member {string} [errorMessage] The error message if available. - * @member {number} [errorSeverity] The error severity if available. - * @member {string} [operation] The operation name. - * @member {uuid} [operationId] The unique operation ID. - * @member {number} [percentComplete] The percentage complete if available. - * @member {number} [requestedDatabaseDtuMax] The requested max DTU per + * @property {string} [location] The geo-location where the resource lives + * @property {date} [endTime] The time the operation finished (ISO8601 format). + * @property {number} [errorCode] The error code if available. + * @property {string} [errorMessage] The error message if available. + * @property {number} [errorSeverity] The error severity if available. + * @property {string} [operation] The operation name. + * @property {uuid} [operationId] The unique operation ID. + * @property {number} [percentComplete] The percentage complete if available. + * @property {number} [requestedDatabaseDtuMax] The requested max DTU per * database if available. - * @member {number} [requestedDatabaseDtuMin] The requested min DTU per + * @property {number} [requestedDatabaseDtuMin] The requested min DTU per * database if available. - * @member {number} [requestedDtu] The requested DTU for the pool if available. - * @member {string} [requestedElasticPoolName] The requested name for the + * @property {number} [requestedDtu] The requested DTU for the pool if + * available. + * @property {string} [requestedElasticPoolName] The requested name for the * elastic pool if available. - * @member {number} [requestedStorageLimitInGB] The requested storage limit for - * the pool in GB if available. - * @member {string} [elasticPoolName] The name of the elastic pool. - * @member {string} [serverName] The name of the server the elastic pool is in. - * @member {date} [startTime] The time the operation started (ISO8601 format). - * @member {string} [state] The current state of the operation. - * @member {number} [requestedStorageLimitInMB] The requested storage limit in - * MB. - * @member {number} [requestedDatabaseDtuGuarantee] The requested per database - * DTU guarantee. - * @member {number} [requestedDatabaseDtuCap] The requested per database DTU + * @property {number} [requestedStorageLimitInGB] The requested storage limit + * for the pool in GB if available. + * @property {string} [elasticPoolName] The name of the elastic pool. + * @property {string} [serverName] The name of the server the elastic pool is + * in. + * @property {date} [startTime] The time the operation started (ISO8601 + * format). + * @property {string} [state] The current state of the operation. + * @property {number} [requestedStorageLimitInMB] The requested storage limit + * in MB. + * @property {number} [requestedDatabaseDtuGuarantee] The requested per + * database DTU guarantee. + * @property {number} [requestedDatabaseDtuCap] The requested per database DTU * cap. - * @member {number} [requestedDtuGuarantee] The requested DTU guarantee. + * @property {number} [requestedDtuGuarantee] The requested DTU guarantee. */ export interface ElasticPoolActivity extends ProxyResource { location?: string; @@ -780,26 +790,28 @@ export interface ElasticPoolActivity extends ProxyResource { * @constructor * Represents the activity on an elastic pool. * - * @member {string} [location] The geo-location where the resource lives - * @member {string} [databaseName] The database name. - * @member {date} [endTime] The time the operation finished (ISO8601 format). - * @member {number} [errorCode] The error code if available. - * @member {string} [errorMessage] The error message if available. - * @member {number} [errorSeverity] The error severity if available. - * @member {string} [operation] The operation name. - * @member {uuid} [operationId] The unique operation ID. - * @member {number} [percentComplete] The percentage complete if available. - * @member {string} [requestedElasticPoolName] The name for the elastic pool + * @property {string} [location] The geo-location where the resource lives + * @property {string} [databaseName] The database name. + * @property {date} [endTime] The time the operation finished (ISO8601 format). + * @property {number} [errorCode] The error code if available. + * @property {string} [errorMessage] The error message if available. + * @property {number} [errorSeverity] The error severity if available. + * @property {string} [operation] The operation name. + * @property {uuid} [operationId] The unique operation ID. + * @property {number} [percentComplete] The percentage complete if available. + * @property {string} [requestedElasticPoolName] The name for the elastic pool * the database is moving into if available. - * @member {string} [currentElasticPoolName] The name of the current elastic + * @property {string} [currentElasticPoolName] The name of the current elastic * pool the database is in if available. - * @member {string} [currentServiceObjective] The name of the current service + * @property {string} [currentServiceObjective] The name of the current service * objective if available. - * @member {string} [requestedServiceObjective] The name of the requested + * @property {string} [requestedServiceObjective] The name of the requested * service objective if available. - * @member {string} [serverName] The name of the server the elastic pool is in. - * @member {date} [startTime] The time the operation started (ISO8601 format). - * @member {string} [state] The current state of the operation. + * @property {string} [serverName] The name of the server the elastic pool is + * in. + * @property {date} [startTime] The time the operation started (ISO8601 + * format). + * @property {string} [state] The current state of the operation. */ export interface ElasticPoolDatabaseActivity extends ProxyResource { location?: string; @@ -826,11 +838,11 @@ export interface ElasticPoolDatabaseActivity extends ProxyResource { * @constructor * The impact of an operation, both in absolute and relative terms. * - * @member {string} [name] The name of the impact dimension. - * @member {string} [unit] The unit in which estimated impact to dimension is + * @property {string} [name] The name of the impact dimension. + * @property {string} [unit] The unit in which estimated impact to dimension is * measured. - * @member {number} [changeValueAbsolute] The absolute impact to dimension. - * @member {number} [changeValueRelative] The relative impact to dimension + * @property {number} [changeValueAbsolute] The absolute impact to dimension. + * @property {number} [changeValueRelative] The relative impact to dimension * (null if not applicable) */ export interface OperationImpact { @@ -846,28 +858,29 @@ export interface OperationImpact { * @constructor * Represents a database recommended index. * - * @member {string} [action] The proposed index action. You can create a + * @property {string} [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' - * @member {string} [state] The current recommendation state. Possible values + * @property {string} [state] The current recommendation state. Possible values * include: 'Active', 'Pending', 'Executing', 'Verifying', 'Pending Revert', * 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', 'Success' - * @member {date} [created] The UTC datetime showing when this resource was + * @property {date} [created] The UTC datetime showing when this resource was * created (ISO8601 format). - * @member {date} [lastModified] The UTC datetime of when was this resource + * @property {date} [lastModified] The UTC datetime of when was this resource * last changed (ISO8601 format). - * @member {string} [indexType] The type of index (CLUSTERED, NONCLUSTERED, + * @property {string} [indexType] The type of index (CLUSTERED, NONCLUSTERED, * COLUMNSTORE, CLUSTERED COLUMNSTORE). Possible values include: 'CLUSTERED', * 'NONCLUSTERED', 'COLUMNSTORE', 'CLUSTERED COLUMNSTORE' - * @member {string} [schema] The schema where table to build index over resides - * @member {string} [table] The table on which to build index. - * @member {array} [columns] Columns over which to build index - * @member {array} [includedColumns] The list of column names to be included in - * the index - * @member {string} [indexScript] The full build index script - * @member {array} [estimatedImpact] The estimated impact of doing recommended - * index action. - * @member {array} [reportedImpact] The values reported after index action is + * @property {string} [schema] The schema where table to build index over + * resides + * @property {string} [table] The table on which to build index. + * @property {array} [columns] Columns over which to build index + * @property {array} [includedColumns] The list of column names to be included + * in the index + * @property {string} [indexScript] The full build index script + * @property {array} [estimatedImpact] The estimated impact of doing + * recommended index action. + * @property {array} [reportedImpact] The values reported after index action is * complete. */ export interface RecommendedIndex extends ProxyResource { @@ -891,8 +904,8 @@ export interface RecommendedIndex extends ProxyResource { * @constructor * Represents a database transparent data encryption configuration. * - * @member {string} [location] Resource location. - * @member {string} [status] The status of the database transparent data + * @property {string} [location] Resource location. + * @property {string} [status] The status of the database transparent data * encryption. Possible values include: 'Enabled', 'Disabled' */ export interface TransparentDataEncryption extends ProxyResource { @@ -906,7 +919,7 @@ export interface TransparentDataEncryption extends ProxyResource { * @constructor * A Slo Usage Metric. * - * @member {string} [serviceLevelObjective] The serviceLevelObjective for SLO + * @property {string} [serviceLevelObjective] The serviceLevelObjective for SLO * usage metric. Possible values include: 'System', 'System0', 'System1', * 'System2', 'System3', 'System4', 'System2L', 'System3L', 'System4L', 'Free', * 'Basic', 'S0', 'S1', 'S2', 'S3', 'S4', 'S6', 'S7', 'S9', 'S12', 'P1', 'P2', @@ -916,9 +929,9 @@ export interface TransparentDataEncryption extends ProxyResource { * 'DW6000', 'DW5000c', 'DW6000c', 'DW7500c', 'DW10000c', 'DW15000c', * 'DW30000c', 'DS100', 'DS200', 'DS300', 'DS400', 'DS500', 'DS600', 'DS1000', * 'DS1200', 'DS1500', 'DS2000', 'ElasticPool' - * @member {uuid} [serviceLevelObjectiveId] The serviceLevelObjectiveId for SLO - * usage metric. - * @member {number} [inRangeTimeRatio] Gets or sets inRangeTimeRatio for SLO + * @property {uuid} [serviceLevelObjectiveId] The serviceLevelObjectiveId for + * SLO usage metric. + * @property {number} [inRangeTimeRatio] Gets or sets inRangeTimeRatio for SLO * usage metric. */ export interface SloUsageMetric { @@ -933,45 +946,45 @@ export interface SloUsageMetric { * @constructor * Represents a Service Tier Advisor. * - * @member {date} [observationPeriodStart] The observation period start + * @property {date} [observationPeriodStart] The observation period start * (ISO8601 format). - * @member {date} [observationPeriodEnd] The observation period start (ISO8601 - * format). - * @member {number} [activeTimeRatio] The activeTimeRatio for service tier + * @property {date} [observationPeriodEnd] The observation period start + * (ISO8601 format). + * @property {number} [activeTimeRatio] The activeTimeRatio for service tier * advisor. - * @member {number} [minDtu] Gets or sets minDtu for service tier advisor. - * @member {number} [avgDtu] Gets or sets avgDtu for service tier advisor. - * @member {number} [maxDtu] Gets or sets maxDtu for service tier advisor. - * @member {number} [maxSizeInGB] Gets or sets maxSizeInGB for service tier + * @property {number} [minDtu] Gets or sets minDtu for service tier advisor. + * @property {number} [avgDtu] Gets or sets avgDtu for service tier advisor. + * @property {number} [maxDtu] Gets or sets maxDtu for service tier advisor. + * @property {number} [maxSizeInGB] Gets or sets maxSizeInGB for service tier * advisor. - * @member {array} [serviceLevelObjectiveUsageMetrics] Gets or sets + * @property {array} [serviceLevelObjectiveUsageMetrics] Gets or sets * serviceLevelObjectiveUsageMetrics for the service tier advisor. - * @member {string} [currentServiceLevelObjective] Gets or sets + * @property {string} [currentServiceLevelObjective] Gets or sets * currentServiceLevelObjective for service tier advisor. - * @member {uuid} [currentServiceLevelObjectiveId] Gets or sets + * @property {uuid} [currentServiceLevelObjectiveId] Gets or sets * currentServiceLevelObjectiveId for service tier advisor. - * @member {string} [usageBasedRecommendationServiceLevelObjective] Gets or + * @property {string} [usageBasedRecommendationServiceLevelObjective] Gets or * sets usageBasedRecommendationServiceLevelObjective for service tier advisor. - * @member {uuid} [usageBasedRecommendationServiceLevelObjectiveId] Gets or + * @property {uuid} [usageBasedRecommendationServiceLevelObjectiveId] Gets or * sets usageBasedRecommendationServiceLevelObjectiveId for service tier * advisor. - * @member {string} [databaseSizeBasedRecommendationServiceLevelObjective] Gets - * or sets databaseSizeBasedRecommendationServiceLevelObjective for service - * tier advisor. - * @member {uuid} [databaseSizeBasedRecommendationServiceLevelObjectiveId] Gets - * or sets databaseSizeBasedRecommendationServiceLevelObjectiveId for service - * tier advisor. - * @member {string} [disasterPlanBasedRecommendationServiceLevelObjective] Gets - * or sets disasterPlanBasedRecommendationServiceLevelObjective for service - * tier advisor. - * @member {uuid} [disasterPlanBasedRecommendationServiceLevelObjectiveId] Gets - * or sets disasterPlanBasedRecommendationServiceLevelObjectiveId for service - * tier advisor. - * @member {string} [overallRecommendationServiceLevelObjective] Gets or sets + * @property {string} [databaseSizeBasedRecommendationServiceLevelObjective] + * Gets or sets databaseSizeBasedRecommendationServiceLevelObjective for + * service tier advisor. + * @property {uuid} [databaseSizeBasedRecommendationServiceLevelObjectiveId] + * Gets or sets databaseSizeBasedRecommendationServiceLevelObjectiveId for + * service tier advisor. + * @property {string} [disasterPlanBasedRecommendationServiceLevelObjective] + * Gets or sets disasterPlanBasedRecommendationServiceLevelObjective for + * service tier advisor. + * @property {uuid} [disasterPlanBasedRecommendationServiceLevelObjectiveId] + * Gets or sets disasterPlanBasedRecommendationServiceLevelObjectiveId for + * service tier advisor. + * @property {string} [overallRecommendationServiceLevelObjective] Gets or sets * overallRecommendationServiceLevelObjective for service tier advisor. - * @member {uuid} [overallRecommendationServiceLevelObjectiveId] Gets or sets + * @property {uuid} [overallRecommendationServiceLevelObjectiveId] Gets or sets * overallRecommendationServiceLevelObjectiveId for service tier advisor. - * @member {number} [confidence] Gets or sets confidence for service tier + * @property {number} [confidence] Gets or sets confidence for service tier * advisor. */ export interface ServiceTierAdvisor extends ProxyResource { @@ -1002,10 +1015,10 @@ export interface ServiceTierAdvisor extends ProxyResource { * @constructor * Represents a database transparent data encryption Scan. * - * @member {string} [location] Resource location. - * @member {string} [status] The status of the database. Possible values + * @property {string} [location] Resource location. + * @property {string} [status] The status of the database. Possible values * include: 'Encrypting', 'Decrypting' - * @member {number} [percentComplete] The percent complete of the transparent + * @property {number} [percentComplete] The percent complete of the transparent * data encryption scan for a database. */ export interface TransparentDataEncryptionActivity extends ProxyResource { @@ -1020,13 +1033,13 @@ export interface TransparentDataEncryptionActivity extends ProxyResource { * @constructor * Represents server metrics. * - * @member {string} [name] Name of the server usage metric. - * @member {string} [resourceName] The name of the resource. - * @member {string} [displayName] The metric display name. - * @member {number} [currentValue] The current value of the metric. - * @member {number} [limit] The current limit of the metric. - * @member {string} [unit] The units of the metric. - * @member {date} [nextResetTime] The next reset time for the metric (ISO8601 + * @property {string} [name] Name of the server usage metric. + * @property {string} [resourceName] The name of the resource. + * @property {string} [displayName] The metric display name. + * @property {number} [currentValue] The current value of the metric. + * @property {number} [limit] The current limit of the metric. + * @property {string} [unit] The units of the metric. + * @property {date} [nextResetTime] The next reset time for the metric (ISO8601 * format). */ export interface ServerUsage { @@ -1045,13 +1058,13 @@ export interface ServerUsage { * @constructor * The database usages. * - * @member {string} [name] The name of the usage metric. - * @member {string} [resourceName] The name of the resource. - * @member {string} [displayName] The usage metric display name. - * @member {number} [currentValue] The current value of the usage metric. - * @member {number} [limit] The current limit of the usage metric. - * @member {string} [unit] The units of the usage metric. - * @member {date} [nextResetTime] The next reset time for the usage metric + * @property {string} [name] The name of the usage metric. + * @property {string} [resourceName] The name of the resource. + * @property {string} [displayName] The usage metric display name. + * @property {number} [currentValue] The current value of the usage metric. + * @property {number} [limit] The current limit of the usage metric. + * @property {string} [unit] The units of the usage metric. + * @property {date} [nextResetTime] The next reset time for the usage metric * (ISO8601 format). */ export interface DatabaseUsage { @@ -1070,14 +1083,14 @@ export interface DatabaseUsage { * @constructor * Automatic tuning properties for individual advisors. * - * @member {string} [desiredState] Automatic tuning option desired state. + * @property {string} [desiredState] Automatic tuning option desired state. * Possible values include: 'Off', 'On', 'Default' - * @member {string} [actualState] Automatic tuning option actual state. + * @property {string} [actualState] Automatic tuning option actual state. * Possible values include: 'Off', 'On' - * @member {number} [reasonCode] Reason code if desired and actual state are + * @property {number} [reasonCode] Reason code if desired and actual state are * different. - * @member {string} [reasonDesc] Reason description if desired and actual state - * are different. Possible values include: 'Default', 'Disabled', + * @property {string} [reasonDesc] Reason description if desired and actual + * state are different. Possible values include: 'Default', 'Disabled', * 'AutoConfigured', 'InheritedFromServer', 'QueryStoreOff', * 'QueryStoreReadOnly', 'NotSupported' */ @@ -1094,11 +1107,11 @@ export interface AutomaticTuningOptions { * @constructor * Database-level Automatic Tuning. * - * @member {string} [desiredState] Automatic tuning desired state. Possible + * @property {string} [desiredState] Automatic tuning desired state. Possible * values include: 'Inherit', 'Custom', 'Auto', 'Unspecified' - * @member {string} [actualState] Automatic tuning actual state. Possible + * @property {string} [actualState] Automatic tuning actual state. Possible * values include: 'Inherit', 'Custom', 'Auto', 'Unspecified' - * @member {object} [options] Automatic tuning options definition. + * @property {object} [options] Automatic tuning options definition. */ export interface DatabaseAutomaticTuning extends ProxyResource { desiredState?: string; @@ -1112,16 +1125,16 @@ export interface DatabaseAutomaticTuning extends ProxyResource { * @constructor * The server encryption protector. * - * @member {string} [kind] Kind of encryption protector. This is metadata used - * for the Azure portal experience. - * @member {string} [location] Resource location. - * @member {string} [subregion] Subregion of the encryption protector. - * @member {string} [serverKeyName] The name of the server key. - * @member {string} serverKeyType The encryption protector type like + * @property {string} [kind] Kind of encryption protector. This is metadata + * used for the Azure portal experience. + * @property {string} [location] Resource location. + * @property {string} [subregion] Subregion of the encryption protector. + * @property {string} [serverKeyName] The name of the server key. + * @property {string} serverKeyType The encryption protector type like * 'ServiceManaged', 'AzureKeyVault'. Possible values include: * 'ServiceManaged', 'AzureKeyVault' - * @member {string} [uri] The URI of the server key. - * @member {string} [thumbprint] Thumbprint of the server key. + * @property {string} [uri] The URI of the server key. + * @property {string} [thumbprint] Thumbprint of the server key. */ export interface EncryptionProtector extends ProxyResource { kind?: string; @@ -1139,11 +1152,11 @@ export interface EncryptionProtector extends ProxyResource { * @constructor * Read-write endpoint of the failover group instance. * - * @member {string} failoverPolicy Failover policy of the read-write endpoint + * @property {string} failoverPolicy Failover policy of the read-write endpoint * for the failover group. If failoverPolicy is Automatic then * failoverWithDataLossGracePeriodMinutes is required. Possible values include: * 'Manual', 'Automatic' - * @member {number} [failoverWithDataLossGracePeriodMinutes] Grace period + * @property {number} [failoverWithDataLossGracePeriodMinutes] Grace period * before failover with data loss is attempted for the read-write endpoint. If * failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is * required. @@ -1159,8 +1172,9 @@ export interface FailoverGroupReadWriteEndpoint { * @constructor * Read-only endpoint of the failover group instance. * - * @member {string} [failoverPolicy] Failover policy of the read-only endpoint - * for the failover group. Possible values include: 'Disabled', 'Enabled' + * @property {string} [failoverPolicy] Failover policy of the read-only + * endpoint for the failover group. Possible values include: 'Disabled', + * 'Enabled' */ export interface FailoverGroupReadOnlyEndpoint { failoverPolicy?: string; @@ -1172,9 +1186,9 @@ export interface FailoverGroupReadOnlyEndpoint { * @constructor * Partner server information for the failover group. * - * @member {string} id Resource identifier of the partner server. - * @member {string} [location] Geo location of the partner server. - * @member {string} [replicationRole] Replication role of the partner server. + * @property {string} id Resource identifier of the partner server. + * @property {string} [location] Geo location of the partner server. + * @property {string} [replicationRole] Replication role of the partner server. * Possible values include: 'Primary', 'Secondary' */ export interface PartnerInfo { @@ -1189,30 +1203,31 @@ export interface PartnerInfo { * @constructor * A failover group. * - * @member {string} [location] Resource location. - * @member {object} [tags] Resource tags. - * @member {object} readWriteEndpoint Read-write endpoint of the failover group - * instance. - * @member {string} [readWriteEndpoint.failoverPolicy] Failover policy of the + * @property {string} [location] Resource location. + * @property {object} [tags] Resource tags. + * @property {object} readWriteEndpoint Read-write endpoint of the failover + * group instance. + * @property {string} [readWriteEndpoint.failoverPolicy] Failover policy of the * read-write endpoint for the failover group. If failoverPolicy is Automatic * then failoverWithDataLossGracePeriodMinutes is required. Possible values * include: 'Manual', 'Automatic' - * @member {number} [readWriteEndpoint.failoverWithDataLossGracePeriodMinutes] - * Grace period before failover with data loss is attempted for the read-write - * endpoint. If failoverPolicy is Automatic then - * failoverWithDataLossGracePeriodMinutes is required. - * @member {object} [readOnlyEndpoint] Read-only endpoint of the failover group - * instance. - * @member {string} [readOnlyEndpoint.failoverPolicy] Failover policy of the + * @property {number} + * [readWriteEndpoint.failoverWithDataLossGracePeriodMinutes] Grace period + * before failover with data loss is attempted for the read-write endpoint. If + * failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is + * required. + * @property {object} [readOnlyEndpoint] Read-only endpoint of the failover + * group instance. + * @property {string} [readOnlyEndpoint.failoverPolicy] Failover policy of the * read-only endpoint for the failover group. Possible values include: * 'Disabled', 'Enabled' - * @member {string} [replicationRole] Local replication role of the failover + * @property {string} [replicationRole] Local replication role of the failover * group instance. Possible values include: 'Primary', 'Secondary' - * @member {string} [replicationState] Replication state of the failover group - * instance. - * @member {array} partnerServers List of partner server information for the + * @property {string} [replicationState] Replication state of the failover + * group instance. + * @property {array} partnerServers List of partner server information for the * failover group. - * @member {array} [databases] List of databases in the failover group. + * @property {array} [databases] List of databases in the failover group. */ export interface FailoverGroup extends ProxyResource { readonly location?: string; @@ -1231,23 +1246,24 @@ export interface FailoverGroup extends ProxyResource { * @constructor * A failover group update request. * - * @member {object} [readWriteEndpoint] Read-write endpoint of the failover + * @property {object} [readWriteEndpoint] Read-write endpoint of the failover * group instance. - * @member {string} [readWriteEndpoint.failoverPolicy] Failover policy of the + * @property {string} [readWriteEndpoint.failoverPolicy] Failover policy of the * read-write endpoint for the failover group. If failoverPolicy is Automatic * then failoverWithDataLossGracePeriodMinutes is required. Possible values * include: 'Manual', 'Automatic' - * @member {number} [readWriteEndpoint.failoverWithDataLossGracePeriodMinutes] - * Grace period before failover with data loss is attempted for the read-write - * endpoint. If failoverPolicy is Automatic then - * failoverWithDataLossGracePeriodMinutes is required. - * @member {object} [readOnlyEndpoint] Read-only endpoint of the failover group - * instance. - * @member {string} [readOnlyEndpoint.failoverPolicy] Failover policy of the + * @property {number} + * [readWriteEndpoint.failoverWithDataLossGracePeriodMinutes] Grace period + * before failover with data loss is attempted for the read-write endpoint. If + * failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is + * required. + * @property {object} [readOnlyEndpoint] Read-only endpoint of the failover + * group instance. + * @property {string} [readOnlyEndpoint.failoverPolicy] Failover policy of the * read-only endpoint for the failover group. Possible values include: * 'Disabled', 'Enabled' - * @member {array} [databases] List of databases in the failover group. - * @member {object} [tags] Resource tags. + * @property {array} [databases] List of databases in the failover group. + * @property {object} [tags] Resource tags. */ export interface FailoverGroupUpdate { readWriteEndpoint?: FailoverGroupReadWriteEndpoint; @@ -1262,11 +1278,11 @@ export interface FailoverGroupUpdate { * @constructor * Azure Active Directory identity configuration for a resource. * - * @member {uuid} [principalId] The Azure Active Directory principal id. - * @member {string} [type] The identity type. Set this to 'SystemAssigned' in + * @property {uuid} [principalId] The Azure Active Directory principal id. + * @property {string} [type] The identity type. Set this to 'SystemAssigned' in * order to automatically create and assign an Azure Active Directory principal * for the resource. Possible values include: 'SystemAssigned' - * @member {uuid} [tenantId] The Azure Active Directory tenant id. + * @property {uuid} [tenantId] The Azure Active Directory tenant id. */ export interface ResourceIdentity { readonly principalId?: string; @@ -1280,16 +1296,16 @@ export interface ResourceIdentity { * @constructor * The resource model definition representing SKU * - * @member {string} name The name of the SKU. Ex - P3. It is typically a + * @property {string} name The name of the SKU. Ex - P3. It is typically a * letter+number code - * @member {string} [tier] This field is required to be implemented by the + * @property {string} [tier] This field is required to be implemented by the * Resource Provider if the service has more than one tier, but is not required * on a PUT. - * @member {string} [size] The SKU size. When the name field is the combination - * of tier and some other value, this would be the standalone code. - * @member {string} [family] If the service has different generations of + * @property {string} [size] The SKU size. When the name field is the + * combination of tier and some other value, this would be the standalone code. + * @property {string} [family] If the service has different generations of * hardware, for the same SKU, then that can be captured here. - * @member {number} [capacity] If the SKU supports scale out/in then the + * @property {number} [capacity] If the SKU supports scale out/in then the * capacity integer should be included. If scale out/in is not possible for the * resource this may be omitted. */ @@ -1307,44 +1323,44 @@ export interface Sku { * @constructor * An Azure SQL managed instance. * - * @member {object} [identity] The Azure Active Directory identity of the + * @property {object} [identity] The Azure Active Directory identity of the * managed instance. - * @member {uuid} [identity.principalId] The Azure Active Directory principal + * @property {uuid} [identity.principalId] The Azure Active Directory principal * id. - * @member {string} [identity.type] The identity type. Set this to + * @property {string} [identity.type] The identity type. Set this to * 'SystemAssigned' in order to automatically create and assign an Azure Active * Directory principal for the resource. Possible values include: * 'SystemAssigned' - * @member {uuid} [identity.tenantId] The Azure Active Directory tenant id. - * @member {object} [sku] Managed instance sku - * @member {string} [sku.name] The name of the SKU. Ex - P3. It is typically a - * letter+number code - * @member {string} [sku.tier] This field is required to be implemented by the - * Resource Provider if the service has more than one tier, but is not required - * on a PUT. - * @member {string} [sku.size] The SKU size. When the name field is the + * @property {uuid} [identity.tenantId] The Azure Active Directory tenant id. + * @property {object} [sku] Managed instance sku + * @property {string} [sku.name] The name of the SKU. Ex - P3. It is typically + * a letter+number code + * @property {string} [sku.tier] This field is required to be implemented by + * the Resource Provider if the service has more than one tier, but is not + * required on a PUT. + * @property {string} [sku.size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone code. - * @member {string} [sku.family] If the service has different generations of + * @property {string} [sku.family] If the service has different generations of * hardware, for the same SKU, then that can be captured here. - * @member {number} [sku.capacity] If the SKU supports scale out/in then the + * @property {number} [sku.capacity] If the SKU supports scale out/in then the * capacity integer should be included. If scale out/in is not possible for the * resource this may be omitted. - * @member {string} [fullyQualifiedDomainName] The fully qualified domain name - * of the managed instance. - * @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). - * @member {string} [administratorLoginPassword] The administrator login + * @property {string} [fullyQualifiedDomainName] The fully qualified domain + * name of the managed instance. + * @property {string} [administratorLogin] Administrator username for the + * managed instance. Can only be specified when the managed instance is being + * created (and is required for creation). + * @property {string} [administratorLoginPassword] The administrator login * password (required for managed instance creation). - * @member {string} [subnetId] Subnet resource ID for the managed instance. - * @member {string} [state] The state of the managed instance. - * @member {string} [licenseType] The license type. Possible values are + * @property {string} [subnetId] Subnet resource ID for the managed instance. + * @property {string} [state] The state of the managed instance. + * @property {string} [licenseType] The license type. Possible values are * 'LicenseIncluded' and 'BasePrice'. - * @member {number} [vCores] The number of VCores. - * @member {number} [storageSizeInGB] The maximum storage size in GB. - * @member {string} [collation] Collation of the managed instance. - * @member {string} [dnsZone] The Dns Zone that the managed instance is in. - * @member {string} [dnsZonePartner] The resource id of another managed + * @property {number} [vCores] The number of VCores. + * @property {number} [storageSizeInGB] The maximum storage size in GB. + * @property {string} [collation] Collation of the managed instance. + * @property {string} [dnsZone] The Dns Zone that the managed instance is in. + * @property {string} [dnsZonePartner] The resource id of another managed * instance whose DNS zone this managed instance will share after creation. */ export interface ManagedInstance extends TrackedResource { @@ -1358,7 +1374,7 @@ export interface ManagedInstance extends TrackedResource { licenseType?: string; vCores?: number; storageSizeInGB?: number; - readonly collation?: string; + collation?: string; readonly dnsZone?: string; dnsZonePartner?: string; } @@ -1369,37 +1385,37 @@ export interface ManagedInstance extends TrackedResource { * @constructor * An update request for an Azure SQL Database managed instance. * - * @member {object} [sku] Managed instance sku - * @member {string} [sku.name] The name of the SKU. Ex - P3. It is typically a - * letter+number code - * @member {string} [sku.tier] This field is required to be implemented by the - * Resource Provider if the service has more than one tier, but is not required - * on a PUT. - * @member {string} [sku.size] The SKU size. When the name field is the + * @property {object} [sku] Managed instance sku + * @property {string} [sku.name] The name of the SKU. Ex - P3. It is typically + * a letter+number code + * @property {string} [sku.tier] This field is required to be implemented by + * the Resource Provider if the service has more than one tier, but is not + * required on a PUT. + * @property {string} [sku.size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone code. - * @member {string} [sku.family] If the service has different generations of + * @property {string} [sku.family] If the service has different generations of * hardware, for the same SKU, then that can be captured here. - * @member {number} [sku.capacity] If the SKU supports scale out/in then the + * @property {number} [sku.capacity] If the SKU supports scale out/in then the * capacity integer should be included. If scale out/in is not possible for the * resource this may be omitted. - * @member {string} [fullyQualifiedDomainName] The fully qualified domain name - * of the managed instance. - * @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). - * @member {string} [administratorLoginPassword] The administrator login + * @property {string} [fullyQualifiedDomainName] The fully qualified domain + * name of the managed instance. + * @property {string} [administratorLogin] Administrator username for the + * managed instance. Can only be specified when the managed instance is being + * created (and is required for creation). + * @property {string} [administratorLoginPassword] The administrator login * password (required for managed instance creation). - * @member {string} [subnetId] Subnet resource ID for the managed instance. - * @member {string} [state] The state of the managed instance. - * @member {string} [licenseType] The license type. Possible values are + * @property {string} [subnetId] Subnet resource ID for the managed instance. + * @property {string} [state] The state of the managed instance. + * @property {string} [licenseType] The license type. Possible values are * 'LicenseIncluded' and 'BasePrice'. - * @member {number} [vCores] The number of VCores. - * @member {number} [storageSizeInGB] The maximum storage size in GB. - * @member {string} [collation] Collation of the managed instance. - * @member {string} [dnsZone] The Dns Zone that the managed instance is in. - * @member {string} [dnsZonePartner] The resource id of another managed + * @property {number} [vCores] The number of VCores. + * @property {number} [storageSizeInGB] The maximum storage size in GB. + * @property {string} [collation] Collation of the managed instance. + * @property {string} [dnsZone] The Dns Zone that the managed instance is in. + * @property {string} [dnsZonePartner] The resource id of another managed * instance whose DNS zone this managed instance will share after creation. - * @member {object} [tags] Resource tags. + * @property {object} [tags] Resource tags. */ export interface ManagedInstanceUpdate { sku?: Sku; @@ -1411,7 +1427,7 @@ export interface ManagedInstanceUpdate { licenseType?: string; vCores?: number; storageSizeInGB?: number; - readonly collation?: string; + collation?: string; readonly dnsZone?: string; dnsZonePartner?: string; tags?: { [propertyName: string]: string }; @@ -1423,12 +1439,13 @@ export interface ManagedInstanceUpdate { * @constructor * Display metadata associated with the operation. * - * @member {string} [provider] The localized friendly form of the resource + * @property {string} [provider] The localized friendly form of the resource * provider name. - * @member {string} [resource] The localized friendly form of the resource type - * related to this action/operation. - * @member {string} [operation] The localized friendly name for the operation. - * @member {string} [description] The localized friendly description for the + * @property {string} [resource] The localized friendly form of the resource + * type related to this action/operation. + * @property {string} [operation] The localized friendly name for the + * operation. + * @property {string} [description] The localized friendly description for the * operation. */ export interface OperationDisplay { @@ -1444,21 +1461,21 @@ export interface OperationDisplay { * @constructor * SQL REST API operation definition. * - * @member {string} [name] The name of the operation being performed on this + * @property {string} [name] The name of the operation being performed on this * particular object. - * @member {object} [display] The localized display information for this + * @property {object} [display] The localized display information for this * particular operation / action. - * @member {string} [display.provider] The localized friendly form of the + * @property {string} [display.provider] The localized friendly form of the * resource provider name. - * @member {string} [display.resource] The localized friendly form of the + * @property {string} [display.resource] The localized friendly form of the * resource type related to this action/operation. - * @member {string} [display.operation] The localized friendly name for the + * @property {string} [display.operation] The localized friendly name for the * operation. - * @member {string} [display.description] The localized friendly description + * @property {string} [display.description] The localized friendly description * for the operation. - * @member {string} [origin] The intended executor of the operation. Possible + * @property {string} [origin] The intended executor of the operation. Possible * values include: 'user', 'system' - * @member {object} [properties] Additional descriptions for the operation. + * @property {object} [properties] Additional descriptions for the operation. */ export interface Operation { readonly name?: string; @@ -1473,15 +1490,15 @@ export interface Operation { * @constructor * A server key. * - * @member {string} [kind] Kind of encryption protector. This is metadata used - * for the Azure portal experience. - * @member {string} [location] Resource location. - * @member {string} [subregion] Subregion of the server key. - * @member {string} serverKeyType The server key type like 'ServiceManaged', + * @property {string} [kind] Kind of encryption protector. This is metadata + * used for the Azure portal experience. + * @property {string} [location] Resource location. + * @property {string} [subregion] Subregion of the server key. + * @property {string} serverKeyType The server key type like 'ServiceManaged', * 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault' - * @member {string} [uri] The URI of the server key. - * @member {string} [thumbprint] Thumbprint of the server key. - * @member {date} [creationDate] The server key creation date. + * @property {string} [uri] The URI of the server key. + * @property {string} [thumbprint] Thumbprint of the server key. + * @property {date} [creationDate] The server key creation date. */ export interface ServerKey extends ProxyResource { kind?: string; @@ -1499,25 +1516,25 @@ export interface ServerKey extends ProxyResource { * @constructor * An Azure SQL Database server. * - * @member {object} [identity] The Azure Active Directory identity of the + * @property {object} [identity] The Azure Active Directory identity of the * server. - * @member {uuid} [identity.principalId] The Azure Active Directory principal + * @property {uuid} [identity.principalId] The Azure Active Directory principal * id. - * @member {string} [identity.type] The identity type. Set this to + * @property {string} [identity.type] The identity type. Set this to * 'SystemAssigned' in order to automatically create and assign an Azure Active * Directory principal for the resource. Possible values include: * 'SystemAssigned' - * @member {uuid} [identity.tenantId] The Azure Active Directory tenant id. - * @member {string} [kind] Kind of sql server. This is metadata used for the + * @property {uuid} [identity.tenantId] The Azure Active Directory tenant id. + * @property {string} [kind] Kind of sql server. This is metadata used for the * Azure portal experience. - * @member {string} [administratorLogin] Administrator username for the server. - * Once created it cannot be changed. - * @member {string} [administratorLoginPassword] The administrator login + * @property {string} [administratorLogin] Administrator username for the + * server. Once created it cannot be changed. + * @property {string} [administratorLoginPassword] The administrator login * password (required for server creation). - * @member {string} [version] The version of the server. - * @member {string} [state] The state of the server. - * @member {string} [fullyQualifiedDomainName] The fully qualified domain name - * of the server. + * @property {string} [version] The version of the server. + * @property {string} [state] The state of the server. + * @property {string} [fullyQualifiedDomainName] The fully qualified domain + * name of the server. */ export interface Server extends TrackedResource { identity?: ResourceIdentity; @@ -1535,15 +1552,15 @@ export interface Server extends TrackedResource { * @constructor * An update request for an Azure SQL Database server. * - * @member {string} [administratorLogin] Administrator username for the server. - * Once created it cannot be changed. - * @member {string} [administratorLoginPassword] The administrator login + * @property {string} [administratorLogin] Administrator username for the + * server. Once created it cannot be changed. + * @property {string} [administratorLoginPassword] The administrator login * password (required for server creation). - * @member {string} [version] The version of the server. - * @member {string} [state] The state of the server. - * @member {string} [fullyQualifiedDomainName] The fully qualified domain name - * of the server. - * @member {object} [tags] Resource tags. + * @property {string} [version] The version of the server. + * @property {string} [state] The state of the server. + * @property {string} [fullyQualifiedDomainName] The fully qualified domain + * name of the server. + * @property {object} [tags] Resource tags. */ export interface ServerUpdate { administratorLogin?: string; @@ -1560,15 +1577,15 @@ export interface ServerUpdate { * @constructor * An Azure SQL Database sync agent. * - * @member {string} [syncAgentName] Name of the sync agent. - * @member {string} [syncDatabaseId] ARM resource id of the sync database in + * @property {string} [syncAgentName] Name of the sync agent. + * @property {string} [syncDatabaseId] ARM resource id of the sync database in * the sync agent. - * @member {date} [lastAliveTime] Last alive time of the sync agent. - * @member {string} [state] State of the sync agent. Possible values include: + * @property {date} [lastAliveTime] Last alive time of the sync agent. + * @property {string} [state] State of the sync agent. Possible values include: * 'Online', 'Offline', 'NeverConnected' - * @member {boolean} [isUpToDate] If the sync agent version is up to date. - * @member {date} [expiryTime] Expiration time of the sync agent version. - * @member {string} [version] Version of the sync agent. + * @property {boolean} [isUpToDate] If the sync agent version is up to date. + * @property {date} [expiryTime] Expiration time of the sync agent version. + * @property {string} [version] Version of the sync agent. */ export interface SyncAgent extends ProxyResource { readonly syncAgentName?: string; @@ -1586,7 +1603,7 @@ export interface SyncAgent extends ProxyResource { * @constructor * Properties of an Azure SQL Database sync agent key. * - * @member {string} [syncAgentKey] Key of sync agent. + * @property {string} [syncAgentKey] Key of sync agent. */ export interface SyncAgentKeyProperties { readonly syncAgentKey?: string; @@ -1598,15 +1615,16 @@ export interface SyncAgentKeyProperties { * @constructor * An Azure SQL Database sync agent linked database. * - * @member {string} [databaseType] Type of the sync agent linked database. + * @property {string} [databaseType] Type of the sync agent linked database. * Possible values include: 'AzureSqlDatabase', 'SqlServerDatabase' - * @member {string} [databaseId] Id of the sync agent linked database. - * @member {string} [description] Description of the sync agent linked + * @property {string} [databaseId] Id of the sync agent linked database. + * @property {string} [description] Description of the sync agent linked + * database. + * @property {string} [serverName] Server name of the sync agent linked * database. - * @member {string} [serverName] Server name of the sync agent linked database. - * @member {string} [databaseName] Database name of the sync agent linked + * @property {string} [databaseName] Database name of the sync agent linked * database. - * @member {string} [userName] User name of the sync agent linked database. + * @property {string} [userName] User name of the sync agent linked database. */ export interface SyncAgentLinkedDatabase extends ProxyResource { readonly databaseType?: string; @@ -1623,7 +1641,7 @@ export interface SyncAgentLinkedDatabase extends ProxyResource { * @constructor * Properties of the sync database id. * - * @member {string} [id] ARM resource id of sync database. + * @property {string} [id] ARM resource id of sync database. */ export interface SyncDatabaseIdProperties { readonly id?: string; @@ -1635,13 +1653,13 @@ export interface SyncDatabaseIdProperties { * @constructor * Properties of the column in the table of database full schema. * - * @member {string} [dataSize] Data size of the column. - * @member {string} [dataType] Data type of the column. - * @member {string} [errorId] Error id of the column. - * @member {boolean} [hasError] If there is error in the table. - * @member {boolean} [isPrimaryKey] If it is the primary key of the table. - * @member {string} [name] Name of the column. - * @member {string} [quotedName] Quoted name of the column. + * @property {string} [dataSize] Data size of the column. + * @property {string} [dataType] Data type of the column. + * @property {string} [errorId] Error id of the column. + * @property {boolean} [hasError] If there is error in the table. + * @property {boolean} [isPrimaryKey] If it is the primary key of the table. + * @property {string} [name] Name of the column. + * @property {string} [quotedName] Quoted name of the column. */ export interface SyncFullSchemaTableColumn { readonly dataSize?: string; @@ -1659,12 +1677,12 @@ export interface SyncFullSchemaTableColumn { * @constructor * Properties of the table in the database full schema. * - * @member {array} [columns] List of columns in the table of database full + * @property {array} [columns] List of columns in the table of database full * schema. - * @member {string} [errorId] Error id of the table. - * @member {boolean} [hasError] If there is error in the table. - * @member {string} [name] Name of the table. - * @member {string} [quotedName] Quoted name of the table. + * @property {string} [errorId] Error id of the table. + * @property {boolean} [hasError] If there is error in the table. + * @property {string} [name] Name of the table. + * @property {string} [quotedName] Quoted name of the table. */ export interface SyncFullSchemaTable { readonly columns?: SyncFullSchemaTableColumn[]; @@ -1680,8 +1698,8 @@ export interface SyncFullSchemaTable { * @constructor * Properties of the database full schema. * - * @member {array} [tables] List of tables in the database full schema. - * @member {date} [lastUpdateTime] Last update time of the database schema. + * @property {array} [tables] List of tables in the database full schema. + * @property {date} [lastUpdateTime] Last update time of the database schema. */ export interface SyncFullSchemaProperties { readonly tables?: SyncFullSchemaTable[]; @@ -1694,13 +1712,13 @@ export interface SyncFullSchemaProperties { * @constructor * Properties of an Azure SQL Database sync group log. * - * @member {date} [timestamp] Timestamp of the sync group log. - * @member {string} [type] Type of the sync group log. Possible values include: - * 'All', 'Error', 'Warning', 'Success' - * @member {string} [source] Source of the sync group log. - * @member {string} [details] Details of the sync group log. - * @member {uuid} [tracingId] TracingId of the sync group log. - * @member {string} [operationStatus] OperationStatus of the sync group log. + * @property {date} [timestamp] Timestamp of the sync group log. + * @property {string} [type] Type of the sync group log. Possible values + * include: 'All', 'Error', 'Warning', 'Success' + * @property {string} [source] Source of the sync group log. + * @property {string} [details] Details of the sync group log. + * @property {uuid} [tracingId] TracingId of the sync group log. + * @property {string} [operationStatus] OperationStatus of the sync group log. */ export interface SyncGroupLogProperties { readonly timestamp?: Date; @@ -1717,9 +1735,9 @@ export interface SyncGroupLogProperties { * @constructor * Properties of column in sync group table. * - * @member {string} [quotedName] Quoted name of sync group table column. - * @member {string} [dataSize] Data size of the column. - * @member {string} [dataType] Data type of the column. + * @property {string} [quotedName] Quoted name of sync group table column. + * @property {string} [dataSize] Data size of the column. + * @property {string} [dataType] Data type of the column. */ export interface SyncGroupSchemaTableColumn { quotedName?: string; @@ -1733,8 +1751,8 @@ export interface SyncGroupSchemaTableColumn { * @constructor * Properties of table in sync group schema. * - * @member {array} [columns] List of columns in sync group schema. - * @member {string} [quotedName] Quoted name of sync group schema table. + * @property {array} [columns] List of columns in sync group schema. + * @property {string} [quotedName] Quoted name of sync group schema table. */ export interface SyncGroupSchemaTable { columns?: SyncGroupSchemaTableColumn[]; @@ -1747,9 +1765,9 @@ export interface SyncGroupSchemaTable { * @constructor * Properties of sync group schema. * - * @member {array} [tables] List of tables in sync group schema. - * @member {string} [masterSyncMemberName] Name of master sync member where the - * schema is from. + * @property {array} [tables] List of tables in sync group schema. + * @property {string} [masterSyncMemberName] Name of master sync member where + * the schema is from. */ export interface SyncGroupSchema { tables?: SyncGroupSchemaTable[]; @@ -1762,21 +1780,21 @@ export interface SyncGroupSchema { * @constructor * An Azure SQL Database sync group. * - * @member {number} [interval] Sync interval of the sync group. - * @member {date} [lastSyncTime] Last sync time of the sync group. - * @member {string} [conflictResolutionPolicy] Conflict resolution policy of + * @property {number} [interval] Sync interval of the sync group. + * @property {date} [lastSyncTime] Last sync time of the sync group. + * @property {string} [conflictResolutionPolicy] Conflict resolution policy of * the sync group. Possible values include: 'HubWin', 'MemberWin' - * @member {string} [syncDatabaseId] ARM resource id of the sync database in + * @property {string} [syncDatabaseId] ARM resource id of the sync database in * the sync group. - * @member {string} [hubDatabaseUserName] User name for the sync group hub + * @property {string} [hubDatabaseUserName] User name for the sync group hub * database credential. - * @member {string} [hubDatabasePassword] Password for the sync group hub + * @property {string} [hubDatabasePassword] Password for the sync group hub * database credential. - * @member {string} [syncState] Sync state of the sync group. Possible values + * @property {string} [syncState] Sync state of the sync group. Possible values * include: 'NotReady', 'Error', 'Warning', 'Progressing', 'Good' - * @member {object} [schema] Sync schema of the sync group. - * @member {array} [schema.tables] List of tables in sync group schema. - * @member {string} [schema.masterSyncMemberName] Name of master sync member + * @property {object} [schema] Sync schema of the sync group. + * @property {array} [schema.tables] List of tables in sync group schema. + * @property {string} [schema.masterSyncMemberName] Name of master sync member * where the schema is from. */ export interface SyncGroup extends ProxyResource { @@ -1796,24 +1814,25 @@ export interface SyncGroup extends ProxyResource { * @constructor * An Azure SQL Database sync member. * - * @member {string} [databaseType] Database type of the sync member. Possible + * @property {string} [databaseType] Database type of the sync member. Possible * values include: 'AzureSqlDatabase', 'SqlServerDatabase' - * @member {string} [syncAgentId] ARM resource id of the sync agent in the sync - * member. - * @member {uuid} [sqlServerDatabaseId] SQL Server database id of the sync - * member. - * @member {string} [serverName] Server name of the member database in the sync - * member - * @member {string} [databaseName] Database name of the member database in the + * @property {string} [syncAgentId] ARM resource id of the sync agent in the * sync member. - * @member {string} [userName] User name of the member database in the sync + * @property {uuid} [sqlServerDatabaseId] SQL Server database id of the sync + * member. + * @property {string} [serverName] Server name of the member database in the + * sync member + * @property {string} [databaseName] Database name of the member database in + * the sync member. + * @property {string} [userName] User name of the member database in the sync * member. - * @member {string} [password] Password of the member database in the sync + * @property {string} [password] Password of the member database in the sync * member. - * @member {string} [syncDirection] Sync direction of the sync member. Possible - * values include: 'Bidirectional', 'OneWayMemberToHub', 'OneWayHubToMember' - * @member {string} [syncState] Sync state of the sync member. Possible values - * include: 'SyncInProgress', 'SyncSucceeded', 'SyncFailed', + * @property {string} [syncDirection] Sync direction of the sync member. + * Possible values include: 'Bidirectional', 'OneWayMemberToHub', + * 'OneWayHubToMember' + * @property {string} [syncState] Sync state of the sync member. Possible + * values include: 'SyncInProgress', 'SyncSucceeded', 'SyncFailed', * 'DisabledTombstoneCleanup', 'DisabledBackupRestore', * 'SyncSucceededWithWarnings', 'SyncCancelling', 'SyncCancelled', * 'UnProvisioned', 'Provisioning', 'Provisioned', 'ProvisionFailed', @@ -1838,10 +1857,10 @@ export interface SyncMember extends ProxyResource { * @constructor * Usage Metric of a Subscription in a Location. * - * @member {string} [displayName] User-readable name of the metric. - * @member {number} [currentValue] Current value of the metric. - * @member {number} [limit] Boundary value of the metric. - * @member {string} [unit] Unit of the metric. + * @property {string} [displayName] User-readable name of the metric. + * @property {number} [currentValue] Current value of the metric. + * @property {number} [limit] Boundary value of the metric. + * @property {string} [unit] Unit of the metric. */ export interface SubscriptionUsage extends ProxyResource { readonly displayName?: string; @@ -1856,11 +1875,11 @@ export interface SubscriptionUsage extends ProxyResource { * @constructor * A virtual network rule. * - * @member {string} virtualNetworkSubnetId The ARM resource id of the virtual + * @property {string} virtualNetworkSubnetId The ARM resource id of the virtual * network subnet. - * @member {boolean} [ignoreMissingVnetServiceEndpoint] Create firewall rule + * @property {boolean} [ignoreMissingVnetServiceEndpoint] Create firewall rule * before the virtual network has vnet service endpoint enabled. - * @member {string} [state] Virtual Network Rule State. Possible values + * @property {string} [state] Virtual Network Rule State. Possible values * include: 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' */ export interface VirtualNetworkRule extends ProxyResource { @@ -1875,20 +1894,20 @@ export interface VirtualNetworkRule extends ProxyResource { * @constructor * An extended database blob auditing policy. * - * @member {string} [predicateExpression] Specifies condition of where clause + * @property {string} [predicateExpression] Specifies condition of where clause * when creating an audit. - * @member {string} state Specifies the state of the policy. If state is + * @property {string} state Specifies the state of the policy. If state is * Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. * Possible values include: 'Enabled', 'Disabled' - * @member {string} [storageEndpoint] Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). If state is Enabled, + * @property {string} [storageEndpoint] Specifies the blob storage endpoint + * (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, * storageEndpoint is required. - * @member {string} [storageAccountAccessKey] Specifies the identifier key of + * @property {string} [storageAccountAccessKey] Specifies the identifier key of * the auditing storage account. If state is Enabled and storageEndpoint is * specified, storageAccountAccessKey is required. - * @member {number} [retentionDays] Specifies the number of days to keep in the - * audit logs in the storage account. - * @member {array} [auditActionsAndGroups] Specifies the Actions-Groups and + * @property {number} [retentionDays] Specifies the number of days to keep in + * the audit logs in the storage account. + * @property {array} [auditActionsAndGroups] Specifies the Actions-Groups and * Actions to audit. * * The recommended set of action groups to use is the following combination - @@ -1960,11 +1979,11 @@ export interface VirtualNetworkRule extends ProxyResource { * * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - * @member {uuid} [storageAccountSubscriptionId] Specifies the blob storage + * @property {uuid} [storageAccountSubscriptionId] Specifies the blob storage * subscription Id. - * @member {boolean} [isStorageSecondaryKeyInUse] Specifies whether + * @property {boolean} [isStorageSecondaryKeyInUse] Specifies whether * storageAccountAccessKey value is the storage's secondary key. - * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit + * @property {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit * events are sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' * and 'IsAzureMonitorTargetEnabled' as true. @@ -2002,20 +2021,20 @@ export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { * @constructor * An extended server blob auditing policy. * - * @member {string} [predicateExpression] Specifies condition of where clause + * @property {string} [predicateExpression] Specifies condition of where clause * when creating an audit. - * @member {string} state Specifies the state of the policy. If state is + * @property {string} state Specifies the state of the policy. If state is * Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. * Possible values include: 'Enabled', 'Disabled' - * @member {string} [storageEndpoint] Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). If state is Enabled, + * @property {string} [storageEndpoint] Specifies the blob storage endpoint + * (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, * storageEndpoint is required. - * @member {string} [storageAccountAccessKey] Specifies the identifier key of + * @property {string} [storageAccountAccessKey] Specifies the identifier key of * the auditing storage account. If state is Enabled and storageEndpoint is * specified, storageAccountAccessKey is required. - * @member {number} [retentionDays] Specifies the number of days to keep in the - * audit logs in the storage account. - * @member {array} [auditActionsAndGroups] Specifies the Actions-Groups and + * @property {number} [retentionDays] Specifies the number of days to keep in + * the audit logs in the storage account. + * @property {array} [auditActionsAndGroups] Specifies the Actions-Groups and * Actions to audit. * * The recommended set of action groups to use is the following combination - @@ -2087,11 +2106,11 @@ export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { * * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - * @member {uuid} [storageAccountSubscriptionId] Specifies the blob storage + * @property {uuid} [storageAccountSubscriptionId] Specifies the blob storage * subscription Id. - * @member {boolean} [isStorageSecondaryKeyInUse] Specifies whether + * @property {boolean} [isStorageSecondaryKeyInUse] Specifies whether * storageAccountAccessKey value is the storage's secondary key. - * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit + * @property {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit * events are sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' * and 'IsAzureMonitorTargetEnabled' as true. @@ -2129,18 +2148,18 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { * @constructor * A server blob auditing policy. * - * @member {string} state Specifies the state of the policy. If state is + * @property {string} state Specifies the state of the policy. If state is * Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. * Possible values include: 'Enabled', 'Disabled' - * @member {string} [storageEndpoint] Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). If state is Enabled, + * @property {string} [storageEndpoint] Specifies the blob storage endpoint + * (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, * storageEndpoint is required. - * @member {string} [storageAccountAccessKey] Specifies the identifier key of + * @property {string} [storageAccountAccessKey] Specifies the identifier key of * the auditing storage account. If state is Enabled and storageEndpoint is * specified, storageAccountAccessKey is required. - * @member {number} [retentionDays] Specifies the number of days to keep in the - * audit logs in the storage account. - * @member {array} [auditActionsAndGroups] Specifies the Actions-Groups and + * @property {number} [retentionDays] Specifies the number of days to keep in + * the audit logs in the storage account. + * @property {array} [auditActionsAndGroups] Specifies the Actions-Groups and * Actions to audit. * * The recommended set of action groups to use is the following combination - @@ -2212,11 +2231,11 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { * * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - * @member {uuid} [storageAccountSubscriptionId] Specifies the blob storage + * @property {uuid} [storageAccountSubscriptionId] Specifies the blob storage * subscription Id. - * @member {boolean} [isStorageSecondaryKeyInUse] Specifies whether + * @property {boolean} [isStorageSecondaryKeyInUse] Specifies whether * storageAccountAccessKey value is the storage's secondary key. - * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit + * @property {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit * events are sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' * and 'IsAzureMonitorTargetEnabled' as true. @@ -2253,19 +2272,19 @@ export interface ServerBlobAuditingPolicy extends ProxyResource { * @constructor * A database blob auditing policy. * - * @member {string} [kind] Resource kind. - * @member {string} state Specifies the state of the policy. If state is + * @property {string} [kind] Resource kind. + * @property {string} state Specifies the state of the policy. If state is * Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. * Possible values include: 'Enabled', 'Disabled' - * @member {string} [storageEndpoint] Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). If state is Enabled, + * @property {string} [storageEndpoint] Specifies the blob storage endpoint + * (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, * storageEndpoint is required. - * @member {string} [storageAccountAccessKey] Specifies the identifier key of + * @property {string} [storageAccountAccessKey] Specifies the identifier key of * the auditing storage account. If state is Enabled and storageEndpoint is * specified, storageAccountAccessKey is required. - * @member {number} [retentionDays] Specifies the number of days to keep in the - * audit logs in the storage account. - * @member {array} [auditActionsAndGroups] Specifies the Actions-Groups and + * @property {number} [retentionDays] Specifies the number of days to keep in + * the audit logs in the storage account. + * @property {array} [auditActionsAndGroups] Specifies the Actions-Groups and * Actions to audit. * * The recommended set of action groups to use is the following combination - @@ -2337,11 +2356,11 @@ export interface ServerBlobAuditingPolicy extends ProxyResource { * * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - * @member {uuid} [storageAccountSubscriptionId] Specifies the blob storage + * @property {uuid} [storageAccountSubscriptionId] Specifies the blob storage * subscription Id. - * @member {boolean} [isStorageSecondaryKeyInUse] Specifies whether + * @property {boolean} [isStorageSecondaryKeyInUse] Specifies whether * storageAccountAccessKey value is the storage's secondary key. - * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit + * @property {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit * events are sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' * and 'IsAzureMonitorTargetEnabled' as true. @@ -2380,7 +2399,7 @@ export interface DatabaseBlobAuditingPolicy extends ProxyResource { * Properties for an Azure SQL Database Vulnerability Assessment rule * baseline's result. * - * @member {array} result The rule baseline result + * @property {array} result The rule baseline result */ export interface DatabaseVulnerabilityAssessmentRuleBaselineItem { result: string[]; @@ -2392,7 +2411,7 @@ export interface DatabaseVulnerabilityAssessmentRuleBaselineItem { * @constructor * A database vulnerability assessment rule baseline. * - * @member {array} baselineResults The rule baseline result + * @property {array} baselineResults The rule baseline result */ export interface DatabaseVulnerabilityAssessmentRuleBaseline extends ProxyResource { baselineResults: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; @@ -2404,12 +2423,12 @@ export interface DatabaseVulnerabilityAssessmentRuleBaseline extends ProxyResour * @constructor * Properties of a Vulnerability Assessment recurring scans. * - * @member {boolean} [isEnabled] Recurring scans state. - * @member {boolean} [emailSubscriptionAdmins] Specifies that the schedule scan - * notification will be is sent to the subscription administrators. Default - * value: true . - * @member {array} [emails] Specifies an array of e-mail addresses to which the - * scan notification is sent. + * @property {boolean} [isEnabled] Recurring scans state. + * @property {boolean} [emailSubscriptionAdmins] Specifies that the schedule + * scan notification will be is sent to the subscription administrators. + * Default value: true . + * @property {array} [emails] Specifies an array of e-mail addresses to which + * the scan notification is sent. */ export interface VulnerabilityAssessmentRecurringScansProperties { isEnabled?: boolean; @@ -2423,24 +2442,24 @@ export interface VulnerabilityAssessmentRecurringScansProperties { * @constructor * A database vulnerability assessment. * - * @member {string} [storageContainerPath] A blob storage container path to + * @property {string} [storageContainerPath] A blob storage container path to * hold the scan results (e.g. * https://myStorage.blob.core.windows.net/VaScans/). It is required if server * level vulnerability assessment policy doesn't set - * @member {string} [storageContainerSasKey] A shared access signature (SAS + * @property {string} [storageContainerSasKey] A shared access signature (SAS * Key) that has write access to the blob container specified in * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't * specified, StorageContainerSasKey is required. - * @member {string} [storageAccountAccessKey] Specifies the identifier key of + * @property {string} [storageAccountAccessKey] Specifies the identifier key of * the storage account for vulnerability assessment scan results. If * 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is * required. - * @member {object} [recurringScans] The recurring scans settings - * @member {boolean} [recurringScans.isEnabled] Recurring scans state. - * @member {boolean} [recurringScans.emailSubscriptionAdmins] Specifies that + * @property {object} [recurringScans] The recurring scans settings + * @property {boolean} [recurringScans.isEnabled] Recurring scans state. + * @property {boolean} [recurringScans.emailSubscriptionAdmins] Specifies that * the schedule scan notification will be is sent to the subscription * administrators. - * @member {array} [recurringScans.emails] Specifies an array of e-mail + * @property {array} [recurringScans.emails] Specifies an array of e-mail * addresses to which the scan notification is sent. */ export interface DatabaseVulnerabilityAssessment extends ProxyResource { @@ -2456,22 +2475,22 @@ export interface DatabaseVulnerabilityAssessment extends ProxyResource { * @constructor * An Azure SQL job agent. * - * @member {object} [sku] The name and tier of the SKU. - * @member {string} [sku.name] The name of the SKU. Ex - P3. It is typically a - * letter+number code - * @member {string} [sku.tier] This field is required to be implemented by the - * Resource Provider if the service has more than one tier, but is not required - * on a PUT. - * @member {string} [sku.size] The SKU size. When the name field is the + * @property {object} [sku] The name and tier of the SKU. + * @property {string} [sku.name] The name of the SKU. Ex - P3. It is typically + * a letter+number code + * @property {string} [sku.tier] This field is required to be implemented by + * the Resource Provider if the service has more than one tier, but is not + * required on a PUT. + * @property {string} [sku.size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone code. - * @member {string} [sku.family] If the service has different generations of + * @property {string} [sku.family] If the service has different generations of * hardware, for the same SKU, then that can be captured here. - * @member {number} [sku.capacity] If the SKU supports scale out/in then the + * @property {number} [sku.capacity] If the SKU supports scale out/in then the * capacity integer should be included. If scale out/in is not possible for the * resource this may be omitted. - * @member {string} databaseId Resource ID of the database to store job + * @property {string} databaseId Resource ID of the database to store job * metadata in. - * @member {string} [state] The state of the job agent. Possible values + * @property {string} [state] The state of the job agent. Possible values * include: 'Creating', 'Ready', 'Updating', 'Deleting', 'Disabled' */ export interface JobAgent extends TrackedResource { @@ -2486,7 +2505,7 @@ export interface JobAgent extends TrackedResource { * @constructor * An update to an Azure SQL job agent. * - * @member {object} [tags] Resource tags. + * @property {object} [tags] Resource tags. */ export interface JobAgentUpdate { tags?: { [propertyName: string]: string }; @@ -2499,8 +2518,8 @@ export interface JobAgentUpdate { * A stored credential that can be used by a job to connect to target * databases. * - * @member {string} username The credential user name. - * @member {string} password The credential password. + * @property {string} username The credential user name. + * @property {string} password The credential password. */ export interface JobCredential extends ProxyResource { username: string; @@ -2513,10 +2532,10 @@ export interface JobCredential extends ProxyResource { * @constructor * The target that a job execution is executed on. * - * @member {string} [type] The type of the target. Possible values include: + * @property {string} [type] The type of the target. Possible values include: * 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', 'SqlServer' - * @member {string} [serverName] The server name. - * @member {string} [databaseName] The database name. + * @property {string} [serverName] The server name. + * @property {string} [databaseName] The database name. */ export interface JobExecutionTarget { readonly type?: string; @@ -2530,30 +2549,32 @@ export interface JobExecutionTarget { * @constructor * An execution of a job * - * @member {number} [jobVersion] The job version number. - * @member {string} [stepName] The job step name. - * @member {number} [stepId] The job step id. - * @member {uuid} [jobExecutionId] The unique identifier of the job execution. - * @member {string} [lifecycle] The detailed state of the job execution. + * @property {number} [jobVersion] The job version number. + * @property {string} [stepName] The job step name. + * @property {number} [stepId] The job step id. + * @property {uuid} [jobExecutionId] The unique identifier of the job + * execution. + * @property {string} [lifecycle] The detailed state of the job execution. * Possible values include: 'Created', 'InProgress', * 'WaitingForChildJobExecutions', 'WaitingForRetry', 'Succeeded', * 'SucceededWithSkipped', 'Failed', 'TimedOut', 'Canceled', 'Skipped' - * @member {string} [provisioningState] The ARM provisioning state of the job + * @property {string} [provisioningState] The ARM provisioning state of the job * execution. Possible values include: 'Created', 'InProgress', 'Succeeded', * 'Failed', 'Canceled' - * @member {date} [createTime] The time that the job execution was created. - * @member {date} [startTime] The time that the job execution started. - * @member {date} [endTime] The time that the job execution completed. - * @member {number} [currentAttempts] Number of times the job execution has + * @property {date} [createTime] The time that the job execution was created. + * @property {date} [startTime] The time that the job execution started. + * @property {date} [endTime] The time that the job execution completed. + * @property {number} [currentAttempts] Number of times the job execution has * been attempted. - * @member {date} [currentAttemptStartTime] Start time of the current attempt. - * @member {string} [lastMessage] The last status or error message. - * @member {object} [target] The target that this execution is executed on. - * @member {string} [target.type] The type of the target. Possible values + * @property {date} [currentAttemptStartTime] Start time of the current + * attempt. + * @property {string} [lastMessage] The last status or error message. + * @property {object} [target] The target that this execution is executed on. + * @property {string} [target.type] The type of the target. Possible values * include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', * 'SqlServer' - * @member {string} [target.serverName] The server name. - * @member {string} [target.databaseName] The database name. + * @property {string} [target.serverName] The server name. + * @property {string} [target.databaseName] The database name. */ export interface JobExecution extends ProxyResource { readonly jobVersion?: number; @@ -2577,14 +2598,14 @@ export interface JobExecution extends ProxyResource { * @constructor * Scheduling properties of a job. * - * @member {date} [startTime] Schedule start time. Default value: new + * @property {date} [startTime] Schedule start time. Default value: new * Date('0001-01-01T00:00:00Z') . - * @member {date} [endTime] Schedule end time. Default value: new + * @property {date} [endTime] Schedule end time. Default value: new * Date('9999-12-31T11:59:59Z') . - * @member {string} [type] Schedule interval type. Possible values include: + * @property {string} [type] Schedule interval type. Possible values include: * 'Once', 'Recurring'. Default value: 'Once' . - * @member {boolean} [enabled] Whether or not the schedule is enabled. - * @member {string} [interval] Value of the schedule's recurring interval, if + * @property {boolean} [enabled] Whether or not the schedule is enabled. + * @property {string} [interval] Value of the schedule's recurring interval, if * the scheduletype is recurring. ISO8601 duration format. */ export interface JobSchedule { @@ -2601,16 +2622,17 @@ export interface JobSchedule { * @constructor * A job. * - * @member {string} [description] User-defined description of the job. Default - * value: '' . - * @member {number} [version] The job version number. - * @member {object} [schedule] Schedule properties of the job. - * @member {date} [schedule.startTime] Schedule start time. - * @member {date} [schedule.endTime] Schedule end time. - * @member {string} [schedule.type] Schedule interval type. Possible values + * @property {string} [description] User-defined description of the job. + * Default value: '' . + * @property {number} [version] The job version number. + * @property {object} [schedule] Schedule properties of the job. + * @property {date} [schedule.startTime] Schedule start time. + * @property {date} [schedule.endTime] Schedule end time. + * @property {string} [schedule.type] Schedule interval type. Possible values * include: 'Once', 'Recurring' - * @member {boolean} [schedule.enabled] Whether or not the schedule is enabled. - * @member {string} [schedule.interval] Value of the schedule's recurring + * @property {boolean} [schedule.enabled] Whether or not the schedule is + * enabled. + * @property {string} [schedule.interval] Value of the schedule's recurring * interval, if the scheduletype is recurring. ISO8601 duration format. */ export interface Job extends ProxyResource { @@ -2625,11 +2647,11 @@ export interface Job extends ProxyResource { * @constructor * The action to be executed by a job step. * - * @member {string} [type] Type of action being executed by the job step. + * @property {string} [type] Type of action being executed by the job step. * Possible values include: 'TSql'. Default value: 'TSql' . - * @member {string} [source] The source of the action to execute. Possible + * @property {string} [source] The source of the action to execute. Possible * values include: 'Inline'. Default value: 'Inline' . - * @member {string} value The action value, for example the text of the T-SQL + * @property {string} value The action value, for example the text of the T-SQL * script to execute. */ export interface JobStepAction { @@ -2644,16 +2666,17 @@ export interface JobStepAction { * @constructor * The output configuration of a job step. * - * @member {string} [type] The output destination type. Possible values + * @property {string} [type] The output destination type. Possible values * include: 'SqlDatabase'. Default value: 'SqlDatabase' . - * @member {uuid} [subscriptionId] The output destination subscription id. - * @member {string} [resourceGroupName] The output destination resource group. - * @member {string} serverName The output destination server name. - * @member {string} databaseName The output destination database. - * @member {string} [schemaName] The output destination schema. Default value: - * 'dbo' . - * @member {string} tableName The output destination table. - * @member {string} credential The resource ID of the credential to use to + * @property {uuid} [subscriptionId] The output destination subscription id. + * @property {string} [resourceGroupName] The output destination resource + * group. + * @property {string} serverName The output destination server name. + * @property {string} databaseName The output destination database. + * @property {string} [schemaName] The output destination schema. Default + * value: 'dbo' . + * @property {string} tableName The output destination table. + * @property {string} credential The resource ID of the credential to use to * connect to the output destination. */ export interface JobStepOutput { @@ -2673,16 +2696,16 @@ export interface JobStepOutput { * @constructor * The execution options of a job step. * - * @member {number} [timeoutSeconds] Execution timeout for the job step. + * @property {number} [timeoutSeconds] Execution timeout for the job step. * Default value: 43200 . - * @member {number} [retryAttempts] Maximum number of times the job step will + * @property {number} [retryAttempts] Maximum number of times the job step will * be reattempted if the first attempt fails. Default value: 10 . - * @member {number} [initialRetryIntervalSeconds] Initial delay between retries - * for job step execution. Default value: 1 . - * @member {number} [maximumRetryIntervalSeconds] The maximum amount of time to - * wait between retries for job step execution. Default value: 120 . - * @member {number} [retryIntervalBackoffMultiplier] The backoff multiplier for - * the time between retries. Default value: 2 . + * @property {number} [initialRetryIntervalSeconds] Initial delay between + * retries for job step execution. Default value: 1 . + * @property {number} [maximumRetryIntervalSeconds] The maximum amount of time + * to wait between retries for job step execution. Default value: 120 . + * @property {number} [retryIntervalBackoffMultiplier] The backoff multiplier + * for the time between retries. Default value: 2 . */ export interface JobStepExecutionOptions { timeoutSeconds?: number; @@ -2698,43 +2721,43 @@ export interface JobStepExecutionOptions { * @constructor * A job step. * - * @member {number} [stepId] The job step's index within the job. If not + * @property {number} [stepId] The job step's index within the job. If not * specified when creating the job step, it will be created as the last step. * If not specified when updating the job step, the step id is not modified. - * @member {string} targetGroup The resource ID of the target group that the + * @property {string} targetGroup The resource ID of the target group that the * job step will be executed on. - * @member {string} credential The resource ID of the job credential that will - * be used to connect to the targets. - * @member {object} action The action payload of the job step. - * @member {string} [action.type] Type of action being executed by the job + * @property {string} credential The resource ID of the job credential that + * will be used to connect to the targets. + * @property {object} action The action payload of the job step. + * @property {string} [action.type] Type of action being executed by the job * step. Possible values include: 'TSql' - * @member {string} [action.source] The source of the action to execute. + * @property {string} [action.source] The source of the action to execute. * Possible values include: 'Inline' - * @member {string} [action.value] The action value, for example the text of + * @property {string} [action.value] The action value, for example the text of * the T-SQL script to execute. - * @member {object} [output] Output destination properties of the job step. - * @member {string} [output.type] The output destination type. Possible values - * include: 'SqlDatabase' - * @member {uuid} [output.subscriptionId] The output destination subscription + * @property {object} [output] Output destination properties of the job step. + * @property {string} [output.type] The output destination type. Possible + * values include: 'SqlDatabase' + * @property {uuid} [output.subscriptionId] The output destination subscription * id. - * @member {string} [output.resourceGroupName] The output destination resource - * group. - * @member {string} [output.serverName] The output destination server name. - * @member {string} [output.databaseName] The output destination database. - * @member {string} [output.schemaName] The output destination schema. - * @member {string} [output.tableName] The output destination table. - * @member {string} [output.credential] The resource ID of the credential to + * @property {string} [output.resourceGroupName] The output destination + * resource group. + * @property {string} [output.serverName] The output destination server name. + * @property {string} [output.databaseName] The output destination database. + * @property {string} [output.schemaName] The output destination schema. + * @property {string} [output.tableName] The output destination table. + * @property {string} [output.credential] The resource ID of the credential to * use to connect to the output destination. - * @member {object} [executionOptions] Execution options for the job step. - * @member {number} [executionOptions.timeoutSeconds] Execution timeout for the - * job step. - * @member {number} [executionOptions.retryAttempts] Maximum number of times + * @property {object} [executionOptions] Execution options for the job step. + * @property {number} [executionOptions.timeoutSeconds] Execution timeout for + * the job step. + * @property {number} [executionOptions.retryAttempts] Maximum number of times * the job step will be reattempted if the first attempt fails. - * @member {number} [executionOptions.initialRetryIntervalSeconds] Initial + * @property {number} [executionOptions.initialRetryIntervalSeconds] Initial * delay between retries for job step execution. - * @member {number} [executionOptions.maximumRetryIntervalSeconds] The maximum - * amount of time to wait between retries for job step execution. - * @member {number} [executionOptions.retryIntervalBackoffMultiplier] The + * @property {number} [executionOptions.maximumRetryIntervalSeconds] The + * maximum amount of time to wait between retries for job step execution. + * @property {number} [executionOptions.retryIntervalBackoffMultiplier] The * backoff multiplier for the time between retries. */ export interface JobStep extends ProxyResource { @@ -2753,18 +2776,18 @@ export interface JobStep extends ProxyResource { * A job target, for example a specific database or a container of databases * that is evaluated during job execution. * - * @member {string} [membershipType] Whether the target is included or excluded - * from the group. Possible values include: 'Include', 'Exclude'. Default - * value: 'Include' . - * @member {string} type The target type. Possible values include: + * @property {string} [membershipType] Whether the target is included or + * excluded from the group. Possible values include: 'Include', 'Exclude'. + * Default value: 'Include' . + * @property {string} type The target type. Possible values include: * 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', 'SqlServer' - * @member {string} [serverName] The target server name. - * @member {string} [databaseName] The target database name. - * @member {string} [elasticPoolName] The target elastic pool name. - * @member {string} [shardMapName] The target shard map. - * @member {string} [refreshCredential] The resource ID of the credential that - * is used during job execution to connect to the target and determine the list - * of databases inside the target. + * @property {string} [serverName] The target server name. + * @property {string} [databaseName] The target database name. + * @property {string} [elasticPoolName] The target elastic pool name. + * @property {string} [shardMapName] The target shard map. + * @property {string} [refreshCredential] The resource ID of the credential + * that is used during job execution to connect to the target and determine the + * list of databases inside the target. */ export interface JobTarget { membershipType?: string; @@ -2782,7 +2805,7 @@ export interface JobTarget { * @constructor * A group of job targets. * - * @member {array} members Members of the target group. + * @property {array} members Members of the target group. */ export interface JobTargetGroup extends ProxyResource { members: JobTarget[]; @@ -2804,14 +2827,14 @@ export interface JobVersion extends ProxyResource { * @constructor * A long term retention backup. * - * @member {string} [serverName] The server name that the backup database + * @property {string} [serverName] The server name that the backup database * belong to. - * @member {date} [serverCreateTime] The create time of the server. - * @member {string} [databaseName] The name of the database the backup belong + * @property {date} [serverCreateTime] The create time of the server. + * @property {string} [databaseName] The name of the database the backup belong * to - * @member {date} [databaseDeletionTime] The delete time of the database - * @member {date} [backupTime] The time the backup was taken - * @member {date} [backupExpirationTime] The time the long term retention + * @property {date} [databaseDeletionTime] The delete time of the database + * @property {date} [backupTime] The time the backup was taken + * @property {date} [backupExpirationTime] The time the long term retention * backup will expire. */ export interface LongTermRetentionBackup extends ProxyResource { @@ -2829,14 +2852,14 @@ export interface LongTermRetentionBackup extends ProxyResource { * @constructor * A long term retention policy. * - * @member {string} [weeklyRetention] The weekly retention policy for an LTR - * backup in an ISO 8601 format. - * @member {string} [monthlyRetention] The monthly retention policy for an LTR + * @property {string} [weeklyRetention] The weekly retention policy for an LTR * backup in an ISO 8601 format. - * @member {string} [yearlyRetention] The yearly retention policy for an LTR + * @property {string} [monthlyRetention] The monthly retention policy for an + * LTR backup in an ISO 8601 format. + * @property {string} [yearlyRetention] The yearly retention policy for an LTR * backup in an ISO 8601 format. - * @member {number} [weekOfYear] The week of year to take the yearly backup in - * an ISO 8601 format. + * @property {number} [weekOfYear] The week of year to take the yearly backup + * in an ISO 8601 format. */ export interface BackupLongTermRetentionPolicy extends ProxyResource { weeklyRetention?: string; @@ -2845,6 +2868,19 @@ export interface BackupLongTermRetentionPolicy extends ProxyResource { weekOfYear?: number; } +/** + * @class + * Initializes a new instance of the ManagedBackupShortTermRetentionPolicy class. + * @constructor + * A short term retention policy. + * + * @property {number} [retentionDays] The backup retention period in days. This + * is how many days Point-in-Time Restore will be supported. + */ +export interface ManagedBackupShortTermRetentionPolicy extends ProxyResource { + retentionDays?: number; +} + /** * @class * Initializes a new instance of the CompleteDatabaseRestoreDefinition class. @@ -2852,7 +2888,7 @@ export interface BackupLongTermRetentionPolicy extends ProxyResource { * Contains the information necessary to perform a complete database restore * operation. * - * @member {string} lastBackupName The last backup name to apply + * @property {string} lastBackupName The last backup name to apply */ export interface CompleteDatabaseRestoreDefinition { lastBackupName: string; @@ -2864,35 +2900,35 @@ export interface CompleteDatabaseRestoreDefinition { * @constructor * A managed database resource. * - * @member {string} [collation] Collation of the managed database. - * @member {string} [status] Status for the database. Possible values include: - * 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible' - * @member {date} [creationDate] Creation date of the database. - * @member {date} [earliestRestorePoint] Earliest restore point in time for + * @property {string} [collation] Collation of the managed database. + * @property {string} [status] Status for the database. Possible values + * include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible' + * @property {date} [creationDate] Creation date of the database. + * @property {date} [earliestRestorePoint] Earliest restore point in time for * point in time restore. - * @member {date} [restorePointInTime] Conditional. If createMode is + * @property {date} [restorePointInTime] Conditional. If createMode is * PointInTimeRestore, this value is required. Specifies the point in time * (ISO8601 format) of the source database that will be restored to create the * new database. - * @member {string} [defaultSecondaryLocation] Geo paired region. - * @member {string} [catalogCollation] Collation of the metadata catalog. + * @property {string} [defaultSecondaryLocation] Geo paired region. + * @property {string} [catalogCollation] Collation of the metadata catalog. * Possible values include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' - * @member {string} [createMode] Managed database create mode. + * @property {string} [createMode] Managed database create mode. * PointInTimeRestore: Create a database by restoring a point in time backup of * an existing database. SourceDatabaseName, SourceManagedInstanceName and * PointInTime must be specified. RestoreExternalBackup: Create a database by * restoring from external backup files. Collation, StorageContainerUri and * StorageContainerSasToken must be specified. Possible values include: * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore' - * @member {string} [storageContainerUri] Conditional. If createMode is + * @property {string} [storageContainerUri] Conditional. If createMode is * RestoreExternalBackup, this value is required. Specifies the uri of the * storage container where backups for this restore are stored. - * @member {string} [sourceDatabaseId] The resource identifier of the source + * @property {string} [sourceDatabaseId] The resource identifier of the source * database associated with create operation of this database. - * @member {string} [storageContainerSasToken] Conditional. If createMode is + * @property {string} [storageContainerSasToken] Conditional. If createMode is * RestoreExternalBackup, this value is required. Specifies the storage * container sas token. - * @member {string} [failoverGroupId] Instance Failover Group resource + * @property {string} [failoverGroupId] Instance Failover Group resource * identifier that this managed database belongs to. */ export interface ManagedDatabase extends TrackedResource { @@ -2916,37 +2952,37 @@ export interface ManagedDatabase extends TrackedResource { * @constructor * An managed database update. * - * @member {string} [collation] Collation of the managed database. - * @member {string} [status] Status for the database. Possible values include: - * 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible' - * @member {date} [creationDate] Creation date of the database. - * @member {date} [earliestRestorePoint] Earliest restore point in time for + * @property {string} [collation] Collation of the managed database. + * @property {string} [status] Status for the database. Possible values + * include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible' + * @property {date} [creationDate] Creation date of the database. + * @property {date} [earliestRestorePoint] Earliest restore point in time for * point in time restore. - * @member {date} [restorePointInTime] Conditional. If createMode is + * @property {date} [restorePointInTime] Conditional. If createMode is * PointInTimeRestore, this value is required. Specifies the point in time * (ISO8601 format) of the source database that will be restored to create the * new database. - * @member {string} [defaultSecondaryLocation] Geo paired region. - * @member {string} [catalogCollation] Collation of the metadata catalog. + * @property {string} [defaultSecondaryLocation] Geo paired region. + * @property {string} [catalogCollation] Collation of the metadata catalog. * Possible values include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' - * @member {string} [createMode] Managed database create mode. + * @property {string} [createMode] Managed database create mode. * PointInTimeRestore: Create a database by restoring a point in time backup of * an existing database. SourceDatabaseName, SourceManagedInstanceName and * PointInTime must be specified. RestoreExternalBackup: Create a database by * restoring from external backup files. Collation, StorageContainerUri and * StorageContainerSasToken must be specified. Possible values include: * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore' - * @member {string} [storageContainerUri] Conditional. If createMode is + * @property {string} [storageContainerUri] Conditional. If createMode is * RestoreExternalBackup, this value is required. Specifies the uri of the * storage container where backups for this restore are stored. - * @member {string} [sourceDatabaseId] The resource identifier of the source + * @property {string} [sourceDatabaseId] The resource identifier of the source * database associated with create operation of this database. - * @member {string} [storageContainerSasToken] Conditional. If createMode is + * @property {string} [storageContainerSasToken] Conditional. If createMode is * RestoreExternalBackup, this value is required. Specifies the storage * container sas token. - * @member {string} [failoverGroupId] Instance Failover Group resource + * @property {string} [failoverGroupId] Instance Failover Group resource * identifier that this managed database belongs to. - * @member {object} [tags] Resource tags. + * @property {object} [tags] Resource tags. */ export interface ManagedDatabaseUpdate { collation?: string; @@ -2970,14 +3006,14 @@ export interface ManagedDatabaseUpdate { * @constructor * Automatic tuning properties for individual advisors. * - * @member {string} [desiredState] Automatic tuning option desired state. + * @property {string} [desiredState] Automatic tuning option desired state. * Possible values include: 'Off', 'On', 'Default' - * @member {string} [actualState] Automatic tuning option actual state. + * @property {string} [actualState] Automatic tuning option actual state. * Possible values include: 'Off', 'On' - * @member {number} [reasonCode] Reason code if desired and actual state are + * @property {number} [reasonCode] Reason code if desired and actual state are * different. - * @member {string} [reasonDesc] Reason description if desired and actual state - * are different. Possible values include: 'Default', 'Disabled', + * @property {string} [reasonDesc] Reason description if desired and actual + * state are different. Possible values include: 'Default', 'Disabled', * 'AutoConfigured' */ export interface AutomaticTuningServerOptions { @@ -2993,11 +3029,11 @@ export interface AutomaticTuningServerOptions { * @constructor * Server-level Automatic Tuning. * - * @member {string} [desiredState] Automatic tuning desired state. Possible + * @property {string} [desiredState] Automatic tuning desired state. Possible * values include: 'Custom', 'Auto', 'Unspecified' - * @member {string} [actualState] Automatic tuning actual state. Possible + * @property {string} [actualState] Automatic tuning actual state. Possible * values include: 'Custom', 'Auto', 'Unspecified' - * @member {object} [options] Automatic tuning options definition. + * @property {object} [options] Automatic tuning options definition. */ export interface ServerAutomaticTuning extends ProxyResource { desiredState?: string; @@ -3011,7 +3047,7 @@ export interface ServerAutomaticTuning extends ProxyResource { * @constructor * A server DNS alias. * - * @member {string} [azureDnsRecord] The fully qualified DNS record for alias + * @property {string} [azureDnsRecord] The fully qualified DNS record for alias */ export interface ServerDnsAlias extends ProxyResource { readonly azureDnsRecord?: string; @@ -3023,8 +3059,8 @@ export interface ServerDnsAlias extends ProxyResource { * @constructor * A server DNS alias acquisition request. * - * @member {string} [oldServerDnsAliasId] The id of the server alias that will - * be acquired to point to this server instead. + * @property {string} [oldServerDnsAliasId] The id of the server alias that + * will be acquired to point to this server instead. */ export interface ServerDnsAliasAcquisition { oldServerDnsAliasId?: string; @@ -3036,22 +3072,22 @@ export interface ServerDnsAliasAcquisition { * @constructor * A server security alert policy. * - * @member {string} state Specifies the state of the policy, whether it is + * @property {string} state Specifies the state of the policy, whether it is * enabled or disabled. Possible values include: 'New', 'Enabled', 'Disabled' - * @member {array} [disabledAlerts] Specifies an array of alerts that are + * @property {array} [disabledAlerts] Specifies an array of alerts that are * disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, * Access_Anomaly, Data_Exfiltration, Unsafe_Action - * @member {array} [emailAddresses] Specifies an array of e-mail addresses to + * @property {array} [emailAddresses] Specifies an array of e-mail addresses to * which the alert is sent. - * @member {boolean} [emailAccountAdmins] Specifies that the alert is sent to + * @property {boolean} [emailAccountAdmins] Specifies that the alert is sent to * the account administrators. - * @member {string} [storageEndpoint] Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). This blob storage will hold all - * Threat Detection audit logs. - * @member {string} [storageAccountAccessKey] Specifies the identifier key of + * @property {string} [storageEndpoint] Specifies the blob storage endpoint + * (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold + * all Threat Detection audit logs. + * @property {string} [storageAccountAccessKey] Specifies the identifier key of * the Threat Detection audit storage account. - * @member {number} [retentionDays] Specifies the number of days to keep in the - * Threat Detection audit logs. + * @property {number} [retentionDays] Specifies the number of days to keep in + * the Threat Detection audit logs. */ export interface ServerSecurityAlertPolicy extends ProxyResource { state: string; @@ -3069,13 +3105,13 @@ export interface ServerSecurityAlertPolicy extends ProxyResource { * @constructor * Database restore points. * - * @member {string} [location] Resource location. - * @member {string} [restorePointType] The type of restore point. Possible + * @property {string} [location] Resource location. + * @property {string} [restorePointType] The type of restore point. Possible * values include: 'CONTINUOUS', 'DISCRETE' - * @member {date} [earliestRestoreDate] The earliest time to which this + * @property {date} [earliestRestoreDate] The earliest time to which this * database can be restored - * @member {date} [restorePointCreationDate] The time the backup was taken - * @member {string} [restorePointLabel] The label of restore point for backup + * @property {date} [restorePointCreationDate] The time the backup was taken + * @property {string} [restorePointLabel] The label of restore point for backup * request by user */ export interface RestorePoint extends ProxyResource { @@ -3093,7 +3129,7 @@ export interface RestorePoint extends ProxyResource { * Contains the information necessary to perform a create database restore * point operation. * - * @member {string} restorePointLabel The restore point label to apply + * @property {string} restorePointLabel The restore point label to apply */ export interface CreateDatabaseRestorePointDefinition { restorePointLabel: string; @@ -3105,25 +3141,25 @@ export interface CreateDatabaseRestorePointDefinition { * @constructor * A database operation. * - * @member {string} [databaseName] The name of the database the operation is + * @property {string} [databaseName] The name of the database the operation is * being performed on. - * @member {string} [operation] The name of operation. - * @member {string} [operationFriendlyName] The friendly name of operation. - * @member {number} [percentComplete] The percentage of the operation + * @property {string} [operation] The name of operation. + * @property {string} [operationFriendlyName] The friendly name of operation. + * @property {number} [percentComplete] The percentage of the operation * completed. - * @member {string} [serverName] The name of the server. - * @member {date} [startTime] The operation start time. - * @member {string} [state] The operation state. Possible values include: + * @property {string} [serverName] The name of the server. + * @property {date} [startTime] The operation start time. + * @property {string} [state] The operation state. Possible values include: * 'Pending', 'InProgress', 'Succeeded', 'Failed', 'CancelInProgress', * 'Cancelled' - * @member {number} [errorCode] The operation error code. - * @member {string} [errorDescription] The operation error description. - * @member {number} [errorSeverity] The operation error severity. - * @member {boolean} [isUserError] Whether or not the error is a user error. - * @member {date} [estimatedCompletionTime] The estimated completion time of + * @property {number} [errorCode] The operation error code. + * @property {string} [errorDescription] The operation error description. + * @property {number} [errorSeverity] The operation error severity. + * @property {boolean} [isUserError] Whether or not the error is a user error. + * @property {date} [estimatedCompletionTime] The estimated completion time of * the operation. - * @member {string} [description] The operation description. - * @member {boolean} [isCancellable] Whether the operation can be cancelled. + * @property {string} [description] The operation description. + * @property {boolean} [isCancellable] Whether the operation can be cancelled. */ export interface DatabaseOperation extends ProxyResource { readonly databaseName?: string; @@ -3148,23 +3184,23 @@ export interface DatabaseOperation extends ProxyResource { * @constructor * A elastic pool operation. * - * @member {string} [elasticPoolName] The name of the elastic pool the + * @property {string} [elasticPoolName] The name of the elastic pool the * operation is being performed on. - * @member {string} [operation] The name of operation. - * @member {string} [operationFriendlyName] The friendly name of operation. - * @member {number} [percentComplete] The percentage of the operation + * @property {string} [operation] The name of operation. + * @property {string} [operationFriendlyName] The friendly name of operation. + * @property {number} [percentComplete] The percentage of the operation * completed. - * @member {string} [serverName] The name of the server. - * @member {date} [startTime] The operation start time. - * @member {string} [state] The operation state. - * @member {number} [errorCode] The operation error code. - * @member {string} [errorDescription] The operation error description. - * @member {number} [errorSeverity] The operation error severity. - * @member {boolean} [isUserError] Whether or not the error is a user error. - * @member {date} [estimatedCompletionTime] The estimated completion time of + * @property {string} [serverName] The name of the server. + * @property {date} [startTime] The operation start time. + * @property {string} [state] The operation state. + * @property {number} [errorCode] The operation error code. + * @property {string} [errorDescription] The operation error description. + * @property {number} [errorSeverity] The operation error severity. + * @property {boolean} [isUserError] Whether or not the error is a user error. + * @property {date} [estimatedCompletionTime] The estimated completion time of * the operation. - * @member {string} [description] The operation description. - * @member {boolean} [isCancellable] Whether the operation can be cancelled. + * @property {string} [description] The operation description. + * @property {boolean} [isCancellable] Whether the operation can be cancelled. */ export interface ElasticPoolOperation extends ProxyResource { readonly elasticPoolName?: string; @@ -3189,8 +3225,9 @@ export interface ElasticPoolOperation extends ProxyResource { * @constructor * The maximum size capability. * - * @member {number} [limit] The maximum size limit (see 'unit' for the units). - * @member {string} [unit] The units that the limit is expressed in. Possible + * @property {number} [limit] The maximum size limit (see 'unit' for the + * units). + * @property {string} [unit] The units that the limit is expressed in. Possible * values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' */ export interface MaxSizeCapability { @@ -3204,8 +3241,8 @@ export interface MaxSizeCapability { * @constructor * The log size capability. * - * @member {number} [limit] The log size limit (see 'unit' for the units). - * @member {string} [unit] The units that the limit is expressed in. Possible + * @property {number} [limit] The log size limit (see 'unit' for the units). + * @property {string} [unit] The units that the limit is expressed in. Possible * values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes', * 'Percent' */ @@ -3220,31 +3257,33 @@ export interface LogSizeCapability { * @constructor * The maximum size range capability. * - * @member {object} [minValue] Minimum value. - * @member {number} [minValue.limit] The maximum size limit (see 'unit' for the - * units). - * @member {string} [minValue.unit] The units that the limit is expressed in. - * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' - * @member {object} [maxValue] Maximum value. - * @member {number} [maxValue.limit] The maximum size limit (see 'unit' for the - * units). - * @member {string} [maxValue.unit] The units that the limit is expressed in. + * @property {object} [minValue] Minimum value. + * @property {number} [minValue.limit] The maximum size limit (see 'unit' for + * the units). + * @property {string} [minValue.unit] The units that the limit is expressed in. * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' - * @member {object} [scaleSize] Scale/step size for discrete values between the - * minimum value and the maximum value. - * @member {number} [scaleSize.limit] The maximum size limit (see 'unit' for + * @property {object} [maxValue] Maximum value. + * @property {number} [maxValue.limit] The maximum size limit (see 'unit' for * the units). - * @member {string} [scaleSize.unit] The units that the limit is expressed in. + * @property {string} [maxValue.unit] The units that the limit is expressed in. * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' - * @member {object} [logSize] Size of transaction log. - * @member {number} [logSize.limit] The log size limit (see 'unit' for the + * @property {object} [scaleSize] Scale/step size for discrete values between + * the minimum value and the maximum value. + * @property {number} [scaleSize.limit] The maximum size limit (see 'unit' for + * the units). + * @property {string} [scaleSize.unit] The units that the limit is expressed + * in. Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', + * 'Petabytes' + * @property {object} [logSize] Size of transaction log. + * @property {number} [logSize.limit] The log size limit (see 'unit' for the * units). - * @member {string} [logSize.unit] The units that the limit is expressed in. + * @property {string} [logSize.unit] The units that the limit is expressed in. * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes', * 'Percent' - * @member {string} [status] The status of the capability. Possible values + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being available. + * @property {string} [reason] The reason for the capability not being + * available. */ export interface MaxSizeRangeCapability { readonly minValue?: MaxSizeCapability; @@ -3261,8 +3300,8 @@ export interface MaxSizeRangeCapability { * @constructor * The performance level capability. * - * @member {number} [value] Performance level value. - * @member {string} [unit] Unit type used to measure performance level. + * @property {number} [value] Performance level value. + * @property {string} [unit] Unit type used to measure performance level. * Possible values include: 'DTU', 'VCores' */ export interface PerformanceLevelCapability { @@ -3276,10 +3315,11 @@ export interface PerformanceLevelCapability { * @constructor * The license type capability * - * @member {string} [name] License type identifier. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [name] License type identifier. + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being available. + * @property {string} [reason] The reason for the capability not being + * available. */ export interface LicenseTypeCapability { readonly name?: string; @@ -3293,37 +3333,38 @@ export interface LicenseTypeCapability { * @constructor * The service objectives capability. * - * @member {uuid} [id] The unique ID of the service objective. - * @member {string} [name] The service objective name. - * @member {array} [supportedMaxSizes] The list of supported maximum database + * @property {uuid} [id] The unique ID of the service objective. + * @property {string} [name] The service objective name. + * @property {array} [supportedMaxSizes] The list of supported maximum database * sizes. - * @member {object} [performanceLevel] The performance level. - * @member {number} [performanceLevel.value] Performance level value. - * @member {string} [performanceLevel.unit] Unit type used to measure + * @property {object} [performanceLevel] The performance level. + * @property {number} [performanceLevel.value] Performance level value. + * @property {string} [performanceLevel.unit] Unit type used to measure * performance level. Possible values include: 'DTU', 'VCores' - * @member {object} [sku] The sku. - * @member {string} [sku.name] The name of the SKU. Ex - P3. It is typically a - * letter+number code - * @member {string} [sku.tier] This field is required to be implemented by the - * Resource Provider if the service has more than one tier, but is not required - * on a PUT. - * @member {string} [sku.size] The SKU size. When the name field is the + * @property {object} [sku] The sku. + * @property {string} [sku.name] The name of the SKU. Ex - P3. It is typically + * a letter+number code + * @property {string} [sku.tier] This field is required to be implemented by + * the Resource Provider if the service has more than one tier, but is not + * required on a PUT. + * @property {string} [sku.size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone code. - * @member {string} [sku.family] If the service has different generations of + * @property {string} [sku.family] If the service has different generations of * hardware, for the same SKU, then that can be captured here. - * @member {number} [sku.capacity] If the SKU supports scale out/in then the + * @property {number} [sku.capacity] If the SKU supports scale out/in then the * capacity integer should be included. If scale out/in is not possible for the * resource this may be omitted. - * @member {array} [supportedLicenseTypes] List of supported license types. - * @member {object} [includedMaxSize] The included (free) max size. - * @member {number} [includedMaxSize.limit] The maximum size limit (see 'unit' - * for the units). - * @member {string} [includedMaxSize.unit] The units that the limit is + * @property {array} [supportedLicenseTypes] List of supported license types. + * @property {object} [includedMaxSize] The included (free) max size. + * @property {number} [includedMaxSize.limit] The maximum size limit (see + * 'unit' for the units). + * @property {string} [includedMaxSize.unit] The units that the limit is * expressed in. Possible values include: 'Megabytes', 'Gigabytes', * 'Terabytes', 'Petabytes' - * @member {string} [status] The status of the capability. Possible values + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being available. + * @property {string} [reason] The reason for the capability not being + * available. */ export interface ServiceObjectiveCapability { readonly id?: string; @@ -3343,14 +3384,15 @@ export interface ServiceObjectiveCapability { * @constructor * The edition capability. * - * @member {string} [name] The database edition name. - * @member {array} [supportedServiceLevelObjectives] The list of supported + * @property {string} [name] The database edition name. + * @property {array} [supportedServiceLevelObjectives] The list of supported * service objectives for the edition. - * @member {boolean} [zoneRedundant] Whether or not zone redundancy is + * @property {boolean} [zoneRedundant] Whether or not zone redundancy is * supported for the edition. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being available. + * @property {string} [reason] The reason for the capability not being + * available. */ export interface EditionCapability { readonly name?: string; @@ -3366,12 +3408,13 @@ export interface EditionCapability { * @constructor * The minimum per-database performance level capability. * - * @member {number} [limit] The minimum performance level per database. - * @member {string} [unit] Unit type used to measure performance level. + * @property {number} [limit] The minimum performance level per database. + * @property {string} [unit] Unit type used to measure performance level. * Possible values include: 'DTU', 'VCores' - * @member {string} [status] The status of the capability. Possible values + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being available. + * @property {string} [reason] The reason for the capability not being + * available. */ export interface ElasticPoolPerDatabaseMinPerformanceLevelCapability { readonly limit?: number; @@ -3386,14 +3429,15 @@ export interface ElasticPoolPerDatabaseMinPerformanceLevelCapability { * @constructor * The max per-database performance level capability. * - * @member {number} [limit] The maximum performance level per database. - * @member {string} [unit] Unit type used to measure performance level. + * @property {number} [limit] The maximum performance level per database. + * @property {string} [unit] Unit type used to measure performance level. * Possible values include: 'DTU', 'VCores' - * @member {array} [supportedPerDatabaseMinPerformanceLevels] The list of + * @property {array} [supportedPerDatabaseMinPerformanceLevels] The list of * supported min database performance levels. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being available. + * @property {string} [reason] The reason for the capability not being + * available. */ export interface ElasticPoolPerDatabaseMaxPerformanceLevelCapability { readonly limit?: number; @@ -3409,41 +3453,42 @@ export interface ElasticPoolPerDatabaseMaxPerformanceLevelCapability { * @constructor * The Elastic Pool performance level capability. * - * @member {object} [performanceLevel] The performance level for the pool. - * @member {number} [performanceLevel.value] Performance level value. - * @member {string} [performanceLevel.unit] Unit type used to measure + * @property {object} [performanceLevel] The performance level for the pool. + * @property {number} [performanceLevel.value] Performance level value. + * @property {string} [performanceLevel.unit] Unit type used to measure * performance level. Possible values include: 'DTU', 'VCores' - * @member {object} [sku] The sku. - * @member {string} [sku.name] The name of the SKU. Ex - P3. It is typically a - * letter+number code - * @member {string} [sku.tier] This field is required to be implemented by the - * Resource Provider if the service has more than one tier, but is not required - * on a PUT. - * @member {string} [sku.size] The SKU size. When the name field is the + * @property {object} [sku] The sku. + * @property {string} [sku.name] The name of the SKU. Ex - P3. It is typically + * a letter+number code + * @property {string} [sku.tier] This field is required to be implemented by + * the Resource Provider if the service has more than one tier, but is not + * required on a PUT. + * @property {string} [sku.size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone code. - * @member {string} [sku.family] If the service has different generations of + * @property {string} [sku.family] If the service has different generations of * hardware, for the same SKU, then that can be captured here. - * @member {number} [sku.capacity] If the SKU supports scale out/in then the + * @property {number} [sku.capacity] If the SKU supports scale out/in then the * capacity integer should be included. If scale out/in is not possible for the * resource this may be omitted. - * @member {array} [supportedLicenseTypes] List of supported license types. - * @member {number} [maxDatabaseCount] The maximum number of databases + * @property {array} [supportedLicenseTypes] List of supported license types. + * @property {number} [maxDatabaseCount] The maximum number of databases * supported. - * @member {object} [includedMaxSize] The included (free) max size for this + * @property {object} [includedMaxSize] The included (free) max size for this * performance level. - * @member {number} [includedMaxSize.limit] The maximum size limit (see 'unit' - * for the units). - * @member {string} [includedMaxSize.unit] The units that the limit is + * @property {number} [includedMaxSize.limit] The maximum size limit (see + * 'unit' for the units). + * @property {string} [includedMaxSize.unit] The units that the limit is * expressed in. Possible values include: 'Megabytes', 'Gigabytes', * 'Terabytes', 'Petabytes' - * @member {array} [supportedMaxSizes] The list of supported max sizes. - * @member {array} [supportedPerDatabaseMaxSizes] The list of supported per + * @property {array} [supportedMaxSizes] The list of supported max sizes. + * @property {array} [supportedPerDatabaseMaxSizes] The list of supported per * database max sizes. - * @member {array} [supportedPerDatabaseMaxPerformanceLevels] The list of + * @property {array} [supportedPerDatabaseMaxPerformanceLevels] The list of * supported per database max performance levels. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being available. + * @property {string} [reason] The reason for the capability not being + * available. */ export interface ElasticPoolPerformanceLevelCapability { readonly performanceLevel?: PerformanceLevelCapability; @@ -3464,14 +3509,15 @@ export interface ElasticPoolPerformanceLevelCapability { * @constructor * The elastic pool edition capability. * - * @member {string} [name] The elastic pool edition name. - * @member {array} [supportedElasticPoolPerformanceLevels] The list of + * @property {string} [name] The elastic pool edition name. + * @property {array} [supportedElasticPoolPerformanceLevels] The list of * supported elastic pool DTU levels for the edition. - * @member {boolean} [zoneRedundant] Whether or not zone redundancy is + * @property {boolean} [zoneRedundant] Whether or not zone redundancy is * supported for the edition. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being available. + * @property {string} [reason] The reason for the capability not being + * available. */ export interface ElasticPoolEditionCapability { readonly name?: string; @@ -3487,13 +3533,15 @@ export interface ElasticPoolEditionCapability { * @constructor * The server capability * - * @member {string} [name] The server version name. - * @member {array} [supportedEditions] The list of supported database editions. - * @member {array} [supportedElasticPoolEditions] The list of supported elastic - * pool editions. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [name] The server version name. + * @property {array} [supportedEditions] The list of supported database + * editions. + * @property {array} [supportedElasticPoolEditions] The list of supported + * elastic pool editions. + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being available. + * @property {string} [reason] The reason for the capability not being + * available. */ export interface ServerVersionCapability { readonly name?: string; @@ -3509,11 +3557,12 @@ export interface ServerVersionCapability { * @constructor * The managed instance virtual cores capability. * - * @member {string} [name] The virtual cores identifier. - * @member {number} [value] The virtual cores value. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [name] The virtual cores identifier. + * @property {number} [value] The virtual cores value. + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being available. + * @property {string} [reason] The reason for the capability not being + * available. */ export interface ManagedInstanceVcoresCapability { readonly name?: string; @@ -3528,21 +3577,22 @@ export interface ManagedInstanceVcoresCapability { * @constructor * The managed server family capability. * - * @member {string} [name] Family name. - * @member {string} [sku] SKU name. - * @member {array} [supportedLicenseTypes] List of supported license types. - * @member {array} [supportedVcoresValues] List of supported virtual cores + * @property {string} [name] Family name. + * @property {string} [sku] SKU name. + * @property {array} [supportedLicenseTypes] List of supported license types. + * @property {array} [supportedVcoresValues] List of supported virtual cores * values. - * @member {object} [includedMaxSize] Included size. - * @member {number} [includedMaxSize.limit] The maximum size limit (see 'unit' - * for the units). - * @member {string} [includedMaxSize.unit] The units that the limit is + * @property {object} [includedMaxSize] Included size. + * @property {number} [includedMaxSize.limit] The maximum size limit (see + * 'unit' for the units). + * @property {string} [includedMaxSize.unit] The units that the limit is * expressed in. Possible values include: 'Megabytes', 'Gigabytes', * 'Terabytes', 'Petabytes' - * @member {array} [supportedStorageSizes] Storage size ranges. - * @member {string} [status] The status of the capability. Possible values + * @property {array} [supportedStorageSizes] Storage size ranges. + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being available. + * @property {string} [reason] The reason for the capability not being + * available. */ export interface ManagedInstanceFamilyCapability { readonly name?: string; @@ -3561,11 +3611,12 @@ export interface ManagedInstanceFamilyCapability { * @constructor * The managed server capability * - * @member {string} [name] The managed server version name. - * @member {array} [supportedFamilies] The supported families. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [name] The managed server version name. + * @property {array} [supportedFamilies] The supported families. + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being available. + * @property {string} [reason] The reason for the capability not being + * available. */ export interface ManagedInstanceEditionCapability { readonly name?: string; @@ -3580,12 +3631,13 @@ export interface ManagedInstanceEditionCapability { * @constructor * The managed instance capability * - * @member {string} [name] The server version name. - * @member {array} [supportedEditions] The list of supported managed instance + * @property {string} [name] The server version name. + * @property {array} [supportedEditions] The list of supported managed instance * editions. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being available. + * @property {string} [reason] The reason for the capability not being + * available. */ export interface ManagedInstanceVersionCapability { readonly name?: string; @@ -3600,14 +3652,15 @@ export interface ManagedInstanceVersionCapability { * @constructor * The location capability. * - * @member {string} [name] The location name. - * @member {array} [supportedServerVersions] The list of supported server + * @property {string} [name] The location name. + * @property {array} [supportedServerVersions] The list of supported server * versions. - * @member {array} [supportedManagedInstanceVersions] The list of supported + * @property {array} [supportedManagedInstanceVersions] The list of supported * managed instance versions. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being available. + * @property {string} [reason] The reason for the capability not being + * available. */ export interface LocationCapabilities { readonly name?: string; @@ -3623,23 +3676,23 @@ export interface LocationCapabilities { * @constructor * A database resource. * - * @member {object} [sku] The name and tier of the SKU. - * @member {string} [sku.name] The name of the SKU. Ex - P3. It is typically a - * letter+number code - * @member {string} [sku.tier] This field is required to be implemented by the - * Resource Provider if the service has more than one tier, but is not required - * on a PUT. - * @member {string} [sku.size] The SKU size. When the name field is the + * @property {object} [sku] The name and tier of the SKU. + * @property {string} [sku.name] The name of the SKU. Ex - P3. It is typically + * a letter+number code + * @property {string} [sku.tier] This field is required to be implemented by + * the Resource Provider if the service has more than one tier, but is not + * required on a PUT. + * @property {string} [sku.size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone code. - * @member {string} [sku.family] If the service has different generations of + * @property {string} [sku.family] If the service has different generations of * hardware, for the same SKU, then that can be captured here. - * @member {number} [sku.capacity] If the SKU supports scale out/in then the + * @property {number} [sku.capacity] If the SKU supports scale out/in then the * capacity integer should be included. If scale out/in is not possible for the * resource this may be omitted. - * @member {string} [kind] Kind of database. This is metadata used for the + * @property {string} [kind] Kind of database. This is metadata used for the * Azure portal experience. - * @member {string} [managedBy] Resource that manages the database. - * @member {string} [createMode] Specifies the mode of database creation. + * @property {string} [managedBy] Resource that manages the database. + * @property {string} [createMode] Specifies the mode of database creation. * * Default: regular database creation. * @@ -3674,74 +3727,75 @@ export interface LocationCapabilities { * 'Secondary', 'PointInTimeRestore', 'Restore', 'Recovery', * 'RestoreExternalBackup', 'RestoreExternalBackupSecondary', * 'RestoreLongTermRetentionBackup', 'OnlineSecondary' - * @member {string} [collation] The collation of the database. - * @member {number} [maxSizeBytes] The max size of the database expressed in + * @property {string} [collation] The collation of the database. + * @property {number} [maxSizeBytes] The max size of the database expressed in * bytes. - * @member {string} [sampleName] The name of the sample schema to apply when + * @property {string} [sampleName] The name of the sample schema to apply when * creating this database. Possible values include: 'AdventureWorksLT', * 'WideWorldImportersStd', 'WideWorldImportersFull' - * @member {string} [elasticPoolId] The resource identifier of the elastic pool - * containing this database. - * @member {string} [sourceDatabaseId] The resource identifier of the source + * @property {string} [elasticPoolId] The resource identifier of the elastic + * pool containing this database. + * @property {string} [sourceDatabaseId] The resource identifier of the source * database associated with create operation of this database. - * @member {string} [status] The status of the database. Possible values + * @property {string} [status] The status of the database. Possible values * include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', * 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', * 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', * 'Resuming', 'Scaling' - * @member {uuid} [databaseId] The ID of the database. - * @member {date} [creationDate] The creation date of the database (ISO8601 + * @property {uuid} [databaseId] The ID of the database. + * @property {date} [creationDate] The creation date of the database (ISO8601 * format). - * @member {string} [currentServiceObjectiveName] The current service level + * @property {string} [currentServiceObjectiveName] The current service level * objective name of the database. - * @member {string} [requestedServiceObjectiveName] The requested service level - * objective name of the database. - * @member {string} [defaultSecondaryLocation] The default secondary region for - * this database. - * @member {string} [failoverGroupId] Failover Group resource identifier that + * @property {string} [requestedServiceObjectiveName] The requested service + * level objective name of the database. + * @property {string} [defaultSecondaryLocation] The default secondary region + * for this database. + * @property {string} [failoverGroupId] Failover Group resource identifier that * this database belongs to. - * @member {date} [restorePointInTime] Specifies the point in time (ISO8601 + * @property {date} [restorePointInTime] Specifies the point in time (ISO8601 * format) of the source database that will be restored to create the new * database. - * @member {date} [sourceDatabaseDeletionDate] Specifies the time that the + * @property {date} [sourceDatabaseDeletionDate] Specifies the time that the * database was deleted. - * @member {string} [recoveryServicesRecoveryPointId] The resource identifier + * @property {string} [recoveryServicesRecoveryPointId] The resource identifier * of the recovery point associated with create operation of this database. - * @member {string} [longTermRetentionBackupResourceId] The resource identifier - * of the long term retention backup associated with create operation of this - * database. - * @member {string} [recoverableDatabaseId] The resource identifier of the + * @property {string} [longTermRetentionBackupResourceId] The resource + * identifier of the long term retention backup associated with create + * operation of this database. + * @property {string} [recoverableDatabaseId] The resource identifier of the * recoverable database associated with create operation of this database. - * @member {string} [restorableDroppedDatabaseId] The resource identifier of + * @property {string} [restorableDroppedDatabaseId] The resource identifier of * the restorable dropped database associated with create operation of this * database. - * @member {string} [catalogCollation] Collation of the metadata catalog. + * @property {string} [catalogCollation] Collation of the metadata catalog. * Possible values include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' - * @member {boolean} [zoneRedundant] Whether or not this database is zone + * @property {boolean} [zoneRedundant] Whether or not this database is zone * redundant, which means the replicas of this database will be spread across * multiple availability zones. - * @member {string} [licenseType] The license type to apply for this database. - * Possible values include: 'LicenseIncluded', 'BasePrice' - * @member {number} [maxLogSizeBytes] The max log size for this database. - * @member {date} [earliestRestoreDate] This records the earliest start date + * @property {string} [licenseType] The license type to apply for this + * database. Possible values include: 'LicenseIncluded', 'BasePrice' + * @property {number} [maxLogSizeBytes] The max log size for this database. + * @property {date} [earliestRestoreDate] This records the earliest start date * and time that restore is available for this database (ISO8601 format). - * @member {string} [readScale] The state of read-only routing. If enabled, + * @property {string} [readScale] The state of read-only routing. If enabled, * connections that have application intent set to readonly in their connection * string may be routed to a readonly secondary replica in the same region. * Possible values include: 'Enabled', 'Disabled' - * @member {object} [currentSku] The name and tier of the SKU. - * @member {string} [currentSku.name] The name of the SKU. Ex - P3. It is + * @property {object} [currentSku] The name and tier of the SKU. + * @property {string} [currentSku.name] The name of the SKU. Ex - P3. It is * typically a letter+number code - * @member {string} [currentSku.tier] This field is required to be implemented - * by the Resource Provider if the service has more than one tier, but is not - * required on a PUT. - * @member {string} [currentSku.size] The SKU size. When the name field is the - * combination of tier and some other value, this would be the standalone code. - * @member {string} [currentSku.family] If the service has different + * @property {string} [currentSku.tier] This field is required to be + * implemented by the Resource Provider if the service has more than one tier, + * but is not required on a PUT. + * @property {string} [currentSku.size] The SKU size. When the name field is + * the combination of tier and some other value, this would be the standalone + * code. + * @property {string} [currentSku.family] If the service has different * generations of hardware, for the same SKU, then that can be captured here. - * @member {number} [currentSku.capacity] If the SKU supports scale out/in then - * the capacity integer should be included. If scale out/in is not possible for - * the resource this may be omitted. + * @property {number} [currentSku.capacity] If the SKU supports scale out/in + * then the capacity integer should be included. If scale out/in is not + * possible for the resource this may be omitted. */ export interface Database extends TrackedResource { sku?: Sku; @@ -3781,20 +3835,20 @@ export interface Database extends TrackedResource { * @constructor * A database resource. * - * @member {object} [sku] The name and tier of the SKU. - * @member {string} [sku.name] The name of the SKU. Ex - P3. It is typically a - * letter+number code - * @member {string} [sku.tier] This field is required to be implemented by the - * Resource Provider if the service has more than one tier, but is not required - * on a PUT. - * @member {string} [sku.size] The SKU size. When the name field is the + * @property {object} [sku] The name and tier of the SKU. + * @property {string} [sku.name] The name of the SKU. Ex - P3. It is typically + * a letter+number code + * @property {string} [sku.tier] This field is required to be implemented by + * the Resource Provider if the service has more than one tier, but is not + * required on a PUT. + * @property {string} [sku.size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone code. - * @member {string} [sku.family] If the service has different generations of + * @property {string} [sku.family] If the service has different generations of * hardware, for the same SKU, then that can be captured here. - * @member {number} [sku.capacity] If the SKU supports scale out/in then the + * @property {number} [sku.capacity] If the SKU supports scale out/in then the * capacity integer should be included. If scale out/in is not possible for the * resource this may be omitted. - * @member {string} [createMode] Specifies the mode of database creation. + * @property {string} [createMode] Specifies the mode of database creation. * * Default: regular database creation. * @@ -3829,75 +3883,76 @@ export interface Database extends TrackedResource { * 'Secondary', 'PointInTimeRestore', 'Restore', 'Recovery', * 'RestoreExternalBackup', 'RestoreExternalBackupSecondary', * 'RestoreLongTermRetentionBackup', 'OnlineSecondary' - * @member {string} [collation] The collation of the database. - * @member {number} [maxSizeBytes] The max size of the database expressed in + * @property {string} [collation] The collation of the database. + * @property {number} [maxSizeBytes] The max size of the database expressed in * bytes. - * @member {string} [sampleName] The name of the sample schema to apply when + * @property {string} [sampleName] The name of the sample schema to apply when * creating this database. Possible values include: 'AdventureWorksLT', * 'WideWorldImportersStd', 'WideWorldImportersFull' - * @member {string} [elasticPoolId] The resource identifier of the elastic pool - * containing this database. - * @member {string} [sourceDatabaseId] The resource identifier of the source + * @property {string} [elasticPoolId] The resource identifier of the elastic + * pool containing this database. + * @property {string} [sourceDatabaseId] The resource identifier of the source * database associated with create operation of this database. - * @member {string} [status] The status of the database. Possible values + * @property {string} [status] The status of the database. Possible values * include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', * 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', * 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', * 'Resuming', 'Scaling' - * @member {uuid} [databaseId] The ID of the database. - * @member {date} [creationDate] The creation date of the database (ISO8601 + * @property {uuid} [databaseId] The ID of the database. + * @property {date} [creationDate] The creation date of the database (ISO8601 * format). - * @member {string} [currentServiceObjectiveName] The current service level - * objective name of the database. - * @member {string} [requestedServiceObjectiveName] The requested service level + * @property {string} [currentServiceObjectiveName] The current service level * objective name of the database. - * @member {string} [defaultSecondaryLocation] The default secondary region for - * this database. - * @member {string} [failoverGroupId] Failover Group resource identifier that + * @property {string} [requestedServiceObjectiveName] The requested service + * level objective name of the database. + * @property {string} [defaultSecondaryLocation] The default secondary region + * for this database. + * @property {string} [failoverGroupId] Failover Group resource identifier that * this database belongs to. - * @member {date} [restorePointInTime] Specifies the point in time (ISO8601 + * @property {date} [restorePointInTime] Specifies the point in time (ISO8601 * format) of the source database that will be restored to create the new * database. - * @member {date} [sourceDatabaseDeletionDate] Specifies the time that the + * @property {date} [sourceDatabaseDeletionDate] Specifies the time that the * database was deleted. - * @member {string} [recoveryServicesRecoveryPointId] The resource identifier + * @property {string} [recoveryServicesRecoveryPointId] The resource identifier * of the recovery point associated with create operation of this database. - * @member {string} [longTermRetentionBackupResourceId] The resource identifier - * of the long term retention backup associated with create operation of this - * database. - * @member {string} [recoverableDatabaseId] The resource identifier of the + * @property {string} [longTermRetentionBackupResourceId] The resource + * identifier of the long term retention backup associated with create + * operation of this database. + * @property {string} [recoverableDatabaseId] The resource identifier of the * recoverable database associated with create operation of this database. - * @member {string} [restorableDroppedDatabaseId] The resource identifier of + * @property {string} [restorableDroppedDatabaseId] The resource identifier of * the restorable dropped database associated with create operation of this * database. - * @member {string} [catalogCollation] Collation of the metadata catalog. + * @property {string} [catalogCollation] Collation of the metadata catalog. * Possible values include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' - * @member {boolean} [zoneRedundant] Whether or not this database is zone + * @property {boolean} [zoneRedundant] Whether or not this database is zone * redundant, which means the replicas of this database will be spread across * multiple availability zones. - * @member {string} [licenseType] The license type to apply for this database. - * Possible values include: 'LicenseIncluded', 'BasePrice' - * @member {number} [maxLogSizeBytes] The max log size for this database. - * @member {date} [earliestRestoreDate] This records the earliest start date + * @property {string} [licenseType] The license type to apply for this + * database. Possible values include: 'LicenseIncluded', 'BasePrice' + * @property {number} [maxLogSizeBytes] The max log size for this database. + * @property {date} [earliestRestoreDate] This records the earliest start date * and time that restore is available for this database (ISO8601 format). - * @member {string} [readScale] The state of read-only routing. If enabled, + * @property {string} [readScale] The state of read-only routing. If enabled, * connections that have application intent set to readonly in their connection * string may be routed to a readonly secondary replica in the same region. * Possible values include: 'Enabled', 'Disabled' - * @member {object} [currentSku] The name and tier of the SKU. - * @member {string} [currentSku.name] The name of the SKU. Ex - P3. It is + * @property {object} [currentSku] The name and tier of the SKU. + * @property {string} [currentSku.name] The name of the SKU. Ex - P3. It is * typically a letter+number code - * @member {string} [currentSku.tier] This field is required to be implemented - * by the Resource Provider if the service has more than one tier, but is not - * required on a PUT. - * @member {string} [currentSku.size] The SKU size. When the name field is the - * combination of tier and some other value, this would be the standalone code. - * @member {string} [currentSku.family] If the service has different + * @property {string} [currentSku.tier] This field is required to be + * implemented by the Resource Provider if the service has more than one tier, + * but is not required on a PUT. + * @property {string} [currentSku.size] The SKU size. When the name field is + * the combination of tier and some other value, this would be the standalone + * code. + * @property {string} [currentSku.family] If the service has different * generations of hardware, for the same SKU, then that can be captured here. - * @member {number} [currentSku.capacity] If the SKU supports scale out/in then - * the capacity integer should be included. If scale out/in is not possible for - * the resource this may be omitted. - * @member {object} [tags] Resource tags. + * @property {number} [currentSku.capacity] If the SKU supports scale out/in + * then the capacity integer should be included. If scale out/in is not + * possible for the resource this may be omitted. + * @property {object} [tags] Resource tags. */ export interface DatabaseUpdate { sku?: Sku; @@ -3936,7 +3991,7 @@ export interface DatabaseUpdate { * @constructor * Contains the information necessary to perform a resource move (rename). * - * @member {string} id The target ID for the resource + * @property {string} id The target ID for the resource */ export interface ResourceMoveDefinition { id: string; @@ -3948,9 +4003,9 @@ export interface ResourceMoveDefinition { * @constructor * Per database settings of an elastic pool. * - * @member {number} [minCapacity] The minimum capacity all databases are + * @property {number} [minCapacity] The minimum capacity all databases are * guaranteed. - * @member {number} [maxCapacity] The maximum capacity any one database can + * @property {number} [maxCapacity] The maximum capacity any one database can * consume. */ export interface ElasticPoolPerDatabaseSettings { @@ -3964,37 +4019,37 @@ export interface ElasticPoolPerDatabaseSettings { * @constructor * An elastic pool. * - * @member {object} [sku] - * @member {string} [sku.name] The name of the SKU. Ex - P3. It is typically a - * letter+number code - * @member {string} [sku.tier] This field is required to be implemented by the - * Resource Provider if the service has more than one tier, but is not required - * on a PUT. - * @member {string} [sku.size] The SKU size. When the name field is the + * @property {object} [sku] + * @property {string} [sku.name] The name of the SKU. Ex - P3. It is typically + * a letter+number code + * @property {string} [sku.tier] This field is required to be implemented by + * the Resource Provider if the service has more than one tier, but is not + * required on a PUT. + * @property {string} [sku.size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone code. - * @member {string} [sku.family] If the service has different generations of + * @property {string} [sku.family] If the service has different generations of * hardware, for the same SKU, then that can be captured here. - * @member {number} [sku.capacity] If the SKU supports scale out/in then the + * @property {number} [sku.capacity] If the SKU supports scale out/in then the * capacity integer should be included. If scale out/in is not possible for the * resource this may be omitted. - * @member {string} [kind] Kind of elastic pool. This is metadata used for the - * Azure portal experience. - * @member {string} [state] The state of the elastic pool. Possible values + * @property {string} [kind] Kind of elastic pool. This is metadata used for + * the Azure portal experience. + * @property {string} [state] The state of the elastic pool. Possible values * include: 'Creating', 'Ready', 'Disabled' - * @member {date} [creationDate] The creation date of the elastic pool (ISO8601 - * format). - * @member {number} [maxSizeBytes] The storage limit for the database elastic + * @property {date} [creationDate] The creation date of the elastic pool + * (ISO8601 format). + * @property {number} [maxSizeBytes] The storage limit for the database elastic * pool in bytes. - * @member {object} [perDatabaseSettings] The per database settings for the + * @property {object} [perDatabaseSettings] The per database settings for the * elastic pool. - * @member {number} [perDatabaseSettings.minCapacity] The minimum capacity all - * databases are guaranteed. - * @member {number} [perDatabaseSettings.maxCapacity] The maximum capacity any - * one database can consume. - * @member {boolean} [zoneRedundant] Whether or not this elastic pool is zone + * @property {number} [perDatabaseSettings.minCapacity] The minimum capacity + * all databases are guaranteed. + * @property {number} [perDatabaseSettings.maxCapacity] The maximum capacity + * any one database can consume. + * @property {boolean} [zoneRedundant] Whether or not this elastic pool is zone * redundant, which means the replicas of this elastic pool will be spread * across multiple availability zones. - * @member {string} [licenseType] The license type to apply for this elastic + * @property {string} [licenseType] The license type to apply for this elastic * pool. Possible values include: 'LicenseIncluded', 'BasePrice' */ export interface ElasticPool extends TrackedResource { @@ -4014,33 +4069,33 @@ export interface ElasticPool extends TrackedResource { * @constructor * An elastic pool update. * - * @member {object} [sku] - * @member {string} [sku.name] The name of the SKU. Ex - P3. It is typically a - * letter+number code - * @member {string} [sku.tier] This field is required to be implemented by the - * Resource Provider if the service has more than one tier, but is not required - * on a PUT. - * @member {string} [sku.size] The SKU size. When the name field is the + * @property {object} [sku] + * @property {string} [sku.name] The name of the SKU. Ex - P3. It is typically + * a letter+number code + * @property {string} [sku.tier] This field is required to be implemented by + * the Resource Provider if the service has more than one tier, but is not + * required on a PUT. + * @property {string} [sku.size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone code. - * @member {string} [sku.family] If the service has different generations of + * @property {string} [sku.family] If the service has different generations of * hardware, for the same SKU, then that can be captured here. - * @member {number} [sku.capacity] If the SKU supports scale out/in then the + * @property {number} [sku.capacity] If the SKU supports scale out/in then the * capacity integer should be included. If scale out/in is not possible for the * resource this may be omitted. - * @member {number} [maxSizeBytes] The storage limit for the database elastic + * @property {number} [maxSizeBytes] The storage limit for the database elastic * pool in bytes. - * @member {object} [perDatabaseSettings] The per database settings for the + * @property {object} [perDatabaseSettings] The per database settings for the * elastic pool. - * @member {number} [perDatabaseSettings.minCapacity] The minimum capacity all - * databases are guaranteed. - * @member {number} [perDatabaseSettings.maxCapacity] The maximum capacity any - * one database can consume. - * @member {boolean} [zoneRedundant] Whether or not this elastic pool is zone + * @property {number} [perDatabaseSettings.minCapacity] The minimum capacity + * all databases are guaranteed. + * @property {number} [perDatabaseSettings.maxCapacity] The maximum capacity + * any one database can consume. + * @property {boolean} [zoneRedundant] Whether or not this elastic pool is zone * redundant, which means the replicas of this elastic pool will be spread * across multiple availability zones. - * @member {string} [licenseType] The license type to apply for this elastic + * @property {string} [licenseType] The license type to apply for this elastic * pool. Possible values include: 'LicenseIncluded', 'BasePrice' - * @member {object} [tags] Resource tags. + * @property {object} [tags] Resource tags. */ export interface ElasticPoolUpdate { sku?: Sku; @@ -4057,8 +4112,8 @@ export interface ElasticPoolUpdate { * @constructor * Properties of a vulnerability assessment scan error. * - * @member {string} [code] The error code. - * @member {string} [message] The error message. + * @property {string} [code] The error code. + * @property {string} [message] The error message. */ export interface VulnerabilityAssessmentScanError { readonly code?: string; @@ -4071,17 +4126,17 @@ export interface VulnerabilityAssessmentScanError { * @constructor * A vulnerability assessment scan record. * - * @member {string} [scanId] The scan ID. - * @member {string} [triggerType] The scan trigger type. Possible values + * @property {string} [scanId] The scan ID. + * @property {string} [triggerType] The scan trigger type. Possible values * include: 'OnDemand', 'Recurring' - * @member {string} [state] The scan status. Possible values include: 'Passed', - * 'Failed', 'FailedToRun', 'InProgress' - * @member {date} [startTime] The scan start time (UTC). - * @member {date} [endTime] The scan end time (UTC). - * @member {array} [errors] The scan errors. - * @member {string} [storageContainerPath] The scan results storage container + * @property {string} [state] The scan status. Possible values include: + * 'Passed', 'Failed', 'FailedToRun', 'InProgress' + * @property {date} [startTime] The scan start time (UTC). + * @property {date} [endTime] The scan end time (UTC). + * @property {array} [errors] The scan errors. + * @property {string} [storageContainerPath] The scan results storage container * path. - * @member {number} [numberOfFailedSecurityChecks] The number of failed + * @property {number} [numberOfFailedSecurityChecks] The number of failed * security checks. */ export interface VulnerabilityAssessmentScanRecord extends ProxyResource { @@ -4101,7 +4156,7 @@ export interface VulnerabilityAssessmentScanRecord extends ProxyResource { * @constructor * A database Vulnerability Assessment scan export resource. * - * @member {string} [exportedReportLocation] Location of the exported report + * @property {string} [exportedReportLocation] Location of the exported report * (e.g. * https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). */ @@ -4115,11 +4170,11 @@ export interface DatabaseVulnerabilityAssessmentScansExport extends ProxyResourc * @constructor * Read-write endpoint of the failover group instance. * - * @member {string} failoverPolicy Failover policy of the read-write endpoint + * @property {string} failoverPolicy Failover policy of the read-write endpoint * for the failover group. If failoverPolicy is Automatic then * failoverWithDataLossGracePeriodMinutes is required. Possible values include: * 'Manual', 'Automatic' - * @member {number} [failoverWithDataLossGracePeriodMinutes] Grace period + * @property {number} [failoverWithDataLossGracePeriodMinutes] Grace period * before failover with data loss is attempted for the read-write endpoint. If * failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is * required. @@ -4135,8 +4190,9 @@ export interface InstanceFailoverGroupReadWriteEndpoint { * @constructor * Read-only endpoint of the failover group instance. * - * @member {string} [failoverPolicy] Failover policy of the read-only endpoint - * for the failover group. Possible values include: 'Disabled', 'Enabled' + * @property {string} [failoverPolicy] Failover policy of the read-only + * endpoint for the failover group. Possible values include: 'Disabled', + * 'Enabled' */ export interface InstanceFailoverGroupReadOnlyEndpoint { failoverPolicy?: string; @@ -4148,8 +4204,8 @@ export interface InstanceFailoverGroupReadOnlyEndpoint { * @constructor * Partner region information for the failover group. * - * @member {string} [location] Geo location of the partner managed instances. - * @member {string} [replicationRole] Replication role of the partner managed + * @property {string} [location] Geo location of the partner managed instances. + * @property {string} [replicationRole] Replication role of the partner managed * instances. Possible values include: 'Primary', 'Secondary' */ export interface PartnerRegionInfo { @@ -4163,9 +4219,9 @@ export interface PartnerRegionInfo { * @constructor * Pairs of Managed Instances in the failover group. * - * @member {string} [primaryManagedInstanceId] Id of Primary Managed Instance + * @property {string} [primaryManagedInstanceId] Id of Primary Managed Instance * in pair. - * @member {string} [partnerManagedInstanceId] Id of Partner Managed Instance + * @property {string} [partnerManagedInstanceId] Id of Partner Managed Instance * in pair. */ export interface ManagedInstancePairInfo { @@ -4179,28 +4235,29 @@ export interface ManagedInstancePairInfo { * @constructor * An instance failover group. * - * @member {object} readWriteEndpoint Read-write endpoint of the failover group - * instance. - * @member {string} [readWriteEndpoint.failoverPolicy] Failover policy of the + * @property {object} readWriteEndpoint Read-write endpoint of the failover + * group instance. + * @property {string} [readWriteEndpoint.failoverPolicy] Failover policy of the * read-write endpoint for the failover group. If failoverPolicy is Automatic * then failoverWithDataLossGracePeriodMinutes is required. Possible values * include: 'Manual', 'Automatic' - * @member {number} [readWriteEndpoint.failoverWithDataLossGracePeriodMinutes] - * Grace period before failover with data loss is attempted for the read-write - * endpoint. If failoverPolicy is Automatic then - * failoverWithDataLossGracePeriodMinutes is required. - * @member {object} [readOnlyEndpoint] Read-only endpoint of the failover group - * instance. - * @member {string} [readOnlyEndpoint.failoverPolicy] Failover policy of the + * @property {number} + * [readWriteEndpoint.failoverWithDataLossGracePeriodMinutes] Grace period + * before failover with data loss is attempted for the read-write endpoint. If + * failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is + * required. + * @property {object} [readOnlyEndpoint] Read-only endpoint of the failover + * group instance. + * @property {string} [readOnlyEndpoint.failoverPolicy] Failover policy of the * read-only endpoint for the failover group. Possible values include: * 'Disabled', 'Enabled' - * @member {string} [replicationRole] Local replication role of the failover + * @property {string} [replicationRole] Local replication role of the failover * group instance. Possible values include: 'Primary', 'Secondary' - * @member {string} [replicationState] Replication state of the failover group - * instance. - * @member {array} partnerRegions Partner region information for the failover + * @property {string} [replicationState] Replication state of the failover + * group instance. + * @property {array} partnerRegions Partner region information for the failover * group. - * @member {array} managedInstancePairs List of managed instance pairs in the + * @property {array} managedInstancePairs List of managed instance pairs in the * failover group. */ export interface InstanceFailoverGroup extends ProxyResource { @@ -4218,7 +4275,7 @@ export interface InstanceFailoverGroup extends ProxyResource { * @constructor * A short term retention policy. * - * @member {number} [retentionDays] The backup retention period in days. This + * @property {number} [retentionDays] The backup retention period in days. This * is how many days Point-in-Time Restore will be supported. */ export interface BackupShortTermRetentionPolicy extends ProxyResource { @@ -4231,8 +4288,8 @@ export interface BackupShortTermRetentionPolicy extends ProxyResource { * @constructor * A TDE certificate that can be uploaded into a server. * - * @member {string} privateBlob The base64 encoded certificate private blob. - * @member {string} [certPassword] The certificate password. + * @property {string} privateBlob The base64 encoded certificate private blob. + * @property {string} [certPassword] The certificate password. */ export interface TdeCertificate extends ProxyResource { privateBlob: string; @@ -4245,14 +4302,14 @@ export interface TdeCertificate extends ProxyResource { * @constructor * A managed instance key. * - * @member {string} [kind] Kind of encryption protector. This is metadata used - * for the Azure portal experience. - * @member {string} serverKeyType The key type like 'ServiceManaged', + * @property {string} [kind] Kind of encryption protector. This is metadata + * used for the Azure portal experience. + * @property {string} serverKeyType The key type like 'ServiceManaged', * 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault' - * @member {string} [uri] The URI of the key. If the ServerKeyType is + * @property {string} [uri] The URI of the key. If the ServerKeyType is * AzureKeyVault, then the URI is required. - * @member {string} [thumbprint] Thumbprint of the key. - * @member {date} [creationDate] The key creation date. + * @property {string} [thumbprint] Thumbprint of the key. + * @property {date} [creationDate] The key creation date. */ export interface ManagedInstanceKey extends ProxyResource { readonly kind?: string; @@ -4268,14 +4325,14 @@ export interface ManagedInstanceKey extends ProxyResource { * @constructor * The managed instance encryption protector. * - * @member {string} [kind] Kind of encryption protector. This is metadata used - * for the Azure portal experience. - * @member {string} [serverKeyName] The name of the managed instance key. - * @member {string} serverKeyType The encryption protector type like + * @property {string} [kind] Kind of encryption protector. This is metadata + * used for the Azure portal experience. + * @property {string} [serverKeyName] The name of the managed instance key. + * @property {string} serverKeyType The encryption protector type like * 'ServiceManaged', 'AzureKeyVault'. Possible values include: * 'ServiceManaged', 'AzureKeyVault' - * @member {string} [uri] The URI of the server key. - * @member {string} [thumbprint] Thumbprint of the server key. + * @property {string} [uri] The URI of the server key. + * @property {string} [thumbprint] Thumbprint of the server key. */ export interface ManagedInstanceEncryptionProtector extends ProxyResource { readonly kind?: string; @@ -4285,6 +4342,70 @@ export interface ManagedInstanceEncryptionProtector extends ProxyResource { readonly thumbprint?: string; } +/** + * @class + * Initializes a new instance of the ManagedInstanceVulnerabilityAssessment class. + * @constructor + * A managed instance vulnerability assessment. + * + * @property {string} storageContainerPath A blob storage container path to + * hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). + * @property {string} [storageContainerSasKey] A shared access signature (SAS + * Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. + * @property {string} [storageAccountAccessKey] Specifies the identifier key of + * the storage account for vulnerability assessment scan results. If + * 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is + * required. + * @property {object} [recurringScans] The recurring scans settings + * @property {boolean} [recurringScans.isEnabled] Recurring scans state. + * @property {boolean} [recurringScans.emailSubscriptionAdmins] Specifies that + * the schedule scan notification will be is sent to the subscription + * administrators. + * @property {array} [recurringScans.emails] Specifies an array of e-mail + * addresses to which the scan notification is sent. + */ +export interface ManagedInstanceVulnerabilityAssessment extends ProxyResource { + storageContainerPath: string; + storageContainerSasKey?: string; + storageAccountAccessKey?: string; + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; +} + +/** + * @class + * Initializes a new instance of the ServerVulnerabilityAssessment class. + * @constructor + * A server vulnerability assessment. + * + * @property {string} storageContainerPath A blob storage container path to + * hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). + * @property {string} [storageContainerSasKey] A shared access signature (SAS + * Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. + * @property {string} [storageAccountAccessKey] Specifies the identifier key of + * the storage account for vulnerability assessment scan results. If + * 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is + * required. + * @property {object} [recurringScans] The recurring scans settings + * @property {boolean} [recurringScans.isEnabled] Recurring scans state. + * @property {boolean} [recurringScans.emailSubscriptionAdmins] Specifies that + * the schedule scan notification will be is sent to the subscription + * administrators. + * @property {array} [recurringScans.emails] Specifies an array of e-mail + * addresses to which the scan notification is sent. + */ +export interface ServerVulnerabilityAssessment extends ProxyResource { + storageContainerPath: string; + storageContainerSasKey?: string; + storageAccountAccessKey?: string; + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; +} + /** * @class @@ -4312,7 +4433,7 @@ export interface RestorableDroppedDatabaseListResult extends Array { readonly nextLink?: string; @@ -4374,7 +4495,7 @@ export interface MetricDefinitionListResult extends Array { * @constructor * A list of databases. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface DatabaseListResult extends Array { readonly nextLink?: string; @@ -4386,7 +4507,7 @@ export interface DatabaseListResult extends Array { * @constructor * The result of an elastic pool list request. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface ElasticPoolListResult extends Array { readonly nextLink?: string; @@ -4519,7 +4640,7 @@ export interface DatabaseUsageListResult extends Array { * @constructor * A list of server encryption protectors. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface EncryptionProtectorListResult extends Array { readonly nextLink?: string; @@ -4531,7 +4652,7 @@ export interface EncryptionProtectorListResult extends Array { readonly nextLink?: string; @@ -4543,7 +4664,7 @@ export interface FailoverGroupListResult extends Array { * @constructor * A list of managed instances. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface ManagedInstanceListResult extends Array { readonly nextLink?: string; @@ -4555,7 +4676,7 @@ export interface ManagedInstanceListResult extends Array { * @constructor * Result of the request to list SQL operations. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface OperationListResult extends Array { readonly nextLink?: string; @@ -4567,7 +4688,7 @@ export interface OperationListResult extends Array { * @constructor * A list of server keys. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface ServerKeyListResult extends Array { readonly nextLink?: string; @@ -4579,7 +4700,7 @@ export interface ServerKeyListResult extends Array { * @constructor * A list of sync agents. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface SyncAgentListResult extends Array { readonly nextLink?: string; @@ -4591,7 +4712,7 @@ export interface SyncAgentListResult extends Array { * @constructor * A list of sync agent linked databases. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface SyncAgentLinkedDatabaseListResult extends Array { readonly nextLink?: string; @@ -4603,7 +4724,7 @@ export interface SyncAgentLinkedDatabaseListResult extends Array { readonly nextLink?: string; @@ -4615,7 +4736,7 @@ export interface SyncDatabaseIdListResult extends Array { readonly nextLink?: string; @@ -4627,7 +4748,7 @@ export interface SyncFullSchemaPropertiesListResult extends Array { readonly nextLink?: string; @@ -4639,7 +4760,7 @@ export interface SyncGroupLogListResult extends Array { * @constructor * A list of sync groups. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface SyncGroupListResult extends Array { readonly nextLink?: string; @@ -4651,7 +4772,7 @@ export interface SyncGroupListResult extends Array { * @constructor * A list of Azure SQL Database sync members. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface SyncMemberListResult extends Array { readonly nextLink?: string; @@ -4663,7 +4784,7 @@ export interface SyncMemberListResult extends Array { * @constructor * A list of subscription usage metrics in a location. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface SubscriptionUsageListResult extends Array { readonly nextLink?: string; @@ -4675,7 +4796,7 @@ export interface SubscriptionUsageListResult extends Array { * @constructor * A list of virtual network rules. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface VirtualNetworkRuleListResult extends Array { readonly nextLink?: string; @@ -4687,7 +4808,7 @@ export interface VirtualNetworkRuleListResult extends Array * @constructor * A list of the database's vulnerability assessments. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface DatabaseVulnerabilityAssessmentListResult extends Array { readonly nextLink?: string; @@ -4699,7 +4820,7 @@ export interface DatabaseVulnerabilityAssessmentListResult extends Array { readonly nextLink?: string; @@ -4711,7 +4832,7 @@ export interface JobAgentListResult extends Array { * @constructor * A list of job credentials. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface JobCredentialListResult extends Array { readonly nextLink?: string; @@ -4723,7 +4844,7 @@ export interface JobCredentialListResult extends Array { * @constructor * A list of job executions. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface JobExecutionListResult extends Array { readonly nextLink?: string; @@ -4735,7 +4856,7 @@ export interface JobExecutionListResult extends Array { * @constructor * A list of jobs. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface JobListResult extends Array { readonly nextLink?: string; @@ -4747,7 +4868,7 @@ export interface JobListResult extends Array { * @constructor * A list of job steps. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface JobStepListResult extends Array { readonly nextLink?: string; @@ -4759,7 +4880,7 @@ export interface JobStepListResult extends Array { * @constructor * A list of target groups. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface JobTargetGroupListResult extends Array { readonly nextLink?: string; @@ -4771,7 +4892,7 @@ export interface JobTargetGroupListResult extends Array { * @constructor * A list of job versions. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface JobVersionListResult extends Array { readonly nextLink?: string; @@ -4783,19 +4904,31 @@ export interface JobVersionListResult extends Array { * @constructor * A list of long term retention bacukps. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface LongTermRetentionBackupListResult extends Array { readonly nextLink?: string; } +/** + * @class + * Initializes a new instance of the ManagedBackupShortTermRetentionPolicyListResult class. + * @constructor + * A list of short term retention policies. + * + * @property {string} [nextLink] Link to retrieve next page of results. + */ +export interface ManagedBackupShortTermRetentionPolicyListResult extends Array { + readonly nextLink?: string; +} + /** * @class * Initializes a new instance of the ManagedDatabaseListResult class. * @constructor * A list of managed databases. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface ManagedDatabaseListResult extends Array { readonly nextLink?: string; @@ -4807,7 +4940,7 @@ export interface ManagedDatabaseListResult extends Array { * @constructor * A list of server DNS aliases. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface ServerDnsAliasListResult extends Array { readonly nextLink?: string; @@ -4819,7 +4952,7 @@ export interface ServerDnsAliasListResult extends Array { * @constructor * A list of long term retention bacukps. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface RestorePointListResult extends Array { readonly nextLink?: string; @@ -4831,7 +4964,7 @@ export interface RestorePointListResult extends Array { * @constructor * The response to a list database operations request * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface DatabaseOperationListResult extends Array { readonly nextLink?: string; @@ -4843,7 +4976,7 @@ export interface DatabaseOperationListResult extends Array { * @constructor * The response to a list elastic pool operations request * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface ElasticPoolOperationListResult extends Array { readonly nextLink?: string; @@ -4855,7 +4988,7 @@ export interface ElasticPoolOperationListResult extends Array { readonly nextLink?: string; @@ -4867,7 +5000,7 @@ export interface VulnerabilityAssessmentScanRecordListResult extends Array { readonly nextLink?: string; @@ -4879,7 +5012,7 @@ export interface InstanceFailoverGroupListResult extends Array { readonly nextLink?: string; @@ -4891,7 +5024,7 @@ export interface BackupShortTermRetentionPolicyListResult extends Array { readonly nextLink?: string; @@ -4903,8 +5036,32 @@ export interface ManagedInstanceKeyListResult extends Array * @constructor * A list of managed instance encryption protectors. * - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ export interface ManagedInstanceEncryptionProtectorListResult extends Array { readonly nextLink?: string; } + +/** + * @class + * Initializes a new instance of the ManagedInstanceVulnerabilityAssessmentListResult class. + * @constructor + * A list of the ManagedInstance's vulnerability assessments. + * + * @property {string} [nextLink] Link to retrieve next page of results. + */ +export interface ManagedInstanceVulnerabilityAssessmentListResult extends Array { + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the ServerVulnerabilityAssessmentListResult class. + * @constructor + * A list of the server's vulnerability assessments. + * + * @property {string} [nextLink] Link to retrieve next page of results. + */ +export interface ServerVulnerabilityAssessmentListResult extends Array { + readonly nextLink?: string; +} diff --git a/lib/services/sqlManagement2/lib/models/index.js b/lib/services/sqlManagement2/lib/models/index.js index ab078409ef..ff2d4f9ba3 100644 --- a/lib/services/sqlManagement2/lib/models/index.js +++ b/lib/services/sqlManagement2/lib/models/index.js @@ -112,6 +112,7 @@ exports.JobTargetGroup = require('./jobTargetGroup'); exports.JobVersion = require('./jobVersion'); exports.LongTermRetentionBackup = require('./longTermRetentionBackup'); exports.BackupLongTermRetentionPolicy = require('./backupLongTermRetentionPolicy'); +exports.ManagedBackupShortTermRetentionPolicy = require('./managedBackupShortTermRetentionPolicy'); exports.CompleteDatabaseRestoreDefinition = require('./completeDatabaseRestoreDefinition'); exports.ManagedDatabase = require('./managedDatabase'); exports.ManagedDatabaseUpdate = require('./managedDatabaseUpdate'); @@ -159,6 +160,8 @@ exports.BackupShortTermRetentionPolicy = require('./backupShortTermRetentionPoli exports.TdeCertificate = require('./tdeCertificate'); exports.ManagedInstanceKey = require('./managedInstanceKey'); exports.ManagedInstanceEncryptionProtector = require('./managedInstanceEncryptionProtector'); +exports.ManagedInstanceVulnerabilityAssessment = require('./managedInstanceVulnerabilityAssessment'); +exports.ServerVulnerabilityAssessment = require('./serverVulnerabilityAssessment'); exports.RecoverableDatabaseListResult = require('./recoverableDatabaseListResult'); exports.RestorableDroppedDatabaseListResult = require('./restorableDroppedDatabaseListResult'); exports.ServerListResult = require('./serverListResult'); @@ -204,6 +207,7 @@ exports.JobStepListResult = require('./jobStepListResult'); exports.JobTargetGroupListResult = require('./jobTargetGroupListResult'); exports.JobVersionListResult = require('./jobVersionListResult'); exports.LongTermRetentionBackupListResult = require('./longTermRetentionBackupListResult'); +exports.ManagedBackupShortTermRetentionPolicyListResult = require('./managedBackupShortTermRetentionPolicyListResult'); exports.ManagedDatabaseListResult = require('./managedDatabaseListResult'); exports.ServerDnsAliasListResult = require('./serverDnsAliasListResult'); exports.RestorePointListResult = require('./restorePointListResult'); @@ -214,3 +218,5 @@ exports.InstanceFailoverGroupListResult = require('./instanceFailoverGroupListRe exports.BackupShortTermRetentionPolicyListResult = require('./backupShortTermRetentionPolicyListResult'); exports.ManagedInstanceKeyListResult = require('./managedInstanceKeyListResult'); exports.ManagedInstanceEncryptionProtectorListResult = require('./managedInstanceEncryptionProtectorListResult'); +exports.ManagedInstanceVulnerabilityAssessmentListResult = require('./managedInstanceVulnerabilityAssessmentListResult'); +exports.ServerVulnerabilityAssessmentListResult = require('./serverVulnerabilityAssessmentListResult'); diff --git a/lib/services/sqlManagement2/lib/models/instanceFailoverGroup.js b/lib/services/sqlManagement2/lib/models/instanceFailoverGroup.js index e9922cbba8..d8835147a0 100644 --- a/lib/services/sqlManagement2/lib/models/instanceFailoverGroup.js +++ b/lib/services/sqlManagement2/lib/models/instanceFailoverGroup.js @@ -20,30 +20,30 @@ const models = require('./index'); class InstanceFailoverGroup extends models['ProxyResource'] { /** * Create a InstanceFailoverGroup. - * @member {object} readWriteEndpoint Read-write endpoint of the failover + * @property {object} readWriteEndpoint Read-write endpoint of the failover * group instance. - * @member {string} [readWriteEndpoint.failoverPolicy] Failover policy of the - * read-write endpoint for the failover group. If failoverPolicy is Automatic - * then failoverWithDataLossGracePeriodMinutes is required. Possible values - * include: 'Manual', 'Automatic' - * @member {number} + * @property {string} [readWriteEndpoint.failoverPolicy] Failover policy of + * the read-write endpoint for the failover group. If failoverPolicy is + * Automatic then failoverWithDataLossGracePeriodMinutes is required. + * Possible values include: 'Manual', 'Automatic' + * @property {number} * [readWriteEndpoint.failoverWithDataLossGracePeriodMinutes] Grace period * before failover with data loss is attempted for the read-write endpoint. * If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes * is required. - * @member {object} [readOnlyEndpoint] Read-only endpoint of the failover + * @property {object} [readOnlyEndpoint] Read-only endpoint of the failover * group instance. - * @member {string} [readOnlyEndpoint.failoverPolicy] Failover policy of the - * read-only endpoint for the failover group. Possible values include: + * @property {string} [readOnlyEndpoint.failoverPolicy] Failover policy of + * the read-only endpoint for the failover group. Possible values include: * 'Disabled', 'Enabled' - * @member {string} [replicationRole] Local replication role of the failover - * group instance. Possible values include: 'Primary', 'Secondary' - * @member {string} [replicationState] Replication state of the failover + * @property {string} [replicationRole] Local replication role of the + * failover group instance. Possible values include: 'Primary', 'Secondary' + * @property {string} [replicationState] Replication state of the failover * group instance. - * @member {array} partnerRegions Partner region information for the failover - * group. - * @member {array} managedInstancePairs List of managed instance pairs in the + * @property {array} partnerRegions Partner region information for the * failover group. + * @property {array} managedInstancePairs List of managed instance pairs in + * the failover group. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/instanceFailoverGroupListResult.js b/lib/services/sqlManagement2/lib/models/instanceFailoverGroupListResult.js index 48f17c2c73..737475676c 100644 --- a/lib/services/sqlManagement2/lib/models/instanceFailoverGroupListResult.js +++ b/lib/services/sqlManagement2/lib/models/instanceFailoverGroupListResult.js @@ -16,7 +16,7 @@ class InstanceFailoverGroupListResult extends Array { /** * Create a InstanceFailoverGroupListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/instanceFailoverGroupReadOnlyEndpoint.js b/lib/services/sqlManagement2/lib/models/instanceFailoverGroupReadOnlyEndpoint.js index a1ddd1b8a8..f9c05327e1 100644 --- a/lib/services/sqlManagement2/lib/models/instanceFailoverGroupReadOnlyEndpoint.js +++ b/lib/services/sqlManagement2/lib/models/instanceFailoverGroupReadOnlyEndpoint.js @@ -17,7 +17,7 @@ class InstanceFailoverGroupReadOnlyEndpoint { /** * Create a InstanceFailoverGroupReadOnlyEndpoint. - * @member {string} [failoverPolicy] Failover policy of the read-only + * @property {string} [failoverPolicy] Failover policy of the read-only * endpoint for the failover group. Possible values include: 'Disabled', * 'Enabled' */ diff --git a/lib/services/sqlManagement2/lib/models/instanceFailoverGroupReadWriteEndpoint.js b/lib/services/sqlManagement2/lib/models/instanceFailoverGroupReadWriteEndpoint.js index 860c661d76..b47af7a4a7 100644 --- a/lib/services/sqlManagement2/lib/models/instanceFailoverGroupReadWriteEndpoint.js +++ b/lib/services/sqlManagement2/lib/models/instanceFailoverGroupReadWriteEndpoint.js @@ -17,11 +17,11 @@ class InstanceFailoverGroupReadWriteEndpoint { /** * Create a InstanceFailoverGroupReadWriteEndpoint. - * @member {string} failoverPolicy Failover policy of the read-write endpoint - * for the failover group. If failoverPolicy is Automatic then + * @property {string} failoverPolicy Failover policy of the read-write + * endpoint for the failover group. If failoverPolicy is Automatic then * failoverWithDataLossGracePeriodMinutes is required. Possible values * include: 'Manual', 'Automatic' - * @member {number} [failoverWithDataLossGracePeriodMinutes] Grace period + * @property {number} [failoverWithDataLossGracePeriodMinutes] Grace period * before failover with data loss is attempted for the read-write endpoint. * If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes * is required. diff --git a/lib/services/sqlManagement2/lib/models/job.js b/lib/services/sqlManagement2/lib/models/job.js index a9e7856fc5..a888bac524 100644 --- a/lib/services/sqlManagement2/lib/models/job.js +++ b/lib/services/sqlManagement2/lib/models/job.js @@ -20,17 +20,17 @@ const models = require('./index'); class Job extends models['ProxyResource'] { /** * Create a Job. - * @member {string} [description] User-defined description of the job. + * @property {string} [description] User-defined description of the job. * Default value: '' . - * @member {number} [version] The job version number. - * @member {object} [schedule] Schedule properties of the job. - * @member {date} [schedule.startTime] Schedule start time. - * @member {date} [schedule.endTime] Schedule end time. - * @member {string} [schedule.type] Schedule interval type. Possible values + * @property {number} [version] The job version number. + * @property {object} [schedule] Schedule properties of the job. + * @property {date} [schedule.startTime] Schedule start time. + * @property {date} [schedule.endTime] Schedule end time. + * @property {string} [schedule.type] Schedule interval type. Possible values * include: 'Once', 'Recurring' - * @member {boolean} [schedule.enabled] Whether or not the schedule is + * @property {boolean} [schedule.enabled] Whether or not the schedule is * enabled. - * @member {string} [schedule.interval] Value of the schedule's recurring + * @property {string} [schedule.interval] Value of the schedule's recurring * interval, if the scheduletype is recurring. ISO8601 duration format. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/jobAgent.js b/lib/services/sqlManagement2/lib/models/jobAgent.js index d9881e1dd7..2ba7fb8250 100644 --- a/lib/services/sqlManagement2/lib/models/jobAgent.js +++ b/lib/services/sqlManagement2/lib/models/jobAgent.js @@ -20,23 +20,23 @@ const models = require('./index'); class JobAgent extends models['TrackedResource'] { /** * Create a JobAgent. - * @member {object} [sku] The name and tier of the SKU. - * @member {string} [sku.name] The name of the SKU. Ex - P3. It is typically - * a letter+number code - * @member {string} [sku.tier] This field is required to be implemented by + * @property {object} [sku] The name and tier of the SKU. + * @property {string} [sku.name] The name of the SKU. Ex - P3. It is + * typically a letter+number code + * @property {string} [sku.tier] This field is required to be implemented by * the Resource Provider if the service has more than one tier, but is not * required on a PUT. - * @member {string} [sku.size] The SKU size. When the name field is the + * @property {string} [sku.size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone * code. - * @member {string} [sku.family] If the service has different generations of - * hardware, for the same SKU, then that can be captured here. - * @member {number} [sku.capacity] If the SKU supports scale out/in then the - * capacity integer should be included. If scale out/in is not possible for - * the resource this may be omitted. - * @member {string} databaseId Resource ID of the database to store job + * @property {string} [sku.family] If the service has different generations + * of hardware, for the same SKU, then that can be captured here. + * @property {number} [sku.capacity] If the SKU supports scale out/in then + * the capacity integer should be included. If scale out/in is not possible + * for the resource this may be omitted. + * @property {string} databaseId Resource ID of the database to store job * metadata in. - * @member {string} [state] The state of the job agent. Possible values + * @property {string} [state] The state of the job agent. Possible values * include: 'Creating', 'Ready', 'Updating', 'Deleting', 'Disabled' */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/jobAgentListResult.js b/lib/services/sqlManagement2/lib/models/jobAgentListResult.js index ba4bbd8e5b..8a52399d13 100644 --- a/lib/services/sqlManagement2/lib/models/jobAgentListResult.js +++ b/lib/services/sqlManagement2/lib/models/jobAgentListResult.js @@ -16,7 +16,7 @@ class JobAgentListResult extends Array { /** * Create a JobAgentListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/jobAgentUpdate.js b/lib/services/sqlManagement2/lib/models/jobAgentUpdate.js index 3f642c47d7..312c1e442a 100644 --- a/lib/services/sqlManagement2/lib/models/jobAgentUpdate.js +++ b/lib/services/sqlManagement2/lib/models/jobAgentUpdate.js @@ -17,7 +17,7 @@ class JobAgentUpdate { /** * Create a JobAgentUpdate. - * @member {object} [tags] Resource tags. + * @property {object} [tags] Resource tags. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/jobCredential.js b/lib/services/sqlManagement2/lib/models/jobCredential.js index dcdc5b6e02..09098d2f9b 100644 --- a/lib/services/sqlManagement2/lib/models/jobCredential.js +++ b/lib/services/sqlManagement2/lib/models/jobCredential.js @@ -21,8 +21,8 @@ const models = require('./index'); class JobCredential extends models['ProxyResource'] { /** * Create a JobCredential. - * @member {string} username The credential user name. - * @member {string} password The credential password. + * @property {string} username The credential user name. + * @property {string} password The credential password. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/jobCredentialListResult.js b/lib/services/sqlManagement2/lib/models/jobCredentialListResult.js index f35275547c..f9357c28dd 100644 --- a/lib/services/sqlManagement2/lib/models/jobCredentialListResult.js +++ b/lib/services/sqlManagement2/lib/models/jobCredentialListResult.js @@ -16,7 +16,7 @@ class JobCredentialListResult extends Array { /** * Create a JobCredentialListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/jobExecution.js b/lib/services/sqlManagement2/lib/models/jobExecution.js index 5992eadb78..6cd9213b62 100644 --- a/lib/services/sqlManagement2/lib/models/jobExecution.js +++ b/lib/services/sqlManagement2/lib/models/jobExecution.js @@ -20,32 +20,32 @@ const models = require('./index'); class JobExecution extends models['ProxyResource'] { /** * Create a JobExecution. - * @member {number} [jobVersion] The job version number. - * @member {string} [stepName] The job step name. - * @member {number} [stepId] The job step id. - * @member {uuid} [jobExecutionId] The unique identifier of the job + * @property {number} [jobVersion] The job version number. + * @property {string} [stepName] The job step name. + * @property {number} [stepId] The job step id. + * @property {uuid} [jobExecutionId] The unique identifier of the job * execution. - * @member {string} [lifecycle] The detailed state of the job execution. + * @property {string} [lifecycle] The detailed state of the job execution. * Possible values include: 'Created', 'InProgress', * 'WaitingForChildJobExecutions', 'WaitingForRetry', 'Succeeded', * 'SucceededWithSkipped', 'Failed', 'TimedOut', 'Canceled', 'Skipped' - * @member {string} [provisioningState] The ARM provisioning state of the job - * execution. Possible values include: 'Created', 'InProgress', 'Succeeded', - * 'Failed', 'Canceled' - * @member {date} [createTime] The time that the job execution was created. - * @member {date} [startTime] The time that the job execution started. - * @member {date} [endTime] The time that the job execution completed. - * @member {number} [currentAttempts] Number of times the job execution has + * @property {string} [provisioningState] The ARM provisioning state of the + * job execution. Possible values include: 'Created', 'InProgress', + * 'Succeeded', 'Failed', 'Canceled' + * @property {date} [createTime] The time that the job execution was created. + * @property {date} [startTime] The time that the job execution started. + * @property {date} [endTime] The time that the job execution completed. + * @property {number} [currentAttempts] Number of times the job execution has * been attempted. - * @member {date} [currentAttemptStartTime] Start time of the current + * @property {date} [currentAttemptStartTime] Start time of the current * attempt. - * @member {string} [lastMessage] The last status or error message. - * @member {object} [target] The target that this execution is executed on. - * @member {string} [target.type] The type of the target. Possible values + * @property {string} [lastMessage] The last status or error message. + * @property {object} [target] The target that this execution is executed on. + * @property {string} [target.type] The type of the target. Possible values * include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', * 'SqlServer' - * @member {string} [target.serverName] The server name. - * @member {string} [target.databaseName] The database name. + * @property {string} [target.serverName] The server name. + * @property {string} [target.databaseName] The database name. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/jobExecutionListResult.js b/lib/services/sqlManagement2/lib/models/jobExecutionListResult.js index 376f54f329..127e127728 100644 --- a/lib/services/sqlManagement2/lib/models/jobExecutionListResult.js +++ b/lib/services/sqlManagement2/lib/models/jobExecutionListResult.js @@ -16,7 +16,7 @@ class JobExecutionListResult extends Array { /** * Create a JobExecutionListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/jobExecutionTarget.js b/lib/services/sqlManagement2/lib/models/jobExecutionTarget.js index 34ae012d68..0c994e187c 100644 --- a/lib/services/sqlManagement2/lib/models/jobExecutionTarget.js +++ b/lib/services/sqlManagement2/lib/models/jobExecutionTarget.js @@ -17,10 +17,10 @@ class JobExecutionTarget { /** * Create a JobExecutionTarget. - * @member {string} [type] The type of the target. Possible values include: + * @property {string} [type] The type of the target. Possible values include: * 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', 'SqlServer' - * @member {string} [serverName] The server name. - * @member {string} [databaseName] The database name. + * @property {string} [serverName] The server name. + * @property {string} [databaseName] The database name. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/jobListResult.js b/lib/services/sqlManagement2/lib/models/jobListResult.js index f5f7560d99..1b543ea592 100644 --- a/lib/services/sqlManagement2/lib/models/jobListResult.js +++ b/lib/services/sqlManagement2/lib/models/jobListResult.js @@ -16,7 +16,7 @@ class JobListResult extends Array { /** * Create a JobListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/jobSchedule.js b/lib/services/sqlManagement2/lib/models/jobSchedule.js index 70cf27c51e..b06e8777e8 100644 --- a/lib/services/sqlManagement2/lib/models/jobSchedule.js +++ b/lib/services/sqlManagement2/lib/models/jobSchedule.js @@ -17,15 +17,15 @@ class JobSchedule { /** * Create a JobSchedule. - * @member {date} [startTime] Schedule start time. Default value: new + * @property {date} [startTime] Schedule start time. Default value: new * Date('0001-01-01T00:00:00Z') . - * @member {date} [endTime] Schedule end time. Default value: new + * @property {date} [endTime] Schedule end time. Default value: new * Date('9999-12-31T11:59:59Z') . - * @member {string} [type] Schedule interval type. Possible values include: + * @property {string} [type] Schedule interval type. Possible values include: * 'Once', 'Recurring'. Default value: 'Once' . - * @member {boolean} [enabled] Whether or not the schedule is enabled. - * @member {string} [interval] Value of the schedule's recurring interval, if - * the scheduletype is recurring. ISO8601 duration format. + * @property {boolean} [enabled] Whether or not the schedule is enabled. + * @property {string} [interval] Value of the schedule's recurring interval, + * if the scheduletype is recurring. ISO8601 duration format. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/jobStep.js b/lib/services/sqlManagement2/lib/models/jobStep.js index ae8cc6fbde..5067f8b1f4 100644 --- a/lib/services/sqlManagement2/lib/models/jobStep.js +++ b/lib/services/sqlManagement2/lib/models/jobStep.js @@ -20,43 +20,43 @@ const models = require('./index'); class JobStep extends models['ProxyResource'] { /** * Create a JobStep. - * @member {number} [stepId] The job step's index within the job. If not + * @property {number} [stepId] The job step's index within the job. If not * specified when creating the job step, it will be created as the last step. * If not specified when updating the job step, the step id is not modified. - * @member {string} targetGroup The resource ID of the target group that the - * job step will be executed on. - * @member {string} credential The resource ID of the job credential that + * @property {string} targetGroup The resource ID of the target group that + * the job step will be executed on. + * @property {string} credential The resource ID of the job credential that * will be used to connect to the targets. - * @member {object} action The action payload of the job step. - * @member {string} [action.type] Type of action being executed by the job + * @property {object} action The action payload of the job step. + * @property {string} [action.type] Type of action being executed by the job * step. Possible values include: 'TSql' - * @member {string} [action.source] The source of the action to execute. + * @property {string} [action.source] The source of the action to execute. * Possible values include: 'Inline' - * @member {string} [action.value] The action value, for example the text of - * the T-SQL script to execute. - * @member {object} [output] Output destination properties of the job step. - * @member {string} [output.type] The output destination type. Possible + * @property {string} [action.value] The action value, for example the text + * of the T-SQL script to execute. + * @property {object} [output] Output destination properties of the job step. + * @property {string} [output.type] The output destination type. Possible * values include: 'SqlDatabase' - * @member {uuid} [output.subscriptionId] The output destination subscription - * id. - * @member {string} [output.resourceGroupName] The output destination + * @property {uuid} [output.subscriptionId] The output destination + * subscription id. + * @property {string} [output.resourceGroupName] The output destination * resource group. - * @member {string} [output.serverName] The output destination server name. - * @member {string} [output.databaseName] The output destination database. - * @member {string} [output.schemaName] The output destination schema. - * @member {string} [output.tableName] The output destination table. - * @member {string} [output.credential] The resource ID of the credential to - * use to connect to the output destination. - * @member {object} [executionOptions] Execution options for the job step. - * @member {number} [executionOptions.timeoutSeconds] Execution timeout for + * @property {string} [output.serverName] The output destination server name. + * @property {string} [output.databaseName] The output destination database. + * @property {string} [output.schemaName] The output destination schema. + * @property {string} [output.tableName] The output destination table. + * @property {string} [output.credential] The resource ID of the credential + * to use to connect to the output destination. + * @property {object} [executionOptions] Execution options for the job step. + * @property {number} [executionOptions.timeoutSeconds] Execution timeout for * the job step. - * @member {number} [executionOptions.retryAttempts] Maximum number of times - * the job step will be reattempted if the first attempt fails. - * @member {number} [executionOptions.initialRetryIntervalSeconds] Initial + * @property {number} [executionOptions.retryAttempts] Maximum number of + * times the job step will be reattempted if the first attempt fails. + * @property {number} [executionOptions.initialRetryIntervalSeconds] Initial * delay between retries for job step execution. - * @member {number} [executionOptions.maximumRetryIntervalSeconds] The + * @property {number} [executionOptions.maximumRetryIntervalSeconds] The * maximum amount of time to wait between retries for job step execution. - * @member {number} [executionOptions.retryIntervalBackoffMultiplier] The + * @property {number} [executionOptions.retryIntervalBackoffMultiplier] The * backoff multiplier for the time between retries. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/jobStepAction.js b/lib/services/sqlManagement2/lib/models/jobStepAction.js index 06414b7657..f54f7ce2f7 100644 --- a/lib/services/sqlManagement2/lib/models/jobStepAction.js +++ b/lib/services/sqlManagement2/lib/models/jobStepAction.js @@ -17,12 +17,12 @@ class JobStepAction { /** * Create a JobStepAction. - * @member {string} [type] Type of action being executed by the job step. + * @property {string} [type] Type of action being executed by the job step. * Possible values include: 'TSql'. Default value: 'TSql' . - * @member {string} [source] The source of the action to execute. Possible + * @property {string} [source] The source of the action to execute. Possible * values include: 'Inline'. Default value: 'Inline' . - * @member {string} value The action value, for example the text of the T-SQL - * script to execute. + * @property {string} value The action value, for example the text of the + * T-SQL script to execute. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/jobStepExecutionOptions.js b/lib/services/sqlManagement2/lib/models/jobStepExecutionOptions.js index 0cea78cf12..0a5d802854 100644 --- a/lib/services/sqlManagement2/lib/models/jobStepExecutionOptions.js +++ b/lib/services/sqlManagement2/lib/models/jobStepExecutionOptions.js @@ -17,15 +17,15 @@ class JobStepExecutionOptions { /** * Create a JobStepExecutionOptions. - * @member {number} [timeoutSeconds] Execution timeout for the job step. + * @property {number} [timeoutSeconds] Execution timeout for the job step. * Default value: 43200 . - * @member {number} [retryAttempts] Maximum number of times the job step will - * be reattempted if the first attempt fails. Default value: 10 . - * @member {number} [initialRetryIntervalSeconds] Initial delay between + * @property {number} [retryAttempts] Maximum number of times the job step + * will be reattempted if the first attempt fails. Default value: 10 . + * @property {number} [initialRetryIntervalSeconds] Initial delay between * retries for job step execution. Default value: 1 . - * @member {number} [maximumRetryIntervalSeconds] The maximum amount of time - * to wait between retries for job step execution. Default value: 120 . - * @member {number} [retryIntervalBackoffMultiplier] The backoff multiplier + * @property {number} [maximumRetryIntervalSeconds] The maximum amount of + * time to wait between retries for job step execution. Default value: 120 . + * @property {number} [retryIntervalBackoffMultiplier] The backoff multiplier * for the time between retries. Default value: 2 . */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/jobStepListResult.js b/lib/services/sqlManagement2/lib/models/jobStepListResult.js index c7d8733fdf..eace11ed51 100644 --- a/lib/services/sqlManagement2/lib/models/jobStepListResult.js +++ b/lib/services/sqlManagement2/lib/models/jobStepListResult.js @@ -16,7 +16,7 @@ class JobStepListResult extends Array { /** * Create a JobStepListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/jobStepOutput.js b/lib/services/sqlManagement2/lib/models/jobStepOutput.js index dd00174899..c5f17f72a3 100644 --- a/lib/services/sqlManagement2/lib/models/jobStepOutput.js +++ b/lib/services/sqlManagement2/lib/models/jobStepOutput.js @@ -17,17 +17,17 @@ class JobStepOutput { /** * Create a JobStepOutput. - * @member {string} [type] The output destination type. Possible values + * @property {string} [type] The output destination type. Possible values * include: 'SqlDatabase'. Default value: 'SqlDatabase' . - * @member {uuid} [subscriptionId] The output destination subscription id. - * @member {string} [resourceGroupName] The output destination resource + * @property {uuid} [subscriptionId] The output destination subscription id. + * @property {string} [resourceGroupName] The output destination resource * group. - * @member {string} serverName The output destination server name. - * @member {string} databaseName The output destination database. - * @member {string} [schemaName] The output destination schema. Default + * @property {string} serverName The output destination server name. + * @property {string} databaseName The output destination database. + * @property {string} [schemaName] The output destination schema. Default * value: 'dbo' . - * @member {string} tableName The output destination table. - * @member {string} credential The resource ID of the credential to use to + * @property {string} tableName The output destination table. + * @property {string} credential The resource ID of the credential to use to * connect to the output destination. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/jobTarget.js b/lib/services/sqlManagement2/lib/models/jobTarget.js index e5b4d649dc..79e578796f 100644 --- a/lib/services/sqlManagement2/lib/models/jobTarget.js +++ b/lib/services/sqlManagement2/lib/models/jobTarget.js @@ -18,16 +18,16 @@ class JobTarget { /** * Create a JobTarget. - * @member {string} [membershipType] Whether the target is included or + * @property {string} [membershipType] Whether the target is included or * excluded from the group. Possible values include: 'Include', 'Exclude'. * Default value: 'Include' . - * @member {string} type The target type. Possible values include: + * @property {string} type The target type. Possible values include: * 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', 'SqlServer' - * @member {string} [serverName] The target server name. - * @member {string} [databaseName] The target database name. - * @member {string} [elasticPoolName] The target elastic pool name. - * @member {string} [shardMapName] The target shard map. - * @member {string} [refreshCredential] The resource ID of the credential + * @property {string} [serverName] The target server name. + * @property {string} [databaseName] The target database name. + * @property {string} [elasticPoolName] The target elastic pool name. + * @property {string} [shardMapName] The target shard map. + * @property {string} [refreshCredential] The resource ID of the credential * that is used during job execution to connect to the target and determine * the list of databases inside the target. */ diff --git a/lib/services/sqlManagement2/lib/models/jobTargetGroup.js b/lib/services/sqlManagement2/lib/models/jobTargetGroup.js index f23a55c620..d144ca6742 100644 --- a/lib/services/sqlManagement2/lib/models/jobTargetGroup.js +++ b/lib/services/sqlManagement2/lib/models/jobTargetGroup.js @@ -20,7 +20,7 @@ const models = require('./index'); class JobTargetGroup extends models['ProxyResource'] { /** * Create a JobTargetGroup. - * @member {array} members Members of the target group. + * @property {array} members Members of the target group. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/jobTargetGroupListResult.js b/lib/services/sqlManagement2/lib/models/jobTargetGroupListResult.js index 181d09707b..9cdaf27f5c 100644 --- a/lib/services/sqlManagement2/lib/models/jobTargetGroupListResult.js +++ b/lib/services/sqlManagement2/lib/models/jobTargetGroupListResult.js @@ -16,7 +16,7 @@ class JobTargetGroupListResult extends Array { /** * Create a JobTargetGroupListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/jobVersionListResult.js b/lib/services/sqlManagement2/lib/models/jobVersionListResult.js index a2bb14997d..a10a1256f7 100644 --- a/lib/services/sqlManagement2/lib/models/jobVersionListResult.js +++ b/lib/services/sqlManagement2/lib/models/jobVersionListResult.js @@ -16,7 +16,7 @@ class JobVersionListResult extends Array { /** * Create a JobVersionListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/licenseTypeCapability.js b/lib/services/sqlManagement2/lib/models/licenseTypeCapability.js index 7149b0c6b8..55de02ba03 100644 --- a/lib/services/sqlManagement2/lib/models/licenseTypeCapability.js +++ b/lib/services/sqlManagement2/lib/models/licenseTypeCapability.js @@ -17,10 +17,10 @@ class LicenseTypeCapability { /** * Create a LicenseTypeCapability. - * @member {string} [name] License type identifier. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [name] License type identifier. + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being + * @property {string} [reason] The reason for the capability not being * available. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/locationCapabilities.js b/lib/services/sqlManagement2/lib/models/locationCapabilities.js index 96d6d38763..aff7c1cffe 100644 --- a/lib/services/sqlManagement2/lib/models/locationCapabilities.js +++ b/lib/services/sqlManagement2/lib/models/locationCapabilities.js @@ -17,14 +17,14 @@ class LocationCapabilities { /** * Create a LocationCapabilities. - * @member {string} [name] The location name. - * @member {array} [supportedServerVersions] The list of supported server + * @property {string} [name] The location name. + * @property {array} [supportedServerVersions] The list of supported server * versions. - * @member {array} [supportedManagedInstanceVersions] The list of supported + * @property {array} [supportedManagedInstanceVersions] The list of supported * managed instance versions. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being + * @property {string} [reason] The reason for the capability not being * available. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/logSizeCapability.js b/lib/services/sqlManagement2/lib/models/logSizeCapability.js index 939f3898f1..9fa838299f 100644 --- a/lib/services/sqlManagement2/lib/models/logSizeCapability.js +++ b/lib/services/sqlManagement2/lib/models/logSizeCapability.js @@ -17,10 +17,10 @@ class LogSizeCapability { /** * Create a LogSizeCapability. - * @member {number} [limit] The log size limit (see 'unit' for the units). - * @member {string} [unit] The units that the limit is expressed in. Possible - * values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes', - * 'Percent' + * @property {number} [limit] The log size limit (see 'unit' for the units). + * @property {string} [unit] The units that the limit is expressed in. + * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', + * 'Petabytes', 'Percent' */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/longTermRetentionBackup.js b/lib/services/sqlManagement2/lib/models/longTermRetentionBackup.js index d5c13d1442..58adaf698e 100644 --- a/lib/services/sqlManagement2/lib/models/longTermRetentionBackup.js +++ b/lib/services/sqlManagement2/lib/models/longTermRetentionBackup.js @@ -20,14 +20,14 @@ const models = require('./index'); class LongTermRetentionBackup extends models['ProxyResource'] { /** * Create a LongTermRetentionBackup. - * @member {string} [serverName] The server name that the backup database + * @property {string} [serverName] The server name that the backup database * belong to. - * @member {date} [serverCreateTime] The create time of the server. - * @member {string} [databaseName] The name of the database the backup belong - * to - * @member {date} [databaseDeletionTime] The delete time of the database - * @member {date} [backupTime] The time the backup was taken - * @member {date} [backupExpirationTime] The time the long term retention + * @property {date} [serverCreateTime] The create time of the server. + * @property {string} [databaseName] The name of the database the backup + * belong to + * @property {date} [databaseDeletionTime] The delete time of the database + * @property {date} [backupTime] The time the backup was taken + * @property {date} [backupExpirationTime] The time the long term retention * backup will expire. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/longTermRetentionBackupListResult.js b/lib/services/sqlManagement2/lib/models/longTermRetentionBackupListResult.js index a03e44911a..4f41d2df9c 100644 --- a/lib/services/sqlManagement2/lib/models/longTermRetentionBackupListResult.js +++ b/lib/services/sqlManagement2/lib/models/longTermRetentionBackupListResult.js @@ -16,7 +16,7 @@ class LongTermRetentionBackupListResult extends Array { /** * Create a LongTermRetentionBackupListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/managedBackupShortTermRetentionPolicy.js b/lib/services/sqlManagement2/lib/models/managedBackupShortTermRetentionPolicy.js new file mode 100644 index 0000000000..f5a3e37d0f --- /dev/null +++ b/lib/services/sqlManagement2/lib/models/managedBackupShortTermRetentionPolicy.js @@ -0,0 +1,81 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const models = require('./index'); + +/** + * A short term retention policy. + * + * @extends models['ProxyResource'] + */ +class ManagedBackupShortTermRetentionPolicy extends models['ProxyResource'] { + /** + * Create a ManagedBackupShortTermRetentionPolicy. + * @property {number} [retentionDays] The backup retention period in days. + * This is how many days Point-in-Time Restore will be supported. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ManagedBackupShortTermRetentionPolicy + * + * @returns {object} metadata of ManagedBackupShortTermRetentionPolicy + * + */ + mapper() { + return { + required: false, + serializedName: 'ManagedBackupShortTermRetentionPolicy', + type: { + name: 'Composite', + className: 'ManagedBackupShortTermRetentionPolicy', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + retentionDays: { + required: false, + serializedName: 'properties.retentionDays', + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = ManagedBackupShortTermRetentionPolicy; diff --git a/lib/services/sqlManagement2/lib/models/managedBackupShortTermRetentionPolicyListResult.js b/lib/services/sqlManagement2/lib/models/managedBackupShortTermRetentionPolicyListResult.js new file mode 100644 index 0000000000..4d833bc279 --- /dev/null +++ b/lib/services/sqlManagement2/lib/models/managedBackupShortTermRetentionPolicyListResult.js @@ -0,0 +1,69 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * A list of short term retention policies. + */ +class ManagedBackupShortTermRetentionPolicyListResult extends Array { + /** + * Create a ManagedBackupShortTermRetentionPolicyListResult. + * @property {string} [nextLink] Link to retrieve next page of results. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ManagedBackupShortTermRetentionPolicyListResult + * + * @returns {object} metadata of ManagedBackupShortTermRetentionPolicyListResult + * + */ + mapper() { + return { + required: false, + serializedName: 'ManagedBackupShortTermRetentionPolicyListResult', + type: { + name: 'Composite', + className: 'ManagedBackupShortTermRetentionPolicyListResult', + modelProperties: { + value: { + required: false, + readOnly: true, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ManagedBackupShortTermRetentionPolicyElementType', + type: { + name: 'Composite', + className: 'ManagedBackupShortTermRetentionPolicy' + } + } + } + }, + nextLink: { + required: false, + readOnly: true, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ManagedBackupShortTermRetentionPolicyListResult; diff --git a/lib/services/sqlManagement2/lib/models/managedDatabase.js b/lib/services/sqlManagement2/lib/models/managedDatabase.js index 3ca5f1e06a..d3ec0cf277 100644 --- a/lib/services/sqlManagement2/lib/models/managedDatabase.js +++ b/lib/services/sqlManagement2/lib/models/managedDatabase.js @@ -20,36 +20,36 @@ const models = require('./index'); class ManagedDatabase extends models['TrackedResource'] { /** * Create a ManagedDatabase. - * @member {string} [collation] Collation of the managed database. - * @member {string} [status] Status for the database. Possible values + * @property {string} [collation] Collation of the managed database. + * @property {string} [status] Status for the database. Possible values * include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible' - * @member {date} [creationDate] Creation date of the database. - * @member {date} [earliestRestorePoint] Earliest restore point in time for + * @property {date} [creationDate] Creation date of the database. + * @property {date} [earliestRestorePoint] Earliest restore point in time for * point in time restore. - * @member {date} [restorePointInTime] Conditional. If createMode is + * @property {date} [restorePointInTime] Conditional. If createMode is * PointInTimeRestore, this value is required. Specifies the point in time * (ISO8601 format) of the source database that will be restored to create * the new database. - * @member {string} [defaultSecondaryLocation] Geo paired region. - * @member {string} [catalogCollation] Collation of the metadata catalog. + * @property {string} [defaultSecondaryLocation] Geo paired region. + * @property {string} [catalogCollation] Collation of the metadata catalog. * Possible values include: 'DATABASE_DEFAULT', * 'SQL_Latin1_General_CP1_CI_AS' - * @member {string} [createMode] Managed database create mode. + * @property {string} [createMode] Managed database create mode. * PointInTimeRestore: Create a database by restoring a point in time backup * of an existing database. SourceDatabaseName, SourceManagedInstanceName and * PointInTime must be specified. RestoreExternalBackup: Create a database by * restoring from external backup files. Collation, StorageContainerUri and * StorageContainerSasToken must be specified. Possible values include: * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore' - * @member {string} [storageContainerUri] Conditional. If createMode is + * @property {string} [storageContainerUri] Conditional. If createMode is * RestoreExternalBackup, this value is required. Specifies the uri of the * storage container where backups for this restore are stored. - * @member {string} [sourceDatabaseId] The resource identifier of the source - * database associated with create operation of this database. - * @member {string} [storageContainerSasToken] Conditional. If createMode is - * RestoreExternalBackup, this value is required. Specifies the storage + * @property {string} [sourceDatabaseId] The resource identifier of the + * source database associated with create operation of this database. + * @property {string} [storageContainerSasToken] Conditional. If createMode + * is RestoreExternalBackup, this value is required. Specifies the storage * container sas token. - * @member {string} [failoverGroupId] Instance Failover Group resource + * @property {string} [failoverGroupId] Instance Failover Group resource * identifier that this managed database belongs to. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/managedDatabaseListResult.js b/lib/services/sqlManagement2/lib/models/managedDatabaseListResult.js index dcd44d94b3..42f53a6859 100644 --- a/lib/services/sqlManagement2/lib/models/managedDatabaseListResult.js +++ b/lib/services/sqlManagement2/lib/models/managedDatabaseListResult.js @@ -16,7 +16,7 @@ class ManagedDatabaseListResult extends Array { /** * Create a ManagedDatabaseListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/managedDatabaseUpdate.js b/lib/services/sqlManagement2/lib/models/managedDatabaseUpdate.js index 8649d21350..f2f030c378 100644 --- a/lib/services/sqlManagement2/lib/models/managedDatabaseUpdate.js +++ b/lib/services/sqlManagement2/lib/models/managedDatabaseUpdate.js @@ -17,38 +17,38 @@ class ManagedDatabaseUpdate { /** * Create a ManagedDatabaseUpdate. - * @member {string} [collation] Collation of the managed database. - * @member {string} [status] Status for the database. Possible values + * @property {string} [collation] Collation of the managed database. + * @property {string} [status] Status for the database. Possible values * include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible' - * @member {date} [creationDate] Creation date of the database. - * @member {date} [earliestRestorePoint] Earliest restore point in time for + * @property {date} [creationDate] Creation date of the database. + * @property {date} [earliestRestorePoint] Earliest restore point in time for * point in time restore. - * @member {date} [restorePointInTime] Conditional. If createMode is + * @property {date} [restorePointInTime] Conditional. If createMode is * PointInTimeRestore, this value is required. Specifies the point in time * (ISO8601 format) of the source database that will be restored to create * the new database. - * @member {string} [defaultSecondaryLocation] Geo paired region. - * @member {string} [catalogCollation] Collation of the metadata catalog. + * @property {string} [defaultSecondaryLocation] Geo paired region. + * @property {string} [catalogCollation] Collation of the metadata catalog. * Possible values include: 'DATABASE_DEFAULT', * 'SQL_Latin1_General_CP1_CI_AS' - * @member {string} [createMode] Managed database create mode. + * @property {string} [createMode] Managed database create mode. * PointInTimeRestore: Create a database by restoring a point in time backup * of an existing database. SourceDatabaseName, SourceManagedInstanceName and * PointInTime must be specified. RestoreExternalBackup: Create a database by * restoring from external backup files. Collation, StorageContainerUri and * StorageContainerSasToken must be specified. Possible values include: * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore' - * @member {string} [storageContainerUri] Conditional. If createMode is + * @property {string} [storageContainerUri] Conditional. If createMode is * RestoreExternalBackup, this value is required. Specifies the uri of the * storage container where backups for this restore are stored. - * @member {string} [sourceDatabaseId] The resource identifier of the source - * database associated with create operation of this database. - * @member {string} [storageContainerSasToken] Conditional. If createMode is - * RestoreExternalBackup, this value is required. Specifies the storage + * @property {string} [sourceDatabaseId] The resource identifier of the + * source database associated with create operation of this database. + * @property {string} [storageContainerSasToken] Conditional. If createMode + * is RestoreExternalBackup, this value is required. Specifies the storage * container sas token. - * @member {string} [failoverGroupId] Instance Failover Group resource + * @property {string} [failoverGroupId] Instance Failover Group resource * identifier that this managed database belongs to. - * @member {object} [tags] Resource tags. + * @property {object} [tags] Resource tags. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/managedInstance.js b/lib/services/sqlManagement2/lib/models/managedInstance.js index cba8dcc84a..10a5a35648 100644 --- a/lib/services/sqlManagement2/lib/models/managedInstance.js +++ b/lib/services/sqlManagement2/lib/models/managedInstance.js @@ -20,45 +20,45 @@ const models = require('./index'); class ManagedInstance extends models['TrackedResource'] { /** * Create a ManagedInstance. - * @member {object} [identity] The Azure Active Directory identity of the + * @property {object} [identity] The Azure Active Directory identity of the * managed instance. - * @member {uuid} [identity.principalId] The Azure Active Directory principal - * id. - * @member {string} [identity.type] The identity type. Set this to + * @property {uuid} [identity.principalId] The Azure Active Directory + * principal id. + * @property {string} [identity.type] The identity type. Set this to * 'SystemAssigned' in order to automatically create and assign an Azure * Active Directory principal for the resource. Possible values include: * 'SystemAssigned' - * @member {uuid} [identity.tenantId] The Azure Active Directory tenant id. - * @member {object} [sku] Managed instance sku - * @member {string} [sku.name] The name of the SKU. Ex - P3. It is typically - * a letter+number code - * @member {string} [sku.tier] This field is required to be implemented by + * @property {uuid} [identity.tenantId] The Azure Active Directory tenant id. + * @property {object} [sku] Managed instance sku + * @property {string} [sku.name] The name of the SKU. Ex - P3. It is + * typically a letter+number code + * @property {string} [sku.tier] This field is required to be implemented by * the Resource Provider if the service has more than one tier, but is not * required on a PUT. - * @member {string} [sku.size] The SKU size. When the name field is the + * @property {string} [sku.size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone * code. - * @member {string} [sku.family] If the service has different generations of - * hardware, for the same SKU, then that can be captured here. - * @member {number} [sku.capacity] If the SKU supports scale out/in then the - * capacity integer should be included. If scale out/in is not possible for - * the resource this may be omitted. - * @member {string} [fullyQualifiedDomainName] The fully qualified domain + * @property {string} [sku.family] If the service has different generations + * of hardware, for the same SKU, then that can be captured here. + * @property {number} [sku.capacity] If the SKU supports scale out/in then + * the capacity integer should be included. If scale out/in is not possible + * for the resource this may be omitted. + * @property {string} [fullyQualifiedDomainName] The fully qualified domain * name of the managed instance. - * @member {string} [administratorLogin] Administrator username for the + * @property {string} [administratorLogin] Administrator username for the * managed instance. Can only be specified when the managed instance is being * created (and is required for creation). - * @member {string} [administratorLoginPassword] The administrator login + * @property {string} [administratorLoginPassword] The administrator login * password (required for managed instance creation). - * @member {string} [subnetId] Subnet resource ID for the managed instance. - * @member {string} [state] The state of the managed instance. - * @member {string} [licenseType] The license type. Possible values are + * @property {string} [subnetId] Subnet resource ID for the managed instance. + * @property {string} [state] The state of the managed instance. + * @property {string} [licenseType] The license type. Possible values are * 'LicenseIncluded' and 'BasePrice'. - * @member {number} [vCores] The number of VCores. - * @member {number} [storageSizeInGB] The maximum storage size in GB. - * @member {string} [collation] Collation of the managed instance. - * @member {string} [dnsZone] The Dns Zone that the managed instance is in. - * @member {string} [dnsZonePartner] The resource id of another managed + * @property {number} [vCores] The number of VCores. + * @property {number} [storageSizeInGB] The maximum storage size in GB. + * @property {string} [collation] Collation of the managed instance. + * @property {string} [dnsZone] The Dns Zone that the managed instance is in. + * @property {string} [dnsZonePartner] The resource id of another managed * instance whose DNS zone this managed instance will share after creation. */ constructor() { @@ -200,7 +200,6 @@ class ManagedInstance extends models['TrackedResource'] { }, collation: { required: false, - readOnly: true, serializedName: 'properties.collation', type: { name: 'String' diff --git a/lib/services/sqlManagement2/lib/models/managedInstanceEditionCapability.js b/lib/services/sqlManagement2/lib/models/managedInstanceEditionCapability.js index 48c8301ff2..61a58674ca 100644 --- a/lib/services/sqlManagement2/lib/models/managedInstanceEditionCapability.js +++ b/lib/services/sqlManagement2/lib/models/managedInstanceEditionCapability.js @@ -17,11 +17,11 @@ class ManagedInstanceEditionCapability { /** * Create a ManagedInstanceEditionCapability. - * @member {string} [name] The managed server version name. - * @member {array} [supportedFamilies] The supported families. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [name] The managed server version name. + * @property {array} [supportedFamilies] The supported families. + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being + * @property {string} [reason] The reason for the capability not being * available. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/managedInstanceEncryptionProtector.js b/lib/services/sqlManagement2/lib/models/managedInstanceEncryptionProtector.js index 505319454c..84e26922b9 100644 --- a/lib/services/sqlManagement2/lib/models/managedInstanceEncryptionProtector.js +++ b/lib/services/sqlManagement2/lib/models/managedInstanceEncryptionProtector.js @@ -20,14 +20,14 @@ const models = require('./index'); class ManagedInstanceEncryptionProtector extends models['ProxyResource'] { /** * Create a ManagedInstanceEncryptionProtector. - * @member {string} [kind] Kind of encryption protector. This is metadata + * @property {string} [kind] Kind of encryption protector. This is metadata * used for the Azure portal experience. - * @member {string} [serverKeyName] The name of the managed instance key. - * @member {string} serverKeyType The encryption protector type like + * @property {string} [serverKeyName] The name of the managed instance key. + * @property {string} serverKeyType The encryption protector type like * 'ServiceManaged', 'AzureKeyVault'. Possible values include: * 'ServiceManaged', 'AzureKeyVault' - * @member {string} [uri] The URI of the server key. - * @member {string} [thumbprint] Thumbprint of the server key. + * @property {string} [uri] The URI of the server key. + * @property {string} [thumbprint] Thumbprint of the server key. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/managedInstanceEncryptionProtectorListResult.js b/lib/services/sqlManagement2/lib/models/managedInstanceEncryptionProtectorListResult.js index c545cb8176..29043b949f 100644 --- a/lib/services/sqlManagement2/lib/models/managedInstanceEncryptionProtectorListResult.js +++ b/lib/services/sqlManagement2/lib/models/managedInstanceEncryptionProtectorListResult.js @@ -16,7 +16,7 @@ class ManagedInstanceEncryptionProtectorListResult extends Array { /** * Create a ManagedInstanceEncryptionProtectorListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/managedInstanceFamilyCapability.js b/lib/services/sqlManagement2/lib/models/managedInstanceFamilyCapability.js index dfc52ff910..5247352af2 100644 --- a/lib/services/sqlManagement2/lib/models/managedInstanceFamilyCapability.js +++ b/lib/services/sqlManagement2/lib/models/managedInstanceFamilyCapability.js @@ -17,21 +17,21 @@ class ManagedInstanceFamilyCapability { /** * Create a ManagedInstanceFamilyCapability. - * @member {string} [name] Family name. - * @member {string} [sku] SKU name. - * @member {array} [supportedLicenseTypes] List of supported license types. - * @member {array} [supportedVcoresValues] List of supported virtual cores + * @property {string} [name] Family name. + * @property {string} [sku] SKU name. + * @property {array} [supportedLicenseTypes] List of supported license types. + * @property {array} [supportedVcoresValues] List of supported virtual cores * values. - * @member {object} [includedMaxSize] Included size. - * @member {number} [includedMaxSize.limit] The maximum size limit (see + * @property {object} [includedMaxSize] Included size. + * @property {number} [includedMaxSize.limit] The maximum size limit (see * 'unit' for the units). - * @member {string} [includedMaxSize.unit] The units that the limit is + * @property {string} [includedMaxSize.unit] The units that the limit is * expressed in. Possible values include: 'Megabytes', 'Gigabytes', * 'Terabytes', 'Petabytes' - * @member {array} [supportedStorageSizes] Storage size ranges. - * @member {string} [status] The status of the capability. Possible values + * @property {array} [supportedStorageSizes] Storage size ranges. + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being + * @property {string} [reason] The reason for the capability not being * available. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/managedInstanceKey.js b/lib/services/sqlManagement2/lib/models/managedInstanceKey.js index 24c25d8a86..8fee2e8cad 100644 --- a/lib/services/sqlManagement2/lib/models/managedInstanceKey.js +++ b/lib/services/sqlManagement2/lib/models/managedInstanceKey.js @@ -20,15 +20,15 @@ const models = require('./index'); class ManagedInstanceKey extends models['ProxyResource'] { /** * Create a ManagedInstanceKey. - * @member {string} [kind] Kind of encryption protector. This is metadata + * @property {string} [kind] Kind of encryption protector. This is metadata * used for the Azure portal experience. - * @member {string} serverKeyType The key type like 'ServiceManaged', + * @property {string} serverKeyType The key type like 'ServiceManaged', * 'AzureKeyVault'. Possible values include: 'ServiceManaged', * 'AzureKeyVault' - * @member {string} [uri] The URI of the key. If the ServerKeyType is + * @property {string} [uri] The URI of the key. If the ServerKeyType is * AzureKeyVault, then the URI is required. - * @member {string} [thumbprint] Thumbprint of the key. - * @member {date} [creationDate] The key creation date. + * @property {string} [thumbprint] Thumbprint of the key. + * @property {date} [creationDate] The key creation date. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/managedInstanceKeyListResult.js b/lib/services/sqlManagement2/lib/models/managedInstanceKeyListResult.js index 861111ffc1..2020652f09 100644 --- a/lib/services/sqlManagement2/lib/models/managedInstanceKeyListResult.js +++ b/lib/services/sqlManagement2/lib/models/managedInstanceKeyListResult.js @@ -16,7 +16,7 @@ class ManagedInstanceKeyListResult extends Array { /** * Create a ManagedInstanceKeyListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/managedInstanceListResult.js b/lib/services/sqlManagement2/lib/models/managedInstanceListResult.js index a6b27f7ebf..afeeb6fdb2 100644 --- a/lib/services/sqlManagement2/lib/models/managedInstanceListResult.js +++ b/lib/services/sqlManagement2/lib/models/managedInstanceListResult.js @@ -16,7 +16,7 @@ class ManagedInstanceListResult extends Array { /** * Create a ManagedInstanceListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/managedInstancePairInfo.js b/lib/services/sqlManagement2/lib/models/managedInstancePairInfo.js index c352f8d74c..6bd4816e63 100644 --- a/lib/services/sqlManagement2/lib/models/managedInstancePairInfo.js +++ b/lib/services/sqlManagement2/lib/models/managedInstancePairInfo.js @@ -17,10 +17,10 @@ class ManagedInstancePairInfo { /** * Create a ManagedInstancePairInfo. - * @member {string} [primaryManagedInstanceId] Id of Primary Managed Instance - * in pair. - * @member {string} [partnerManagedInstanceId] Id of Partner Managed Instance - * in pair. + * @property {string} [primaryManagedInstanceId] Id of Primary Managed + * Instance in pair. + * @property {string} [partnerManagedInstanceId] Id of Partner Managed + * Instance in pair. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/managedInstanceUpdate.js b/lib/services/sqlManagement2/lib/models/managedInstanceUpdate.js index 98279edd9c..5e7f4dbbfb 100644 --- a/lib/services/sqlManagement2/lib/models/managedInstanceUpdate.js +++ b/lib/services/sqlManagement2/lib/models/managedInstanceUpdate.js @@ -17,38 +17,38 @@ class ManagedInstanceUpdate { /** * Create a ManagedInstanceUpdate. - * @member {object} [sku] Managed instance sku - * @member {string} [sku.name] The name of the SKU. Ex - P3. It is typically - * a letter+number code - * @member {string} [sku.tier] This field is required to be implemented by + * @property {object} [sku] Managed instance sku + * @property {string} [sku.name] The name of the SKU. Ex - P3. It is + * typically a letter+number code + * @property {string} [sku.tier] This field is required to be implemented by * the Resource Provider if the service has more than one tier, but is not * required on a PUT. - * @member {string} [sku.size] The SKU size. When the name field is the + * @property {string} [sku.size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone * code. - * @member {string} [sku.family] If the service has different generations of - * hardware, for the same SKU, then that can be captured here. - * @member {number} [sku.capacity] If the SKU supports scale out/in then the - * capacity integer should be included. If scale out/in is not possible for - * the resource this may be omitted. - * @member {string} [fullyQualifiedDomainName] The fully qualified domain + * @property {string} [sku.family] If the service has different generations + * of hardware, for the same SKU, then that can be captured here. + * @property {number} [sku.capacity] If the SKU supports scale out/in then + * the capacity integer should be included. If scale out/in is not possible + * for the resource this may be omitted. + * @property {string} [fullyQualifiedDomainName] The fully qualified domain * name of the managed instance. - * @member {string} [administratorLogin] Administrator username for the + * @property {string} [administratorLogin] Administrator username for the * managed instance. Can only be specified when the managed instance is being * created (and is required for creation). - * @member {string} [administratorLoginPassword] The administrator login + * @property {string} [administratorLoginPassword] The administrator login * password (required for managed instance creation). - * @member {string} [subnetId] Subnet resource ID for the managed instance. - * @member {string} [state] The state of the managed instance. - * @member {string} [licenseType] The license type. Possible values are + * @property {string} [subnetId] Subnet resource ID for the managed instance. + * @property {string} [state] The state of the managed instance. + * @property {string} [licenseType] The license type. Possible values are * 'LicenseIncluded' and 'BasePrice'. - * @member {number} [vCores] The number of VCores. - * @member {number} [storageSizeInGB] The maximum storage size in GB. - * @member {string} [collation] Collation of the managed instance. - * @member {string} [dnsZone] The Dns Zone that the managed instance is in. - * @member {string} [dnsZonePartner] The resource id of another managed + * @property {number} [vCores] The number of VCores. + * @property {number} [storageSizeInGB] The maximum storage size in GB. + * @property {string} [collation] Collation of the managed instance. + * @property {string} [dnsZone] The Dns Zone that the managed instance is in. + * @property {string} [dnsZonePartner] The resource id of another managed * instance whose DNS zone this managed instance will share after creation. - * @member {object} [tags] Resource tags. + * @property {object} [tags] Resource tags. */ constructor() { } @@ -135,7 +135,6 @@ class ManagedInstanceUpdate { }, collation: { required: false, - readOnly: true, serializedName: 'properties.collation', type: { name: 'String' diff --git a/lib/services/sqlManagement2/lib/models/managedInstanceVcoresCapability.js b/lib/services/sqlManagement2/lib/models/managedInstanceVcoresCapability.js index 2bed9e08d7..bda795b531 100644 --- a/lib/services/sqlManagement2/lib/models/managedInstanceVcoresCapability.js +++ b/lib/services/sqlManagement2/lib/models/managedInstanceVcoresCapability.js @@ -17,11 +17,11 @@ class ManagedInstanceVcoresCapability { /** * Create a ManagedInstanceVcoresCapability. - * @member {string} [name] The virtual cores identifier. - * @member {number} [value] The virtual cores value. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [name] The virtual cores identifier. + * @property {number} [value] The virtual cores value. + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being + * @property {string} [reason] The reason for the capability not being * available. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/managedInstanceVersionCapability.js b/lib/services/sqlManagement2/lib/models/managedInstanceVersionCapability.js index 154896a493..ea5c032d45 100644 --- a/lib/services/sqlManagement2/lib/models/managedInstanceVersionCapability.js +++ b/lib/services/sqlManagement2/lib/models/managedInstanceVersionCapability.js @@ -17,12 +17,12 @@ class ManagedInstanceVersionCapability { /** * Create a ManagedInstanceVersionCapability. - * @member {string} [name] The server version name. - * @member {array} [supportedEditions] The list of supported managed instance - * editions. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [name] The server version name. + * @property {array} [supportedEditions] The list of supported managed + * instance editions. + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being + * @property {string} [reason] The reason for the capability not being * available. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/managedInstanceVulnerabilityAssessment.js b/lib/services/sqlManagement2/lib/models/managedInstanceVulnerabilityAssessment.js new file mode 100644 index 0000000000..70be4293ed --- /dev/null +++ b/lib/services/sqlManagement2/lib/models/managedInstanceVulnerabilityAssessment.js @@ -0,0 +1,119 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const models = require('./index'); + +/** + * A managed instance vulnerability assessment. + * + * @extends models['ProxyResource'] + */ +class ManagedInstanceVulnerabilityAssessment extends models['ProxyResource'] { + /** + * Create a ManagedInstanceVulnerabilityAssessment. + * @property {string} storageContainerPath A blob storage container path to + * hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). + * @property {string} [storageContainerSasKey] A shared access signature (SAS + * Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. + * @property {string} [storageAccountAccessKey] Specifies the identifier key + * of the storage account for vulnerability assessment scan results. If + * 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is + * required. + * @property {object} [recurringScans] The recurring scans settings + * @property {boolean} [recurringScans.isEnabled] Recurring scans state. + * @property {boolean} [recurringScans.emailSubscriptionAdmins] Specifies + * that the schedule scan notification will be is sent to the subscription + * administrators. + * @property {array} [recurringScans.emails] Specifies an array of e-mail + * addresses to which the scan notification is sent. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ManagedInstanceVulnerabilityAssessment + * + * @returns {object} metadata of ManagedInstanceVulnerabilityAssessment + * + */ + mapper() { + return { + required: false, + serializedName: 'ManagedInstanceVulnerabilityAssessment', + type: { + name: 'Composite', + className: 'ManagedInstanceVulnerabilityAssessment', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + storageContainerPath: { + required: true, + serializedName: 'properties.storageContainerPath', + type: { + name: 'String' + } + }, + storageContainerSasKey: { + required: false, + serializedName: 'properties.storageContainerSasKey', + type: { + name: 'String' + } + }, + storageAccountAccessKey: { + required: false, + serializedName: 'properties.storageAccountAccessKey', + type: { + name: 'String' + } + }, + recurringScans: { + required: false, + serializedName: 'properties.recurringScans', + type: { + name: 'Composite', + className: 'VulnerabilityAssessmentRecurringScansProperties' + } + } + } + } + }; + } +} + +module.exports = ManagedInstanceVulnerabilityAssessment; diff --git a/lib/services/sqlManagement2/lib/models/managedInstanceVulnerabilityAssessmentListResult.js b/lib/services/sqlManagement2/lib/models/managedInstanceVulnerabilityAssessmentListResult.js new file mode 100644 index 0000000000..a02f14978f --- /dev/null +++ b/lib/services/sqlManagement2/lib/models/managedInstanceVulnerabilityAssessmentListResult.js @@ -0,0 +1,69 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * A list of the ManagedInstance's vulnerability assessments. + */ +class ManagedInstanceVulnerabilityAssessmentListResult extends Array { + /** + * Create a ManagedInstanceVulnerabilityAssessmentListResult. + * @property {string} [nextLink] Link to retrieve next page of results. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ManagedInstanceVulnerabilityAssessmentListResult + * + * @returns {object} metadata of ManagedInstanceVulnerabilityAssessmentListResult + * + */ + mapper() { + return { + required: false, + serializedName: 'ManagedInstanceVulnerabilityAssessmentListResult', + type: { + name: 'Composite', + className: 'ManagedInstanceVulnerabilityAssessmentListResult', + modelProperties: { + value: { + required: false, + readOnly: true, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ManagedInstanceVulnerabilityAssessmentElementType', + type: { + name: 'Composite', + className: 'ManagedInstanceVulnerabilityAssessment' + } + } + } + }, + nextLink: { + required: false, + readOnly: true, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ManagedInstanceVulnerabilityAssessmentListResult; diff --git a/lib/services/sqlManagement2/lib/models/maxSizeCapability.js b/lib/services/sqlManagement2/lib/models/maxSizeCapability.js index 14fe8dc472..35fc65f118 100644 --- a/lib/services/sqlManagement2/lib/models/maxSizeCapability.js +++ b/lib/services/sqlManagement2/lib/models/maxSizeCapability.js @@ -17,10 +17,11 @@ class MaxSizeCapability { /** * Create a MaxSizeCapability. - * @member {number} [limit] The maximum size limit (see 'unit' for the + * @property {number} [limit] The maximum size limit (see 'unit' for the * units). - * @member {string} [unit] The units that the limit is expressed in. Possible - * values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' + * @property {string} [unit] The units that the limit is expressed in. + * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', + * 'Petabytes' */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/maxSizeRangeCapability.js b/lib/services/sqlManagement2/lib/models/maxSizeRangeCapability.js index 37aecc9b82..e1598e9b1b 100644 --- a/lib/services/sqlManagement2/lib/models/maxSizeRangeCapability.js +++ b/lib/services/sqlManagement2/lib/models/maxSizeRangeCapability.js @@ -17,34 +17,34 @@ class MaxSizeRangeCapability { /** * Create a MaxSizeRangeCapability. - * @member {object} [minValue] Minimum value. - * @member {number} [minValue.limit] The maximum size limit (see 'unit' for + * @property {object} [minValue] Minimum value. + * @property {number} [minValue.limit] The maximum size limit (see 'unit' for * the units). - * @member {string} [minValue.unit] The units that the limit is expressed in. - * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', + * @property {string} [minValue.unit] The units that the limit is expressed + * in. Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', * 'Petabytes' - * @member {object} [maxValue] Maximum value. - * @member {number} [maxValue.limit] The maximum size limit (see 'unit' for + * @property {object} [maxValue] Maximum value. + * @property {number} [maxValue.limit] The maximum size limit (see 'unit' for * the units). - * @member {string} [maxValue.unit] The units that the limit is expressed in. - * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', + * @property {string} [maxValue.unit] The units that the limit is expressed + * in. Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', * 'Petabytes' - * @member {object} [scaleSize] Scale/step size for discrete values between + * @property {object} [scaleSize] Scale/step size for discrete values between * the minimum value and the maximum value. - * @member {number} [scaleSize.limit] The maximum size limit (see 'unit' for - * the units). - * @member {string} [scaleSize.unit] The units that the limit is expressed + * @property {number} [scaleSize.limit] The maximum size limit (see 'unit' + * for the units). + * @property {string} [scaleSize.unit] The units that the limit is expressed * in. Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', * 'Petabytes' - * @member {object} [logSize] Size of transaction log. - * @member {number} [logSize.limit] The log size limit (see 'unit' for the + * @property {object} [logSize] Size of transaction log. + * @property {number} [logSize.limit] The log size limit (see 'unit' for the * units). - * @member {string} [logSize.unit] The units that the limit is expressed in. - * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', + * @property {string} [logSize.unit] The units that the limit is expressed + * in. Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', * 'Petabytes', 'Percent' - * @member {string} [status] The status of the capability. Possible values + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being + * @property {string} [reason] The reason for the capability not being * available. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/metric.js b/lib/services/sqlManagement2/lib/models/metric.js index 923087500d..9a907da2c8 100644 --- a/lib/services/sqlManagement2/lib/models/metric.js +++ b/lib/services/sqlManagement2/lib/models/metric.js @@ -17,18 +17,18 @@ class Metric { /** * Create a Metric. - * @member {date} [startTime] The start time for the metric (ISO-8601 + * @property {date} [startTime] The start time for the metric (ISO-8601 * format). - * @member {date} [endTime] The end time for the metric (ISO-8601 format). - * @member {string} [timeGrain] The time step to be used to summarize the + * @property {date} [endTime] The end time for the metric (ISO-8601 format). + * @property {string} [timeGrain] The time step to be used to summarize the * metric values. - * @member {string} [unit] The unit of the metric. Possible values include: + * @property {string} [unit] The unit of the metric. Possible values include: * 'count', 'bytes', 'seconds', 'percent', 'countPerSecond', 'bytesPerSecond' - * @member {object} [name] The name information for the metric. - * @member {string} [name.value] The name of the database metric. - * @member {string} [name.localizedValue] The friendly name of the database + * @property {object} [name] The name information for the metric. + * @property {string} [name.value] The name of the database metric. + * @property {string} [name.localizedValue] The friendly name of the database * metric. - * @member {array} [metricValues] The metric values for the specified time + * @property {array} [metricValues] The metric values for the specified time * window and timestep. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/metricAvailability.js b/lib/services/sqlManagement2/lib/models/metricAvailability.js index 76a4bbdbba..7c2d77d740 100644 --- a/lib/services/sqlManagement2/lib/models/metricAvailability.js +++ b/lib/services/sqlManagement2/lib/models/metricAvailability.js @@ -17,9 +17,9 @@ class MetricAvailability { /** * Create a MetricAvailability. - * @member {string} [retention] The length of retention for the database + * @property {string} [retention] The length of retention for the database * metric. - * @member {string} [timeGrain] The granularity of the database metric. + * @property {string} [timeGrain] The granularity of the database metric. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/metricDefinition.js b/lib/services/sqlManagement2/lib/models/metricDefinition.js index e71bb4cd29..ace21972f3 100644 --- a/lib/services/sqlManagement2/lib/models/metricDefinition.js +++ b/lib/services/sqlManagement2/lib/models/metricDefinition.js @@ -17,17 +17,17 @@ class MetricDefinition { /** * Create a MetricDefinition. - * @member {object} [name] The name information for the metric. - * @member {string} [name.value] The name of the database metric. - * @member {string} [name.localizedValue] The friendly name of the database + * @property {object} [name] The name information for the metric. + * @property {string} [name.value] The name of the database metric. + * @property {string} [name.localizedValue] The friendly name of the database * metric. - * @member {string} [primaryAggregationType] The primary aggregation type + * @property {string} [primaryAggregationType] The primary aggregation type * defining how metric values are displayed. Possible values include: 'None', * 'Average', 'Count', 'Minimum', 'Maximum', 'Total' - * @member {string} [resourceUri] The resource uri of the database. - * @member {string} [unit] The unit of the metric. Possible values include: + * @property {string} [resourceUri] The resource uri of the database. + * @property {string} [unit] The unit of the metric. Possible values include: * 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' - * @member {array} [metricAvailabilities] The list of database metric + * @property {array} [metricAvailabilities] The list of database metric * availabities for the metric. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/metricName.js b/lib/services/sqlManagement2/lib/models/metricName.js index 7d726e2782..cf126031e5 100644 --- a/lib/services/sqlManagement2/lib/models/metricName.js +++ b/lib/services/sqlManagement2/lib/models/metricName.js @@ -17,8 +17,8 @@ class MetricName { /** * Create a MetricName. - * @member {string} [value] The name of the database metric. - * @member {string} [localizedValue] The friendly name of the database + * @property {string} [value] The name of the database metric. + * @property {string} [localizedValue] The friendly name of the database * metric. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/metricValue.js b/lib/services/sqlManagement2/lib/models/metricValue.js index 141203e6cf..a2a3a27196 100644 --- a/lib/services/sqlManagement2/lib/models/metricValue.js +++ b/lib/services/sqlManagement2/lib/models/metricValue.js @@ -17,12 +17,12 @@ class MetricValue { /** * Create a MetricValue. - * @member {number} [count] The number of values for the metric. - * @member {number} [average] The average value of the metric. - * @member {number} [maximum] The max value of the metric. - * @member {number} [minimum] The min value of the metric. - * @member {date} [timestamp] The metric timestamp (ISO-8601 format). - * @member {number} [total] The total value of the metric. + * @property {number} [count] The number of values for the metric. + * @property {number} [average] The average value of the metric. + * @property {number} [maximum] The max value of the metric. + * @property {number} [minimum] The min value of the metric. + * @property {date} [timestamp] The metric timestamp (ISO-8601 format). + * @property {number} [total] The total value of the metric. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/operation.js b/lib/services/sqlManagement2/lib/models/operation.js index 8886037343..9f2a00e1af 100644 --- a/lib/services/sqlManagement2/lib/models/operation.js +++ b/lib/services/sqlManagement2/lib/models/operation.js @@ -17,21 +17,21 @@ class Operation { /** * Create a Operation. - * @member {string} [name] The name of the operation being performed on this - * particular object. - * @member {object} [display] The localized display information for this + * @property {string} [name] The name of the operation being performed on + * this particular object. + * @property {object} [display] The localized display information for this * particular operation / action. - * @member {string} [display.provider] The localized friendly form of the + * @property {string} [display.provider] The localized friendly form of the * resource provider name. - * @member {string} [display.resource] The localized friendly form of the + * @property {string} [display.resource] The localized friendly form of the * resource type related to this action/operation. - * @member {string} [display.operation] The localized friendly name for the + * @property {string} [display.operation] The localized friendly name for the * operation. - * @member {string} [display.description] The localized friendly description - * for the operation. - * @member {string} [origin] The intended executor of the operation. Possible - * values include: 'user', 'system' - * @member {object} [properties] Additional descriptions for the operation. + * @property {string} [display.description] The localized friendly + * description for the operation. + * @property {string} [origin] The intended executor of the operation. + * Possible values include: 'user', 'system' + * @property {object} [properties] Additional descriptions for the operation. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/operationDisplay.js b/lib/services/sqlManagement2/lib/models/operationDisplay.js index 905da4b50c..8ed41f761d 100644 --- a/lib/services/sqlManagement2/lib/models/operationDisplay.js +++ b/lib/services/sqlManagement2/lib/models/operationDisplay.js @@ -17,14 +17,14 @@ class OperationDisplay { /** * Create a OperationDisplay. - * @member {string} [provider] The localized friendly form of the resource + * @property {string} [provider] The localized friendly form of the resource * provider name. - * @member {string} [resource] The localized friendly form of the resource + * @property {string} [resource] The localized friendly form of the resource * type related to this action/operation. - * @member {string} [operation] The localized friendly name for the - * operation. - * @member {string} [description] The localized friendly description for the + * @property {string} [operation] The localized friendly name for the * operation. + * @property {string} [description] The localized friendly description for + * the operation. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/operationImpact.js b/lib/services/sqlManagement2/lib/models/operationImpact.js index 13f85545e9..7c6811cb2d 100644 --- a/lib/services/sqlManagement2/lib/models/operationImpact.js +++ b/lib/services/sqlManagement2/lib/models/operationImpact.js @@ -17,11 +17,11 @@ class OperationImpact { /** * Create a OperationImpact. - * @member {string} [name] The name of the impact dimension. - * @member {string} [unit] The unit in which estimated impact to dimension is - * measured. - * @member {number} [changeValueAbsolute] The absolute impact to dimension. - * @member {number} [changeValueRelative] The relative impact to dimension + * @property {string} [name] The name of the impact dimension. + * @property {string} [unit] The unit in which estimated impact to dimension + * is measured. + * @property {number} [changeValueAbsolute] The absolute impact to dimension. + * @property {number} [changeValueRelative] The relative impact to dimension * (null if not applicable) */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/operationListResult.js b/lib/services/sqlManagement2/lib/models/operationListResult.js index b822f6c79d..a6179c8d07 100644 --- a/lib/services/sqlManagement2/lib/models/operationListResult.js +++ b/lib/services/sqlManagement2/lib/models/operationListResult.js @@ -16,7 +16,7 @@ class OperationListResult extends Array { /** * Create a OperationListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/partnerInfo.js b/lib/services/sqlManagement2/lib/models/partnerInfo.js index 17f9aa74f3..9158ff515a 100644 --- a/lib/services/sqlManagement2/lib/models/partnerInfo.js +++ b/lib/services/sqlManagement2/lib/models/partnerInfo.js @@ -17,10 +17,10 @@ class PartnerInfo { /** * Create a PartnerInfo. - * @member {string} id Resource identifier of the partner server. - * @member {string} [location] Geo location of the partner server. - * @member {string} [replicationRole] Replication role of the partner server. - * Possible values include: 'Primary', 'Secondary' + * @property {string} id Resource identifier of the partner server. + * @property {string} [location] Geo location of the partner server. + * @property {string} [replicationRole] Replication role of the partner + * server. Possible values include: 'Primary', 'Secondary' */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/partnerRegionInfo.js b/lib/services/sqlManagement2/lib/models/partnerRegionInfo.js index dc0b958260..a2f166b047 100644 --- a/lib/services/sqlManagement2/lib/models/partnerRegionInfo.js +++ b/lib/services/sqlManagement2/lib/models/partnerRegionInfo.js @@ -17,9 +17,10 @@ class PartnerRegionInfo { /** * Create a PartnerRegionInfo. - * @member {string} [location] Geo location of the partner managed instances. - * @member {string} [replicationRole] Replication role of the partner managed - * instances. Possible values include: 'Primary', 'Secondary' + * @property {string} [location] Geo location of the partner managed + * instances. + * @property {string} [replicationRole] Replication role of the partner + * managed instances. Possible values include: 'Primary', 'Secondary' */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/performanceLevelCapability.js b/lib/services/sqlManagement2/lib/models/performanceLevelCapability.js index 236196e0d3..7b99f97e14 100644 --- a/lib/services/sqlManagement2/lib/models/performanceLevelCapability.js +++ b/lib/services/sqlManagement2/lib/models/performanceLevelCapability.js @@ -17,8 +17,8 @@ class PerformanceLevelCapability { /** * Create a PerformanceLevelCapability. - * @member {number} [value] Performance level value. - * @member {string} [unit] Unit type used to measure performance level. + * @property {number} [value] Performance level value. + * @property {string} [unit] Unit type used to measure performance level. * Possible values include: 'DTU', 'VCores' */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/recommendedElasticPool.js b/lib/services/sqlManagement2/lib/models/recommendedElasticPool.js index dd8c75d9c7..6ae52e8ba5 100644 --- a/lib/services/sqlManagement2/lib/models/recommendedElasticPool.js +++ b/lib/services/sqlManagement2/lib/models/recommendedElasticPool.js @@ -20,23 +20,23 @@ const models = require('./index'); class RecommendedElasticPool extends models['ProxyResource'] { /** * Create a RecommendedElasticPool. - * @member {string} [databaseEdition] The edition of the recommended elastic - * pool. The ElasticPoolEdition enumeration contains all the valid editions. - * Possible values include: 'Basic', 'Standard', 'Premium' - * @member {number} [dtu] The DTU for the recommended elastic pool. - * @member {number} [databaseDtuMin] The minimum DTU for the database. - * @member {number} [databaseDtuMax] The maximum DTU for the database. - * @member {number} [storageMB] Gets storage size in megabytes. - * @member {date} [observationPeriodStart] The observation period start + * @property {string} [databaseEdition] The edition of the recommended + * elastic pool. The ElasticPoolEdition enumeration contains all the valid + * editions. Possible values include: 'Basic', 'Standard', 'Premium' + * @property {number} [dtu] The DTU for the recommended elastic pool. + * @property {number} [databaseDtuMin] The minimum DTU for the database. + * @property {number} [databaseDtuMax] The maximum DTU for the database. + * @property {number} [storageMB] Gets storage size in megabytes. + * @property {date} [observationPeriodStart] The observation period start * (ISO8601 format). - * @member {date} [observationPeriodEnd] The observation period start + * @property {date} [observationPeriodEnd] The observation period start * (ISO8601 format). - * @member {number} [maxObservedDtu] Gets maximum observed DTU. - * @member {number} [maxObservedStorageMB] Gets maximum observed storage in + * @property {number} [maxObservedDtu] Gets maximum observed DTU. + * @property {number} [maxObservedStorageMB] Gets maximum observed storage in * megabytes. - * @member {array} [databases] The list of databases in this pool. Expanded + * @property {array} [databases] The list of databases in this pool. Expanded * property - * @member {array} [metrics] The list of databases housed in the server. + * @property {array} [metrics] The list of databases housed in the server. * Expanded property */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/recommendedElasticPoolMetric.js b/lib/services/sqlManagement2/lib/models/recommendedElasticPoolMetric.js index f4fc839305..5d8ac43dff 100644 --- a/lib/services/sqlManagement2/lib/models/recommendedElasticPoolMetric.js +++ b/lib/services/sqlManagement2/lib/models/recommendedElasticPoolMetric.js @@ -17,11 +17,11 @@ class RecommendedElasticPoolMetric { /** * Create a RecommendedElasticPoolMetric. - * @member {date} [dateTime] The time of metric (ISO8601 format). - * @member {number} [dtu] Gets or sets the DTUs (Database Transaction Units). - * See + * @property {date} [dateTime] The time of metric (ISO8601 format). + * @property {number} [dtu] Gets or sets the DTUs (Database Transaction + * Units). See * https://azure.microsoft.com/documentation/articles/sql-database-what-is-a-dtu/ - * @member {number} [sizeGB] Gets or sets size in gigabytes. + * @property {number} [sizeGB] Gets or sets size in gigabytes. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/recommendedIndex.js b/lib/services/sqlManagement2/lib/models/recommendedIndex.js index 3f53c9a38d..a2348a38fc 100644 --- a/lib/services/sqlManagement2/lib/models/recommendedIndex.js +++ b/lib/services/sqlManagement2/lib/models/recommendedIndex.js @@ -20,31 +20,32 @@ const models = require('./index'); class RecommendedIndex extends models['ProxyResource'] { /** * Create a RecommendedIndex. - * @member {string} [action] The proposed index action. You can create a + * @property {string} [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' - * @member {string} [state] The current recommendation state. Possible values - * include: 'Active', 'Pending', 'Executing', 'Verifying', 'Pending Revert', - * 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', 'Success' - * @member {date} [created] The UTC datetime showing when this resource was + * @property {string} [state] The current recommendation state. Possible + * values include: 'Active', 'Pending', 'Executing', 'Verifying', 'Pending + * Revert', 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', + * 'Success' + * @property {date} [created] The UTC datetime showing when this resource was * created (ISO8601 format). - * @member {date} [lastModified] The UTC datetime of when was this resource + * @property {date} [lastModified] The UTC datetime of when was this resource * last changed (ISO8601 format). - * @member {string} [indexType] The type of index (CLUSTERED, NONCLUSTERED, + * @property {string} [indexType] The type of index (CLUSTERED, NONCLUSTERED, * COLUMNSTORE, CLUSTERED COLUMNSTORE). Possible values include: 'CLUSTERED', * 'NONCLUSTERED', 'COLUMNSTORE', 'CLUSTERED COLUMNSTORE' - * @member {string} [schema] The schema where table to build index over + * @property {string} [schema] The schema where table to build index over * resides - * @member {string} [table] The table on which to build index. - * @member {array} [columns] Columns over which to build index - * @member {array} [includedColumns] The list of column names to be included - * in the index - * @member {string} [indexScript] The full build index script - * @member {array} [estimatedImpact] The estimated impact of doing + * @property {string} [table] The table on which to build index. + * @property {array} [columns] Columns over which to build index + * @property {array} [includedColumns] The list of column names to be + * included in the index + * @property {string} [indexScript] The full build index script + * @property {array} [estimatedImpact] The estimated impact of doing * recommended index action. - * @member {array} [reportedImpact] The values reported after index action is - * complete. + * @property {array} [reportedImpact] The values reported after index action + * is complete. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/recoverableDatabase.js b/lib/services/sqlManagement2/lib/models/recoverableDatabase.js index 0f9cb2af1f..4a5d371091 100644 --- a/lib/services/sqlManagement2/lib/models/recoverableDatabase.js +++ b/lib/services/sqlManagement2/lib/models/recoverableDatabase.js @@ -20,12 +20,12 @@ const models = require('./index'); class RecoverableDatabase extends models['ProxyResource'] { /** * Create a RecoverableDatabase. - * @member {string} [edition] The edition of the database - * @member {string} [serviceLevelObjective] The service level objective name - * of the database - * @member {string} [elasticPoolName] The elastic pool name of the database - * @member {date} [lastAvailableBackupDate] The last available backup date of - * the database (ISO8601 format) + * @property {string} [edition] The edition of the database + * @property {string} [serviceLevelObjective] The service level objective + * name of the database + * @property {string} [elasticPoolName] The elastic pool name of the database + * @property {date} [lastAvailableBackupDate] The last available backup date + * of the database (ISO8601 format) */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/replicationLink.js b/lib/services/sqlManagement2/lib/models/replicationLink.js index a83f1ac876..eb1a29c897 100644 --- a/lib/services/sqlManagement2/lib/models/replicationLink.js +++ b/lib/services/sqlManagement2/lib/models/replicationLink.js @@ -20,27 +20,27 @@ const models = require('./index'); class ReplicationLink extends models['ProxyResource'] { /** * Create a ReplicationLink. - * @member {string} [location] Location of the server that contains this + * @property {string} [location] Location of the server that contains this * firewall rule. - * @member {boolean} [isTerminationAllowed] Legacy value indicating whether + * @property {boolean} [isTerminationAllowed] Legacy value indicating whether * termination is allowed. Currently always returns true. - * @member {string} [replicationMode] Replication mode of this replication + * @property {string} [replicationMode] Replication mode of this replication * link. - * @member {string} [partnerServer] The name of the server hosting the + * @property {string} [partnerServer] The name of the server hosting the * partner database. - * @member {string} [partnerDatabase] The name of the partner database. - * @member {string} [partnerLocation] The Azure Region of the partner + * @property {string} [partnerDatabase] The name of the partner database. + * @property {string} [partnerLocation] The Azure Region of the partner * database. - * @member {string} [role] The role of the database in the replication link. - * Possible values include: 'Primary', 'Secondary', 'NonReadableSecondary', - * 'Source', 'Copy' - * @member {string} [partnerRole] The role of the partner database in the + * @property {string} [role] The role of the database in the replication + * link. Possible values include: 'Primary', 'Secondary', + * 'NonReadableSecondary', 'Source', 'Copy' + * @property {string} [partnerRole] The role of the partner database in the * replication link. Possible values include: 'Primary', 'Secondary', * 'NonReadableSecondary', 'Source', 'Copy' - * @member {date} [startTime] The start time for the replication link. - * @member {number} [percentComplete] The percentage of seeding complete for - * the replication link. - * @member {string} [replicationState] The replication state for the + * @property {date} [startTime] The start time for the replication link. + * @property {number} [percentComplete] The percentage of seeding complete + * for the replication link. + * @property {string} [replicationState] The replication state for the * replication link. Possible values include: 'PENDING', 'SEEDING', * 'CATCH_UP', 'SUSPENDED' */ diff --git a/lib/services/sqlManagement2/lib/models/resource.js b/lib/services/sqlManagement2/lib/models/resource.js index 57088e37e3..9ccac357d1 100644 --- a/lib/services/sqlManagement2/lib/models/resource.js +++ b/lib/services/sqlManagement2/lib/models/resource.js @@ -20,9 +20,9 @@ const models = require('./index'); class Resource extends models['BaseResource'] { /** * Create a Resource. - * @member {string} [id] Resource ID. - * @member {string} [name] Resource name. - * @member {string} [type] Resource type. + * @property {string} [id] Resource ID. + * @property {string} [name] Resource name. + * @property {string} [type] Resource type. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/resourceIdentity.js b/lib/services/sqlManagement2/lib/models/resourceIdentity.js index 7894f19232..7082928fc1 100644 --- a/lib/services/sqlManagement2/lib/models/resourceIdentity.js +++ b/lib/services/sqlManagement2/lib/models/resourceIdentity.js @@ -17,11 +17,11 @@ class ResourceIdentity { /** * Create a ResourceIdentity. - * @member {uuid} [principalId] The Azure Active Directory principal id. - * @member {string} [type] The identity type. Set this to 'SystemAssigned' in - * order to automatically create and assign an Azure Active Directory + * @property {uuid} [principalId] The Azure Active Directory principal id. + * @property {string} [type] The identity type. Set this to 'SystemAssigned' + * in order to automatically create and assign an Azure Active Directory * principal for the resource. Possible values include: 'SystemAssigned' - * @member {uuid} [tenantId] The Azure Active Directory tenant id. + * @property {uuid} [tenantId] The Azure Active Directory tenant id. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/resourceMoveDefinition.js b/lib/services/sqlManagement2/lib/models/resourceMoveDefinition.js index db42dcff0f..52120388c3 100644 --- a/lib/services/sqlManagement2/lib/models/resourceMoveDefinition.js +++ b/lib/services/sqlManagement2/lib/models/resourceMoveDefinition.js @@ -17,7 +17,7 @@ class ResourceMoveDefinition { /** * Create a ResourceMoveDefinition. - * @member {string} id The target ID for the resource + * @property {string} id The target ID for the resource */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/restorableDroppedDatabase.js b/lib/services/sqlManagement2/lib/models/restorableDroppedDatabase.js index e18ed5e402..2103bc1ba3 100644 --- a/lib/services/sqlManagement2/lib/models/restorableDroppedDatabase.js +++ b/lib/services/sqlManagement2/lib/models/restorableDroppedDatabase.js @@ -20,18 +20,18 @@ const models = require('./index'); class RestorableDroppedDatabase extends models['ProxyResource'] { /** * Create a RestorableDroppedDatabase. - * @member {string} [location] The geo-location where the resource lives - * @member {string} [databaseName] The name of the database - * @member {string} [edition] The edition of the database - * @member {string} [maxSizeBytes] The max size in bytes of the database - * @member {string} [serviceLevelObjective] The service level objective name - * of the database - * @member {string} [elasticPoolName] The elastic pool name of the database - * @member {date} [creationDate] The creation date of the database (ISO8601 + * @property {string} [location] The geo-location where the resource lives + * @property {string} [databaseName] The name of the database + * @property {string} [edition] The edition of the database + * @property {string} [maxSizeBytes] The max size in bytes of the database + * @property {string} [serviceLevelObjective] The service level objective + * name of the database + * @property {string} [elasticPoolName] The elastic pool name of the database + * @property {date} [creationDate] The creation date of the database (ISO8601 * format) - * @member {date} [deletionDate] The deletion date of the database (ISO8601 + * @property {date} [deletionDate] The deletion date of the database (ISO8601 * format) - * @member {date} [earliestRestoreDate] The earliest restore date of the + * @property {date} [earliestRestoreDate] The earliest restore date of the * database (ISO8601 format) */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/restorePoint.js b/lib/services/sqlManagement2/lib/models/restorePoint.js index 0765e34c30..aceb71deb9 100644 --- a/lib/services/sqlManagement2/lib/models/restorePoint.js +++ b/lib/services/sqlManagement2/lib/models/restorePoint.js @@ -20,14 +20,14 @@ const models = require('./index'); class RestorePoint extends models['ProxyResource'] { /** * Create a RestorePoint. - * @member {string} [location] Resource location. - * @member {string} [restorePointType] The type of restore point. Possible + * @property {string} [location] Resource location. + * @property {string} [restorePointType] The type of restore point. Possible * values include: 'CONTINUOUS', 'DISCRETE' - * @member {date} [earliestRestoreDate] The earliest time to which this + * @property {date} [earliestRestoreDate] The earliest time to which this * database can be restored - * @member {date} [restorePointCreationDate] The time the backup was taken - * @member {string} [restorePointLabel] The label of restore point for backup - * request by user + * @property {date} [restorePointCreationDate] The time the backup was taken + * @property {string} [restorePointLabel] The label of restore point for + * backup request by user */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/restorePointListResult.js b/lib/services/sqlManagement2/lib/models/restorePointListResult.js index e89c1079ba..4af2de5109 100644 --- a/lib/services/sqlManagement2/lib/models/restorePointListResult.js +++ b/lib/services/sqlManagement2/lib/models/restorePointListResult.js @@ -16,7 +16,7 @@ class RestorePointListResult extends Array { /** * Create a RestorePointListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/server.js b/lib/services/sqlManagement2/lib/models/server.js index a382dc4dc7..14c2c6e2cb 100644 --- a/lib/services/sqlManagement2/lib/models/server.js +++ b/lib/services/sqlManagement2/lib/models/server.js @@ -20,24 +20,24 @@ const models = require('./index'); class Server extends models['TrackedResource'] { /** * Create a Server. - * @member {object} [identity] The Azure Active Directory identity of the + * @property {object} [identity] The Azure Active Directory identity of the * server. - * @member {uuid} [identity.principalId] The Azure Active Directory principal - * id. - * @member {string} [identity.type] The identity type. Set this to + * @property {uuid} [identity.principalId] The Azure Active Directory + * principal id. + * @property {string} [identity.type] The identity type. Set this to * 'SystemAssigned' in order to automatically create and assign an Azure * Active Directory principal for the resource. Possible values include: * 'SystemAssigned' - * @member {uuid} [identity.tenantId] The Azure Active Directory tenant id. - * @member {string} [kind] Kind of sql server. This is metadata used for the - * Azure portal experience. - * @member {string} [administratorLogin] Administrator username for the + * @property {uuid} [identity.tenantId] The Azure Active Directory tenant id. + * @property {string} [kind] Kind of sql server. This is metadata used for + * the Azure portal experience. + * @property {string} [administratorLogin] Administrator username for the * server. Once created it cannot be changed. - * @member {string} [administratorLoginPassword] The administrator login + * @property {string} [administratorLoginPassword] The administrator login * password (required for server creation). - * @member {string} [version] The version of the server. - * @member {string} [state] The state of the server. - * @member {string} [fullyQualifiedDomainName] The fully qualified domain + * @property {string} [version] The version of the server. + * @property {string} [state] The state of the server. + * @property {string} [fullyQualifiedDomainName] The fully qualified domain * name of the server. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/serverAutomaticTuning.js b/lib/services/sqlManagement2/lib/models/serverAutomaticTuning.js index 339999b62f..5e9861b536 100644 --- a/lib/services/sqlManagement2/lib/models/serverAutomaticTuning.js +++ b/lib/services/sqlManagement2/lib/models/serverAutomaticTuning.js @@ -20,11 +20,11 @@ const models = require('./index'); class ServerAutomaticTuning extends models['ProxyResource'] { /** * Create a ServerAutomaticTuning. - * @member {string} [desiredState] Automatic tuning desired state. Possible + * @property {string} [desiredState] Automatic tuning desired state. Possible * values include: 'Custom', 'Auto', 'Unspecified' - * @member {string} [actualState] Automatic tuning actual state. Possible + * @property {string} [actualState] Automatic tuning actual state. Possible * values include: 'Custom', 'Auto', 'Unspecified' - * @member {object} [options] Automatic tuning options definition. + * @property {object} [options] Automatic tuning options definition. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/serverAzureADAdministrator.js b/lib/services/sqlManagement2/lib/models/serverAzureADAdministrator.js index 42085b04b8..66a9c2fe7d 100644 --- a/lib/services/sqlManagement2/lib/models/serverAzureADAdministrator.js +++ b/lib/services/sqlManagement2/lib/models/serverAzureADAdministrator.js @@ -20,9 +20,9 @@ const models = require('./index'); class ServerAzureADAdministrator extends models['ProxyResource'] { /** * Create a ServerAzureADAdministrator. - * @member {string} login The server administrator login value. - * @member {uuid} sid The server administrator Sid (Secure ID). - * @member {uuid} tenantId The server Active Directory Administrator tenant + * @property {string} login The server administrator login value. + * @property {uuid} sid The server administrator Sid (Secure ID). + * @property {uuid} tenantId The server Active Directory Administrator tenant * id. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/serverBlobAuditingPolicy.js b/lib/services/sqlManagement2/lib/models/serverBlobAuditingPolicy.js index 0d7fce9d01..876de3aa15 100644 --- a/lib/services/sqlManagement2/lib/models/serverBlobAuditingPolicy.js +++ b/lib/services/sqlManagement2/lib/models/serverBlobAuditingPolicy.js @@ -20,18 +20,18 @@ const models = require('./index'); class ServerBlobAuditingPolicy extends models['ProxyResource'] { /** * Create a ServerBlobAuditingPolicy. - * @member {string} state Specifies the state of the policy. If state is + * @property {string} state Specifies the state of the policy. If state is * Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. * Possible values include: 'Enabled', 'Disabled' - * @member {string} [storageEndpoint] Specifies the blob storage endpoint + * @property {string} [storageEndpoint] Specifies the blob storage endpoint * (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, * storageEndpoint is required. - * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the auditing storage account. If state is Enabled and storageEndpoint is - * specified, storageAccountAccessKey is required. - * @member {number} [retentionDays] Specifies the number of days to keep in + * @property {string} [storageAccountAccessKey] Specifies the identifier key + * of the auditing storage account. If state is Enabled and storageEndpoint + * is specified, storageAccountAccessKey is required. + * @property {number} [retentionDays] Specifies the number of days to keep in * the audit logs in the storage account. - * @member {array} [auditActionsAndGroups] Specifies the Actions-Groups and + * @property {array} [auditActionsAndGroups] Specifies the Actions-Groups and * Actions to audit. * * The recommended set of action groups to use is the following combination - @@ -103,11 +103,11 @@ class ServerBlobAuditingPolicy extends models['ProxyResource'] { * * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - * @member {uuid} [storageAccountSubscriptionId] Specifies the blob storage + * @property {uuid} [storageAccountSubscriptionId] Specifies the blob storage * subscription Id. - * @member {boolean} [isStorageSecondaryKeyInUse] Specifies whether + * @property {boolean} [isStorageSecondaryKeyInUse] Specifies whether * storageAccountAccessKey value is the storage's secondary key. - * @member {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit + * @property {boolean} [isAzureMonitorTargetEnabled] Specifies whether audit * events are sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' * and 'IsAzureMonitorTargetEnabled' as true. diff --git a/lib/services/sqlManagement2/lib/models/serverCommunicationLink.js b/lib/services/sqlManagement2/lib/models/serverCommunicationLink.js index b94d324ce4..29abf28b32 100644 --- a/lib/services/sqlManagement2/lib/models/serverCommunicationLink.js +++ b/lib/services/sqlManagement2/lib/models/serverCommunicationLink.js @@ -20,10 +20,10 @@ const models = require('./index'); class ServerCommunicationLink extends models['ProxyResource'] { /** * Create a ServerCommunicationLink. - * @member {string} [state] The state. - * @member {string} partnerServer The name of the partner server. - * @member {string} [location] Communication link location. - * @member {string} [kind] Communication link kind. This property is used + * @property {string} [state] The state. + * @property {string} partnerServer The name of the partner server. + * @property {string} [location] Communication link location. + * @property {string} [kind] Communication link kind. This property is used * for Azure Portal metadata. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/serverConnectionPolicy.js b/lib/services/sqlManagement2/lib/models/serverConnectionPolicy.js index e0b6358587..e3ca311d25 100644 --- a/lib/services/sqlManagement2/lib/models/serverConnectionPolicy.js +++ b/lib/services/sqlManagement2/lib/models/serverConnectionPolicy.js @@ -20,9 +20,9 @@ const models = require('./index'); class ServerConnectionPolicy extends models['ProxyResource'] { /** * Create a ServerConnectionPolicy. - * @member {string} [kind] Metadata used for the Azure portal experience. - * @member {string} [location] Resource location. - * @member {string} connectionType The server connection type. Possible + * @property {string} [kind] Metadata used for the Azure portal experience. + * @property {string} [location] Resource location. + * @property {string} connectionType The server connection type. Possible * values include: 'Default', 'Proxy', 'Redirect' */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/serverDnsAlias.js b/lib/services/sqlManagement2/lib/models/serverDnsAlias.js index 34d55a5648..374fb36b31 100644 --- a/lib/services/sqlManagement2/lib/models/serverDnsAlias.js +++ b/lib/services/sqlManagement2/lib/models/serverDnsAlias.js @@ -20,7 +20,8 @@ const models = require('./index'); class ServerDnsAlias extends models['ProxyResource'] { /** * Create a ServerDnsAlias. - * @member {string} [azureDnsRecord] The fully qualified DNS record for alias + * @property {string} [azureDnsRecord] The fully qualified DNS record for + * alias */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/serverDnsAliasAcquisition.js b/lib/services/sqlManagement2/lib/models/serverDnsAliasAcquisition.js index 7ea9139af4..541116dad9 100644 --- a/lib/services/sqlManagement2/lib/models/serverDnsAliasAcquisition.js +++ b/lib/services/sqlManagement2/lib/models/serverDnsAliasAcquisition.js @@ -17,7 +17,7 @@ class ServerDnsAliasAcquisition { /** * Create a ServerDnsAliasAcquisition. - * @member {string} [oldServerDnsAliasId] The id of the server alias that + * @property {string} [oldServerDnsAliasId] The id of the server alias that * will be acquired to point to this server instead. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/serverDnsAliasListResult.js b/lib/services/sqlManagement2/lib/models/serverDnsAliasListResult.js index 6d85947ac1..021b864904 100644 --- a/lib/services/sqlManagement2/lib/models/serverDnsAliasListResult.js +++ b/lib/services/sqlManagement2/lib/models/serverDnsAliasListResult.js @@ -16,7 +16,7 @@ class ServerDnsAliasListResult extends Array { /** * Create a ServerDnsAliasListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/serverKey.js b/lib/services/sqlManagement2/lib/models/serverKey.js index a000b99218..71677a16d0 100644 --- a/lib/services/sqlManagement2/lib/models/serverKey.js +++ b/lib/services/sqlManagement2/lib/models/serverKey.js @@ -20,16 +20,16 @@ const models = require('./index'); class ServerKey extends models['ProxyResource'] { /** * Create a ServerKey. - * @member {string} [kind] Kind of encryption protector. This is metadata + * @property {string} [kind] Kind of encryption protector. This is metadata * used for the Azure portal experience. - * @member {string} [location] Resource location. - * @member {string} [subregion] Subregion of the server key. - * @member {string} serverKeyType The server key type like 'ServiceManaged', - * 'AzureKeyVault'. Possible values include: 'ServiceManaged', - * 'AzureKeyVault' - * @member {string} [uri] The URI of the server key. - * @member {string} [thumbprint] Thumbprint of the server key. - * @member {date} [creationDate] The server key creation date. + * @property {string} [location] Resource location. + * @property {string} [subregion] Subregion of the server key. + * @property {string} serverKeyType The server key type like + * 'ServiceManaged', 'AzureKeyVault'. Possible values include: + * 'ServiceManaged', 'AzureKeyVault' + * @property {string} [uri] The URI of the server key. + * @property {string} [thumbprint] Thumbprint of the server key. + * @property {date} [creationDate] The server key creation date. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/serverKeyListResult.js b/lib/services/sqlManagement2/lib/models/serverKeyListResult.js index ff41b8b899..a3730dcd22 100644 --- a/lib/services/sqlManagement2/lib/models/serverKeyListResult.js +++ b/lib/services/sqlManagement2/lib/models/serverKeyListResult.js @@ -16,7 +16,7 @@ class ServerKeyListResult extends Array { /** * Create a ServerKeyListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/serverListResult.js b/lib/services/sqlManagement2/lib/models/serverListResult.js index ff05820412..f39f3096a6 100644 --- a/lib/services/sqlManagement2/lib/models/serverListResult.js +++ b/lib/services/sqlManagement2/lib/models/serverListResult.js @@ -16,7 +16,7 @@ class ServerListResult extends Array { /** * Create a ServerListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/serverSecurityAlertPolicy.js b/lib/services/sqlManagement2/lib/models/serverSecurityAlertPolicy.js index 51a8322dd0..9828ff0d44 100644 --- a/lib/services/sqlManagement2/lib/models/serverSecurityAlertPolicy.js +++ b/lib/services/sqlManagement2/lib/models/serverSecurityAlertPolicy.js @@ -20,21 +20,21 @@ const models = require('./index'); class ServerSecurityAlertPolicy extends models['ProxyResource'] { /** * Create a ServerSecurityAlertPolicy. - * @member {string} state Specifies the state of the policy, whether it is + * @property {string} state Specifies the state of the policy, whether it is * enabled or disabled. Possible values include: 'New', 'Enabled', 'Disabled' - * @member {array} [disabledAlerts] Specifies an array of alerts that are + * @property {array} [disabledAlerts] Specifies an array of alerts that are * disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, * Access_Anomaly, Data_Exfiltration, Unsafe_Action - * @member {array} [emailAddresses] Specifies an array of e-mail addresses to - * which the alert is sent. - * @member {boolean} [emailAccountAdmins] Specifies that the alert is sent to - * the account administrators. - * @member {string} [storageEndpoint] Specifies the blob storage endpoint + * @property {array} [emailAddresses] Specifies an array of e-mail addresses + * to which the alert is sent. + * @property {boolean} [emailAccountAdmins] Specifies that the alert is sent + * to the account administrators. + * @property {string} [storageEndpoint] Specifies the blob storage endpoint * (e.g. https://MyAccount.blob.core.windows.net). This blob storage will * hold all Threat Detection audit logs. - * @member {string} [storageAccountAccessKey] Specifies the identifier key of - * the Threat Detection audit storage account. - * @member {number} [retentionDays] Specifies the number of days to keep in + * @property {string} [storageAccountAccessKey] Specifies the identifier key + * of the Threat Detection audit storage account. + * @property {number} [retentionDays] Specifies the number of days to keep in * the Threat Detection audit logs. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/serverUpdate.js b/lib/services/sqlManagement2/lib/models/serverUpdate.js index f405bc8246..6c06f57f4a 100644 --- a/lib/services/sqlManagement2/lib/models/serverUpdate.js +++ b/lib/services/sqlManagement2/lib/models/serverUpdate.js @@ -17,15 +17,15 @@ class ServerUpdate { /** * Create a ServerUpdate. - * @member {string} [administratorLogin] Administrator username for the + * @property {string} [administratorLogin] Administrator username for the * server. Once created it cannot be changed. - * @member {string} [administratorLoginPassword] The administrator login + * @property {string} [administratorLoginPassword] The administrator login * password (required for server creation). - * @member {string} [version] The version of the server. - * @member {string} [state] The state of the server. - * @member {string} [fullyQualifiedDomainName] The fully qualified domain + * @property {string} [version] The version of the server. + * @property {string} [state] The state of the server. + * @property {string} [fullyQualifiedDomainName] The fully qualified domain * name of the server. - * @member {object} [tags] Resource tags. + * @property {object} [tags] Resource tags. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/serverUsage.js b/lib/services/sqlManagement2/lib/models/serverUsage.js index d03946f298..528b57ae5f 100644 --- a/lib/services/sqlManagement2/lib/models/serverUsage.js +++ b/lib/services/sqlManagement2/lib/models/serverUsage.js @@ -17,14 +17,14 @@ class ServerUsage { /** * Create a ServerUsage. - * @member {string} [name] Name of the server usage metric. - * @member {string} [resourceName] The name of the resource. - * @member {string} [displayName] The metric display name. - * @member {number} [currentValue] The current value of the metric. - * @member {number} [limit] The current limit of the metric. - * @member {string} [unit] The units of the metric. - * @member {date} [nextResetTime] The next reset time for the metric (ISO8601 - * format). + * @property {string} [name] Name of the server usage metric. + * @property {string} [resourceName] The name of the resource. + * @property {string} [displayName] The metric display name. + * @property {number} [currentValue] The current value of the metric. + * @property {number} [limit] The current limit of the metric. + * @property {string} [unit] The units of the metric. + * @property {date} [nextResetTime] The next reset time for the metric + * (ISO8601 format). */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/serverVersionCapability.js b/lib/services/sqlManagement2/lib/models/serverVersionCapability.js index 5fe7e5a592..032602f801 100644 --- a/lib/services/sqlManagement2/lib/models/serverVersionCapability.js +++ b/lib/services/sqlManagement2/lib/models/serverVersionCapability.js @@ -17,14 +17,14 @@ class ServerVersionCapability { /** * Create a ServerVersionCapability. - * @member {string} [name] The server version name. - * @member {array} [supportedEditions] The list of supported database + * @property {string} [name] The server version name. + * @property {array} [supportedEditions] The list of supported database * editions. - * @member {array} [supportedElasticPoolEditions] The list of supported + * @property {array} [supportedElasticPoolEditions] The list of supported * elastic pool editions. - * @member {string} [status] The status of the capability. Possible values + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being + * @property {string} [reason] The reason for the capability not being * available. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/serverVulnerabilityAssessment.js b/lib/services/sqlManagement2/lib/models/serverVulnerabilityAssessment.js new file mode 100644 index 0000000000..79b05773c6 --- /dev/null +++ b/lib/services/sqlManagement2/lib/models/serverVulnerabilityAssessment.js @@ -0,0 +1,119 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const models = require('./index'); + +/** + * A server vulnerability assessment. + * + * @extends models['ProxyResource'] + */ +class ServerVulnerabilityAssessment extends models['ProxyResource'] { + /** + * Create a ServerVulnerabilityAssessment. + * @property {string} storageContainerPath A blob storage container path to + * hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). + * @property {string} [storageContainerSasKey] A shared access signature (SAS + * Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. + * @property {string} [storageAccountAccessKey] Specifies the identifier key + * of the storage account for vulnerability assessment scan results. If + * 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is + * required. + * @property {object} [recurringScans] The recurring scans settings + * @property {boolean} [recurringScans.isEnabled] Recurring scans state. + * @property {boolean} [recurringScans.emailSubscriptionAdmins] Specifies + * that the schedule scan notification will be is sent to the subscription + * administrators. + * @property {array} [recurringScans.emails] Specifies an array of e-mail + * addresses to which the scan notification is sent. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ServerVulnerabilityAssessment + * + * @returns {object} metadata of ServerVulnerabilityAssessment + * + */ + mapper() { + return { + required: false, + serializedName: 'ServerVulnerabilityAssessment', + type: { + name: 'Composite', + className: 'ServerVulnerabilityAssessment', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + storageContainerPath: { + required: true, + serializedName: 'properties.storageContainerPath', + type: { + name: 'String' + } + }, + storageContainerSasKey: { + required: false, + serializedName: 'properties.storageContainerSasKey', + type: { + name: 'String' + } + }, + storageAccountAccessKey: { + required: false, + serializedName: 'properties.storageAccountAccessKey', + type: { + name: 'String' + } + }, + recurringScans: { + required: false, + serializedName: 'properties.recurringScans', + type: { + name: 'Composite', + className: 'VulnerabilityAssessmentRecurringScansProperties' + } + } + } + } + }; + } +} + +module.exports = ServerVulnerabilityAssessment; diff --git a/lib/services/sqlManagement2/lib/models/serverVulnerabilityAssessmentListResult.js b/lib/services/sqlManagement2/lib/models/serverVulnerabilityAssessmentListResult.js new file mode 100644 index 0000000000..0d588fb790 --- /dev/null +++ b/lib/services/sqlManagement2/lib/models/serverVulnerabilityAssessmentListResult.js @@ -0,0 +1,69 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * A list of the server's vulnerability assessments. + */ +class ServerVulnerabilityAssessmentListResult extends Array { + /** + * Create a ServerVulnerabilityAssessmentListResult. + * @property {string} [nextLink] Link to retrieve next page of results. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ServerVulnerabilityAssessmentListResult + * + * @returns {object} metadata of ServerVulnerabilityAssessmentListResult + * + */ + mapper() { + return { + required: false, + serializedName: 'ServerVulnerabilityAssessmentListResult', + type: { + name: 'Composite', + className: 'ServerVulnerabilityAssessmentListResult', + modelProperties: { + value: { + required: false, + readOnly: true, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ServerVulnerabilityAssessmentElementType', + type: { + name: 'Composite', + className: 'ServerVulnerabilityAssessment' + } + } + } + }, + nextLink: { + required: false, + readOnly: true, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ServerVulnerabilityAssessmentListResult; diff --git a/lib/services/sqlManagement2/lib/models/serviceObjective.js b/lib/services/sqlManagement2/lib/models/serviceObjective.js index b6f69e8394..d2f0a08435 100644 --- a/lib/services/sqlManagement2/lib/models/serviceObjective.js +++ b/lib/services/sqlManagement2/lib/models/serviceObjective.js @@ -20,15 +20,15 @@ const models = require('./index'); class ServiceObjective extends models['ProxyResource'] { /** * Create a ServiceObjective. - * @member {string} [serviceObjectiveName] The name for the service + * @property {string} [serviceObjectiveName] The name for the service * objective. - * @member {boolean} [isDefault] Gets whether the service level objective is - * the default service objective. - * @member {boolean} [isSystem] Gets whether the service level objective is a - * system service objective. - * @member {string} [description] The description for the service level + * @property {boolean} [isDefault] Gets whether the service level objective + * is the default service objective. + * @property {boolean} [isSystem] Gets whether the service level objective is + * a system service objective. + * @property {string} [description] The description for the service level * objective. - * @member {boolean} [enabled] Gets whether the service level objective is + * @property {boolean} [enabled] Gets whether the service level objective is * enabled. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/serviceObjectiveCapability.js b/lib/services/sqlManagement2/lib/models/serviceObjectiveCapability.js index 1d3ce05b55..94c0be3420 100644 --- a/lib/services/sqlManagement2/lib/models/serviceObjectiveCapability.js +++ b/lib/services/sqlManagement2/lib/models/serviceObjectiveCapability.js @@ -17,38 +17,38 @@ class ServiceObjectiveCapability { /** * Create a ServiceObjectiveCapability. - * @member {uuid} [id] The unique ID of the service objective. - * @member {string} [name] The service objective name. - * @member {array} [supportedMaxSizes] The list of supported maximum database - * sizes. - * @member {object} [performanceLevel] The performance level. - * @member {number} [performanceLevel.value] Performance level value. - * @member {string} [performanceLevel.unit] Unit type used to measure + * @property {uuid} [id] The unique ID of the service objective. + * @property {string} [name] The service objective name. + * @property {array} [supportedMaxSizes] The list of supported maximum + * database sizes. + * @property {object} [performanceLevel] The performance level. + * @property {number} [performanceLevel.value] Performance level value. + * @property {string} [performanceLevel.unit] Unit type used to measure * performance level. Possible values include: 'DTU', 'VCores' - * @member {object} [sku] The sku. - * @member {string} [sku.name] The name of the SKU. Ex - P3. It is typically - * a letter+number code - * @member {string} [sku.tier] This field is required to be implemented by + * @property {object} [sku] The sku. + * @property {string} [sku.name] The name of the SKU. Ex - P3. It is + * typically a letter+number code + * @property {string} [sku.tier] This field is required to be implemented by * the Resource Provider if the service has more than one tier, but is not * required on a PUT. - * @member {string} [sku.size] The SKU size. When the name field is the + * @property {string} [sku.size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone * code. - * @member {string} [sku.family] If the service has different generations of - * hardware, for the same SKU, then that can be captured here. - * @member {number} [sku.capacity] If the SKU supports scale out/in then the - * capacity integer should be included. If scale out/in is not possible for - * the resource this may be omitted. - * @member {array} [supportedLicenseTypes] List of supported license types. - * @member {object} [includedMaxSize] The included (free) max size. - * @member {number} [includedMaxSize.limit] The maximum size limit (see + * @property {string} [sku.family] If the service has different generations + * of hardware, for the same SKU, then that can be captured here. + * @property {number} [sku.capacity] If the SKU supports scale out/in then + * the capacity integer should be included. If scale out/in is not possible + * for the resource this may be omitted. + * @property {array} [supportedLicenseTypes] List of supported license types. + * @property {object} [includedMaxSize] The included (free) max size. + * @property {number} [includedMaxSize.limit] The maximum size limit (see * 'unit' for the units). - * @member {string} [includedMaxSize.unit] The units that the limit is + * @property {string} [includedMaxSize.unit] The units that the limit is * expressed in. Possible values include: 'Megabytes', 'Gigabytes', * 'Terabytes', 'Petabytes' - * @member {string} [status] The status of the capability. Possible values + * @property {string} [status] The status of the capability. Possible values * include: 'Visible', 'Available', 'Default', 'Disabled' - * @member {string} [reason] The reason for the capability not being + * @property {string} [reason] The reason for the capability not being * available. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/serviceTierAdvisor.js b/lib/services/sqlManagement2/lib/models/serviceTierAdvisor.js index e2aa7fbb1c..a36ae56b6f 100644 --- a/lib/services/sqlManagement2/lib/models/serviceTierAdvisor.js +++ b/lib/services/sqlManagement2/lib/models/serviceTierAdvisor.js @@ -20,46 +20,47 @@ const models = require('./index'); class ServiceTierAdvisor extends models['ProxyResource'] { /** * Create a ServiceTierAdvisor. - * @member {date} [observationPeriodStart] The observation period start + * @property {date} [observationPeriodStart] The observation period start * (ISO8601 format). - * @member {date} [observationPeriodEnd] The observation period start + * @property {date} [observationPeriodEnd] The observation period start * (ISO8601 format). - * @member {number} [activeTimeRatio] The activeTimeRatio for service tier + * @property {number} [activeTimeRatio] The activeTimeRatio for service tier * advisor. - * @member {number} [minDtu] Gets or sets minDtu for service tier advisor. - * @member {number} [avgDtu] Gets or sets avgDtu for service tier advisor. - * @member {number} [maxDtu] Gets or sets maxDtu for service tier advisor. - * @member {number} [maxSizeInGB] Gets or sets maxSizeInGB for service tier + * @property {number} [minDtu] Gets or sets minDtu for service tier advisor. + * @property {number} [avgDtu] Gets or sets avgDtu for service tier advisor. + * @property {number} [maxDtu] Gets or sets maxDtu for service tier advisor. + * @property {number} [maxSizeInGB] Gets or sets maxSizeInGB for service tier * advisor. - * @member {array} [serviceLevelObjectiveUsageMetrics] Gets or sets + * @property {array} [serviceLevelObjectiveUsageMetrics] Gets or sets * serviceLevelObjectiveUsageMetrics for the service tier advisor. - * @member {string} [currentServiceLevelObjective] Gets or sets + * @property {string} [currentServiceLevelObjective] Gets or sets * currentServiceLevelObjective for service tier advisor. - * @member {uuid} [currentServiceLevelObjectiveId] Gets or sets + * @property {uuid} [currentServiceLevelObjectiveId] Gets or sets * currentServiceLevelObjectiveId for service tier advisor. - * @member {string} [usageBasedRecommendationServiceLevelObjective] Gets or + * @property {string} [usageBasedRecommendationServiceLevelObjective] Gets or * sets usageBasedRecommendationServiceLevelObjective for service tier * advisor. - * @member {uuid} [usageBasedRecommendationServiceLevelObjectiveId] Gets or + * @property {uuid} [usageBasedRecommendationServiceLevelObjectiveId] Gets or * sets usageBasedRecommendationServiceLevelObjectiveId for service tier * advisor. - * @member {string} [databaseSizeBasedRecommendationServiceLevelObjective] + * @property {string} [databaseSizeBasedRecommendationServiceLevelObjective] * Gets or sets databaseSizeBasedRecommendationServiceLevelObjective for * service tier advisor. - * @member {uuid} [databaseSizeBasedRecommendationServiceLevelObjectiveId] + * @property {uuid} [databaseSizeBasedRecommendationServiceLevelObjectiveId] * Gets or sets databaseSizeBasedRecommendationServiceLevelObjectiveId for * service tier advisor. - * @member {string} [disasterPlanBasedRecommendationServiceLevelObjective] + * @property {string} [disasterPlanBasedRecommendationServiceLevelObjective] * Gets or sets disasterPlanBasedRecommendationServiceLevelObjective for * service tier advisor. - * @member {uuid} [disasterPlanBasedRecommendationServiceLevelObjectiveId] + * @property {uuid} [disasterPlanBasedRecommendationServiceLevelObjectiveId] * Gets or sets disasterPlanBasedRecommendationServiceLevelObjectiveId for * service tier advisor. - * @member {string} [overallRecommendationServiceLevelObjective] Gets or sets - * overallRecommendationServiceLevelObjective for service tier advisor. - * @member {uuid} [overallRecommendationServiceLevelObjectiveId] Gets or sets - * overallRecommendationServiceLevelObjectiveId for service tier advisor. - * @member {number} [confidence] Gets or sets confidence for service tier + * @property {string} [overallRecommendationServiceLevelObjective] Gets or + * sets overallRecommendationServiceLevelObjective for service tier advisor. + * @property {uuid} [overallRecommendationServiceLevelObjectiveId] Gets or + * sets overallRecommendationServiceLevelObjectiveId for service tier + * advisor. + * @property {number} [confidence] Gets or sets confidence for service tier * advisor. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/sku.js b/lib/services/sqlManagement2/lib/models/sku.js index afb42bd67f..7a08457b54 100644 --- a/lib/services/sqlManagement2/lib/models/sku.js +++ b/lib/services/sqlManagement2/lib/models/sku.js @@ -17,17 +17,17 @@ class Sku { /** * Create a Sku. - * @member {string} name The name of the SKU. Ex - P3. It is typically a + * @property {string} name The name of the SKU. Ex - P3. It is typically a * letter+number code - * @member {string} [tier] This field is required to be implemented by the + * @property {string} [tier] This field is required to be implemented by the * Resource Provider if the service has more than one tier, but is not * required on a PUT. - * @member {string} [size] The SKU size. When the name field is the + * @property {string} [size] The SKU size. When the name field is the * combination of tier and some other value, this would be the standalone * code. - * @member {string} [family] If the service has different generations of + * @property {string} [family] If the service has different generations of * hardware, for the same SKU, then that can be captured here. - * @member {number} [capacity] If the SKU supports scale out/in then the + * @property {number} [capacity] If the SKU supports scale out/in then the * capacity integer should be included. If scale out/in is not possible for * the resource this may be omitted. */ diff --git a/lib/services/sqlManagement2/lib/models/sloUsageMetric.js b/lib/services/sqlManagement2/lib/models/sloUsageMetric.js index 0d45b00b7c..827b234980 100644 --- a/lib/services/sqlManagement2/lib/models/sloUsageMetric.js +++ b/lib/services/sqlManagement2/lib/models/sloUsageMetric.js @@ -17,8 +17,8 @@ class SloUsageMetric { /** * Create a SloUsageMetric. - * @member {string} [serviceLevelObjective] The serviceLevelObjective for SLO - * usage metric. Possible values include: 'System', 'System0', 'System1', + * @property {string} [serviceLevelObjective] The serviceLevelObjective for + * SLO usage metric. Possible values include: 'System', 'System0', 'System1', * 'System2', 'System3', 'System4', 'System2L', 'System3L', 'System4L', * 'Free', 'Basic', 'S0', 'S1', 'S2', 'S3', 'S4', 'S6', 'S7', 'S9', 'S12', * 'P1', 'P2', 'P3', 'P4', 'P6', 'P11', 'P15', 'PRS1', 'PRS2', 'PRS4', @@ -27,10 +27,10 @@ class SloUsageMetric { * 'DW2500c', 'DW3000c', 'DW6000', 'DW5000c', 'DW6000c', 'DW7500c', * 'DW10000c', 'DW15000c', 'DW30000c', 'DS100', 'DS200', 'DS300', 'DS400', * 'DS500', 'DS600', 'DS1000', 'DS1200', 'DS1500', 'DS2000', 'ElasticPool' - * @member {uuid} [serviceLevelObjectiveId] The serviceLevelObjectiveId for + * @property {uuid} [serviceLevelObjectiveId] The serviceLevelObjectiveId for + * SLO usage metric. + * @property {number} [inRangeTimeRatio] Gets or sets inRangeTimeRatio for * SLO usage metric. - * @member {number} [inRangeTimeRatio] Gets or sets inRangeTimeRatio for SLO - * usage metric. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/subscriptionUsage.js b/lib/services/sqlManagement2/lib/models/subscriptionUsage.js index d58c9739c1..119a5baaf6 100644 --- a/lib/services/sqlManagement2/lib/models/subscriptionUsage.js +++ b/lib/services/sqlManagement2/lib/models/subscriptionUsage.js @@ -20,10 +20,10 @@ const models = require('./index'); class SubscriptionUsage extends models['ProxyResource'] { /** * Create a SubscriptionUsage. - * @member {string} [displayName] User-readable name of the metric. - * @member {number} [currentValue] Current value of the metric. - * @member {number} [limit] Boundary value of the metric. - * @member {string} [unit] Unit of the metric. + * @property {string} [displayName] User-readable name of the metric. + * @property {number} [currentValue] Current value of the metric. + * @property {number} [limit] Boundary value of the metric. + * @property {string} [unit] Unit of the metric. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/subscriptionUsageListResult.js b/lib/services/sqlManagement2/lib/models/subscriptionUsageListResult.js index 9405a6b359..15a9bb9a8e 100644 --- a/lib/services/sqlManagement2/lib/models/subscriptionUsageListResult.js +++ b/lib/services/sqlManagement2/lib/models/subscriptionUsageListResult.js @@ -16,7 +16,7 @@ class SubscriptionUsageListResult extends Array { /** * Create a SubscriptionUsageListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/syncAgent.js b/lib/services/sqlManagement2/lib/models/syncAgent.js index cc6dc3006a..7bd6707989 100644 --- a/lib/services/sqlManagement2/lib/models/syncAgent.js +++ b/lib/services/sqlManagement2/lib/models/syncAgent.js @@ -20,15 +20,15 @@ const models = require('./index'); class SyncAgent extends models['ProxyResource'] { /** * Create a SyncAgent. - * @member {string} [syncAgentName] Name of the sync agent. - * @member {string} [syncDatabaseId] ARM resource id of the sync database in - * the sync agent. - * @member {date} [lastAliveTime] Last alive time of the sync agent. - * @member {string} [state] State of the sync agent. Possible values include: - * 'Online', 'Offline', 'NeverConnected' - * @member {boolean} [isUpToDate] If the sync agent version is up to date. - * @member {date} [expiryTime] Expiration time of the sync agent version. - * @member {string} [version] Version of the sync agent. + * @property {string} [syncAgentName] Name of the sync agent. + * @property {string} [syncDatabaseId] ARM resource id of the sync database + * in the sync agent. + * @property {date} [lastAliveTime] Last alive time of the sync agent. + * @property {string} [state] State of the sync agent. Possible values + * include: 'Online', 'Offline', 'NeverConnected' + * @property {boolean} [isUpToDate] If the sync agent version is up to date. + * @property {date} [expiryTime] Expiration time of the sync agent version. + * @property {string} [version] Version of the sync agent. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/syncAgentKeyProperties.js b/lib/services/sqlManagement2/lib/models/syncAgentKeyProperties.js index 909f84b53c..093c4785ea 100644 --- a/lib/services/sqlManagement2/lib/models/syncAgentKeyProperties.js +++ b/lib/services/sqlManagement2/lib/models/syncAgentKeyProperties.js @@ -17,7 +17,7 @@ class SyncAgentKeyProperties { /** * Create a SyncAgentKeyProperties. - * @member {string} [syncAgentKey] Key of sync agent. + * @property {string} [syncAgentKey] Key of sync agent. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/syncAgentLinkedDatabase.js b/lib/services/sqlManagement2/lib/models/syncAgentLinkedDatabase.js index 64700a8f0a..e51ab78c4f 100644 --- a/lib/services/sqlManagement2/lib/models/syncAgentLinkedDatabase.js +++ b/lib/services/sqlManagement2/lib/models/syncAgentLinkedDatabase.js @@ -20,16 +20,16 @@ const models = require('./index'); class SyncAgentLinkedDatabase extends models['ProxyResource'] { /** * Create a SyncAgentLinkedDatabase. - * @member {string} [databaseType] Type of the sync agent linked database. + * @property {string} [databaseType] Type of the sync agent linked database. * Possible values include: 'AzureSqlDatabase', 'SqlServerDatabase' - * @member {string} [databaseId] Id of the sync agent linked database. - * @member {string} [description] Description of the sync agent linked + * @property {string} [databaseId] Id of the sync agent linked database. + * @property {string} [description] Description of the sync agent linked * database. - * @member {string} [serverName] Server name of the sync agent linked + * @property {string} [serverName] Server name of the sync agent linked * database. - * @member {string} [databaseName] Database name of the sync agent linked + * @property {string} [databaseName] Database name of the sync agent linked * database. - * @member {string} [userName] User name of the sync agent linked database. + * @property {string} [userName] User name of the sync agent linked database. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/syncAgentLinkedDatabaseListResult.js b/lib/services/sqlManagement2/lib/models/syncAgentLinkedDatabaseListResult.js index ac8d386b33..2be85009af 100644 --- a/lib/services/sqlManagement2/lib/models/syncAgentLinkedDatabaseListResult.js +++ b/lib/services/sqlManagement2/lib/models/syncAgentLinkedDatabaseListResult.js @@ -16,7 +16,7 @@ class SyncAgentLinkedDatabaseListResult extends Array { /** * Create a SyncAgentLinkedDatabaseListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/syncAgentListResult.js b/lib/services/sqlManagement2/lib/models/syncAgentListResult.js index aa53c365f9..1f6fdd6db4 100644 --- a/lib/services/sqlManagement2/lib/models/syncAgentListResult.js +++ b/lib/services/sqlManagement2/lib/models/syncAgentListResult.js @@ -16,7 +16,7 @@ class SyncAgentListResult extends Array { /** * Create a SyncAgentListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/syncDatabaseIdListResult.js b/lib/services/sqlManagement2/lib/models/syncDatabaseIdListResult.js index 37049a7b4e..984d38fd1f 100644 --- a/lib/services/sqlManagement2/lib/models/syncDatabaseIdListResult.js +++ b/lib/services/sqlManagement2/lib/models/syncDatabaseIdListResult.js @@ -16,7 +16,7 @@ class SyncDatabaseIdListResult extends Array { /** * Create a SyncDatabaseIdListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/syncDatabaseIdProperties.js b/lib/services/sqlManagement2/lib/models/syncDatabaseIdProperties.js index 3c1d35ab3f..a84a1ad723 100644 --- a/lib/services/sqlManagement2/lib/models/syncDatabaseIdProperties.js +++ b/lib/services/sqlManagement2/lib/models/syncDatabaseIdProperties.js @@ -17,7 +17,7 @@ class SyncDatabaseIdProperties { /** * Create a SyncDatabaseIdProperties. - * @member {string} [id] ARM resource id of sync database. + * @property {string} [id] ARM resource id of sync database. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/syncFullSchemaProperties.js b/lib/services/sqlManagement2/lib/models/syncFullSchemaProperties.js index 2a7fd7b6f5..ec3eefc7d4 100644 --- a/lib/services/sqlManagement2/lib/models/syncFullSchemaProperties.js +++ b/lib/services/sqlManagement2/lib/models/syncFullSchemaProperties.js @@ -17,8 +17,8 @@ class SyncFullSchemaProperties { /** * Create a SyncFullSchemaProperties. - * @member {array} [tables] List of tables in the database full schema. - * @member {date} [lastUpdateTime] Last update time of the database schema. + * @property {array} [tables] List of tables in the database full schema. + * @property {date} [lastUpdateTime] Last update time of the database schema. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/syncFullSchemaPropertiesListResult.js b/lib/services/sqlManagement2/lib/models/syncFullSchemaPropertiesListResult.js index 036fc26356..775800ba95 100644 --- a/lib/services/sqlManagement2/lib/models/syncFullSchemaPropertiesListResult.js +++ b/lib/services/sqlManagement2/lib/models/syncFullSchemaPropertiesListResult.js @@ -16,7 +16,7 @@ class SyncFullSchemaPropertiesListResult extends Array { /** * Create a SyncFullSchemaPropertiesListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/syncFullSchemaTable.js b/lib/services/sqlManagement2/lib/models/syncFullSchemaTable.js index 514fb77a81..45f4e3afaa 100644 --- a/lib/services/sqlManagement2/lib/models/syncFullSchemaTable.js +++ b/lib/services/sqlManagement2/lib/models/syncFullSchemaTable.js @@ -17,12 +17,12 @@ class SyncFullSchemaTable { /** * Create a SyncFullSchemaTable. - * @member {array} [columns] List of columns in the table of database full + * @property {array} [columns] List of columns in the table of database full * schema. - * @member {string} [errorId] Error id of the table. - * @member {boolean} [hasError] If there is error in the table. - * @member {string} [name] Name of the table. - * @member {string} [quotedName] Quoted name of the table. + * @property {string} [errorId] Error id of the table. + * @property {boolean} [hasError] If there is error in the table. + * @property {string} [name] Name of the table. + * @property {string} [quotedName] Quoted name of the table. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/syncFullSchemaTableColumn.js b/lib/services/sqlManagement2/lib/models/syncFullSchemaTableColumn.js index 97e7d115d2..ec549398c1 100644 --- a/lib/services/sqlManagement2/lib/models/syncFullSchemaTableColumn.js +++ b/lib/services/sqlManagement2/lib/models/syncFullSchemaTableColumn.js @@ -17,13 +17,13 @@ class SyncFullSchemaTableColumn { /** * Create a SyncFullSchemaTableColumn. - * @member {string} [dataSize] Data size of the column. - * @member {string} [dataType] Data type of the column. - * @member {string} [errorId] Error id of the column. - * @member {boolean} [hasError] If there is error in the table. - * @member {boolean} [isPrimaryKey] If it is the primary key of the table. - * @member {string} [name] Name of the column. - * @member {string} [quotedName] Quoted name of the column. + * @property {string} [dataSize] Data size of the column. + * @property {string} [dataType] Data type of the column. + * @property {string} [errorId] Error id of the column. + * @property {boolean} [hasError] If there is error in the table. + * @property {boolean} [isPrimaryKey] If it is the primary key of the table. + * @property {string} [name] Name of the column. + * @property {string} [quotedName] Quoted name of the column. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/syncGroup.js b/lib/services/sqlManagement2/lib/models/syncGroup.js index 115ec8f770..e33831e2bd 100644 --- a/lib/services/sqlManagement2/lib/models/syncGroup.js +++ b/lib/services/sqlManagement2/lib/models/syncGroup.js @@ -20,22 +20,22 @@ const models = require('./index'); class SyncGroup extends models['ProxyResource'] { /** * Create a SyncGroup. - * @member {number} [interval] Sync interval of the sync group. - * @member {date} [lastSyncTime] Last sync time of the sync group. - * @member {string} [conflictResolutionPolicy] Conflict resolution policy of - * the sync group. Possible values include: 'HubWin', 'MemberWin' - * @member {string} [syncDatabaseId] ARM resource id of the sync database in - * the sync group. - * @member {string} [hubDatabaseUserName] User name for the sync group hub + * @property {number} [interval] Sync interval of the sync group. + * @property {date} [lastSyncTime] Last sync time of the sync group. + * @property {string} [conflictResolutionPolicy] Conflict resolution policy + * of the sync group. Possible values include: 'HubWin', 'MemberWin' + * @property {string} [syncDatabaseId] ARM resource id of the sync database + * in the sync group. + * @property {string} [hubDatabaseUserName] User name for the sync group hub * database credential. - * @member {string} [hubDatabasePassword] Password for the sync group hub + * @property {string} [hubDatabasePassword] Password for the sync group hub * database credential. - * @member {string} [syncState] Sync state of the sync group. Possible values - * include: 'NotReady', 'Error', 'Warning', 'Progressing', 'Good' - * @member {object} [schema] Sync schema of the sync group. - * @member {array} [schema.tables] List of tables in sync group schema. - * @member {string} [schema.masterSyncMemberName] Name of master sync member - * where the schema is from. + * @property {string} [syncState] Sync state of the sync group. Possible + * values include: 'NotReady', 'Error', 'Warning', 'Progressing', 'Good' + * @property {object} [schema] Sync schema of the sync group. + * @property {array} [schema.tables] List of tables in sync group schema. + * @property {string} [schema.masterSyncMemberName] Name of master sync + * member where the schema is from. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/syncGroupListResult.js b/lib/services/sqlManagement2/lib/models/syncGroupListResult.js index e56a3dc758..006000a68c 100644 --- a/lib/services/sqlManagement2/lib/models/syncGroupListResult.js +++ b/lib/services/sqlManagement2/lib/models/syncGroupListResult.js @@ -16,7 +16,7 @@ class SyncGroupListResult extends Array { /** * Create a SyncGroupListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/syncGroupLogListResult.js b/lib/services/sqlManagement2/lib/models/syncGroupLogListResult.js index d2c7e6e1a7..86d8b95238 100644 --- a/lib/services/sqlManagement2/lib/models/syncGroupLogListResult.js +++ b/lib/services/sqlManagement2/lib/models/syncGroupLogListResult.js @@ -16,7 +16,7 @@ class SyncGroupLogListResult extends Array { /** * Create a SyncGroupLogListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/syncGroupLogProperties.js b/lib/services/sqlManagement2/lib/models/syncGroupLogProperties.js index 39f0ee25b6..d0a2e87693 100644 --- a/lib/services/sqlManagement2/lib/models/syncGroupLogProperties.js +++ b/lib/services/sqlManagement2/lib/models/syncGroupLogProperties.js @@ -17,13 +17,14 @@ class SyncGroupLogProperties { /** * Create a SyncGroupLogProperties. - * @member {date} [timestamp] Timestamp of the sync group log. - * @member {string} [type] Type of the sync group log. Possible values + * @property {date} [timestamp] Timestamp of the sync group log. + * @property {string} [type] Type of the sync group log. Possible values * include: 'All', 'Error', 'Warning', 'Success' - * @member {string} [source] Source of the sync group log. - * @member {string} [details] Details of the sync group log. - * @member {uuid} [tracingId] TracingId of the sync group log. - * @member {string} [operationStatus] OperationStatus of the sync group log. + * @property {string} [source] Source of the sync group log. + * @property {string} [details] Details of the sync group log. + * @property {uuid} [tracingId] TracingId of the sync group log. + * @property {string} [operationStatus] OperationStatus of the sync group + * log. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/syncGroupSchema.js b/lib/services/sqlManagement2/lib/models/syncGroupSchema.js index 90c1d38c65..c4a0675edb 100644 --- a/lib/services/sqlManagement2/lib/models/syncGroupSchema.js +++ b/lib/services/sqlManagement2/lib/models/syncGroupSchema.js @@ -17,8 +17,8 @@ class SyncGroupSchema { /** * Create a SyncGroupSchema. - * @member {array} [tables] List of tables in sync group schema. - * @member {string} [masterSyncMemberName] Name of master sync member where + * @property {array} [tables] List of tables in sync group schema. + * @property {string} [masterSyncMemberName] Name of master sync member where * the schema is from. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/syncGroupSchemaTable.js b/lib/services/sqlManagement2/lib/models/syncGroupSchemaTable.js index 1a8444a95a..15e0bb12af 100644 --- a/lib/services/sqlManagement2/lib/models/syncGroupSchemaTable.js +++ b/lib/services/sqlManagement2/lib/models/syncGroupSchemaTable.js @@ -17,8 +17,8 @@ class SyncGroupSchemaTable { /** * Create a SyncGroupSchemaTable. - * @member {array} [columns] List of columns in sync group schema. - * @member {string} [quotedName] Quoted name of sync group schema table. + * @property {array} [columns] List of columns in sync group schema. + * @property {string} [quotedName] Quoted name of sync group schema table. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/syncGroupSchemaTableColumn.js b/lib/services/sqlManagement2/lib/models/syncGroupSchemaTableColumn.js index 6e16acf1f4..9059d7c993 100644 --- a/lib/services/sqlManagement2/lib/models/syncGroupSchemaTableColumn.js +++ b/lib/services/sqlManagement2/lib/models/syncGroupSchemaTableColumn.js @@ -17,9 +17,9 @@ class SyncGroupSchemaTableColumn { /** * Create a SyncGroupSchemaTableColumn. - * @member {string} [quotedName] Quoted name of sync group table column. - * @member {string} [dataSize] Data size of the column. - * @member {string} [dataType] Data type of the column. + * @property {string} [quotedName] Quoted name of sync group table column. + * @property {string} [dataSize] Data size of the column. + * @property {string} [dataType] Data type of the column. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/syncMember.js b/lib/services/sqlManagement2/lib/models/syncMember.js index 59d9bd5d91..78340605e9 100644 --- a/lib/services/sqlManagement2/lib/models/syncMember.js +++ b/lib/services/sqlManagement2/lib/models/syncMember.js @@ -20,24 +20,24 @@ const models = require('./index'); class SyncMember extends models['ProxyResource'] { /** * Create a SyncMember. - * @member {string} [databaseType] Database type of the sync member. Possible - * values include: 'AzureSqlDatabase', 'SqlServerDatabase' - * @member {string} [syncAgentId] ARM resource id of the sync agent in the + * @property {string} [databaseType] Database type of the sync member. + * Possible values include: 'AzureSqlDatabase', 'SqlServerDatabase' + * @property {string} [syncAgentId] ARM resource id of the sync agent in the * sync member. - * @member {uuid} [sqlServerDatabaseId] SQL Server database id of the sync + * @property {uuid} [sqlServerDatabaseId] SQL Server database id of the sync * member. - * @member {string} [serverName] Server name of the member database in the + * @property {string} [serverName] Server name of the member database in the * sync member - * @member {string} [databaseName] Database name of the member database in + * @property {string} [databaseName] Database name of the member database in * the sync member. - * @member {string} [userName] User name of the member database in the sync + * @property {string} [userName] User name of the member database in the sync * member. - * @member {string} [password] Password of the member database in the sync + * @property {string} [password] Password of the member database in the sync * member. - * @member {string} [syncDirection] Sync direction of the sync member. + * @property {string} [syncDirection] Sync direction of the sync member. * Possible values include: 'Bidirectional', 'OneWayMemberToHub', * 'OneWayHubToMember' - * @member {string} [syncState] Sync state of the sync member. Possible + * @property {string} [syncState] Sync state of the sync member. Possible * values include: 'SyncInProgress', 'SyncSucceeded', 'SyncFailed', * 'DisabledTombstoneCleanup', 'DisabledBackupRestore', * 'SyncSucceededWithWarnings', 'SyncCancelling', 'SyncCancelled', diff --git a/lib/services/sqlManagement2/lib/models/syncMemberListResult.js b/lib/services/sqlManagement2/lib/models/syncMemberListResult.js index 78d43f1038..b9548300af 100644 --- a/lib/services/sqlManagement2/lib/models/syncMemberListResult.js +++ b/lib/services/sqlManagement2/lib/models/syncMemberListResult.js @@ -16,7 +16,7 @@ class SyncMemberListResult extends Array { /** * Create a SyncMemberListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/tdeCertificate.js b/lib/services/sqlManagement2/lib/models/tdeCertificate.js index 2c73aecdd2..042797feb6 100644 --- a/lib/services/sqlManagement2/lib/models/tdeCertificate.js +++ b/lib/services/sqlManagement2/lib/models/tdeCertificate.js @@ -20,8 +20,9 @@ const models = require('./index'); class TdeCertificate extends models['ProxyResource'] { /** * Create a TdeCertificate. - * @member {string} privateBlob The base64 encoded certificate private blob. - * @member {string} [certPassword] The certificate password. + * @property {string} privateBlob The base64 encoded certificate private + * blob. + * @property {string} [certPassword] The certificate password. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/trackedResource.js b/lib/services/sqlManagement2/lib/models/trackedResource.js index 042c9c57b6..0fe6d7d553 100644 --- a/lib/services/sqlManagement2/lib/models/trackedResource.js +++ b/lib/services/sqlManagement2/lib/models/trackedResource.js @@ -20,8 +20,8 @@ const models = require('./index'); class TrackedResource extends models['Resource'] { /** * Create a TrackedResource. - * @member {string} location Resource location. - * @member {object} [tags] Resource tags. + * @property {string} location Resource location. + * @property {object} [tags] Resource tags. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/transparentDataEncryption.js b/lib/services/sqlManagement2/lib/models/transparentDataEncryption.js index 903801d20d..604190cc13 100644 --- a/lib/services/sqlManagement2/lib/models/transparentDataEncryption.js +++ b/lib/services/sqlManagement2/lib/models/transparentDataEncryption.js @@ -20,8 +20,8 @@ const models = require('./index'); class TransparentDataEncryption extends models['ProxyResource'] { /** * Create a TransparentDataEncryption. - * @member {string} [location] Resource location. - * @member {string} [status] The status of the database transparent data + * @property {string} [location] Resource location. + * @property {string} [status] The status of the database transparent data * encryption. Possible values include: 'Enabled', 'Disabled' */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/transparentDataEncryptionActivity.js b/lib/services/sqlManagement2/lib/models/transparentDataEncryptionActivity.js index 42241f5ae0..643cbf61f7 100644 --- a/lib/services/sqlManagement2/lib/models/transparentDataEncryptionActivity.js +++ b/lib/services/sqlManagement2/lib/models/transparentDataEncryptionActivity.js @@ -20,11 +20,11 @@ const models = require('./index'); class TransparentDataEncryptionActivity extends models['ProxyResource'] { /** * Create a TransparentDataEncryptionActivity. - * @member {string} [location] Resource location. - * @member {string} [status] The status of the database. Possible values + * @property {string} [location] Resource location. + * @property {string} [status] The status of the database. Possible values * include: 'Encrypting', 'Decrypting' - * @member {number} [percentComplete] The percent complete of the transparent - * data encryption scan for a database. + * @property {number} [percentComplete] The percent complete of the + * transparent data encryption scan for a database. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/virtualNetworkRule.js b/lib/services/sqlManagement2/lib/models/virtualNetworkRule.js index c0f9a60278..80787c6b89 100644 --- a/lib/services/sqlManagement2/lib/models/virtualNetworkRule.js +++ b/lib/services/sqlManagement2/lib/models/virtualNetworkRule.js @@ -20,11 +20,11 @@ const models = require('./index'); class VirtualNetworkRule extends models['ProxyResource'] { /** * Create a VirtualNetworkRule. - * @member {string} virtualNetworkSubnetId The ARM resource id of the virtual - * network subnet. - * @member {boolean} [ignoreMissingVnetServiceEndpoint] Create firewall rule - * before the virtual network has vnet service endpoint enabled. - * @member {string} [state] Virtual Network Rule State. Possible values + * @property {string} virtualNetworkSubnetId The ARM resource id of the + * virtual network subnet. + * @property {boolean} [ignoreMissingVnetServiceEndpoint] Create firewall + * rule before the virtual network has vnet service endpoint enabled. + * @property {string} [state] Virtual Network Rule State. Possible values * include: 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/virtualNetworkRuleListResult.js b/lib/services/sqlManagement2/lib/models/virtualNetworkRuleListResult.js index c80a275efd..48f0bd1d48 100644 --- a/lib/services/sqlManagement2/lib/models/virtualNetworkRuleListResult.js +++ b/lib/services/sqlManagement2/lib/models/virtualNetworkRuleListResult.js @@ -16,7 +16,7 @@ class VirtualNetworkRuleListResult extends Array { /** * Create a VirtualNetworkRuleListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/models/vulnerabilityAssessmentRecurringScansProperties.js b/lib/services/sqlManagement2/lib/models/vulnerabilityAssessmentRecurringScansProperties.js index b08942b1ca..3a82d0e0ee 100644 --- a/lib/services/sqlManagement2/lib/models/vulnerabilityAssessmentRecurringScansProperties.js +++ b/lib/services/sqlManagement2/lib/models/vulnerabilityAssessmentRecurringScansProperties.js @@ -17,11 +17,11 @@ class VulnerabilityAssessmentRecurringScansProperties { /** * Create a VulnerabilityAssessmentRecurringScansProperties. - * @member {boolean} [isEnabled] Recurring scans state. - * @member {boolean} [emailSubscriptionAdmins] Specifies that the schedule + * @property {boolean} [isEnabled] Recurring scans state. + * @property {boolean} [emailSubscriptionAdmins] Specifies that the schedule * scan notification will be is sent to the subscription administrators. * Default value: true . - * @member {array} [emails] Specifies an array of e-mail addresses to which + * @property {array} [emails] Specifies an array of e-mail addresses to which * the scan notification is sent. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/vulnerabilityAssessmentScanError.js b/lib/services/sqlManagement2/lib/models/vulnerabilityAssessmentScanError.js index 29ed29a2d7..8d713c4835 100644 --- a/lib/services/sqlManagement2/lib/models/vulnerabilityAssessmentScanError.js +++ b/lib/services/sqlManagement2/lib/models/vulnerabilityAssessmentScanError.js @@ -17,8 +17,8 @@ class VulnerabilityAssessmentScanError { /** * Create a VulnerabilityAssessmentScanError. - * @member {string} [code] The error code. - * @member {string} [message] The error message. + * @property {string} [code] The error code. + * @property {string} [message] The error message. */ constructor() { } diff --git a/lib/services/sqlManagement2/lib/models/vulnerabilityAssessmentScanRecord.js b/lib/services/sqlManagement2/lib/models/vulnerabilityAssessmentScanRecord.js index cbef4bb19f..bbf2eadab1 100644 --- a/lib/services/sqlManagement2/lib/models/vulnerabilityAssessmentScanRecord.js +++ b/lib/services/sqlManagement2/lib/models/vulnerabilityAssessmentScanRecord.js @@ -20,17 +20,17 @@ const models = require('./index'); class VulnerabilityAssessmentScanRecord extends models['ProxyResource'] { /** * Create a VulnerabilityAssessmentScanRecord. - * @member {string} [scanId] The scan ID. - * @member {string} [triggerType] The scan trigger type. Possible values + * @property {string} [scanId] The scan ID. + * @property {string} [triggerType] The scan trigger type. Possible values * include: 'OnDemand', 'Recurring' - * @member {string} [state] The scan status. Possible values include: + * @property {string} [state] The scan status. Possible values include: * 'Passed', 'Failed', 'FailedToRun', 'InProgress' - * @member {date} [startTime] The scan start time (UTC). - * @member {date} [endTime] The scan end time (UTC). - * @member {array} [errors] The scan errors. - * @member {string} [storageContainerPath] The scan results storage container - * path. - * @member {number} [numberOfFailedSecurityChecks] The number of failed + * @property {date} [startTime] The scan start time (UTC). + * @property {date} [endTime] The scan end time (UTC). + * @property {array} [errors] The scan errors. + * @property {string} [storageContainerPath] The scan results storage + * container path. + * @property {number} [numberOfFailedSecurityChecks] The number of failed * security checks. */ constructor() { diff --git a/lib/services/sqlManagement2/lib/models/vulnerabilityAssessmentScanRecordListResult.js b/lib/services/sqlManagement2/lib/models/vulnerabilityAssessmentScanRecordListResult.js index 04d5447c1b..09f3ca97fd 100644 --- a/lib/services/sqlManagement2/lib/models/vulnerabilityAssessmentScanRecordListResult.js +++ b/lib/services/sqlManagement2/lib/models/vulnerabilityAssessmentScanRecordListResult.js @@ -16,7 +16,7 @@ class VulnerabilityAssessmentScanRecordListResult extends Array { /** * Create a VulnerabilityAssessmentScanRecordListResult. - * @member {string} [nextLink] Link to retrieve next page of results. + * @property {string} [nextLink] Link to retrieve next page of results. */ constructor() { super(); diff --git a/lib/services/sqlManagement2/lib/operations/index.d.ts b/lib/services/sqlManagement2/lib/operations/index.d.ts index d7629e6fe0..e98ef61a2b 100644 --- a/lib/services/sqlManagement2/lib/operations/index.d.ts +++ b/lib/services/sqlManagement2/lib/operations/index.d.ts @@ -10829,6 +10829,8 @@ export interface ManagedInstances { * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -10906,6 +10908,8 @@ export interface ManagedInstances { * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -11056,6 +11060,8 @@ export interface ManagedInstances { * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -11123,6 +11129,8 @@ export interface ManagedInstances { * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -11217,6 +11225,8 @@ export interface ManagedInstances { * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -11294,6 +11304,8 @@ export interface ManagedInstances { * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -11444,6 +11456,8 @@ export interface ManagedInstances { * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -11511,6 +11525,8 @@ export interface ManagedInstances { * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -24409,26 +24425,23 @@ export interface BackupLongTermRetentionPolicies { /** * @class - * ManagedDatabases + * ManagedBackupShortTermRetentionPolicies * __NOTE__: An instance of this class is automatically created for an * instance of the SqlManagementClient. */ -export interface ManagedDatabases { +export interface ManagedBackupShortTermRetentionPolicies { /** - * Completes the restore operation on a managed database. - * - * @param {string} locationName The name of the region where the resource is - * located. + * Gets a managed database's short term retention policy. * - * @param {uuid} operationId Management operation id that this request tries to - * complete. + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. * - * @param {object} parameters The definition for completing the restore of this - * managed database. + * @param {string} managedInstanceName The name of the managed instance. * - * @param {string} parameters.lastBackupName The last backup name to apply + * @param {string} databaseName The name of the database. * * @param {object} [options] Optional Parameters. * @@ -24437,25 +24450,22 @@ export interface ManagedDatabases { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - completeRestoreWithHttpOperationResponse(locationName: string, operationId: string, parameters: models.CompleteDatabaseRestoreDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Completes the restore operation on a managed database. - * - * @param {string} locationName The name of the region where the resource is - * located. + * Gets a managed database's short term retention policy. * - * @param {uuid} operationId Management operation id that this request tries to - * complete. + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. * - * @param {object} parameters The definition for completing the restore of this - * managed database. + * @param {string} managedInstanceName The name of the managed instance. * - * @param {string} parameters.lastBackupName The last backup name to apply + * @param {string} databaseName The name of the database. * * @param {object} [options] Optional Parameters. * @@ -24469,7 +24479,7 @@ export interface ManagedDatabases { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {ManagedBackupShortTermRetentionPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -24477,19 +24487,21 @@ export interface ManagedDatabases { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {ManagedBackupShortTermRetentionPolicy} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedBackupShortTermRetentionPolicy} for + * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - completeRestore(locationName: string, operationId: string, parameters: models.CompleteDatabaseRestoreDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - completeRestore(locationName: string, operationId: string, parameters: models.CompleteDatabaseRestoreDefinition, callback: ServiceCallback): void; - completeRestore(locationName: string, operationId: string, parameters: models.CompleteDatabaseRestoreDefinition, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets a list of managed databases. + * Updates a managed database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -24497,6 +24509,13 @@ export interface ManagedDatabases { * * @param {string} managedInstanceName The name of the managed instance. * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -24504,14 +24523,14 @@ export interface ManagedDatabases { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByInstanceWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedBackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a list of managed databases. + * Updates a managed database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -24519,6 +24538,13 @@ export interface ManagedDatabases { * * @param {string} managedInstanceName The name of the managed instance. * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -24531,7 +24557,7 @@ export interface ManagedDatabases { * * {Promise} A promise is returned. * - * @resolve {ManagedDatabaseListResult} - The deserialized result object. + * @resolve {ManagedBackupShortTermRetentionPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -24539,21 +24565,21 @@ export interface ManagedDatabases { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ManagedDatabaseListResult} [result] - The deserialized result object if an error did not occur. - * See {@link ManagedDatabaseListResult} for more - * information. + * {ManagedBackupShortTermRetentionPolicy} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedBackupShortTermRetentionPolicy} for + * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByInstance(resourceGroupName: string, managedInstanceName: string, callback: ServiceCallback): void; - listByInstance(resourceGroupName: string, managedInstanceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedBackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedBackupShortTermRetentionPolicy, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedBackupShortTermRetentionPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets a managed database. + * Updates a managed database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -24563,6 +24589,11 @@ export interface ManagedDatabases { * * @param {string} databaseName The name of the database. * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -24570,14 +24601,14 @@ export interface ManagedDatabases { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedBackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a managed database. + * Updates a managed database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -24587,6 +24618,11 @@ export interface ManagedDatabases { * * @param {string} databaseName The name of the database. * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -24599,7 +24635,7 @@ export interface ManagedDatabases { * * {Promise} A promise is returned. * - * @resolve {ManagedDatabase} - The deserialized result object. + * @resolve {ManagedBackupShortTermRetentionPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -24607,20 +24643,21 @@ export interface ManagedDatabases { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ManagedDatabase} [result] - The deserialized result object if an error did not occur. - * See {@link ManagedDatabase} for more information. + * {ManagedBackupShortTermRetentionPolicy} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedBackupShortTermRetentionPolicy} for + * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedBackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedBackupShortTermRetentionPolicy, callback: ServiceCallback): void; + update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedBackupShortTermRetentionPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates a new database or updates an existing database. + * Gets a managed database's short term retention policy list. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -24630,42 +24667,6 @@ export interface ManagedDatabases { * * @param {string} databaseName The name of the database. * - * @param {object} parameters The requested database resource state. - * - * @param {string} [parameters.collation] Collation of the managed database. - * - * @param {date} [parameters.restorePointInTime] Conditional. If createMode is - * PointInTimeRestore, this value is required. Specifies the point in time - * (ISO8601 format) of the source database that will be restored to create the - * new database. - * - * @param {string} [parameters.catalogCollation] Collation of the metadata - * catalog. Possible values include: 'DATABASE_DEFAULT', - * 'SQL_Latin1_General_CP1_CI_AS' - * - * @param {string} [parameters.createMode] Managed database create mode. - * PointInTimeRestore: Create a database by restoring a point in time backup of - * an existing database. SourceDatabaseName, SourceManagedInstanceName and - * PointInTime must be specified. RestoreExternalBackup: Create a database by - * restoring from external backup files. Collation, StorageContainerUri and - * StorageContainerSasToken must be specified. Possible values include: - * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore' - * - * @param {string} [parameters.storageContainerUri] Conditional. If createMode - * is RestoreExternalBackup, this value is required. Specifies the uri of the - * storage container where backups for this restore are stored. - * - * @param {string} [parameters.sourceDatabaseId] The resource identifier of the - * source database associated with create operation of this database. - * - * @param {string} [parameters.storageContainerSasToken] Conditional. If - * createMode is RestoreExternalBackup, this value is required. Specifies the - * storage container sas token. - * - * @param {string} parameters.location Resource location. - * - * @param {object} [parameters.tags] Resource tags. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -24673,14 +24674,14 @@ export interface ManagedDatabases { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabase, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByDatabaseWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates a new database or updates an existing database. + * Gets a managed database's short term retention policy list. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -24690,42 +24691,6 @@ export interface ManagedDatabases { * * @param {string} databaseName The name of the database. * - * @param {object} parameters The requested database resource state. - * - * @param {string} [parameters.collation] Collation of the managed database. - * - * @param {date} [parameters.restorePointInTime] Conditional. If createMode is - * PointInTimeRestore, this value is required. Specifies the point in time - * (ISO8601 format) of the source database that will be restored to create the - * new database. - * - * @param {string} [parameters.catalogCollation] Collation of the metadata - * catalog. Possible values include: 'DATABASE_DEFAULT', - * 'SQL_Latin1_General_CP1_CI_AS' - * - * @param {string} [parameters.createMode] Managed database create mode. - * PointInTimeRestore: Create a database by restoring a point in time backup of - * an existing database. SourceDatabaseName, SourceManagedInstanceName and - * PointInTime must be specified. RestoreExternalBackup: Create a database by - * restoring from external backup files. Collation, StorageContainerUri and - * StorageContainerSasToken must be specified. Possible values include: - * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore' - * - * @param {string} [parameters.storageContainerUri] Conditional. If createMode - * is RestoreExternalBackup, this value is required. Specifies the uri of the - * storage container where backups for this restore are stored. - * - * @param {string} [parameters.sourceDatabaseId] The resource identifier of the - * source database associated with create operation of this database. - * - * @param {string} [parameters.storageContainerSasToken] Conditional. If - * createMode is RestoreExternalBackup, this value is required. Specifies the - * storage container sas token. - * - * @param {string} parameters.location Resource location. - * - * @param {object} [parameters.tags] Resource tags. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -24738,7 +24703,7 @@ export interface ManagedDatabases { * * {Promise} A promise is returned. * - * @resolve {ManagedDatabase} - The deserialized result object. + * @resolve {ManagedBackupShortTermRetentionPolicyListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -24746,20 +24711,22 @@ export interface ManagedDatabases { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ManagedDatabase} [result] - The deserialized result object if an error did not occur. - * See {@link ManagedDatabase} for more information. + * {ManagedBackupShortTermRetentionPolicyListResult} [result] - The deserialized result object if an error did not occur. + * See {@link + * ManagedBackupShortTermRetentionPolicyListResult} for + * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabase, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabase, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabase, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: ServiceCallback): void; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Deletes the managed database. + * Updates a managed database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -24769,6 +24736,11 @@ export interface ManagedDatabases { * * @param {string} databaseName The name of the database. * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -24776,14 +24748,14 @@ export interface ManagedDatabases { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedBackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the managed database. + * Updates a managed database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -24793,6 +24765,11 @@ export interface ManagedDatabases { * * @param {string} databaseName The name of the database. * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -24805,7 +24782,7 @@ export interface ManagedDatabases { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {ManagedBackupShortTermRetentionPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -24813,19 +24790,21 @@ export interface ManagedDatabases { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {ManagedBackupShortTermRetentionPolicy} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedBackupShortTermRetentionPolicy} for + * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedBackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedBackupShortTermRetentionPolicy, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedBackupShortTermRetentionPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Updates an existing database. + * Updates a managed database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -24835,39 +24814,10 @@ export interface ManagedDatabases { * * @param {string} databaseName The name of the database. * - * @param {object} parameters The requested database resource state. - * - * @param {string} [parameters.collation] Collation of the managed database. - * - * @param {date} [parameters.restorePointInTime] Conditional. If createMode is - * PointInTimeRestore, this value is required. Specifies the point in time - * (ISO8601 format) of the source database that will be restored to create the - * new database. - * - * @param {string} [parameters.catalogCollation] Collation of the metadata - * catalog. Possible values include: 'DATABASE_DEFAULT', - * 'SQL_Latin1_General_CP1_CI_AS' - * - * @param {string} [parameters.createMode] Managed database create mode. - * PointInTimeRestore: Create a database by restoring a point in time backup of - * an existing database. SourceDatabaseName, SourceManagedInstanceName and - * PointInTime must be specified. RestoreExternalBackup: Create a database by - * restoring from external backup files. Collation, StorageContainerUri and - * StorageContainerSasToken must be specified. Possible values include: - * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore' - * - * @param {string} [parameters.storageContainerUri] Conditional. If createMode - * is RestoreExternalBackup, this value is required. Specifies the uri of the - * storage container where backups for this restore are stored. - * - * @param {string} [parameters.sourceDatabaseId] The resource identifier of the - * source database associated with create operation of this database. - * - * @param {string} [parameters.storageContainerSasToken] Conditional. If - * createMode is RestoreExternalBackup, this value is required. Specifies the - * storage container sas token. + * @param {object} parameters The short term retention policy info. * - * @param {object} [parameters.tags] Resource tags. + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. * * @param {object} [options] Optional Parameters. * @@ -24876,14 +24826,14 @@ export interface ManagedDatabases { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabaseUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedBackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates an existing database. + * Updates a managed database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -24893,39 +24843,68 @@ export interface ManagedDatabases { * * @param {string} databaseName The name of the database. * - * @param {object} parameters The requested database resource state. + * @param {object} parameters The short term retention policy info. * - * @param {string} [parameters.collation] Collation of the managed database. + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. * - * @param {date} [parameters.restorePointInTime] Conditional. If createMode is - * PointInTimeRestore, this value is required. Specifies the point in time - * (ISO8601 format) of the source database that will be restored to create the - * new database. + * @param {object} [options] Optional Parameters. * - * @param {string} [parameters.catalogCollation] Collation of the metadata - * catalog. Possible values include: 'DATABASE_DEFAULT', - * 'SQL_Latin1_General_CP1_CI_AS' + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [parameters.createMode] Managed database create mode. - * PointInTimeRestore: Create a database by restoring a point in time backup of - * an existing database. SourceDatabaseName, SourceManagedInstanceName and - * PointInTime must be specified. RestoreExternalBackup: Create a database by - * restoring from external backup files. Collation, StorageContainerUri and - * StorageContainerSasToken must be specified. Possible values include: - * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore' + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {string} [parameters.storageContainerUri] Conditional. If createMode - * is RestoreExternalBackup, this value is required. Specifies the uri of the - * storage container where backups for this restore are stored. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {string} [parameters.sourceDatabaseId] The resource identifier of the - * source database associated with create operation of this database. + * {Promise} A promise is returned. * - * @param {string} [parameters.storageContainerSasToken] Conditional. If - * createMode is RestoreExternalBackup, this value is required. Specifies the - * storage container sas token. + * @resolve {ManagedBackupShortTermRetentionPolicy} - The deserialized result object. * - * @param {object} [parameters.tags] Resource tags. + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {ManagedBackupShortTermRetentionPolicy} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedBackupShortTermRetentionPolicy} for + * more information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + beginUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedBackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedBackupShortTermRetentionPolicy, callback: ServiceCallback): void; + beginUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedBackupShortTermRetentionPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets a managed database's short term retention policy list. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + listByDatabaseNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets a managed database's short term retention policy list. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -24939,7 +24918,7 @@ export interface ManagedDatabases { * * {Promise} A promise is returned. * - * @resolve {ManagedDatabase} - The deserialized result object. + * @resolve {ManagedBackupShortTermRetentionPolicyListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -24947,16 +24926,27 @@ export interface ManagedDatabases { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ManagedDatabase} [result] - The deserialized result object if an error did not occur. - * See {@link ManagedDatabase} for more information. + * {ManagedBackupShortTermRetentionPolicyListResult} [result] - The deserialized result object if an error did not occur. + * See {@link + * ManagedBackupShortTermRetentionPolicyListResult} for + * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabaseUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabaseUpdate, callback: ServiceCallback): void; - update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabaseUpdate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByDatabaseNext(nextPageLink: string, callback: ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * ManagedDatabases + * __NOTE__: An instance of this class is automatically created for an + * instance of the SqlManagementClient. + */ +export interface ManagedDatabases { /** @@ -24984,7 +24974,7 @@ export interface ManagedDatabases { * * @reject {Error|ServiceError} - The error object. */ - beginCompleteRestoreWithHttpOperationResponse(locationName: string, operationId: string, parameters: models.CompleteDatabaseRestoreDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + completeRestoreWithHttpOperationResponse(locationName: string, operationId: string, parameters: models.CompleteDatabaseRestoreDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Completes the restore operation on a managed database. @@ -25026,9 +25016,140 @@ export interface ManagedDatabases { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCompleteRestore(locationName: string, operationId: string, parameters: models.CompleteDatabaseRestoreDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCompleteRestore(locationName: string, operationId: string, parameters: models.CompleteDatabaseRestoreDefinition, callback: ServiceCallback): void; - beginCompleteRestore(locationName: string, operationId: string, parameters: models.CompleteDatabaseRestoreDefinition, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + completeRestore(locationName: string, operationId: string, parameters: models.CompleteDatabaseRestoreDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + completeRestore(locationName: string, operationId: string, parameters: models.CompleteDatabaseRestoreDefinition, callback: ServiceCallback): void; + completeRestore(locationName: string, operationId: string, parameters: models.CompleteDatabaseRestoreDefinition, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets a list of managed databases. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + listByInstanceWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets a list of managed databases. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {ManagedDatabaseListResult} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {ManagedDatabaseListResult} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedDatabaseListResult} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByInstance(resourceGroupName: string, managedInstanceName: string, callback: ServiceCallback): void; + listByInstance(resourceGroupName: string, managedInstanceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets a managed database. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets a managed database. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {ManagedDatabase} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {ManagedDatabase} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedDatabase} for more information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -25089,7 +25210,7 @@ export interface ManagedDatabases { * * @reject {Error|ServiceError} - The error object. */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabase, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabase, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a new database or updates an existing database. @@ -25165,9 +25286,9 @@ export interface ManagedDatabases { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabase, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabase, callback: ServiceCallback): void; - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabase, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabase, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabase, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabase, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -25192,7 +25313,7 @@ export interface ManagedDatabases { * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the managed database. @@ -25231,9 +25352,9 @@ export interface ManagedDatabases { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginDeleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginDeleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: ServiceCallback): void; - beginDeleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -25292,7 +25413,7 @@ export interface ManagedDatabases { * * @reject {Error|ServiceError} - The error object. */ - beginUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabaseUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabaseUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates an existing database. @@ -25366,16 +25487,24 @@ export interface ManagedDatabases { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabaseUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabaseUpdate, callback: ServiceCallback): void; - beginUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabaseUpdate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabaseUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabaseUpdate, callback: ServiceCallback): void; + update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabaseUpdate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets a list of managed databases. + * Completes the restore operation on a managed database. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} locationName The name of the region where the resource is + * located. + * + * @param {uuid} operationId Management operation id that this request tries to + * complete. + * + * @param {object} parameters The definition for completing the restore of this + * managed database. + * + * @param {string} parameters.lastBackupName The last backup name to apply * * @param {object} [options] Optional Parameters. * @@ -25384,19 +25513,1001 @@ export interface ManagedDatabases { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByInstanceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCompleteRestoreWithHttpOperationResponse(locationName: string, operationId: string, parameters: models.CompleteDatabaseRestoreDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a list of managed databases. + * Completes the restore operation on a managed database. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} locationName The name of the region where the resource is + * located. * - * @param {object} [options] Optional Parameters. + * @param {uuid} operationId Management operation id that this request tries to + * complete. + * + * @param {object} parameters The definition for completing the restore of this + * managed database. + * + * @param {string} parameters.lastBackupName The last backup name to apply + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + beginCompleteRestore(locationName: string, operationId: string, parameters: models.CompleteDatabaseRestoreDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCompleteRestore(locationName: string, operationId: string, parameters: models.CompleteDatabaseRestoreDefinition, callback: ServiceCallback): void; + beginCompleteRestore(locationName: string, operationId: string, parameters: models.CompleteDatabaseRestoreDefinition, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Creates a new database or updates an existing database. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The requested database resource state. + * + * @param {string} [parameters.collation] Collation of the managed database. + * + * @param {date} [parameters.restorePointInTime] Conditional. If createMode is + * PointInTimeRestore, this value is required. Specifies the point in time + * (ISO8601 format) of the source database that will be restored to create the + * new database. + * + * @param {string} [parameters.catalogCollation] Collation of the metadata + * catalog. Possible values include: 'DATABASE_DEFAULT', + * 'SQL_Latin1_General_CP1_CI_AS' + * + * @param {string} [parameters.createMode] Managed database create mode. + * PointInTimeRestore: Create a database by restoring a point in time backup of + * an existing database. SourceDatabaseName, SourceManagedInstanceName and + * PointInTime must be specified. RestoreExternalBackup: Create a database by + * restoring from external backup files. Collation, StorageContainerUri and + * StorageContainerSasToken must be specified. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore' + * + * @param {string} [parameters.storageContainerUri] Conditional. If createMode + * is RestoreExternalBackup, this value is required. Specifies the uri of the + * storage container where backups for this restore are stored. + * + * @param {string} [parameters.sourceDatabaseId] The resource identifier of the + * source database associated with create operation of this database. + * + * @param {string} [parameters.storageContainerSasToken] Conditional. If + * createMode is RestoreExternalBackup, this value is required. Specifies the + * storage container sas token. + * + * @param {string} parameters.location Resource location. + * + * @param {object} [parameters.tags] Resource tags. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabase, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Creates a new database or updates an existing database. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The requested database resource state. + * + * @param {string} [parameters.collation] Collation of the managed database. + * + * @param {date} [parameters.restorePointInTime] Conditional. If createMode is + * PointInTimeRestore, this value is required. Specifies the point in time + * (ISO8601 format) of the source database that will be restored to create the + * new database. + * + * @param {string} [parameters.catalogCollation] Collation of the metadata + * catalog. Possible values include: 'DATABASE_DEFAULT', + * 'SQL_Latin1_General_CP1_CI_AS' + * + * @param {string} [parameters.createMode] Managed database create mode. + * PointInTimeRestore: Create a database by restoring a point in time backup of + * an existing database. SourceDatabaseName, SourceManagedInstanceName and + * PointInTime must be specified. RestoreExternalBackup: Create a database by + * restoring from external backup files. Collation, StorageContainerUri and + * StorageContainerSasToken must be specified. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore' + * + * @param {string} [parameters.storageContainerUri] Conditional. If createMode + * is RestoreExternalBackup, this value is required. Specifies the uri of the + * storage container where backups for this restore are stored. + * + * @param {string} [parameters.sourceDatabaseId] The resource identifier of the + * source database associated with create operation of this database. + * + * @param {string} [parameters.storageContainerSasToken] Conditional. If + * createMode is RestoreExternalBackup, this value is required. Specifies the + * storage container sas token. + * + * @param {string} parameters.location Resource location. + * + * @param {object} [parameters.tags] Resource tags. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {ManagedDatabase} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {ManagedDatabase} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedDatabase} for more information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabase, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabase, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabase, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Deletes the managed database. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Deletes the managed database. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + beginDeleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginDeleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: ServiceCallback): void; + beginDeleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Updates an existing database. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The requested database resource state. + * + * @param {string} [parameters.collation] Collation of the managed database. + * + * @param {date} [parameters.restorePointInTime] Conditional. If createMode is + * PointInTimeRestore, this value is required. Specifies the point in time + * (ISO8601 format) of the source database that will be restored to create the + * new database. + * + * @param {string} [parameters.catalogCollation] Collation of the metadata + * catalog. Possible values include: 'DATABASE_DEFAULT', + * 'SQL_Latin1_General_CP1_CI_AS' + * + * @param {string} [parameters.createMode] Managed database create mode. + * PointInTimeRestore: Create a database by restoring a point in time backup of + * an existing database. SourceDatabaseName, SourceManagedInstanceName and + * PointInTime must be specified. RestoreExternalBackup: Create a database by + * restoring from external backup files. Collation, StorageContainerUri and + * StorageContainerSasToken must be specified. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore' + * + * @param {string} [parameters.storageContainerUri] Conditional. If createMode + * is RestoreExternalBackup, this value is required. Specifies the uri of the + * storage container where backups for this restore are stored. + * + * @param {string} [parameters.sourceDatabaseId] The resource identifier of the + * source database associated with create operation of this database. + * + * @param {string} [parameters.storageContainerSasToken] Conditional. If + * createMode is RestoreExternalBackup, this value is required. Specifies the + * storage container sas token. + * + * @param {object} [parameters.tags] Resource tags. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + beginUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabaseUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Updates an existing database. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The requested database resource state. + * + * @param {string} [parameters.collation] Collation of the managed database. + * + * @param {date} [parameters.restorePointInTime] Conditional. If createMode is + * PointInTimeRestore, this value is required. Specifies the point in time + * (ISO8601 format) of the source database that will be restored to create the + * new database. + * + * @param {string} [parameters.catalogCollation] Collation of the metadata + * catalog. Possible values include: 'DATABASE_DEFAULT', + * 'SQL_Latin1_General_CP1_CI_AS' + * + * @param {string} [parameters.createMode] Managed database create mode. + * PointInTimeRestore: Create a database by restoring a point in time backup of + * an existing database. SourceDatabaseName, SourceManagedInstanceName and + * PointInTime must be specified. RestoreExternalBackup: Create a database by + * restoring from external backup files. Collation, StorageContainerUri and + * StorageContainerSasToken must be specified. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore' + * + * @param {string} [parameters.storageContainerUri] Conditional. If createMode + * is RestoreExternalBackup, this value is required. Specifies the uri of the + * storage container where backups for this restore are stored. + * + * @param {string} [parameters.sourceDatabaseId] The resource identifier of the + * source database associated with create operation of this database. + * + * @param {string} [parameters.storageContainerSasToken] Conditional. If + * createMode is RestoreExternalBackup, this value is required. Specifies the + * storage container sas token. + * + * @param {object} [parameters.tags] Resource tags. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {ManagedDatabase} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {ManagedDatabase} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedDatabase} for more information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + beginUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabaseUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabaseUpdate, callback: ServiceCallback): void; + beginUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.ManagedDatabaseUpdate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets a list of managed databases. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + listByInstanceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets a list of managed databases. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {ManagedDatabaseListResult} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {ManagedDatabaseListResult} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedDatabaseListResult} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listByInstanceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByInstanceNext(nextPageLink: string, callback: ServiceCallback): void; + listByInstanceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * ServerAutomaticTuningOperations + * __NOTE__: An instance of this class is automatically created for an + * instance of the SqlManagementClient. + */ +export interface ServerAutomaticTuningOperations { + + + /** + * Retrieves server automatic tuning options. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName: string, serverName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Retrieves server automatic tuning options. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {ServerAutomaticTuning} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {ServerAutomaticTuning} [result] - The deserialized result object if an error did not occur. + * See {@link ServerAutomaticTuning} for more information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName: string, serverName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, serverName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, serverName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Update automatic tuning options on server. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server. + * + * @param {object} parameters The requested automatic tuning resource state. + * + * @param {string} [parameters.desiredState] Automatic tuning desired state. + * Possible values include: 'Custom', 'Auto', 'Unspecified' + * + * @param {object} [parameters.options] Automatic tuning options definition. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + updateWithHttpOperationResponse(resourceGroupName: string, serverName: string, parameters: models.ServerAutomaticTuning, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Update automatic tuning options on server. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server. + * + * @param {object} parameters The requested automatic tuning resource state. + * + * @param {string} [parameters.desiredState] Automatic tuning desired state. + * Possible values include: 'Custom', 'Auto', 'Unspecified' + * + * @param {object} [parameters.options] Automatic tuning options definition. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {ServerAutomaticTuning} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {ServerAutomaticTuning} [result] - The deserialized result object if an error did not occur. + * See {@link ServerAutomaticTuning} for more information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + update(resourceGroupName: string, serverName: string, parameters: models.ServerAutomaticTuning, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, serverName: string, parameters: models.ServerAutomaticTuning, callback: ServiceCallback): void; + update(resourceGroupName: string, serverName: string, parameters: models.ServerAutomaticTuning, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * ServerDnsAliases + * __NOTE__: An instance of this class is automatically created for an + * instance of the SqlManagementClient. + */ +export interface ServerDnsAliases { + + + /** + * Gets a server DNS alias. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server that the alias is pointing + * to. + * + * @param {string} dnsAliasName The name of the server DNS alias. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets a server DNS alias. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server that the alias is pointing + * to. + * + * @param {string} dnsAliasName The name of the server DNS alias. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {ServerDnsAlias} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {ServerDnsAlias} [result] - The deserialized result object if an error did not occur. + * See {@link ServerDnsAlias} for more information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, serverName: string, dnsAliasName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, serverName: string, dnsAliasName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Creates a server dns alias. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server that the alias is pointing + * to. + * + * @param {string} dnsAliasName The name of the server DNS alias. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Creates a server dns alias. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server that the alias is pointing + * to. + * + * @param {string} dnsAliasName The name of the server DNS alias. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {ServerDnsAlias} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {ServerDnsAlias} [result] - The deserialized result object if an error did not occur. + * See {@link ServerDnsAlias} for more information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + createOrUpdate(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, serverName: string, dnsAliasName: string, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serverName: string, dnsAliasName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Deletes the server DNS alias with the given name. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server that the alias is pointing + * to. + * + * @param {string} dnsAliasName The name of the server DNS alias. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Deletes the server DNS alias with the given name. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server that the alias is pointing + * to. + * + * @param {string} dnsAliasName The name of the server DNS alias. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + deleteMethod(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, serverName: string, dnsAliasName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, serverName: string, dnsAliasName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets a list of server DNS aliases for a server. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server that the alias is pointing + * to. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + listByServerWithHttpOperationResponse(resourceGroupName: string, serverName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets a list of server DNS aliases for a server. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server that the alias is pointing + * to. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {ServerDnsAliasListResult} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {ServerDnsAliasListResult} [result] - The deserialized result object if an error did not occur. + * See {@link ServerDnsAliasListResult} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listByServer(resourceGroupName: string, serverName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByServer(resourceGroupName: string, serverName: string, callback: ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Acquires server DNS alias from another server. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server that the alias is pointing + * to. + * + * @param {string} dnsAliasName The name of the server dns alias. + * + * @param {object} parameters + * + * @param {string} [parameters.oldServerDnsAliasId] The id of the server alias + * that will be acquired to point to this server instead. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + acquireWithHttpOperationResponse(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: models.ServerDnsAliasAcquisition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Acquires server DNS alias from another server. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server that the alias is pointing + * to. + * + * @param {string} dnsAliasName The name of the server dns alias. + * + * @param {object} parameters + * + * @param {string} [parameters.oldServerDnsAliasId] The id of the server alias + * that will be acquired to point to this server instead. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + acquire(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: models.ServerDnsAliasAcquisition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + acquire(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: models.ServerDnsAliasAcquisition, callback: ServiceCallback): void; + acquire(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: models.ServerDnsAliasAcquisition, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Creates a server dns alias. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server that the alias is pointing + * to. + * + * @param {string} dnsAliasName The name of the server DNS alias. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Creates a server dns alias. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server that the alias is pointing + * to. + * + * @param {string} dnsAliasName The name of the server DNS alias. + * + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -25408,7 +26519,7 @@ export interface ManagedDatabases { * * {Promise} A promise is returned. * - * @resolve {ManagedDatabaseListResult} - The deserialized result object. + * @resolve {ServerDnsAlias} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25416,36 +26527,29 @@ export interface ManagedDatabases { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ManagedDatabaseListResult} [result] - The deserialized result object if an error did not occur. - * See {@link ManagedDatabaseListResult} for more - * information. + * {ServerDnsAlias} [result] - The deserialized result object if an error did not occur. + * See {@link ServerDnsAlias} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByInstanceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByInstanceNext(nextPageLink: string, callback: ServiceCallback): void; - listByInstanceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * ServerAutomaticTuningOperations - * __NOTE__: An instance of this class is automatically created for an - * instance of the SqlManagementClient. - */ -export interface ServerAutomaticTuningOperations { + beginCreateOrUpdate(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreateOrUpdate(resourceGroupName: string, serverName: string, dnsAliasName: string, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, serverName: string, dnsAliasName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieves server automatic tuning options. + * Deletes the server DNS alias with the given name. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} serverName The name of the server that the alias is pointing + * to. + * + * @param {string} dnsAliasName The name of the server DNS alias. * * @param {object} [options] Optional Parameters. * @@ -25454,20 +26558,23 @@ export interface ServerAutomaticTuningOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, serverName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieves server automatic tuning options. + * Deletes the server DNS alias with the given name. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} serverName The name of the server that the alias is pointing + * to. + * + * @param {string} dnsAliasName The name of the server DNS alias. * * @param {object} [options] Optional Parameters. * @@ -25481,7 +26588,7 @@ export interface ServerAutomaticTuningOperations { * * {Promise} A promise is returned. * - * @resolve {ServerAutomaticTuning} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25489,33 +26596,33 @@ export interface ServerAutomaticTuningOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ServerAutomaticTuning} [result] - The deserialized result object if an error did not occur. - * See {@link ServerAutomaticTuning} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, serverName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, serverName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginDeleteMethod(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginDeleteMethod(resourceGroupName: string, serverName: string, dnsAliasName: string, callback: ServiceCallback): void; + beginDeleteMethod(resourceGroupName: string, serverName: string, dnsAliasName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Update automatic tuning options on server. + * Acquires server DNS alias from another server. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} serverName The name of the server that the alias is pointing + * to. * - * @param {object} parameters The requested automatic tuning resource state. + * @param {string} dnsAliasName The name of the server dns alias. * - * @param {string} [parameters.desiredState] Automatic tuning desired state. - * Possible values include: 'Custom', 'Auto', 'Unspecified' + * @param {object} parameters * - * @param {object} [parameters.options] Automatic tuning options definition. + * @param {string} [parameters.oldServerDnsAliasId] The id of the server alias + * that will be acquired to point to this server instead. * * @param {object} [options] Optional Parameters. * @@ -25524,27 +26631,28 @@ export interface ServerAutomaticTuningOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName: string, serverName: string, parameters: models.ServerAutomaticTuning, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginAcquireWithHttpOperationResponse(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: models.ServerDnsAliasAcquisition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Update automatic tuning options on server. + * Acquires server DNS alias from another server. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} serverName The name of the server that the alias is pointing + * to. * - * @param {object} parameters The requested automatic tuning resource state. + * @param {string} dnsAliasName The name of the server dns alias. * - * @param {string} [parameters.desiredState] Automatic tuning desired state. - * Possible values include: 'Custom', 'Auto', 'Unspecified' + * @param {object} parameters * - * @param {object} [parameters.options] Automatic tuning options definition. + * @param {string} [parameters.oldServerDnsAliasId] The id of the server alias + * that will be acquired to point to this server instead. * * @param {object} [options] Optional Parameters. * @@ -25558,7 +26666,7 @@ export interface ServerAutomaticTuningOperations { * * {Promise} A promise is returned. * - * @resolve {ServerAutomaticTuning} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25566,38 +26674,183 @@ export interface ServerAutomaticTuningOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ServerAutomaticTuning} [result] - The deserialized result object if an error did not occur. - * See {@link ServerAutomaticTuning} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - update(resourceGroupName: string, serverName: string, parameters: models.ServerAutomaticTuning, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - update(resourceGroupName: string, serverName: string, parameters: models.ServerAutomaticTuning, callback: ServiceCallback): void; - update(resourceGroupName: string, serverName: string, parameters: models.ServerAutomaticTuning, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginAcquire(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: models.ServerDnsAliasAcquisition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginAcquire(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: models.ServerDnsAliasAcquisition, callback: ServiceCallback): void; + beginAcquire(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: models.ServerDnsAliasAcquisition, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets a list of server DNS aliases for a server. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + listByServerNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets a list of server DNS aliases for a server. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {ServerDnsAliasListResult} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {ServerDnsAliasListResult} [result] - The deserialized result object if an error did not occur. + * See {@link ServerDnsAliasListResult} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listByServerNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByServerNext(nextPageLink: string, callback: ServiceCallback): void; + listByServerNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class - * ServerDnsAliases + * ServerSecurityAlertPolicies * __NOTE__: An instance of this class is automatically created for an * instance of the SqlManagementClient. */ -export interface ServerDnsAliases { +export interface ServerSecurityAlertPolicies { /** - * Gets a server DNS alias. + * Get a server's security alert policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server that the alias is pointing - * to. + * @param {string} serverName The name of the server. * - * @param {string} dnsAliasName The name of the server DNS alias. + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName: string, serverName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Get a server's security alert policy. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {ServerSecurityAlertPolicy} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {ServerSecurityAlertPolicy} [result] - The deserialized result object if an error did not occur. + * See {@link ServerSecurityAlertPolicy} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName: string, serverName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, serverName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, serverName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Creates or updates a threat detection policy. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server. + * + * @param {object} parameters The server security alert policy. + * + * @param {string} parameters.state Specifies the state of the policy, whether + * it is enabled or disabled. Possible values include: 'New', 'Enabled', + * 'Disabled' + * + * @param {array} [parameters.disabledAlerts] Specifies an array of alerts that + * are disabled. Allowed values are: Sql_Injection, + * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, + * Unsafe_Action + * + * @param {array} [parameters.emailAddresses] Specifies an array of e-mail + * addresses to which the alert is sent. + * + * @param {boolean} [parameters.emailAccountAdmins] Specifies that the alert is + * sent to the account administrators. + * + * @param {string} [parameters.storageEndpoint] Specifies the blob storage + * endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage + * will hold all Threat Detection audit logs. + * + * @param {string} [parameters.storageAccountAccessKey] Specifies the + * identifier key of the Threat Detection audit storage account. + * + * @param {number} [parameters.retentionDays] Specifies the number of days to + * keep in the Threat Detection audit logs. * * @param {object} [options] Optional Parameters. * @@ -25606,23 +26859,47 @@ export interface ServerDnsAliases { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serverName: string, parameters: models.ServerSecurityAlertPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a server DNS alias. + * Creates or updates a threat detection policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server that the alias is pointing - * to. + * @param {string} serverName The name of the server. * - * @param {string} dnsAliasName The name of the server DNS alias. + * @param {object} parameters The server security alert policy. + * + * @param {string} parameters.state Specifies the state of the policy, whether + * it is enabled or disabled. Possible values include: 'New', 'Enabled', + * 'Disabled' + * + * @param {array} [parameters.disabledAlerts] Specifies an array of alerts that + * are disabled. Allowed values are: Sql_Injection, + * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, + * Unsafe_Action + * + * @param {array} [parameters.emailAddresses] Specifies an array of e-mail + * addresses to which the alert is sent. + * + * @param {boolean} [parameters.emailAccountAdmins] Specifies that the alert is + * sent to the account administrators. + * + * @param {string} [parameters.storageEndpoint] Specifies the blob storage + * endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage + * will hold all Threat Detection audit logs. + * + * @param {string} [parameters.storageAccountAccessKey] Specifies the + * identifier key of the Threat Detection audit storage account. + * + * @param {number} [parameters.retentionDays] Specifies the number of days to + * keep in the Threat Detection audit logs. * * @param {object} [options] Optional Parameters. * @@ -25636,7 +26913,7 @@ export interface ServerDnsAliases { * * {Promise} A promise is returned. * - * @resolve {ServerDnsAlias} - The deserialized result object. + * @resolve {ServerSecurityAlertPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25644,29 +26921,54 @@ export interface ServerDnsAliases { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ServerDnsAlias} [result] - The deserialized result object if an error did not occur. - * See {@link ServerDnsAlias} for more information. + * {ServerSecurityAlertPolicy} [result] - The deserialized result object if an error did not occur. + * See {@link ServerSecurityAlertPolicy} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, serverName: string, dnsAliasName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, serverName: string, dnsAliasName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serverName: string, parameters: models.ServerSecurityAlertPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, serverName: string, parameters: models.ServerSecurityAlertPolicy, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serverName: string, parameters: models.ServerSecurityAlertPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates a server dns alias. + * Creates or updates a threat detection policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server that the alias is pointing - * to. + * @param {string} serverName The name of the server. * - * @param {string} dnsAliasName The name of the server DNS alias. + * @param {object} parameters The server security alert policy. + * + * @param {string} parameters.state Specifies the state of the policy, whether + * it is enabled or disabled. Possible values include: 'New', 'Enabled', + * 'Disabled' + * + * @param {array} [parameters.disabledAlerts] Specifies an array of alerts that + * are disabled. Allowed values are: Sql_Injection, + * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, + * Unsafe_Action + * + * @param {array} [parameters.emailAddresses] Specifies an array of e-mail + * addresses to which the alert is sent. + * + * @param {boolean} [parameters.emailAccountAdmins] Specifies that the alert is + * sent to the account administrators. + * + * @param {string} [parameters.storageEndpoint] Specifies the blob storage + * endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage + * will hold all Threat Detection audit logs. + * + * @param {string} [parameters.storageAccountAccessKey] Specifies the + * identifier key of the Threat Detection audit storage account. + * + * @param {number} [parameters.retentionDays] Specifies the number of days to + * keep in the Threat Detection audit logs. * * @param {object} [options] Optional Parameters. * @@ -25675,23 +26977,47 @@ export interface ServerDnsAliases { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, serverName: string, parameters: models.ServerSecurityAlertPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates a server dns alias. + * Creates or updates a threat detection policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server that the alias is pointing - * to. + * @param {string} serverName The name of the server. * - * @param {string} dnsAliasName The name of the server DNS alias. + * @param {object} parameters The server security alert policy. + * + * @param {string} parameters.state Specifies the state of the policy, whether + * it is enabled or disabled. Possible values include: 'New', 'Enabled', + * 'Disabled' + * + * @param {array} [parameters.disabledAlerts] Specifies an array of alerts that + * are disabled. Allowed values are: Sql_Injection, + * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, + * Unsafe_Action + * + * @param {array} [parameters.emailAddresses] Specifies an array of e-mail + * addresses to which the alert is sent. + * + * @param {boolean} [parameters.emailAccountAdmins] Specifies that the alert is + * sent to the account administrators. + * + * @param {string} [parameters.storageEndpoint] Specifies the blob storage + * endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage + * will hold all Threat Detection audit logs. + * + * @param {string} [parameters.storageAccountAccessKey] Specifies the + * identifier key of the Threat Detection audit storage account. + * + * @param {number} [parameters.retentionDays] Specifies the number of days to + * keep in the Threat Detection audit logs. * * @param {object} [options] Optional Parameters. * @@ -25705,7 +27031,7 @@ export interface ServerDnsAliases { * * {Promise} A promise is returned. * - * @resolve {ServerDnsAlias} - The deserialized result object. + * @resolve {ServerSecurityAlertPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25713,29 +27039,38 @@ export interface ServerDnsAliases { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ServerDnsAlias} [result] - The deserialized result object if an error did not occur. - * See {@link ServerDnsAlias} for more information. + * {ServerSecurityAlertPolicy} [result] - The deserialized result object if an error did not occur. + * See {@link ServerSecurityAlertPolicy} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, serverName: string, dnsAliasName: string, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, dnsAliasName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: models.ServerSecurityAlertPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: models.ServerSecurityAlertPolicy, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: models.ServerSecurityAlertPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * RestorePoints + * __NOTE__: An instance of this class is automatically created for an + * instance of the SqlManagementClient. + */ +export interface RestorePoints { /** - * Deletes the server DNS alias with the given name. + * Gets a list of database restore points. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server that the alias is pointing - * to. + * @param {string} serverName The name of the server. * - * @param {string} dnsAliasName The name of the server DNS alias. + * @param {string} databaseName The name of the database. * * @param {object} [options] Optional Parameters. * @@ -25744,23 +27079,22 @@ export interface ServerDnsAliases { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByDatabaseWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the server DNS alias with the given name. + * Gets a list of database restore points. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server that the alias is pointing - * to. + * @param {string} serverName The name of the server. * - * @param {string} dnsAliasName The name of the server DNS alias. + * @param {string} databaseName The name of the database. * * @param {object} [options] Optional Parameters. * @@ -25774,7 +27108,7 @@ export interface ServerDnsAliases { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {RestorePointListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25782,26 +27116,35 @@ export interface ServerDnsAliases { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {RestorePointListResult} [result] - The deserialized result object if an error did not occur. + * See {@link RestorePointListResult} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, serverName: string, dnsAliasName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, dnsAliasName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets a list of server DNS aliases for a server. + * Creates a restore point for a data warehouse. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server that the alias is pointing - * to. + * @param {string} serverName The name of the server. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The definition for creating the restore point of + * this database. + * + * @param {string} parameters.restorePointLabel The restore point label to + * apply * * @param {object} [options] Optional Parameters. * @@ -25810,21 +27153,28 @@ export interface ServerDnsAliases { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByServerWithHttpOperationResponse(resourceGroupName: string, serverName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.CreateDatabaseRestorePointDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a list of server DNS aliases for a server. + * Creates a restore point for a data warehouse. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server that the alias is pointing - * to. + * @param {string} serverName The name of the server. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The definition for creating the restore point of + * this database. + * + * @param {string} parameters.restorePointLabel The restore point label to + * apply * * @param {object} [options] Optional Parameters. * @@ -25838,7 +27188,7 @@ export interface ServerDnsAliases { * * {Promise} A promise is returned. * - * @resolve {ServerDnsAliasListResult} - The deserialized result object. + * @resolve {RestorePoint} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25846,35 +27196,30 @@ export interface ServerDnsAliases { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ServerDnsAliasListResult} [result] - The deserialized result object if an error did not occur. - * See {@link ServerDnsAliasListResult} for more - * information. + * {RestorePoint} [result] - The deserialized result object if an error did not occur. + * See {@link RestorePoint} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByServer(resourceGroupName: string, serverName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByServer(resourceGroupName: string, serverName: string, callback: ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + create(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.CreateDatabaseRestorePointDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + create(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.CreateDatabaseRestorePointDefinition, callback: ServiceCallback): void; + create(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.CreateDatabaseRestorePointDefinition, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Acquires server DNS alias from another server. + * Gets a restore point. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server that the alias is pointing - * to. - * - * @param {string} dnsAliasName The name of the server dns alias. + * @param {string} serverName The name of the server. * - * @param {object} parameters + * @param {string} databaseName The name of the database. * - * @param {string} [parameters.oldServerDnsAliasId] The id of the server alias - * that will be acquired to point to this server instead. + * @param {string} restorePointName The name of the restore point. * * @param {object} [options] Optional Parameters. * @@ -25883,28 +27228,24 @@ export interface ServerDnsAliases { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - acquireWithHttpOperationResponse(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: models.ServerDnsAliasAcquisition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Acquires server DNS alias from another server. + * Gets a restore point. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server that the alias is pointing - * to. - * - * @param {string} dnsAliasName The name of the server dns alias. + * @param {string} serverName The name of the server. * - * @param {object} parameters + * @param {string} databaseName The name of the database. * - * @param {string} [parameters.oldServerDnsAliasId] The id of the server alias - * that will be acquired to point to this server instead. + * @param {string} restorePointName The name of the restore point. * * @param {object} [options] Optional Parameters. * @@ -25918,7 +27259,7 @@ export interface ServerDnsAliases { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {RestorePoint} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25926,28 +27267,30 @@ export interface ServerDnsAliases { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {RestorePoint} [result] - The deserialized result object if an error did not occur. + * See {@link RestorePoint} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - acquire(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: models.ServerDnsAliasAcquisition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - acquire(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: models.ServerDnsAliasAcquisition, callback: ServiceCallback): void; - acquire(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: models.ServerDnsAliasAcquisition, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates a server dns alias. + * Deletes a restore point. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server that the alias is pointing - * to. + * @param {string} serverName The name of the server. + * + * @param {string} databaseName The name of the database. * - * @param {string} dnsAliasName The name of the server DNS alias. + * @param {string} restorePointName The name of the restore point. * * @param {object} [options] Optional Parameters. * @@ -25956,23 +27299,24 @@ export interface ServerDnsAliases { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates a server dns alias. + * Deletes a restore point. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server that the alias is pointing - * to. + * @param {string} serverName The name of the server. * - * @param {string} dnsAliasName The name of the server DNS alias. + * @param {string} databaseName The name of the database. + * + * @param {string} restorePointName The name of the restore point. * * @param {object} [options] Optional Parameters. * @@ -25986,7 +27330,7 @@ export interface ServerDnsAliases { * * {Promise} A promise is returned. * - * @resolve {ServerDnsAlias} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25994,29 +27338,33 @@ export interface ServerDnsAliases { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ServerDnsAlias} [result] - The deserialized result object if an error did not occur. - * See {@link ServerDnsAlias} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreateOrUpdate(resourceGroupName: string, serverName: string, dnsAliasName: string, callback: ServiceCallback): void; - beginCreateOrUpdate(resourceGroupName: string, serverName: string, dnsAliasName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Deletes the server DNS alias with the given name. + * Creates a restore point for a data warehouse. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server that the alias is pointing - * to. + * @param {string} serverName The name of the server. * - * @param {string} dnsAliasName The name of the server DNS alias. + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The definition for creating the restore point of + * this database. + * + * @param {string} parameters.restorePointLabel The restore point label to + * apply * * @param {object} [options] Optional Parameters. * @@ -26025,23 +27373,28 @@ export interface ServerDnsAliases { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.CreateDatabaseRestorePointDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the server DNS alias with the given name. + * Creates a restore point for a data warehouse. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server that the alias is pointing - * to. + * @param {string} serverName The name of the server. * - * @param {string} dnsAliasName The name of the server DNS alias. + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The definition for creating the restore point of + * this database. + * + * @param {string} parameters.restorePointLabel The restore point label to + * apply * * @param {object} [options] Optional Parameters. * @@ -26055,7 +27408,7 @@ export interface ServerDnsAliases { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {RestorePoint} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26063,33 +27416,39 @@ export interface ServerDnsAliases { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {RestorePoint} [result] - The deserialized result object if an error did not occur. + * See {@link RestorePoint} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginDeleteMethod(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginDeleteMethod(resourceGroupName: string, serverName: string, dnsAliasName: string, callback: ServiceCallback): void; - beginDeleteMethod(resourceGroupName: string, serverName: string, dnsAliasName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginCreate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.CreateDatabaseRestorePointDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.CreateDatabaseRestorePointDefinition, callback: ServiceCallback): void; + beginCreate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.CreateDatabaseRestorePointDefinition, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * DatabaseOperations + * __NOTE__: An instance of this class is automatically created for an + * instance of the SqlManagementClient. + */ +export interface DatabaseOperations { /** - * Acquires server DNS alias from another server. + * Cancels the asynchronous operation on the database. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server that the alias is pointing - * to. - * - * @param {string} dnsAliasName The name of the server dns alias. + * @param {string} serverName The name of the server. * - * @param {object} parameters + * @param {string} databaseName The name of the database. * - * @param {string} [parameters.oldServerDnsAliasId] The id of the server alias - * that will be acquired to point to this server instead. + * @param {uuid} operationId The operation identifier. * * @param {object} [options] Optional Parameters. * @@ -26102,24 +27461,20 @@ export interface ServerDnsAliases { * * @reject {Error|ServiceError} - The error object. */ - beginAcquireWithHttpOperationResponse(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: models.ServerDnsAliasAcquisition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + cancelWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Acquires server DNS alias from another server. + * Cancels the asynchronous operation on the database. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server that the alias is pointing - * to. - * - * @param {string} dnsAliasName The name of the server dns alias. + * @param {string} serverName The name of the server. * - * @param {object} parameters + * @param {string} databaseName The name of the database. * - * @param {string} [parameters.oldServerDnsAliasId] The id of the server alias - * that will be acquired to point to this server instead. + * @param {uuid} operationId The operation identifier. * * @param {object} [options] Optional Parameters. * @@ -26147,16 +27502,21 @@ export interface ServerDnsAliases { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginAcquire(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: models.ServerDnsAliasAcquisition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginAcquire(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: models.ServerDnsAliasAcquisition, callback: ServiceCallback): void; - beginAcquire(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: models.ServerDnsAliasAcquisition, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + cancel(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + cancel(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, callback: ServiceCallback): void; + cancel(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets a list of server DNS aliases for a server. + * Gets a list of operations performed on the database. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server. + * + * @param {string} databaseName The name of the database. * * @param {object} [options] Optional Parameters. * @@ -26165,17 +27525,22 @@ export interface ServerDnsAliases { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByServerNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByDatabaseWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a list of server DNS aliases for a server. + * Gets a list of operations performed on the database. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server. + * + * @param {string} databaseName The name of the database. * * @param {object} [options] Optional Parameters. * @@ -26189,7 +27554,7 @@ export interface ServerDnsAliases { * * {Promise} A promise is returned. * - * @resolve {ServerDnsAliasListResult} - The deserialized result object. + * @resolve {DatabaseOperationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26197,36 +27562,24 @@ export interface ServerDnsAliases { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ServerDnsAliasListResult} [result] - The deserialized result object if an error did not occur. - * See {@link ServerDnsAliasListResult} for more + * {DatabaseOperationListResult} [result] - The deserialized result object if an error did not occur. + * See {@link DatabaseOperationListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByServerNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByServerNext(nextPageLink: string, callback: ServiceCallback): void; - listByServerNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * ServerSecurityAlertPolicies - * __NOTE__: An instance of this class is automatically created for an - * instance of the SqlManagementClient. - */ -export interface ServerSecurityAlertPolicies { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Get a server's security alert policy. - * - * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. + * Gets a list of operations performed on the database. * - * @param {string} serverName The name of the server. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -26235,20 +27588,17 @@ export interface ServerSecurityAlertPolicies { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, serverName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByDatabaseNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get a server's security alert policy. - * - * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. + * Gets a list of operations performed on the database. * - * @param {string} serverName The name of the server. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -26262,7 +27612,7 @@ export interface ServerSecurityAlertPolicies { * * {Promise} A promise is returned. * - * @resolve {ServerSecurityAlertPolicy} - The deserialized result object. + * @resolve {DatabaseOperationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26270,21 +27620,30 @@ export interface ServerSecurityAlertPolicies { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ServerSecurityAlertPolicy} [result] - The deserialized result object if an error did not occur. - * See {@link ServerSecurityAlertPolicy} for more + * {DatabaseOperationListResult} [result] - The deserialized result object if an error did not occur. + * See {@link DatabaseOperationListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, serverName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, serverName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByDatabaseNext(nextPageLink: string, callback: ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * ElasticPoolOperations + * __NOTE__: An instance of this class is automatically created for an + * instance of the SqlManagementClient. + */ +export interface ElasticPoolOperations { /** - * Creates or updates a threat detection policy. + * Cancels the asynchronous operation on the elastic pool. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -26292,32 +27651,9 @@ export interface ServerSecurityAlertPolicies { * * @param {string} serverName The name of the server. * - * @param {object} parameters The server security alert policy. - * - * @param {string} parameters.state Specifies the state of the policy, whether - * it is enabled or disabled. Possible values include: 'New', 'Enabled', - * 'Disabled' - * - * @param {array} [parameters.disabledAlerts] Specifies an array of alerts that - * are disabled. Allowed values are: Sql_Injection, - * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, - * Unsafe_Action - * - * @param {array} [parameters.emailAddresses] Specifies an array of e-mail - * addresses to which the alert is sent. - * - * @param {boolean} [parameters.emailAccountAdmins] Specifies that the alert is - * sent to the account administrators. - * - * @param {string} [parameters.storageEndpoint] Specifies the blob storage - * endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage - * will hold all Threat Detection audit logs. - * - * @param {string} [parameters.storageAccountAccessKey] Specifies the - * identifier key of the Threat Detection audit storage account. + * @param {string} elasticPoolName * - * @param {number} [parameters.retentionDays] Specifies the number of days to - * keep in the Threat Detection audit logs. + * @param {uuid} operationId The operation identifier. * * @param {object} [options] Optional Parameters. * @@ -26326,47 +27662,24 @@ export interface ServerSecurityAlertPolicies { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serverName: string, parameters: models.ServerSecurityAlertPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + cancelWithHttpOperationResponse(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a threat detection policy. - * - * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. - * - * @param {string} serverName The name of the server. - * - * @param {object} parameters The server security alert policy. - * - * @param {string} parameters.state Specifies the state of the policy, whether - * it is enabled or disabled. Possible values include: 'New', 'Enabled', - * 'Disabled' - * - * @param {array} [parameters.disabledAlerts] Specifies an array of alerts that - * are disabled. Allowed values are: Sql_Injection, - * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, - * Unsafe_Action - * - * @param {array} [parameters.emailAddresses] Specifies an array of e-mail - * addresses to which the alert is sent. + * Cancels the asynchronous operation on the elastic pool. * - * @param {boolean} [parameters.emailAccountAdmins] Specifies that the alert is - * sent to the account administrators. + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. * - * @param {string} [parameters.storageEndpoint] Specifies the blob storage - * endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage - * will hold all Threat Detection audit logs. + * @param {string} serverName The name of the server. * - * @param {string} [parameters.storageAccountAccessKey] Specifies the - * identifier key of the Threat Detection audit storage account. + * @param {string} elasticPoolName * - * @param {number} [parameters.retentionDays] Specifies the number of days to - * keep in the Threat Detection audit logs. + * @param {uuid} operationId The operation identifier. * * @param {object} [options] Optional Parameters. * @@ -26380,7 +27693,7 @@ export interface ServerSecurityAlertPolicies { * * {Promise} A promise is returned. * - * @resolve {ServerSecurityAlertPolicy} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26388,21 +27701,19 @@ export interface ServerSecurityAlertPolicies { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ServerSecurityAlertPolicy} [result] - The deserialized result object if an error did not occur. - * See {@link ServerSecurityAlertPolicy} for more - * information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName: string, serverName: string, parameters: models.ServerSecurityAlertPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, serverName: string, parameters: models.ServerSecurityAlertPolicy, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, parameters: models.ServerSecurityAlertPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + cancel(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + cancel(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, callback: ServiceCallback): void; + cancel(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates or updates a threat detection policy. + * Gets a list of operations performed on the elastic pool. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -26410,32 +27721,7 @@ export interface ServerSecurityAlertPolicies { * * @param {string} serverName The name of the server. * - * @param {object} parameters The server security alert policy. - * - * @param {string} parameters.state Specifies the state of the policy, whether - * it is enabled or disabled. Possible values include: 'New', 'Enabled', - * 'Disabled' - * - * @param {array} [parameters.disabledAlerts] Specifies an array of alerts that - * are disabled. Allowed values are: Sql_Injection, - * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, - * Unsafe_Action - * - * @param {array} [parameters.emailAddresses] Specifies an array of e-mail - * addresses to which the alert is sent. - * - * @param {boolean} [parameters.emailAccountAdmins] Specifies that the alert is - * sent to the account administrators. - * - * @param {string} [parameters.storageEndpoint] Specifies the blob storage - * endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage - * will hold all Threat Detection audit logs. - * - * @param {string} [parameters.storageAccountAccessKey] Specifies the - * identifier key of the Threat Detection audit storage account. - * - * @param {number} [parameters.retentionDays] Specifies the number of days to - * keep in the Threat Detection audit logs. + * @param {string} elasticPoolName * * @param {object} [options] Optional Parameters. * @@ -26444,14 +27730,14 @@ export interface ServerSecurityAlertPolicies { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, serverName: string, parameters: models.ServerSecurityAlertPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByElasticPoolWithHttpOperationResponse(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a threat detection policy. + * Gets a list of operations performed on the elastic pool. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -26459,32 +27745,7 @@ export interface ServerSecurityAlertPolicies { * * @param {string} serverName The name of the server. * - * @param {object} parameters The server security alert policy. - * - * @param {string} parameters.state Specifies the state of the policy, whether - * it is enabled or disabled. Possible values include: 'New', 'Enabled', - * 'Disabled' - * - * @param {array} [parameters.disabledAlerts] Specifies an array of alerts that - * are disabled. Allowed values are: Sql_Injection, - * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, - * Unsafe_Action - * - * @param {array} [parameters.emailAddresses] Specifies an array of e-mail - * addresses to which the alert is sent. - * - * @param {boolean} [parameters.emailAccountAdmins] Specifies that the alert is - * sent to the account administrators. - * - * @param {string} [parameters.storageEndpoint] Specifies the blob storage - * endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage - * will hold all Threat Detection audit logs. - * - * @param {string} [parameters.storageAccountAccessKey] Specifies the - * identifier key of the Threat Detection audit storage account. - * - * @param {number} [parameters.retentionDays] Specifies the number of days to - * keep in the Threat Detection audit logs. + * @param {string} elasticPoolName * * @param {object} [options] Optional Parameters. * @@ -26498,7 +27759,7 @@ export interface ServerSecurityAlertPolicies { * * {Promise} A promise is returned. * - * @resolve {ServerSecurityAlertPolicy} - The deserialized result object. + * @resolve {ElasticPoolOperationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26506,38 +27767,24 @@ export interface ServerSecurityAlertPolicies { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ServerSecurityAlertPolicy} [result] - The deserialized result object if an error did not occur. - * See {@link ServerSecurityAlertPolicy} for more + * {ElasticPoolOperationListResult} [result] - The deserialized result object if an error did not occur. + * See {@link ElasticPoolOperationListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: models.ServerSecurityAlertPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: models.ServerSecurityAlertPolicy, callback: ServiceCallback): void; - beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: models.ServerSecurityAlertPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * RestorePoints - * __NOTE__: An instance of this class is automatically created for an - * instance of the SqlManagementClient. - */ -export interface RestorePoints { + listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, callback: ServiceCallback): void; + listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets a list of database restore points. - * - * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. - * - * @param {string} serverName The name of the server. + * Gets a list of operations performed on the elastic pool. * - * @param {string} databaseName The name of the database. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -26546,22 +27793,17 @@ export interface RestorePoints { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByDatabaseWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByElasticPoolNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a list of database restore points. - * - * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. - * - * @param {string} serverName The name of the server. + * Gets a list of operations performed on the elastic pool. * - * @param {string} databaseName The name of the database. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -26575,7 +27817,7 @@ export interface RestorePoints { * * {Promise} A promise is returned. * - * @resolve {RestorePointListResult} - The deserialized result object. + * @resolve {ElasticPoolOperationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26583,68 +27825,65 @@ export interface RestorePoints { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {RestorePointListResult} [result] - The deserialized result object if an error did not occur. - * See {@link RestorePointListResult} for more + * {ElasticPoolOperationListResult} [result] - The deserialized result object if an error did not occur. + * See {@link ElasticPoolOperationListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByElasticPoolNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByElasticPoolNext(nextPageLink: string, callback: ServiceCallback): void; + listByElasticPoolNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * Capabilities + * __NOTE__: An instance of this class is automatically created for an + * instance of the SqlManagementClient. + */ +export interface Capabilities { /** - * Creates a restore point for a data warehouse. - * - * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. - * - * @param {string} serverName The name of the server. - * - * @param {string} databaseName The name of the database. - * - * @param {object} parameters The definition for creating the restore point of - * this database. + * Gets the subscription capabilities available for the specified location. * - * @param {string} parameters.restorePointLabel The restore point label to - * apply + * @param {string} locationName The location name whose capabilities are + * retrieved. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.include] If specified, restricts the response to + * only include the selected item. Possible values include: + * 'supportedEditions', 'supportedElasticPoolEditions', + * 'supportedManagedInstanceVersions' + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.CreateDatabaseRestorePointDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByLocationWithHttpOperationResponse(locationName: string, options?: { include? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates a restore point for a data warehouse. - * - * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. - * - * @param {string} serverName The name of the server. - * - * @param {string} databaseName The name of the database. - * - * @param {object} parameters The definition for creating the restore point of - * this database. + * Gets the subscription capabilities available for the specified location. * - * @param {string} parameters.restorePointLabel The restore point label to - * apply + * @param {string} locationName The location name whose capabilities are + * retrieved. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.include] If specified, restricts the response to + * only include the selected item. Possible values include: + * 'supportedEditions', 'supportedElasticPoolEditions', + * 'supportedManagedInstanceVersions' + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -26655,7 +27894,7 @@ export interface RestorePoints { * * {Promise} A promise is returned. * - * @resolve {RestorePoint} - The deserialized result object. + * @resolve {LocationCapabilities} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26663,20 +27902,29 @@ export interface RestorePoints { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {RestorePoint} [result] - The deserialized result object if an error did not occur. - * See {@link RestorePoint} for more information. + * {LocationCapabilities} [result] - The deserialized result object if an error did not occur. + * See {@link LocationCapabilities} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - create(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.CreateDatabaseRestorePointDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - create(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.CreateDatabaseRestorePointDefinition, callback: ServiceCallback): void; - create(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.CreateDatabaseRestorePointDefinition, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByLocation(locationName: string, options?: { include? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listByLocation(locationName: string, callback: ServiceCallback): void; + listByLocation(locationName: string, options: { include? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * DatabaseVulnerabilityAssessmentScans + * __NOTE__: An instance of this class is automatically created for an + * instance of the SqlManagementClient. + */ +export interface DatabaseVulnerabilityAssessmentScans { /** - * Gets a restore point. + * Lists the vulnerability assessment scans of a database. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -26686,8 +27934,6 @@ export interface RestorePoints { * * @param {string} databaseName The name of the database. * - * @param {string} restorePointName The name of the restore point. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -26695,14 +27941,14 @@ export interface RestorePoints { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByDatabaseWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a restore point. + * Lists the vulnerability assessment scans of a database. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -26712,8 +27958,6 @@ export interface RestorePoints { * * @param {string} databaseName The name of the database. * - * @param {string} restorePointName The name of the restore point. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -26726,7 +27970,7 @@ export interface RestorePoints { * * {Promise} A promise is returned. * - * @resolve {RestorePoint} - The deserialized result object. + * @resolve {VulnerabilityAssessmentScanRecordListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26734,20 +27978,21 @@ export interface RestorePoints { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {RestorePoint} [result] - The deserialized result object if an error did not occur. - * See {@link RestorePoint} for more information. + * {VulnerabilityAssessmentScanRecordListResult} [result] - The deserialized result object if an error did not occur. + * See {@link VulnerabilityAssessmentScanRecordListResult} + * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Deletes a restore point. + * Gets a vulnerability assessment scan record of a database. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -26757,7 +28002,8 @@ export interface RestorePoints { * * @param {string} databaseName The name of the database. * - * @param {string} restorePointName The name of the restore point. + * @param {string} scanId The vulnerability assessment scan Id of the scan to + * retrieve. * * @param {object} [options] Optional Parameters. * @@ -26766,14 +28012,14 @@ export interface RestorePoints { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes a restore point. + * Gets a vulnerability assessment scan record of a database. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -26783,7 +28029,8 @@ export interface RestorePoints { * * @param {string} databaseName The name of the database. * - * @param {string} restorePointName The name of the restore point. + * @param {string} scanId The vulnerability assessment scan Id of the scan to + * retrieve. * * @param {object} [options] Optional Parameters. * @@ -26797,7 +28044,7 @@ export interface RestorePoints { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {VulnerabilityAssessmentScanRecord} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26805,19 +28052,21 @@ export interface RestorePoints { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {VulnerabilityAssessmentScanRecord} [result] - The deserialized result object if an error did not occur. + * See {@link VulnerabilityAssessmentScanRecord} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, callback: ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates a restore point for a data warehouse. + * Executes a Vulnerability Assessment database scan. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -26827,11 +28076,8 @@ export interface RestorePoints { * * @param {string} databaseName The name of the database. * - * @param {object} parameters The definition for creating the restore point of - * this database. - * - * @param {string} parameters.restorePointLabel The restore point label to - * apply + * @param {string} scanId The vulnerability assessment scan Id of the scan to + * retrieve. * * @param {object} [options] Optional Parameters. * @@ -26840,14 +28086,14 @@ export interface RestorePoints { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginCreateWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.CreateDatabaseRestorePointDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + initiateScanWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates a restore point for a data warehouse. + * Executes a Vulnerability Assessment database scan. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -26857,11 +28103,8 @@ export interface RestorePoints { * * @param {string} databaseName The name of the database. * - * @param {object} parameters The definition for creating the restore point of - * this database. - * - * @param {string} parameters.restorePointLabel The restore point label to - * apply + * @param {string} scanId The vulnerability assessment scan Id of the scan to + * retrieve. * * @param {object} [options] Optional Parameters. * @@ -26875,7 +28118,7 @@ export interface RestorePoints { * * {Promise} A promise is returned. * - * @resolve {RestorePoint} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26883,29 +28126,20 @@ export interface RestorePoints { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {RestorePoint} [result] - The deserialized result object if an error did not occur. - * See {@link RestorePoint} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCreate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.CreateDatabaseRestorePointDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.CreateDatabaseRestorePointDefinition, callback: ServiceCallback): void; - beginCreate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.CreateDatabaseRestorePointDefinition, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * DatabaseOperations - * __NOTE__: An instance of this class is automatically created for an - * instance of the SqlManagementClient. - */ -export interface DatabaseOperations { + initiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + initiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, callback: ServiceCallback): void; + initiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Cancels the asynchronous operation on the database. + * Convert an existing scan result to a human readable format. If already + * exists nothing happens * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -26913,9 +28147,9 @@ export interface DatabaseOperations { * * @param {string} serverName The name of the server. * - * @param {string} databaseName The name of the database. + * @param {string} databaseName The name of the scanned database. * - * @param {uuid} operationId The operation identifier. + * @param {string} scanId The vulnerability assessment scan Id. * * @param {object} [options] Optional Parameters. * @@ -26924,14 +28158,15 @@ export interface DatabaseOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - cancelWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + exportMethodWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Cancels the asynchronous operation on the database. + * Convert an existing scan result to a human readable format. If already + * exists nothing happens * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -26939,9 +28174,9 @@ export interface DatabaseOperations { * * @param {string} serverName The name of the server. * - * @param {string} databaseName The name of the database. + * @param {string} databaseName The name of the scanned database. * - * @param {uuid} operationId The operation identifier. + * @param {string} scanId The vulnerability assessment scan Id. * * @param {object} [options] Optional Parameters. * @@ -26955,7 +28190,7 @@ export interface DatabaseOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {DatabaseVulnerabilityAssessmentScansExport} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26963,19 +28198,21 @@ export interface DatabaseOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {DatabaseVulnerabilityAssessmentScansExport} [result] - The deserialized result object if an error did not occur. + * See {@link DatabaseVulnerabilityAssessmentScansExport} + * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - cancel(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - cancel(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, callback: ServiceCallback): void; - cancel(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + exportMethod(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + exportMethod(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, callback: ServiceCallback): void; + exportMethod(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets a list of operations performed on the database. + * Executes a Vulnerability Assessment database scan. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -26985,6 +28222,9 @@ export interface DatabaseOperations { * * @param {string} databaseName The name of the database. * + * @param {string} scanId The vulnerability assessment scan Id of the scan to + * retrieve. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -26992,14 +28232,14 @@ export interface DatabaseOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByDatabaseWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginInitiateScanWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a list of operations performed on the database. + * Executes a Vulnerability Assessment database scan. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -27009,6 +28249,9 @@ export interface DatabaseOperations { * * @param {string} databaseName The name of the database. * + * @param {string} scanId The vulnerability assessment scan Id of the scan to + * retrieve. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -27021,7 +28264,7 @@ export interface DatabaseOperations { * * {Promise} A promise is returned. * - * @resolve {DatabaseOperationListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -27029,21 +28272,19 @@ export interface DatabaseOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DatabaseOperationListResult} [result] - The deserialized result object if an error did not occur. - * See {@link DatabaseOperationListResult} for more - * information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginInitiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginInitiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, callback: ServiceCallback): void; + beginInitiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets a list of operations performed on the database. + * Lists the vulnerability assessment scans of a database. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -27055,14 +28296,14 @@ export interface DatabaseOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByDatabaseNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByDatabaseNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a list of operations performed on the database. + * Lists the vulnerability assessment scans of a database. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -27079,7 +28320,7 @@ export interface DatabaseOperations { * * {Promise} A promise is returned. * - * @resolve {DatabaseOperationListResult} - The deserialized result object. + * @resolve {VulnerabilityAssessmentScanRecordListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -27087,40 +28328,45 @@ export interface DatabaseOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DatabaseOperationListResult} [result] - The deserialized result object if an error did not occur. - * See {@link DatabaseOperationListResult} for more - * information. + * {VulnerabilityAssessmentScanRecordListResult} [result] - The deserialized result object if an error did not occur. + * See {@link VulnerabilityAssessmentScanRecordListResult} + * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByDatabaseNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByDatabaseNext(nextPageLink: string, callback: ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByDatabaseNext(nextPageLink: string, callback: ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class - * ElasticPoolOperations + * ManagedDatabaseVulnerabilityAssessmentRuleBaselines * __NOTE__: An instance of this class is automatically created for an * instance of the SqlManagementClient. */ -export interface ElasticPoolOperations { +export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { /** - * Cancels the asynchronous operation on the elastic pool. + * Gets a database's vulnerability assessment rule baseline. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} managedInstanceName The name of the managed instance. * - * @param {string} elasticPoolName + * @param {string} databaseName The name of the database for which the + * vulnerability assessment rule baseline is defined. * - * @param {uuid} operationId The operation identifier. + * @param {string} ruleId The vulnerability assessment rule ID. + * + * @param {string} baselineName The name of the vulnerability assessment rule + * baseline (default implies a baseline on a database level rule and master for + * server level rule). Possible values include: 'master', 'default' * * @param {object} [options] Optional Parameters. * @@ -27129,24 +28375,29 @@ export interface ElasticPoolOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - cancelWithHttpOperationResponse(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Cancels the asynchronous operation on the elastic pool. + * Gets a database's vulnerability assessment rule baseline. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} managedInstanceName The name of the managed instance. * - * @param {string} elasticPoolName + * @param {string} databaseName The name of the database for which the + * vulnerability assessment rule baseline is defined. * - * @param {uuid} operationId The operation identifier. + * @param {string} ruleId The vulnerability assessment rule ID. + * + * @param {string} baselineName The name of the vulnerability assessment rule + * baseline (default implies a baseline on a database level rule and master for + * server level rule). Possible values include: 'master', 'default' * * @param {object} [options] Optional Parameters. * @@ -27160,7 +28411,7 @@ export interface ElasticPoolOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {DatabaseVulnerabilityAssessmentRuleBaseline} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -27168,90 +28419,40 @@ export interface ElasticPoolOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {DatabaseVulnerabilityAssessmentRuleBaseline} [result] - The deserialized result object if an error did not occur. + * See {@link DatabaseVulnerabilityAssessmentRuleBaseline} + * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - cancel(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - cancel(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, callback: ServiceCallback): void; - cancel(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - /** - * Gets a list of operations performed on the elastic pool. - * - * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. - * - * @param {string} serverName The name of the server. - * - * @param {string} elasticPoolName - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - listByElasticPoolWithHttpOperationResponse(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a list of operations performed on the elastic pool. + * Creates or updates a database's vulnerability assessment rule baseline. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. - * - * @param {string} elasticPoolName - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {ElasticPoolOperationListResult} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {string} managedInstanceName The name of the managed instance. * - * {ElasticPoolOperationListResult} [result] - The deserialized result object if an error did not occur. - * See {@link ElasticPoolOperationListResult} for more - * information. + * @param {string} databaseName The name of the database for which the + * vulnerability assessment rule baseline is defined. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {string} ruleId The vulnerability assessment rule ID. * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, callback: ServiceCallback): void; - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * Gets a list of operations performed on the elastic pool. + * @param {string} baselineName The name of the vulnerability assessment rule + * baseline (default implies a baseline on a database level rule and master for + * server level rule). Possible values include: 'master', 'default' * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {object} parameters The requested rule baseline resource. + * + * @param {array} parameters.baselineResults The rule baseline result * * @param {object} [options] Optional Parameters. * @@ -27260,17 +28461,33 @@ export interface ElasticPoolOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByElasticPoolNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, parameters: models.DatabaseVulnerabilityAssessmentRuleBaseline, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a list of operations performed on the elastic pool. + * Creates or updates a database's vulnerability assessment rule baseline. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database for which the + * vulnerability assessment rule baseline is defined. + * + * @param {string} ruleId The vulnerability assessment rule ID. + * + * @param {string} baselineName The name of the vulnerability assessment rule + * baseline (default implies a baseline on a database level rule and master for + * server level rule). Possible values include: 'master', 'default' + * + * @param {object} parameters The requested rule baseline resource. + * + * @param {array} parameters.baselineResults The rule baseline result * * @param {object} [options] Optional Parameters. * @@ -27284,7 +28501,7 @@ export interface ElasticPoolOperations { * * {Promise} A promise is returned. * - * @resolve {ElasticPoolOperationListResult} - The deserialized result object. + * @resolve {DatabaseVulnerabilityAssessmentRuleBaseline} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -27292,64 +28509,69 @@ export interface ElasticPoolOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ElasticPoolOperationListResult} [result] - The deserialized result object if an error did not occur. - * See {@link ElasticPoolOperationListResult} for more - * information. + * {DatabaseVulnerabilityAssessmentRuleBaseline} [result] - The deserialized result object if an error did not occur. + * See {@link DatabaseVulnerabilityAssessmentRuleBaseline} + * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByElasticPoolNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByElasticPoolNext(nextPageLink: string, callback: ServiceCallback): void; - listByElasticPoolNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * Capabilities - * __NOTE__: An instance of this class is automatically created for an - * instance of the SqlManagementClient. - */ -export interface Capabilities { + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, parameters: models.DatabaseVulnerabilityAssessmentRuleBaseline, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, parameters: models.DatabaseVulnerabilityAssessmentRuleBaseline, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, parameters: models.DatabaseVulnerabilityAssessmentRuleBaseline, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets the subscription capabilities available for the specified location. + * Removes the database's vulnerability assessment rule baseline. * - * @param {string} locationName The location name whose capabilities are - * retrieved. + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. * - * @param {object} [options] Optional Parameters. + * @param {string} managedInstanceName The name of the managed instance. * - * @param {string} [options.include] If specified, restricts the response to - * only include the selected item. Possible values include: - * 'supportedEditions', 'supportedElasticPoolEditions', - * 'supportedManagedInstanceVersions' + * @param {string} databaseName The name of the database for which the + * vulnerability assessment rule baseline is defined. + * + * @param {string} ruleId The vulnerability assessment rule ID. + * + * @param {string} baselineName The name of the vulnerability assessment rule + * baseline (default implies a baseline on a database level rule and master for + * server level rule). Possible values include: 'master', 'default' + * + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByLocationWithHttpOperationResponse(locationName: string, options?: { include? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the subscription capabilities available for the specified location. + * Removes the database's vulnerability assessment rule baseline. * - * @param {string} locationName The location name whose capabilities are - * retrieved. + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. * - * @param {object} [options] Optional Parameters. + * @param {string} managedInstanceName The name of the managed instance. * - * @param {string} [options.include] If specified, restricts the response to - * only include the selected item. Possible values include: - * 'supportedEditions', 'supportedElasticPoolEditions', - * 'supportedManagedInstanceVersions' + * @param {string} databaseName The name of the database for which the + * vulnerability assessment rule baseline is defined. + * + * @param {string} ruleId The vulnerability assessment rule ID. + * + * @param {string} baselineName The name of the vulnerability assessment rule + * baseline (default implies a baseline on a database level rule and master for + * server level rule). Possible values include: 'master', 'default' + * + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -27361,7 +28583,7 @@ export interface Capabilities { * * {Promise} A promise is returned. * - * @resolve {LocationCapabilities} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -27369,25 +28591,24 @@ export interface Capabilities { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {LocationCapabilities} [result] - The deserialized result object if an error did not occur. - * See {@link LocationCapabilities} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByLocation(locationName: string, options?: { include? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - listByLocation(locationName: string, callback: ServiceCallback): void; - listByLocation(locationName: string, options: { include? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class - * DatabaseVulnerabilityAssessmentScans + * ManagedDatabaseVulnerabilityAssessmentScans * __NOTE__: An instance of this class is automatically created for an * instance of the SqlManagementClient. */ -export interface DatabaseVulnerabilityAssessmentScans { +export interface ManagedDatabaseVulnerabilityAssessmentScans { /** @@ -27397,7 +28618,7 @@ export interface DatabaseVulnerabilityAssessmentScans { * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} managedInstanceName The name of the managed instance. * * @param {string} databaseName The name of the database. * @@ -27412,7 +28633,7 @@ export interface DatabaseVulnerabilityAssessmentScans { * * @reject {Error|ServiceError} - The error object. */ - listByDatabaseWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByDatabaseWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists the vulnerability assessment scans of a database. @@ -27421,7 +28642,7 @@ export interface DatabaseVulnerabilityAssessmentScans { * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} managedInstanceName The name of the managed instance. * * @param {string} databaseName The name of the database. * @@ -27453,9 +28674,9 @@ export interface DatabaseVulnerabilityAssessmentScans { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: ServiceCallback): void; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -27465,7 +28686,7 @@ export interface DatabaseVulnerabilityAssessmentScans { * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} managedInstanceName The name of the managed instance. * * @param {string} databaseName The name of the database. * @@ -27483,7 +28704,7 @@ export interface DatabaseVulnerabilityAssessmentScans { * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets a vulnerability assessment scan record of a database. @@ -27492,7 +28713,7 @@ export interface DatabaseVulnerabilityAssessmentScans { * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} managedInstanceName The name of the managed instance. * * @param {string} databaseName The name of the database. * @@ -27527,9 +28748,9 @@ export interface DatabaseVulnerabilityAssessmentScans { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, callback: ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, callback: ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -27539,7 +28760,7 @@ export interface DatabaseVulnerabilityAssessmentScans { * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} managedInstanceName The name of the managed instance. * * @param {string} databaseName The name of the database. * @@ -27557,7 +28778,7 @@ export interface DatabaseVulnerabilityAssessmentScans { * * @reject {Error|ServiceError} - The error object. */ - initiateScanWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + initiateScanWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Executes a Vulnerability Assessment database scan. @@ -27566,7 +28787,7 @@ export interface DatabaseVulnerabilityAssessmentScans { * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} managedInstanceName The name of the managed instance. * * @param {string} databaseName The name of the database. * @@ -27599,9 +28820,9 @@ export interface DatabaseVulnerabilityAssessmentScans { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - initiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - initiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, callback: ServiceCallback): void; - initiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + initiateScan(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + initiateScan(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, callback: ServiceCallback): void; + initiateScan(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -27612,7 +28833,7 @@ export interface DatabaseVulnerabilityAssessmentScans { * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} managedInstanceName The name of the managed instance. * * @param {string} databaseName The name of the scanned database. * @@ -27629,7 +28850,7 @@ export interface DatabaseVulnerabilityAssessmentScans { * * @reject {Error|ServiceError} - The error object. */ - exportMethodWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + exportMethodWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Convert an existing scan result to a human readable format. If already @@ -27639,7 +28860,7 @@ export interface DatabaseVulnerabilityAssessmentScans { * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} managedInstanceName The name of the managed instance. * * @param {string} databaseName The name of the scanned database. * @@ -27673,9 +28894,9 @@ export interface DatabaseVulnerabilityAssessmentScans { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - exportMethod(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - exportMethod(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, callback: ServiceCallback): void; - exportMethod(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, callback: ServiceCallback): void; + exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -27685,7 +28906,7 @@ export interface DatabaseVulnerabilityAssessmentScans { * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} managedInstanceName The name of the managed instance. * * @param {string} databaseName The name of the database. * @@ -27703,7 +28924,7 @@ export interface DatabaseVulnerabilityAssessmentScans { * * @reject {Error|ServiceError} - The error object. */ - beginInitiateScanWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginInitiateScanWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Executes a Vulnerability Assessment database scan. @@ -27712,7 +28933,7 @@ export interface DatabaseVulnerabilityAssessmentScans { * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} managedInstanceName The name of the managed instance. * * @param {string} databaseName The name of the database. * @@ -27745,9 +28966,9 @@ export interface DatabaseVulnerabilityAssessmentScans { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginInitiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginInitiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, callback: ServiceCallback): void; - beginInitiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginInitiateScan(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginInitiateScan(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, callback: ServiceCallback): void; + beginInitiateScan(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -27810,15 +29031,85 @@ export interface DatabaseVulnerabilityAssessmentScans { /** * @class - * ManagedDatabaseVulnerabilityAssessmentRuleBaselines + * ManagedDatabaseVulnerabilityAssessments * __NOTE__: An instance of this class is automatically created for an * instance of the SqlManagementClient. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { +export interface ManagedDatabaseVulnerabilityAssessments { /** - * Gets a database's vulnerability assessment rule baseline. + * Gets the database's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database for which the + * vulnerability assessment is defined. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets the database's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database for which the + * vulnerability assessment is defined. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {DatabaseVulnerabilityAssessment} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {DatabaseVulnerabilityAssessment} [result] - The deserialized result object if an error did not occur. + * See {@link DatabaseVulnerabilityAssessment} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Creates or updates the database's vulnerability assessment. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -27827,13 +29118,36 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * @param {string} managedInstanceName The name of the managed instance. * * @param {string} databaseName The name of the database for which the - * vulnerability assessment rule baseline is defined. + * vulnerability assessment is defined. * - * @param {string} ruleId The vulnerability assessment rule ID. + * @param {object} parameters The requested resource. * - * @param {string} baselineName The name of the vulnerability assessment rule - * baseline (default implies a baseline on a database level rule and master for - * server level rule). Possible values include: 'master', 'default' + * @param {string} [parameters.storageContainerPath] A blob storage container + * path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). It is required if server + * level vulnerability assessment policy doesn't set + * + * @param {string} [parameters.storageContainerSasKey] A shared access + * signature (SAS Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. + * + * @param {string} [parameters.storageAccountAccessKey] Specifies the + * identifier key of the storage account for vulnerability assessment scan + * results. If 'StorageContainerSasKey' isn't specified, + * storageAccountAccessKey is required. + * + * @param {object} [parameters.recurringScans] The recurring scans settings + * + * @param {boolean} [parameters.recurringScans.isEnabled] Recurring scans + * state. + * + * @param {boolean} [parameters.recurringScans.emailSubscriptionAdmins] + * Specifies that the schedule scan notification will be is sent to the + * subscription administrators. + * + * @param {array} [parameters.recurringScans.emails] Specifies an array of + * e-mail addresses to which the scan notification is sent. * * @param {object} [options] Optional Parameters. * @@ -27842,14 +29156,14 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.DatabaseVulnerabilityAssessment, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a database's vulnerability assessment rule baseline. + * Creates or updates the database's vulnerability assessment. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -27858,13 +29172,36 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * @param {string} managedInstanceName The name of the managed instance. * * @param {string} databaseName The name of the database for which the - * vulnerability assessment rule baseline is defined. + * vulnerability assessment is defined. * - * @param {string} ruleId The vulnerability assessment rule ID. + * @param {object} parameters The requested resource. * - * @param {string} baselineName The name of the vulnerability assessment rule - * baseline (default implies a baseline on a database level rule and master for - * server level rule). Possible values include: 'master', 'default' + * @param {string} [parameters.storageContainerPath] A blob storage container + * path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). It is required if server + * level vulnerability assessment policy doesn't set + * + * @param {string} [parameters.storageContainerSasKey] A shared access + * signature (SAS Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. + * + * @param {string} [parameters.storageAccountAccessKey] Specifies the + * identifier key of the storage account for vulnerability assessment scan + * results. If 'StorageContainerSasKey' isn't specified, + * storageAccountAccessKey is required. + * + * @param {object} [parameters.recurringScans] The recurring scans settings + * + * @param {boolean} [parameters.recurringScans.isEnabled] Recurring scans + * state. + * + * @param {boolean} [parameters.recurringScans.emailSubscriptionAdmins] + * Specifies that the schedule scan notification will be is sent to the + * subscription administrators. + * + * @param {array} [parameters.recurringScans.emails] Specifies an array of + * e-mail addresses to which the scan notification is sent. * * @param {object} [options] Optional Parameters. * @@ -27878,7 +29215,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * * {Promise} A promise is returned. * - * @resolve {DatabaseVulnerabilityAssessmentRuleBaseline} - The deserialized result object. + * @resolve {DatabaseVulnerabilityAssessment} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -27886,21 +29223,21 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DatabaseVulnerabilityAssessmentRuleBaseline} [result] - The deserialized result object if an error did not occur. - * See {@link DatabaseVulnerabilityAssessmentRuleBaseline} - * for more information. + * {DatabaseVulnerabilityAssessment} [result] - The deserialized result object if an error did not occur. + * See {@link DatabaseVulnerabilityAssessment} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.DatabaseVulnerabilityAssessment, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.DatabaseVulnerabilityAssessment, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.DatabaseVulnerabilityAssessment, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates or updates a database's vulnerability assessment rule baseline. + * Removes the database's vulnerability assessment. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -27909,17 +29246,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * @param {string} managedInstanceName The name of the managed instance. * * @param {string} databaseName The name of the database for which the - * vulnerability assessment rule baseline is defined. - * - * @param {string} ruleId The vulnerability assessment rule ID. - * - * @param {string} baselineName The name of the vulnerability assessment rule - * baseline (default implies a baseline on a database level rule and master for - * server level rule). Possible values include: 'master', 'default' - * - * @param {object} parameters The requested rule baseline resource. - * - * @param {array} parameters.baselineResults The rule baseline result + * vulnerability assessment is defined. * * @param {object} [options] Optional Parameters. * @@ -27928,14 +29255,14 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, parameters: models.DatabaseVulnerabilityAssessmentRuleBaseline, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a database's vulnerability assessment rule baseline. + * Removes the database's vulnerability assessment. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -27944,17 +29271,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * @param {string} managedInstanceName The name of the managed instance. * * @param {string} databaseName The name of the database for which the - * vulnerability assessment rule baseline is defined. - * - * @param {string} ruleId The vulnerability assessment rule ID. - * - * @param {string} baselineName The name of the vulnerability assessment rule - * baseline (default implies a baseline on a database level rule and master for - * server level rule). Possible values include: 'master', 'default' - * - * @param {object} parameters The requested rule baseline resource. - * - * @param {array} parameters.baselineResults The rule baseline result + * vulnerability assessment is defined. * * @param {object} [options] Optional Parameters. * @@ -27968,7 +29285,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * * {Promise} A promise is returned. * - * @resolve {DatabaseVulnerabilityAssessmentRuleBaseline} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -27976,21 +29293,19 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DatabaseVulnerabilityAssessmentRuleBaseline} [result] - The deserialized result object if an error did not occur. - * See {@link DatabaseVulnerabilityAssessmentRuleBaseline} - * for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, parameters: models.DatabaseVulnerabilityAssessmentRuleBaseline, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, parameters: models.DatabaseVulnerabilityAssessmentRuleBaseline, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, parameters: models.DatabaseVulnerabilityAssessmentRuleBaseline, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Removes the database's vulnerability assessment rule baseline. + * Lists the vulnerability assessments of a managed database. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -27999,13 +29314,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * @param {string} managedInstanceName The name of the managed instance. * * @param {string} databaseName The name of the database for which the - * vulnerability assessment rule baseline is defined. - * - * @param {string} ruleId The vulnerability assessment rule ID. - * - * @param {string} baselineName The name of the vulnerability assessment rule - * baseline (default implies a baseline on a database level rule and master for - * server level rule). Possible values include: 'master', 'default' + * vulnerability assessment is defined. * * @param {object} [options] Optional Parameters. * @@ -28014,14 +29323,14 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByDatabaseWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Removes the database's vulnerability assessment rule baseline. + * Lists the vulnerability assessments of a managed database. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -28030,13 +29339,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * @param {string} managedInstanceName The name of the managed instance. * * @param {string} databaseName The name of the database for which the - * vulnerability assessment rule baseline is defined. - * - * @param {string} ruleId The vulnerability assessment rule ID. - * - * @param {string} baselineName The name of the vulnerability assessment rule - * baseline (default implies a baseline on a database level rule and master for - * server level rule). Possible values include: 'master', 'default' + * vulnerability assessment is defined. * * @param {object} [options] Optional Parameters. * @@ -28050,7 +29353,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {DatabaseVulnerabilityAssessmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28058,36 +29361,24 @@ export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {DatabaseVulnerabilityAssessmentListResult} [result] - The deserialized result object if an error did not occur. + * See {@link DatabaseVulnerabilityAssessmentListResult} + * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * ManagedDatabaseVulnerabilityAssessmentScans - * __NOTE__: An instance of this class is automatically created for an - * instance of the SqlManagementClient. - */ -export interface ManagedDatabaseVulnerabilityAssessmentScans { + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: ServiceCallback): void; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Lists the vulnerability assessment scans of a database. - * - * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. - * - * @param {string} managedInstanceName The name of the managed instance. + * Lists the vulnerability assessments of a managed database. * - * @param {string} databaseName The name of the database. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -28096,22 +29387,17 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByDatabaseWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByDatabaseNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists the vulnerability assessment scans of a database. - * - * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. - * - * @param {string} managedInstanceName The name of the managed instance. + * Lists the vulnerability assessments of a managed database. * - * @param {string} databaseName The name of the database. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -28125,7 +29411,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * * {Promise} A promise is returned. * - * @resolve {VulnerabilityAssessmentScanRecordListResult} - The deserialized result object. + * @resolve {DatabaseVulnerabilityAssessmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28133,32 +29419,39 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {VulnerabilityAssessmentScanRecordListResult} [result] - The deserialized result object if an error did not occur. - * See {@link VulnerabilityAssessmentScanRecordListResult} + * {DatabaseVulnerabilityAssessmentListResult} [result] - The deserialized result object if an error did not occur. + * See {@link DatabaseVulnerabilityAssessmentListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: ServiceCallback): void; - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByDatabaseNext(nextPageLink: string, callback: ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * InstanceFailoverGroups + * __NOTE__: An instance of this class is automatically created for an + * instance of the SqlManagementClient. + */ +export interface InstanceFailoverGroups { /** - * Gets a vulnerability assessment scan record of a database. + * Gets a failover group. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. - * - * @param {string} databaseName The name of the database. + * @param {string} locationName The name of the region where the resource is + * located. * - * @param {string} scanId The vulnerability assessment scan Id of the scan to - * retrieve. + * @param {string} failoverGroupName The name of the failover group. * * @param {object} [options] Optional Parameters. * @@ -28167,25 +29460,23 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a vulnerability assessment scan record of a database. + * Gets a failover group. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. - * - * @param {string} databaseName The name of the database. + * @param {string} locationName The name of the region where the resource is + * located. * - * @param {string} scanId The vulnerability assessment scan Id of the scan to - * retrieve. + * @param {string} failoverGroupName The name of the failover group. * * @param {object} [options] Optional Parameters. * @@ -28199,7 +29490,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * * {Promise} A promise is returned. * - * @resolve {VulnerabilityAssessmentScanRecord} - The deserialized result object. + * @resolve {InstanceFailoverGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28207,32 +29498,58 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {VulnerabilityAssessmentScanRecord} [result] - The deserialized result object if an error did not occur. - * See {@link VulnerabilityAssessmentScanRecord} for more - * information. + * {InstanceFailoverGroup} [result] - The deserialized result object if an error did not occur. + * See {@link InstanceFailoverGroup} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, callback: ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, locationName: string, failoverGroupName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, locationName: string, failoverGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Executes a Vulnerability Assessment database scan. + * Creates or updates a failover group. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. + * @param {string} locationName The name of the region where the resource is + * located. * - * @param {string} databaseName The name of the database. + * @param {string} failoverGroupName The name of the failover group. * - * @param {string} scanId The vulnerability assessment scan Id of the scan to - * retrieve. + * @param {object} parameters The failover group parameters. + * + * @param {object} parameters.readWriteEndpoint Read-write endpoint of the + * failover group instance. + * + * @param {string} parameters.readWriteEndpoint.failoverPolicy Failover policy + * of the read-write endpoint for the failover group. If failoverPolicy is + * Automatic then failoverWithDataLossGracePeriodMinutes is required. Possible + * values include: 'Manual', 'Automatic' + * + * @param {number} + * [parameters.readWriteEndpoint.failoverWithDataLossGracePeriodMinutes] Grace + * period before failover with data loss is attempted for the read-write + * endpoint. If failoverPolicy is Automatic then + * failoverWithDataLossGracePeriodMinutes is required. + * + * @param {object} [parameters.readOnlyEndpoint] Read-only endpoint of the + * failover group instance. + * + * @param {string} [parameters.readOnlyEndpoint.failoverPolicy] Failover policy + * of the read-only endpoint for the failover group. Possible values include: + * 'Disabled', 'Enabled' + * + * @param {array} parameters.partnerRegions Partner region information for the + * failover group. + * + * @param {array} parameters.managedInstancePairs List of managed instance + * pairs in the failover group. * * @param {object} [options] Optional Parameters. * @@ -28241,25 +29558,52 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - initiateScanWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: models.InstanceFailoverGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Executes a Vulnerability Assessment database scan. + * Creates or updates a failover group. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. + * @param {string} locationName The name of the region where the resource is + * located. * - * @param {string} databaseName The name of the database. + * @param {string} failoverGroupName The name of the failover group. * - * @param {string} scanId The vulnerability assessment scan Id of the scan to - * retrieve. + * @param {object} parameters The failover group parameters. + * + * @param {object} parameters.readWriteEndpoint Read-write endpoint of the + * failover group instance. + * + * @param {string} parameters.readWriteEndpoint.failoverPolicy Failover policy + * of the read-write endpoint for the failover group. If failoverPolicy is + * Automatic then failoverWithDataLossGracePeriodMinutes is required. Possible + * values include: 'Manual', 'Automatic' + * + * @param {number} + * [parameters.readWriteEndpoint.failoverWithDataLossGracePeriodMinutes] Grace + * period before failover with data loss is attempted for the read-write + * endpoint. If failoverPolicy is Automatic then + * failoverWithDataLossGracePeriodMinutes is required. + * + * @param {object} [parameters.readOnlyEndpoint] Read-only endpoint of the + * failover group instance. + * + * @param {string} [parameters.readOnlyEndpoint.failoverPolicy] Failover policy + * of the read-only endpoint for the failover group. Possible values include: + * 'Disabled', 'Enabled' + * + * @param {array} parameters.partnerRegions Partner region information for the + * failover group. + * + * @param {array} parameters.managedInstancePairs List of managed instance + * pairs in the failover group. * * @param {object} [options] Optional Parameters. * @@ -28273,7 +29617,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {InstanceFailoverGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28281,30 +29625,29 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {InstanceFailoverGroup} [result] - The deserialized result object if an error did not occur. + * See {@link InstanceFailoverGroup} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - initiateScan(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - initiateScan(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, callback: ServiceCallback): void; - initiateScan(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: models.InstanceFailoverGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: models.InstanceFailoverGroup, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: models.InstanceFailoverGroup, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Convert an existing scan result to a human readable format. If already - * exists nothing happens + * Deletes a failover group. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. - * - * @param {string} databaseName The name of the scanned database. + * @param {string} locationName The name of the region where the resource is + * located. * - * @param {string} scanId The vulnerability assessment scan Id. + * @param {string} failoverGroupName The name of the failover group. * * @param {object} [options] Optional Parameters. * @@ -28313,25 +29656,23 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - exportMethodWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Convert an existing scan result to a human readable format. If already - * exists nothing happens + * Deletes a failover group. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. - * - * @param {string} databaseName The name of the scanned database. + * @param {string} locationName The name of the region where the resource is + * located. * - * @param {string} scanId The vulnerability assessment scan Id. + * @param {string} failoverGroupName The name of the failover group. * * @param {object} [options] Optional Parameters. * @@ -28345,7 +29686,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * * {Promise} A promise is returned. * - * @resolve {DatabaseVulnerabilityAssessmentScansExport} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28353,32 +29694,26 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DatabaseVulnerabilityAssessmentScansExport} [result] - The deserialized result object if an error did not occur. - * See {@link DatabaseVulnerabilityAssessmentScansExport} - * for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, callback: ServiceCallback): void; - exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, locationName: string, failoverGroupName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, locationName: string, failoverGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Executes a Vulnerability Assessment database scan. + * Lists the failover groups in a location. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. - * - * @param {string} databaseName The name of the database. - * - * @param {string} scanId The vulnerability assessment scan Id of the scan to - * retrieve. + * @param {string} locationName The name of the region where the resource is + * located. * * @param {object} [options] Optional Parameters. * @@ -28387,25 +29722,21 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginInitiateScanWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByLocationWithHttpOperationResponse(resourceGroupName: string, locationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Executes a Vulnerability Assessment database scan. + * Lists the failover groups in a location. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. - * - * @param {string} databaseName The name of the database. - * - * @param {string} scanId The vulnerability assessment scan Id of the scan to - * retrieve. + * @param {string} locationName The name of the region where the resource is + * located. * * @param {object} [options] Optional Parameters. * @@ -28419,7 +29750,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {InstanceFailoverGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28427,22 +29758,31 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {InstanceFailoverGroupListResult} [result] - The deserialized result object if an error did not occur. + * See {@link InstanceFailoverGroupListResult} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginInitiateScan(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginInitiateScan(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, callback: ServiceCallback): void; - beginInitiateScan(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByLocation(resourceGroupName: string, locationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByLocation(resourceGroupName: string, locationName: string, callback: ServiceCallback): void; + listByLocation(resourceGroupName: string, locationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Lists the vulnerability assessment scans of a database. + * Fails over from the current primary managed instance to this managed + * instance. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} locationName The name of the region where the resource is + * located. + * + * @param {string} failoverGroupName The name of the failover group. * * @param {object} [options] Optional Parameters. * @@ -28451,17 +29791,24 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByDatabaseNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + failoverWithHttpOperationResponse(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists the vulnerability assessment scans of a database. + * Fails over from the current primary managed instance to this managed + * instance. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} locationName The name of the region where the resource is + * located. + * + * @param {string} failoverGroupName The name of the failover group. * * @param {object} [options] Optional Parameters. * @@ -28475,7 +29822,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * * {Promise} A promise is returned. * - * @resolve {VulnerabilityAssessmentScanRecordListResult} - The deserialized result object. + * @resolve {InstanceFailoverGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28483,39 +29830,30 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {VulnerabilityAssessmentScanRecordListResult} [result] - The deserialized result object if an error did not occur. - * See {@link VulnerabilityAssessmentScanRecordListResult} - * for more information. + * {InstanceFailoverGroup} [result] - The deserialized result object if an error did not occur. + * See {@link InstanceFailoverGroup} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByDatabaseNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByDatabaseNext(nextPageLink: string, callback: ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * ManagedDatabaseVulnerabilityAssessments - * __NOTE__: An instance of this class is automatically created for an - * instance of the SqlManagementClient. - */ -export interface ManagedDatabaseVulnerabilityAssessments { + failover(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + failover(resourceGroupName: string, locationName: string, failoverGroupName: string, callback: ServiceCallback): void; + failover(resourceGroupName: string, locationName: string, failoverGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets the database's vulnerability assessment. + * Fails over from the current primary managed instance to this managed + * instance. This operation might result in data loss. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. + * @param {string} locationName The name of the region where the resource is + * located. * - * @param {string} databaseName The name of the database for which the - * vulnerability assessment is defined. + * @param {string} failoverGroupName The name of the failover group. * * @param {object} [options] Optional Parameters. * @@ -28524,23 +29862,24 @@ export interface ManagedDatabaseVulnerabilityAssessments { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + forceFailoverAllowDataLossWithHttpOperationResponse(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the database's vulnerability assessment. + * Fails over from the current primary managed instance to this managed + * instance. This operation might result in data loss. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. + * @param {string} locationName The name of the region where the resource is + * located. * - * @param {string} databaseName The name of the database for which the - * vulnerability assessment is defined. + * @param {string} failoverGroupName The name of the failover group. * * @param {object} [options] Optional Parameters. * @@ -28554,7 +29893,7 @@ export interface ManagedDatabaseVulnerabilityAssessments { * * {Promise} A promise is returned. * - * @resolve {DatabaseVulnerabilityAssessment} - The deserialized result object. + * @resolve {InstanceFailoverGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28562,59 +29901,58 @@ export interface ManagedDatabaseVulnerabilityAssessments { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DatabaseVulnerabilityAssessment} [result] - The deserialized result object if an error did not occur. - * See {@link DatabaseVulnerabilityAssessment} for more - * information. + * {InstanceFailoverGroup} [result] - The deserialized result object if an error did not occur. + * See {@link InstanceFailoverGroup} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + forceFailoverAllowDataLoss(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + forceFailoverAllowDataLoss(resourceGroupName: string, locationName: string, failoverGroupName: string, callback: ServiceCallback): void; + forceFailoverAllowDataLoss(resourceGroupName: string, locationName: string, failoverGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates or updates the database's vulnerability assessment. + * Creates or updates a failover group. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. + * @param {string} locationName The name of the region where the resource is + * located. * - * @param {string} databaseName The name of the database for which the - * vulnerability assessment is defined. + * @param {string} failoverGroupName The name of the failover group. * - * @param {object} parameters The requested resource. + * @param {object} parameters The failover group parameters. * - * @param {string} [parameters.storageContainerPath] A blob storage container - * path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). It is required if server - * level vulnerability assessment policy doesn't set + * @param {object} parameters.readWriteEndpoint Read-write endpoint of the + * failover group instance. * - * @param {string} [parameters.storageContainerSasKey] A shared access - * signature (SAS Key) that has write access to the blob container specified in - * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't - * specified, StorageContainerSasKey is required. + * @param {string} parameters.readWriteEndpoint.failoverPolicy Failover policy + * of the read-write endpoint for the failover group. If failoverPolicy is + * Automatic then failoverWithDataLossGracePeriodMinutes is required. Possible + * values include: 'Manual', 'Automatic' * - * @param {string} [parameters.storageAccountAccessKey] Specifies the - * identifier key of the storage account for vulnerability assessment scan - * results. If 'StorageContainerSasKey' isn't specified, - * storageAccountAccessKey is required. + * @param {number} + * [parameters.readWriteEndpoint.failoverWithDataLossGracePeriodMinutes] Grace + * period before failover with data loss is attempted for the read-write + * endpoint. If failoverPolicy is Automatic then + * failoverWithDataLossGracePeriodMinutes is required. * - * @param {object} [parameters.recurringScans] The recurring scans settings + * @param {object} [parameters.readOnlyEndpoint] Read-only endpoint of the + * failover group instance. * - * @param {boolean} [parameters.recurringScans.isEnabled] Recurring scans - * state. + * @param {string} [parameters.readOnlyEndpoint.failoverPolicy] Failover policy + * of the read-only endpoint for the failover group. Possible values include: + * 'Disabled', 'Enabled' * - * @param {boolean} [parameters.recurringScans.emailSubscriptionAdmins] - * Specifies that the schedule scan notification will be is sent to the - * subscription administrators. + * @param {array} parameters.partnerRegions Partner region information for the + * failover group. * - * @param {array} [parameters.recurringScans.emails] Specifies an array of - * e-mail addresses to which the scan notification is sent. + * @param {array} parameters.managedInstancePairs List of managed instance + * pairs in the failover group. * * @param {object} [options] Optional Parameters. * @@ -28623,52 +29961,52 @@ export interface ManagedDatabaseVulnerabilityAssessments { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.DatabaseVulnerabilityAssessment, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: models.InstanceFailoverGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates the database's vulnerability assessment. + * Creates or updates a failover group. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. + * @param {string} locationName The name of the region where the resource is + * located. * - * @param {string} databaseName The name of the database for which the - * vulnerability assessment is defined. + * @param {string} failoverGroupName The name of the failover group. * - * @param {object} parameters The requested resource. + * @param {object} parameters The failover group parameters. * - * @param {string} [parameters.storageContainerPath] A blob storage container - * path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). It is required if server - * level vulnerability assessment policy doesn't set + * @param {object} parameters.readWriteEndpoint Read-write endpoint of the + * failover group instance. * - * @param {string} [parameters.storageContainerSasKey] A shared access - * signature (SAS Key) that has write access to the blob container specified in - * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't - * specified, StorageContainerSasKey is required. + * @param {string} parameters.readWriteEndpoint.failoverPolicy Failover policy + * of the read-write endpoint for the failover group. If failoverPolicy is + * Automatic then failoverWithDataLossGracePeriodMinutes is required. Possible + * values include: 'Manual', 'Automatic' * - * @param {string} [parameters.storageAccountAccessKey] Specifies the - * identifier key of the storage account for vulnerability assessment scan - * results. If 'StorageContainerSasKey' isn't specified, - * storageAccountAccessKey is required. + * @param {number} + * [parameters.readWriteEndpoint.failoverWithDataLossGracePeriodMinutes] Grace + * period before failover with data loss is attempted for the read-write + * endpoint. If failoverPolicy is Automatic then + * failoverWithDataLossGracePeriodMinutes is required. * - * @param {object} [parameters.recurringScans] The recurring scans settings + * @param {object} [parameters.readOnlyEndpoint] Read-only endpoint of the + * failover group instance. * - * @param {boolean} [parameters.recurringScans.isEnabled] Recurring scans - * state. + * @param {string} [parameters.readOnlyEndpoint.failoverPolicy] Failover policy + * of the read-only endpoint for the failover group. Possible values include: + * 'Disabled', 'Enabled' * - * @param {boolean} [parameters.recurringScans.emailSubscriptionAdmins] - * Specifies that the schedule scan notification will be is sent to the - * subscription administrators. + * @param {array} parameters.partnerRegions Partner region information for the + * failover group. * - * @param {array} [parameters.recurringScans.emails] Specifies an array of - * e-mail addresses to which the scan notification is sent. + * @param {array} parameters.managedInstancePairs List of managed instance + * pairs in the failover group. * * @param {object} [options] Optional Parameters. * @@ -28682,7 +30020,7 @@ export interface ManagedDatabaseVulnerabilityAssessments { * * {Promise} A promise is returned. * - * @resolve {DatabaseVulnerabilityAssessment} - The deserialized result object. + * @resolve {InstanceFailoverGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28690,30 +30028,29 @@ export interface ManagedDatabaseVulnerabilityAssessments { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DatabaseVulnerabilityAssessment} [result] - The deserialized result object if an error did not occur. - * See {@link DatabaseVulnerabilityAssessment} for more - * information. + * {InstanceFailoverGroup} [result] - The deserialized result object if an error did not occur. + * See {@link InstanceFailoverGroup} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.DatabaseVulnerabilityAssessment, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.DatabaseVulnerabilityAssessment, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: models.DatabaseVulnerabilityAssessment, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: models.InstanceFailoverGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreateOrUpdate(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: models.InstanceFailoverGroup, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: models.InstanceFailoverGroup, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Removes the database's vulnerability assessment. + * Deletes a failover group. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. + * @param {string} locationName The name of the region where the resource is + * located. * - * @param {string} databaseName The name of the database for which the - * vulnerability assessment is defined. + * @param {string} failoverGroupName The name of the failover group. * * @param {object} [options] Optional Parameters. * @@ -28726,19 +30063,19 @@ export interface ManagedDatabaseVulnerabilityAssessments { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Removes the database's vulnerability assessment. + * Deletes a failover group. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. + * @param {string} locationName The name of the region where the resource is + * located. * - * @param {string} databaseName The name of the database for which the - * vulnerability assessment is defined. + * @param {string} failoverGroupName The name of the failover group. * * @param {object} [options] Optional Parameters. * @@ -28766,22 +30103,23 @@ export interface ManagedDatabaseVulnerabilityAssessments { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginDeleteMethod(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginDeleteMethod(resourceGroupName: string, locationName: string, failoverGroupName: string, callback: ServiceCallback): void; + beginDeleteMethod(resourceGroupName: string, locationName: string, failoverGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Lists the vulnerability assessments of a managed database. + * Fails over from the current primary managed instance to this managed + * instance. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. + * @param {string} locationName The name of the region where the resource is + * located. * - * @param {string} databaseName The name of the database for which the - * vulnerability assessment is defined. + * @param {string} failoverGroupName The name of the failover group. * * @param {object} [options] Optional Parameters. * @@ -28790,23 +30128,24 @@ export interface ManagedDatabaseVulnerabilityAssessments { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByDatabaseWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginFailoverWithHttpOperationResponse(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists the vulnerability assessments of a managed database. + * Fails over from the current primary managed instance to this managed + * instance. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. + * @param {string} locationName The name of the region where the resource is + * located. * - * @param {string} databaseName The name of the database for which the - * vulnerability assessment is defined. + * @param {string} failoverGroupName The name of the failover group. * * @param {object} [options] Optional Parameters. * @@ -28820,7 +30159,7 @@ export interface ManagedDatabaseVulnerabilityAssessments { * * {Promise} A promise is returned. * - * @resolve {DatabaseVulnerabilityAssessmentListResult} - The deserialized result object. + * @resolve {InstanceFailoverGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28828,24 +30167,30 @@ export interface ManagedDatabaseVulnerabilityAssessments { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DatabaseVulnerabilityAssessmentListResult} [result] - The deserialized result object if an error did not occur. - * See {@link DatabaseVulnerabilityAssessmentListResult} - * for more information. + * {InstanceFailoverGroup} [result] - The deserialized result object if an error did not occur. + * See {@link InstanceFailoverGroup} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: ServiceCallback): void; - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginFailover(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginFailover(resourceGroupName: string, locationName: string, failoverGroupName: string, callback: ServiceCallback): void; + beginFailover(resourceGroupName: string, locationName: string, failoverGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Lists the vulnerability assessments of a managed database. + * Fails over from the current primary managed instance to this managed + * instance. This operation might result in data loss. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} locationName The name of the region where the resource is + * located. + * + * @param {string} failoverGroupName The name of the failover group. * * @param {object} [options] Optional Parameters. * @@ -28854,17 +30199,24 @@ export interface ManagedDatabaseVulnerabilityAssessments { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByDatabaseNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginForceFailoverAllowDataLossWithHttpOperationResponse(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists the vulnerability assessments of a managed database. + * Fails over from the current primary managed instance to this managed + * instance. This operation might result in data loss. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} locationName The name of the region where the resource is + * located. + * + * @param {string} failoverGroupName The name of the failover group. * * @param {object} [options] Optional Parameters. * @@ -28878,7 +30230,7 @@ export interface ManagedDatabaseVulnerabilityAssessments { * * {Promise} A promise is returned. * - * @resolve {DatabaseVulnerabilityAssessmentListResult} - The deserialized result object. + * @resolve {InstanceFailoverGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28886,39 +30238,23 @@ export interface ManagedDatabaseVulnerabilityAssessments { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DatabaseVulnerabilityAssessmentListResult} [result] - The deserialized result object if an error did not occur. - * See {@link DatabaseVulnerabilityAssessmentListResult} - * for more information. + * {InstanceFailoverGroup} [result] - The deserialized result object if an error did not occur. + * See {@link InstanceFailoverGroup} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByDatabaseNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByDatabaseNext(nextPageLink: string, callback: ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * InstanceFailoverGroups - * __NOTE__: An instance of this class is automatically created for an - * instance of the SqlManagementClient. - */ -export interface InstanceFailoverGroups { + beginForceFailoverAllowDataLoss(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginForceFailoverAllowDataLoss(resourceGroupName: string, locationName: string, failoverGroupName: string, callback: ServiceCallback): void; + beginForceFailoverAllowDataLoss(resourceGroupName: string, locationName: string, failoverGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets a failover group. - * - * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. - * - * @param {string} locationName The name of the region where the resource is - * located. + * Lists the failover groups in a location. * - * @param {string} failoverGroupName The name of the failover group. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -28927,23 +30263,17 @@ export interface InstanceFailoverGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByLocationNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a failover group. - * - * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. - * - * @param {string} locationName The name of the region where the resource is - * located. + * Lists the failover groups in a location. * - * @param {string} failoverGroupName The name of the failover group. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -28957,7 +30287,7 @@ export interface InstanceFailoverGroups { * * {Promise} A promise is returned. * - * @resolve {InstanceFailoverGroup} - The deserialized result object. + * @resolve {InstanceFailoverGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28965,58 +30295,38 @@ export interface InstanceFailoverGroups { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {InstanceFailoverGroup} [result] - The deserialized result object if an error did not occur. - * See {@link InstanceFailoverGroup} for more information. - * + * {InstanceFailoverGroupListResult} [result] - The deserialized result object if an error did not occur. + * See {@link InstanceFailoverGroupListResult} for more + * information. + * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, locationName: string, failoverGroupName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, locationName: string, failoverGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByLocationNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByLocationNext(nextPageLink: string, callback: ServiceCallback): void; + listByLocationNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * BackupShortTermRetentionPolicies + * __NOTE__: An instance of this class is automatically created for an + * instance of the SqlManagementClient. + */ +export interface BackupShortTermRetentionPolicies { /** - * Creates or updates a failover group. + * Gets a database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} locationName The name of the region where the resource is - * located. - * - * @param {string} failoverGroupName The name of the failover group. - * - * @param {object} parameters The failover group parameters. - * - * @param {object} parameters.readWriteEndpoint Read-write endpoint of the - * failover group instance. - * - * @param {string} parameters.readWriteEndpoint.failoverPolicy Failover policy - * of the read-write endpoint for the failover group. If failoverPolicy is - * Automatic then failoverWithDataLossGracePeriodMinutes is required. Possible - * values include: 'Manual', 'Automatic' - * - * @param {number} - * [parameters.readWriteEndpoint.failoverWithDataLossGracePeriodMinutes] Grace - * period before failover with data loss is attempted for the read-write - * endpoint. If failoverPolicy is Automatic then - * failoverWithDataLossGracePeriodMinutes is required. - * - * @param {object} [parameters.readOnlyEndpoint] Read-only endpoint of the - * failover group instance. - * - * @param {string} [parameters.readOnlyEndpoint.failoverPolicy] Failover policy - * of the read-only endpoint for the failover group. Possible values include: - * 'Disabled', 'Enabled' - * - * @param {array} parameters.partnerRegions Partner region information for the - * failover group. + * @param {string} serverName The name of the server. * - * @param {array} parameters.managedInstancePairs List of managed instance - * pairs in the failover group. + * @param {string} databaseName The name of the database. * * @param {object} [options] Optional Parameters. * @@ -29025,52 +30335,22 @@ export interface InstanceFailoverGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: models.InstanceFailoverGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a failover group. + * Gets a database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} locationName The name of the region where the resource is - * located. - * - * @param {string} failoverGroupName The name of the failover group. - * - * @param {object} parameters The failover group parameters. - * - * @param {object} parameters.readWriteEndpoint Read-write endpoint of the - * failover group instance. - * - * @param {string} parameters.readWriteEndpoint.failoverPolicy Failover policy - * of the read-write endpoint for the failover group. If failoverPolicy is - * Automatic then failoverWithDataLossGracePeriodMinutes is required. Possible - * values include: 'Manual', 'Automatic' - * - * @param {number} - * [parameters.readWriteEndpoint.failoverWithDataLossGracePeriodMinutes] Grace - * period before failover with data loss is attempted for the read-write - * endpoint. If failoverPolicy is Automatic then - * failoverWithDataLossGracePeriodMinutes is required. - * - * @param {object} [parameters.readOnlyEndpoint] Read-only endpoint of the - * failover group instance. - * - * @param {string} [parameters.readOnlyEndpoint.failoverPolicy] Failover policy - * of the read-only endpoint for the failover group. Possible values include: - * 'Disabled', 'Enabled' - * - * @param {array} parameters.partnerRegions Partner region information for the - * failover group. + * @param {string} serverName The name of the server. * - * @param {array} parameters.managedInstancePairs List of managed instance - * pairs in the failover group. + * @param {string} databaseName The name of the database. * * @param {object} [options] Optional Parameters. * @@ -29084,7 +30364,7 @@ export interface InstanceFailoverGroups { * * {Promise} A promise is returned. * - * @resolve {InstanceFailoverGroup} - The deserialized result object. + * @resolve {BackupShortTermRetentionPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29092,29 +30372,34 @@ export interface InstanceFailoverGroups { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {InstanceFailoverGroup} [result] - The deserialized result object if an error did not occur. - * See {@link InstanceFailoverGroup} for more information. + * {BackupShortTermRetentionPolicy} [result] - The deserialized result object if an error did not occur. + * See {@link BackupShortTermRetentionPolicy} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: models.InstanceFailoverGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: models.InstanceFailoverGroup, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: models.InstanceFailoverGroup, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, serverName: string, databaseName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Deletes a failover group. + * Updates a database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} locationName The name of the region where the resource is - * located. + * @param {string} serverName The name of the server. * - * @param {string} failoverGroupName The name of the failover group. + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. * * @param {object} [options] Optional Parameters. * @@ -29123,23 +30408,27 @@ export interface InstanceFailoverGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes a failover group. + * Updates a database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} locationName The name of the region where the resource is - * located. + * @param {string} serverName The name of the server. * - * @param {string} failoverGroupName The name of the failover group. + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. * * @param {object} [options] Optional Parameters. * @@ -29153,7 +30442,7 @@ export interface InstanceFailoverGroups { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {BackupShortTermRetentionPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29161,26 +30450,34 @@ export interface InstanceFailoverGroups { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {BackupShortTermRetentionPolicy} [result] - The deserialized result object if an error did not occur. + * See {@link BackupShortTermRetentionPolicy} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, locationName: string, failoverGroupName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, locationName: string, failoverGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Lists the failover groups in a location. + * Updates a database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} locationName The name of the region where the resource is - * located. + * @param {string} serverName The name of the server. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. * * @param {object} [options] Optional Parameters. * @@ -29189,21 +30486,27 @@ export interface InstanceFailoverGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByLocationWithHttpOperationResponse(resourceGroupName: string, locationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists the failover groups in a location. + * Updates a database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} locationName The name of the region where the resource is - * located. + * @param {string} serverName The name of the server. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. * * @param {object} [options] Optional Parameters. * @@ -29217,7 +30520,7 @@ export interface InstanceFailoverGroups { * * {Promise} A promise is returned. * - * @resolve {InstanceFailoverGroupListResult} - The deserialized result object. + * @resolve {BackupShortTermRetentionPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29225,31 +30528,29 @@ export interface InstanceFailoverGroups { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {InstanceFailoverGroupListResult} [result] - The deserialized result object if an error did not occur. - * See {@link InstanceFailoverGroupListResult} for more + * {BackupShortTermRetentionPolicy} [result] - The deserialized result object if an error did not occur. + * See {@link BackupShortTermRetentionPolicy} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByLocation(resourceGroupName: string, locationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByLocation(resourceGroupName: string, locationName: string, callback: ServiceCallback): void; - listByLocation(resourceGroupName: string, locationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + update(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, callback: ServiceCallback): void; + update(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Fails over from the current primary managed instance to this managed - * instance. + * Gets a database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} locationName The name of the region where the resource is - * located. + * @param {string} serverName The name of the server. * - * @param {string} failoverGroupName The name of the failover group. + * @param {string} databaseName The name of the database. * * @param {object} [options] Optional Parameters. * @@ -29258,24 +30559,22 @@ export interface InstanceFailoverGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - failoverWithHttpOperationResponse(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByDatabaseWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Fails over from the current primary managed instance to this managed - * instance. + * Gets a database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} locationName The name of the region where the resource is - * located. + * @param {string} serverName The name of the server. * - * @param {string} failoverGroupName The name of the failover group. + * @param {string} databaseName The name of the database. * * @param {object} [options] Optional Parameters. * @@ -29289,7 +30588,7 @@ export interface InstanceFailoverGroups { * * {Promise} A promise is returned. * - * @resolve {InstanceFailoverGroup} - The deserialized result object. + * @resolve {BackupShortTermRetentionPolicyListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29297,30 +30596,34 @@ export interface InstanceFailoverGroups { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {InstanceFailoverGroup} [result] - The deserialized result object if an error did not occur. - * See {@link InstanceFailoverGroup} for more information. + * {BackupShortTermRetentionPolicyListResult} [result] - The deserialized result object if an error did not occur. + * See {@link BackupShortTermRetentionPolicyListResult} + * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - failover(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - failover(resourceGroupName: string, locationName: string, failoverGroupName: string, callback: ServiceCallback): void; - failover(resourceGroupName: string, locationName: string, failoverGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Fails over from the current primary managed instance to this managed - * instance. This operation might result in data loss. + * Updates a database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} locationName The name of the region where the resource is - * located. + * @param {string} serverName The name of the server. * - * @param {string} failoverGroupName The name of the failover group. + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. * * @param {object} [options] Optional Parameters. * @@ -29329,24 +30632,27 @@ export interface InstanceFailoverGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - forceFailoverAllowDataLossWithHttpOperationResponse(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Fails over from the current primary managed instance to this managed - * instance. This operation might result in data loss. + * Updates a database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} locationName The name of the region where the resource is - * located. + * @param {string} serverName The name of the server. * - * @param {string} failoverGroupName The name of the failover group. + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. * * @param {object} [options] Optional Parameters. * @@ -29360,7 +30666,7 @@ export interface InstanceFailoverGroups { * * {Promise} A promise is returned. * - * @resolve {InstanceFailoverGroup} - The deserialized result object. + * @resolve {BackupShortTermRetentionPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29368,58 +30674,34 @@ export interface InstanceFailoverGroups { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {InstanceFailoverGroup} [result] - The deserialized result object if an error did not occur. - * See {@link InstanceFailoverGroup} for more information. - * + * {BackupShortTermRetentionPolicy} [result] - The deserialized result object if an error did not occur. + * See {@link BackupShortTermRetentionPolicy} for more + * information. + * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - forceFailoverAllowDataLoss(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - forceFailoverAllowDataLoss(resourceGroupName: string, locationName: string, failoverGroupName: string, callback: ServiceCallback): void; - forceFailoverAllowDataLoss(resourceGroupName: string, locationName: string, failoverGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates or updates a failover group. + * Updates a database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} locationName The name of the region where the resource is - * located. - * - * @param {string} failoverGroupName The name of the failover group. - * - * @param {object} parameters The failover group parameters. - * - * @param {object} parameters.readWriteEndpoint Read-write endpoint of the - * failover group instance. - * - * @param {string} parameters.readWriteEndpoint.failoverPolicy Failover policy - * of the read-write endpoint for the failover group. If failoverPolicy is - * Automatic then failoverWithDataLossGracePeriodMinutes is required. Possible - * values include: 'Manual', 'Automatic' - * - * @param {number} - * [parameters.readWriteEndpoint.failoverWithDataLossGracePeriodMinutes] Grace - * period before failover with data loss is attempted for the read-write - * endpoint. If failoverPolicy is Automatic then - * failoverWithDataLossGracePeriodMinutes is required. - * - * @param {object} [parameters.readOnlyEndpoint] Read-only endpoint of the - * failover group instance. + * @param {string} serverName The name of the server. * - * @param {string} [parameters.readOnlyEndpoint.failoverPolicy] Failover policy - * of the read-only endpoint for the failover group. Possible values include: - * 'Disabled', 'Enabled' + * @param {string} databaseName The name of the database. * - * @param {array} parameters.partnerRegions Partner region information for the - * failover group. + * @param {object} parameters The short term retention policy info. * - * @param {array} parameters.managedInstancePairs List of managed instance - * pairs in the failover group. + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. * * @param {object} [options] Optional Parameters. * @@ -29428,52 +30710,27 @@ export interface InstanceFailoverGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: models.InstanceFailoverGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginUpdateWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a failover group. + * Updates a database's short term retention policy. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} locationName The name of the region where the resource is - * located. - * - * @param {string} failoverGroupName The name of the failover group. - * - * @param {object} parameters The failover group parameters. - * - * @param {object} parameters.readWriteEndpoint Read-write endpoint of the - * failover group instance. - * - * @param {string} parameters.readWriteEndpoint.failoverPolicy Failover policy - * of the read-write endpoint for the failover group. If failoverPolicy is - * Automatic then failoverWithDataLossGracePeriodMinutes is required. Possible - * values include: 'Manual', 'Automatic' - * - * @param {number} - * [parameters.readWriteEndpoint.failoverWithDataLossGracePeriodMinutes] Grace - * period before failover with data loss is attempted for the read-write - * endpoint. If failoverPolicy is Automatic then - * failoverWithDataLossGracePeriodMinutes is required. - * - * @param {object} [parameters.readOnlyEndpoint] Read-only endpoint of the - * failover group instance. + * @param {string} serverName The name of the server. * - * @param {string} [parameters.readOnlyEndpoint.failoverPolicy] Failover policy - * of the read-only endpoint for the failover group. Possible values include: - * 'Disabled', 'Enabled' + * @param {string} databaseName The name of the database. * - * @param {array} parameters.partnerRegions Partner region information for the - * failover group. + * @param {object} parameters The short term retention policy info. * - * @param {array} parameters.managedInstancePairs List of managed instance - * pairs in the failover group. + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. * * @param {object} [options] Optional Parameters. * @@ -29487,7 +30744,7 @@ export interface InstanceFailoverGroups { * * {Promise} A promise is returned. * - * @resolve {InstanceFailoverGroup} - The deserialized result object. + * @resolve {BackupShortTermRetentionPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29495,29 +30752,24 @@ export interface InstanceFailoverGroups { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {InstanceFailoverGroup} [result] - The deserialized result object if an error did not occur. - * See {@link InstanceFailoverGroup} for more information. + * {BackupShortTermRetentionPolicy} [result] - The deserialized result object if an error did not occur. + * See {@link BackupShortTermRetentionPolicy} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCreateOrUpdate(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: models.InstanceFailoverGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreateOrUpdate(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: models.InstanceFailoverGroup, callback: ServiceCallback): void; - beginCreateOrUpdate(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: models.InstanceFailoverGroup, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, callback: ServiceCallback): void; + beginUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Deletes a failover group. - * - * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. - * - * @param {string} locationName The name of the region where the resource is - * located. + * Gets a database's short term retention policy. * - * @param {string} failoverGroupName The name of the failover group. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -29526,23 +30778,17 @@ export interface InstanceFailoverGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByDatabaseNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes a failover group. - * - * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. - * - * @param {string} locationName The name of the region where the resource is - * located. + * Gets a database's short term retention policy. * - * @param {string} failoverGroupName The name of the failover group. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -29556,7 +30802,7 @@ export interface InstanceFailoverGroups { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {BackupShortTermRetentionPolicyListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29564,29 +30810,44 @@ export interface InstanceFailoverGroups { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {BackupShortTermRetentionPolicyListResult} [result] - The deserialized result object if an error did not occur. + * See {@link BackupShortTermRetentionPolicyListResult} + * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginDeleteMethod(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginDeleteMethod(resourceGroupName: string, locationName: string, failoverGroupName: string, callback: ServiceCallback): void; - beginDeleteMethod(resourceGroupName: string, locationName: string, failoverGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByDatabaseNext(nextPageLink: string, callback: ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * TdeCertificates + * __NOTE__: An instance of this class is automatically created for an + * instance of the SqlManagementClient. + */ +export interface TdeCertificates { /** - * Fails over from the current primary managed instance to this managed - * instance. + * Creates a TDE certificate for a given server. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} locationName The name of the region where the resource is - * located. + * @param {string} serverName The name of the server. * - * @param {string} failoverGroupName The name of the failover group. + * @param {object} parameters The requested TDE certificate to be created or + * updated. + * + * @param {string} parameters.privateBlob The base64 encoded certificate + * private blob. + * + * @param {string} [parameters.certPassword] The certificate password. * * @param {object} [options] Optional Parameters. * @@ -29595,24 +30856,28 @@ export interface InstanceFailoverGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginFailoverWithHttpOperationResponse(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createWithHttpOperationResponse(resourceGroupName: string, serverName: string, parameters: models.TdeCertificate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Fails over from the current primary managed instance to this managed - * instance. + * Creates a TDE certificate for a given server. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} locationName The name of the region where the resource is - * located. + * @param {string} serverName The name of the server. * - * @param {string} failoverGroupName The name of the failover group. + * @param {object} parameters The requested TDE certificate to be created or + * updated. + * + * @param {string} parameters.privateBlob The base64 encoded certificate + * private blob. + * + * @param {string} [parameters.certPassword] The certificate password. * * @param {object} [options] Optional Parameters. * @@ -29626,7 +30891,7 @@ export interface InstanceFailoverGroups { * * {Promise} A promise is returned. * - * @resolve {InstanceFailoverGroup} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29634,30 +30899,33 @@ export interface InstanceFailoverGroups { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {InstanceFailoverGroup} [result] - The deserialized result object if an error did not occur. - * See {@link InstanceFailoverGroup} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginFailover(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginFailover(resourceGroupName: string, locationName: string, failoverGroupName: string, callback: ServiceCallback): void; - beginFailover(resourceGroupName: string, locationName: string, failoverGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + create(resourceGroupName: string, serverName: string, parameters: models.TdeCertificate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + create(resourceGroupName: string, serverName: string, parameters: models.TdeCertificate, callback: ServiceCallback): void; + create(resourceGroupName: string, serverName: string, parameters: models.TdeCertificate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Fails over from the current primary managed instance to this managed - * instance. This operation might result in data loss. + * Creates a TDE certificate for a given server. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} locationName The name of the region where the resource is - * located. + * @param {string} serverName The name of the server. * - * @param {string} failoverGroupName The name of the failover group. + * @param {object} parameters The requested TDE certificate to be created or + * updated. + * + * @param {string} parameters.privateBlob The base64 encoded certificate + * private blob. + * + * @param {string} [parameters.certPassword] The certificate password. * * @param {object} [options] Optional Parameters. * @@ -29666,24 +30934,28 @@ export interface InstanceFailoverGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginForceFailoverAllowDataLossWithHttpOperationResponse(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateWithHttpOperationResponse(resourceGroupName: string, serverName: string, parameters: models.TdeCertificate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Fails over from the current primary managed instance to this managed - * instance. This operation might result in data loss. + * Creates a TDE certificate for a given server. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} locationName The name of the region where the resource is - * located. + * @param {string} serverName The name of the server. * - * @param {string} failoverGroupName The name of the failover group. + * @param {object} parameters The requested TDE certificate to be created or + * updated. + * + * @param {string} parameters.privateBlob The base64 encoded certificate + * private blob. + * + * @param {string} [parameters.certPassword] The certificate password. * * @param {object} [options] Optional Parameters. * @@ -29697,7 +30969,7 @@ export interface InstanceFailoverGroups { * * {Promise} A promise is returned. * - * @resolve {InstanceFailoverGroup} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29705,23 +30977,42 @@ export interface InstanceFailoverGroups { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {InstanceFailoverGroup} [result] - The deserialized result object if an error did not occur. - * See {@link InstanceFailoverGroup} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - beginForceFailoverAllowDataLoss(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginForceFailoverAllowDataLoss(resourceGroupName: string, locationName: string, failoverGroupName: string, callback: ServiceCallback): void; - beginForceFailoverAllowDataLoss(resourceGroupName: string, locationName: string, failoverGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * Lists the failover groups in a location. + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + beginCreate(resourceGroupName: string, serverName: string, parameters: models.TdeCertificate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreate(resourceGroupName: string, serverName: string, parameters: models.TdeCertificate, callback: ServiceCallback): void; + beginCreate(resourceGroupName: string, serverName: string, parameters: models.TdeCertificate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * ManagedInstanceTdeCertificates + * __NOTE__: An instance of this class is automatically created for an + * instance of the SqlManagementClient. + */ +export interface ManagedInstanceTdeCertificates { + + + /** + * Creates a TDE certificate for a given server. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {object} parameters The requested TDE certificate to be created or + * updated. + * + * @param {string} parameters.privateBlob The base64 encoded certificate + * private blob. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} [parameters.certPassword] The certificate password. * * @param {object} [options] Optional Parameters. * @@ -29730,17 +31021,28 @@ export interface InstanceFailoverGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByLocationNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, parameters: models.TdeCertificate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists the failover groups in a location. + * Creates a TDE certificate for a given server. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {object} parameters The requested TDE certificate to be created or + * updated. + * + * @param {string} parameters.privateBlob The base64 encoded certificate + * private blob. + * + * @param {string} [parameters.certPassword] The certificate password. * * @param {object} [options] Optional Parameters. * @@ -29754,7 +31056,7 @@ export interface InstanceFailoverGroups { * * {Promise} A promise is returned. * - * @resolve {InstanceFailoverGroupListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29762,38 +31064,33 @@ export interface InstanceFailoverGroups { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {InstanceFailoverGroupListResult} [result] - The deserialized result object if an error did not occur. - * See {@link InstanceFailoverGroupListResult} for more - * information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByLocationNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByLocationNext(nextPageLink: string, callback: ServiceCallback): void; - listByLocationNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * BackupShortTermRetentionPolicies - * __NOTE__: An instance of this class is automatically created for an - * instance of the SqlManagementClient. - */ -export interface BackupShortTermRetentionPolicies { + create(resourceGroupName: string, managedInstanceName: string, parameters: models.TdeCertificate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + create(resourceGroupName: string, managedInstanceName: string, parameters: models.TdeCertificate, callback: ServiceCallback): void; + create(resourceGroupName: string, managedInstanceName: string, parameters: models.TdeCertificate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets a database's short term retention policy. + * Creates a TDE certificate for a given server. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} managedInstanceName The name of the managed instance. * - * @param {string} databaseName The name of the database. + * @param {object} parameters The requested TDE certificate to be created or + * updated. + * + * @param {string} parameters.privateBlob The base64 encoded certificate + * private blob. + * + * @param {string} [parameters.certPassword] The certificate password. * * @param {object} [options] Optional Parameters. * @@ -29802,22 +31099,28 @@ export interface BackupShortTermRetentionPolicies { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, parameters: models.TdeCertificate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a database's short term retention policy. + * Creates a TDE certificate for a given server. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} managedInstanceName The name of the managed instance. * - * @param {string} databaseName The name of the database. + * @param {object} parameters The requested TDE certificate to be created or + * updated. + * + * @param {string} parameters.privateBlob The base64 encoded certificate + * private blob. + * + * @param {string} [parameters.certPassword] The certificate password. * * @param {object} [options] Optional Parameters. * @@ -29831,7 +31134,7 @@ export interface BackupShortTermRetentionPolicies { * * {Promise} A promise is returned. * - * @resolve {BackupShortTermRetentionPolicy} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29839,66 +31142,65 @@ export interface BackupShortTermRetentionPolicies { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {BackupShortTermRetentionPolicy} [result] - The deserialized result object if an error did not occur. - * See {@link BackupShortTermRetentionPolicy} for more - * information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, serverName: string, databaseName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginCreate(resourceGroupName: string, managedInstanceName: string, parameters: models.TdeCertificate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreate(resourceGroupName: string, managedInstanceName: string, parameters: models.TdeCertificate, callback: ServiceCallback): void; + beginCreate(resourceGroupName: string, managedInstanceName: string, parameters: models.TdeCertificate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * ManagedInstanceKeys + * __NOTE__: An instance of this class is automatically created for an + * instance of the SqlManagementClient. + */ +export interface ManagedInstanceKeys { /** - * Updates a database's short term retention policy. + * Gets a list of managed instance keys. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. - * - * @param {string} databaseName The name of the database. - * - * @param {object} parameters The short term retention policy info. - * - * @param {number} [parameters.retentionDays] The backup retention period in - * days. This is how many days Point-in-Time Restore will be supported. + * @param {string} managedInstanceName The name of the managed instance. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] An OData filter expression that filters + * elements in the collection. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByInstanceWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates a database's short term retention policy. + * Gets a list of managed instance keys. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. - * - * @param {string} databaseName The name of the database. - * - * @param {object} parameters The short term retention policy info. - * - * @param {number} [parameters.retentionDays] The backup retention period in - * days. This is how many days Point-in-Time Restore will be supported. + * @param {string} managedInstanceName The name of the managed instance. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] An OData filter expression that filters + * elements in the collection. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -29909,7 +31211,7 @@ export interface BackupShortTermRetentionPolicies { * * {Promise} A promise is returned. * - * @resolve {BackupShortTermRetentionPolicy} - The deserialized result object. + * @resolve {ManagedInstanceKeyListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29917,34 +31219,30 @@ export interface BackupShortTermRetentionPolicies { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {BackupShortTermRetentionPolicy} [result] - The deserialized result object if an error did not occur. - * See {@link BackupShortTermRetentionPolicy} for more + * {ManagedInstanceKeyListResult} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedInstanceKeyListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listByInstance(resourceGroupName: string, managedInstanceName: string, callback: ServiceCallback): void; + listByInstance(resourceGroupName: string, managedInstanceName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Updates a database's short term retention policy. + * Gets a managed instance key. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. - * - * @param {string} databaseName The name of the database. - * - * @param {object} parameters The short term retention policy info. + * @param {string} managedInstanceName The name of the managed instance. * - * @param {number} [parameters.retentionDays] The backup retention period in - * days. This is how many days Point-in-Time Restore will be supported. + * @param {string} keyName The name of the managed instance key to be + * retrieved. * * @param {object} [options] Optional Parameters. * @@ -29953,27 +31251,23 @@ export interface BackupShortTermRetentionPolicies { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates a database's short term retention policy. + * Gets a managed instance key. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. - * - * @param {string} databaseName The name of the database. - * - * @param {object} parameters The short term retention policy info. + * @param {string} managedInstanceName The name of the managed instance. * - * @param {number} [parameters.retentionDays] The backup retention period in - * days. This is how many days Point-in-Time Restore will be supported. + * @param {string} keyName The name of the managed instance key to be + * retrieved. * * @param {object} [options] Optional Parameters. * @@ -29987,7 +31281,7 @@ export interface BackupShortTermRetentionPolicies { * * {Promise} A promise is returned. * - * @resolve {BackupShortTermRetentionPolicy} - The deserialized result object. + * @resolve {ManagedInstanceKey} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29995,29 +31289,38 @@ export interface BackupShortTermRetentionPolicies { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {BackupShortTermRetentionPolicy} [result] - The deserialized result object if an error did not occur. - * See {@link BackupShortTermRetentionPolicy} for more - * information. + * {ManagedInstanceKey} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedInstanceKey} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - update(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - update(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, callback: ServiceCallback): void; - update(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, managedInstanceName: string, keyName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, keyName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets a database's short term retention policy. + * Creates or updates a managed instance key. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} managedInstanceName The name of the managed instance. * - * @param {string} databaseName The name of the database. + * @param {string} keyName The name of the managed instance key to be operated + * on (updated or created). + * + * @param {object} parameters The requested managed instance key resource + * state. + * + * @param {string} parameters.serverKeyType The key type like 'ServiceManaged', + * 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault' + * + * @param {string} [parameters.uri] The URI of the key. If the ServerKeyType is + * AzureKeyVault, then the URI is required. * * @param {object} [options] Optional Parameters. * @@ -30026,22 +31329,32 @@ export interface BackupShortTermRetentionPolicies { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByDatabaseWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: models.ManagedInstanceKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a database's short term retention policy. + * Creates or updates a managed instance key. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} managedInstanceName The name of the managed instance. * - * @param {string} databaseName The name of the database. + * @param {string} keyName The name of the managed instance key to be operated + * on (updated or created). + * + * @param {object} parameters The requested managed instance key resource + * state. + * + * @param {string} parameters.serverKeyType The key type like 'ServiceManaged', + * 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault' + * + * @param {string} [parameters.uri] The URI of the key. If the ServerKeyType is + * AzureKeyVault, then the URI is required. * * @param {object} [options] Optional Parameters. * @@ -30055,7 +31368,7 @@ export interface BackupShortTermRetentionPolicies { * * {Promise} A promise is returned. * - * @resolve {BackupShortTermRetentionPolicyListResult} - The deserialized result object. + * @resolve {ManagedInstanceKey} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30063,34 +31376,28 @@ export interface BackupShortTermRetentionPolicies { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {BackupShortTermRetentionPolicyListResult} [result] - The deserialized result object if an error did not occur. - * See {@link BackupShortTermRetentionPolicyListResult} - * for more information. + * {ManagedInstanceKey} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedInstanceKey} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: models.ManagedInstanceKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: models.ManagedInstanceKey, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: models.ManagedInstanceKey, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Updates a database's short term retention policy. + * Deletes the managed instance key with the given name. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. - * - * @param {string} databaseName The name of the database. - * - * @param {object} parameters The short term retention policy info. + * @param {string} managedInstanceName The name of the managed instance. * - * @param {number} [parameters.retentionDays] The backup retention period in - * days. This is how many days Point-in-Time Restore will be supported. + * @param {string} keyName The name of the managed instance key to be deleted. * * @param {object} [options] Optional Parameters. * @@ -30099,27 +31406,22 @@ export interface BackupShortTermRetentionPolicies { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates a database's short term retention policy. + * Deletes the managed instance key with the given name. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. - * - * @param {string} databaseName The name of the database. - * - * @param {object} parameters The short term retention policy info. + * @param {string} managedInstanceName The name of the managed instance. * - * @param {number} [parameters.retentionDays] The backup retention period in - * days. This is how many days Point-in-Time Restore will be supported. + * @param {string} keyName The name of the managed instance key to be deleted. * * @param {object} [options] Optional Parameters. * @@ -30133,7 +31435,7 @@ export interface BackupShortTermRetentionPolicies { * * {Promise} A promise is returned. * - * @resolve {BackupShortTermRetentionPolicy} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30141,34 +31443,37 @@ export interface BackupShortTermRetentionPolicies { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {BackupShortTermRetentionPolicy} [result] - The deserialized result object if an error did not occur. - * See {@link BackupShortTermRetentionPolicy} for more - * information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, callback: ServiceCallback): void; - beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, managedInstanceName: string, keyName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, managedInstanceName: string, keyName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Updates a database's short term retention policy. + * Creates or updates a managed instance key. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} managedInstanceName The name of the managed instance. * - * @param {string} databaseName The name of the database. + * @param {string} keyName The name of the managed instance key to be operated + * on (updated or created). * - * @param {object} parameters The short term retention policy info. + * @param {object} parameters The requested managed instance key resource + * state. * - * @param {number} [parameters.retentionDays] The backup retention period in - * days. This is how many days Point-in-Time Restore will be supported. + * @param {string} parameters.serverKeyType The key type like 'ServiceManaged', + * 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault' + * + * @param {string} [parameters.uri] The URI of the key. If the ServerKeyType is + * AzureKeyVault, then the URI is required. * * @param {object} [options] Optional Parameters. * @@ -30177,27 +31482,32 @@ export interface BackupShortTermRetentionPolicies { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginUpdateWithHttpOperationResponse(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: models.ManagedInstanceKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates a database's short term retention policy. + * Creates or updates a managed instance key. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. + * @param {string} managedInstanceName The name of the managed instance. * - * @param {string} databaseName The name of the database. + * @param {string} keyName The name of the managed instance key to be operated + * on (updated or created). * - * @param {object} parameters The short term retention policy info. + * @param {object} parameters The requested managed instance key resource + * state. * - * @param {number} [parameters.retentionDays] The backup retention period in - * days. This is how many days Point-in-Time Restore will be supported. + * @param {string} parameters.serverKeyType The key type like 'ServiceManaged', + * 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault' + * + * @param {string} [parameters.uri] The URI of the key. If the ServerKeyType is + * AzureKeyVault, then the URI is required. * * @param {object} [options] Optional Parameters. * @@ -30211,7 +31521,7 @@ export interface BackupShortTermRetentionPolicies { * * {Promise} A promise is returned. * - * @resolve {BackupShortTermRetentionPolicy} - The deserialized result object. + * @resolve {ManagedInstanceKey} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30219,24 +31529,28 @@ export interface BackupShortTermRetentionPolicies { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {BackupShortTermRetentionPolicy} [result] - The deserialized result object if an error did not occur. - * See {@link BackupShortTermRetentionPolicy} for more - * information. + * {ManagedInstanceKey} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedInstanceKey} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, callback: ServiceCallback): void; - beginUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: models.BackupShortTermRetentionPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: models.ManagedInstanceKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: models.ManagedInstanceKey, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: models.ManagedInstanceKey, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets a database's short term retention policy. + * Deletes the managed instance key with the given name. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} keyName The name of the managed instance key to be deleted. * * @param {object} [options] Optional Parameters. * @@ -30245,17 +31559,22 @@ export interface BackupShortTermRetentionPolicies { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByDatabaseNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a database's short term retention policy. + * Deletes the managed instance key with the given name. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} keyName The name of the managed instance key to be deleted. * * @param {object} [options] Optional Parameters. * @@ -30269,7 +31588,7 @@ export interface BackupShortTermRetentionPolicies { * * {Promise} A promise is returned. * - * @resolve {BackupShortTermRetentionPolicyListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30277,44 +31596,22 @@ export interface BackupShortTermRetentionPolicies { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {BackupShortTermRetentionPolicyListResult} [result] - The deserialized result object if an error did not occur. - * See {@link BackupShortTermRetentionPolicyListResult} - * for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByDatabaseNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByDatabaseNext(nextPageLink: string, callback: ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * TdeCertificates - * __NOTE__: An instance of this class is automatically created for an - * instance of the SqlManagementClient. - */ -export interface TdeCertificates { + beginDeleteMethod(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginDeleteMethod(resourceGroupName: string, managedInstanceName: string, keyName: string, callback: ServiceCallback): void; + beginDeleteMethod(resourceGroupName: string, managedInstanceName: string, keyName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates a TDE certificate for a given server. - * - * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. - * - * @param {string} serverName The name of the server. - * - * @param {object} parameters The requested TDE certificate to be created or - * updated. - * - * @param {string} parameters.privateBlob The base64 encoded certificate - * private blob. + * Gets a list of managed instance keys. * - * @param {string} [parameters.certPassword] The certificate password. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -30323,28 +31620,17 @@ export interface TdeCertificates { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createWithHttpOperationResponse(resourceGroupName: string, serverName: string, parameters: models.TdeCertificate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByInstanceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates a TDE certificate for a given server. - * - * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. - * - * @param {string} serverName The name of the server. - * - * @param {object} parameters The requested TDE certificate to be created or - * updated. - * - * @param {string} parameters.privateBlob The base64 encoded certificate - * private blob. + * Gets a list of managed instance keys. * - * @param {string} [parameters.certPassword] The certificate password. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -30358,7 +31644,7 @@ export interface TdeCertificates { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {ManagedInstanceKeyListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30366,33 +31652,36 @@ export interface TdeCertificates { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {ManagedInstanceKeyListResult} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedInstanceKeyListResult} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - create(resourceGroupName: string, serverName: string, parameters: models.TdeCertificate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - create(resourceGroupName: string, serverName: string, parameters: models.TdeCertificate, callback: ServiceCallback): void; - create(resourceGroupName: string, serverName: string, parameters: models.TdeCertificate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByInstanceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByInstanceNext(nextPageLink: string, callback: ServiceCallback): void; + listByInstanceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * ManagedInstanceEncryptionProtectors + * __NOTE__: An instance of this class is automatically created for an + * instance of the SqlManagementClient. + */ +export interface ManagedInstanceEncryptionProtectors { /** - * Creates a TDE certificate for a given server. + * Gets a list of managed instance encryption protectors * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. - * - * @param {object} parameters The requested TDE certificate to be created or - * updated. - * - * @param {string} parameters.privateBlob The base64 encoded certificate - * private blob. - * - * @param {string} [parameters.certPassword] The certificate password. + * @param {string} managedInstanceName The name of the managed instance. * * @param {object} [options] Optional Parameters. * @@ -30401,28 +31690,20 @@ export interface TdeCertificates { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginCreateWithHttpOperationResponse(resourceGroupName: string, serverName: string, parameters: models.TdeCertificate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByInstanceWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates a TDE certificate for a given server. + * Gets a list of managed instance encryption protectors * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} serverName The name of the server. - * - * @param {object} parameters The requested TDE certificate to be created or - * updated. - * - * @param {string} parameters.privateBlob The base64 encoded certificate - * private blob. - * - * @param {string} [parameters.certPassword] The certificate password. + * @param {string} managedInstanceName The name of the managed instance. * * @param {object} [options] Optional Parameters. * @@ -30436,7 +31717,7 @@ export interface TdeCertificates { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {ManagedInstanceEncryptionProtectorListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30444,28 +31725,22 @@ export interface TdeCertificates { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {ManagedInstanceEncryptionProtectorListResult} [result] - The deserialized result object if an error did not occur. + * See {@link + * ManagedInstanceEncryptionProtectorListResult} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCreate(resourceGroupName: string, serverName: string, parameters: models.TdeCertificate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreate(resourceGroupName: string, serverName: string, parameters: models.TdeCertificate, callback: ServiceCallback): void; - beginCreate(resourceGroupName: string, serverName: string, parameters: models.TdeCertificate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * ManagedInstanceTdeCertificates - * __NOTE__: An instance of this class is automatically created for an - * instance of the SqlManagementClient. - */ -export interface ManagedInstanceTdeCertificates { + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByInstance(resourceGroupName: string, managedInstanceName: string, callback: ServiceCallback): void; + listByInstance(resourceGroupName: string, managedInstanceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates a TDE certificate for a given server. + * Gets a managed instance encryption protector. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -30473,14 +31748,6 @@ export interface ManagedInstanceTdeCertificates { * * @param {string} managedInstanceName The name of the managed instance. * - * @param {object} parameters The requested TDE certificate to be created or - * updated. - * - * @param {string} parameters.privateBlob The base64 encoded certificate - * private blob. - * - * @param {string} [parameters.certPassword] The certificate password. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -30488,28 +31755,20 @@ export interface ManagedInstanceTdeCertificates { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, parameters: models.TdeCertificate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates a TDE certificate for a given server. + * Gets a managed instance encryption protector. * * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. - * - * @param {string} managedInstanceName The name of the managed instance. - * - * @param {object} parameters The requested TDE certificate to be created or - * updated. - * - * @param {string} parameters.privateBlob The base64 encoded certificate - * private blob. + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. * - * @param {string} [parameters.certPassword] The certificate password. + * @param {string} managedInstanceName The name of the managed instance. * * @param {object} [options] Optional Parameters. * @@ -30523,7 +31782,7 @@ export interface ManagedInstanceTdeCertificates { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {ManagedInstanceEncryptionProtector} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30531,19 +31790,21 @@ export interface ManagedInstanceTdeCertificates { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {ManagedInstanceEncryptionProtector} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedInstanceEncryptionProtector} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - create(resourceGroupName: string, managedInstanceName: string, parameters: models.TdeCertificate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - create(resourceGroupName: string, managedInstanceName: string, parameters: models.TdeCertificate, callback: ServiceCallback): void; - create(resourceGroupName: string, managedInstanceName: string, parameters: models.TdeCertificate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, managedInstanceName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates a TDE certificate for a given server. + * Updates an existing encryption protector. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -30551,13 +31812,15 @@ export interface ManagedInstanceTdeCertificates { * * @param {string} managedInstanceName The name of the managed instance. * - * @param {object} parameters The requested TDE certificate to be created or - * updated. + * @param {object} parameters The requested encryption protector resource + * state. * - * @param {string} parameters.privateBlob The base64 encoded certificate - * private blob. + * @param {string} [parameters.serverKeyName] The name of the managed instance + * key. * - * @param {string} [parameters.certPassword] The certificate password. + * @param {string} parameters.serverKeyType The encryption protector type like + * 'ServiceManaged', 'AzureKeyVault'. Possible values include: + * 'ServiceManaged', 'AzureKeyVault' * * @param {object} [options] Optional Parameters. * @@ -30566,14 +31829,14 @@ export interface ManagedInstanceTdeCertificates { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginCreateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, parameters: models.TdeCertificate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceEncryptionProtector, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates a TDE certificate for a given server. + * Updates an existing encryption protector. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -30581,13 +31844,15 @@ export interface ManagedInstanceTdeCertificates { * * @param {string} managedInstanceName The name of the managed instance. * - * @param {object} parameters The requested TDE certificate to be created or - * updated. + * @param {object} parameters The requested encryption protector resource + * state. * - * @param {string} parameters.privateBlob The base64 encoded certificate - * private blob. + * @param {string} [parameters.serverKeyName] The name of the managed instance + * key. * - * @param {string} [parameters.certPassword] The certificate password. + * @param {string} parameters.serverKeyType The encryption protector type like + * 'ServiceManaged', 'AzureKeyVault'. Possible values include: + * 'ServiceManaged', 'AzureKeyVault' * * @param {object} [options] Optional Parameters. * @@ -30601,7 +31866,7 @@ export interface ManagedInstanceTdeCertificates { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {ManagedInstanceEncryptionProtector} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30609,28 +31874,21 @@ export interface ManagedInstanceTdeCertificates { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {ManagedInstanceEncryptionProtector} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedInstanceEncryptionProtector} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCreate(resourceGroupName: string, managedInstanceName: string, parameters: models.TdeCertificate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreate(resourceGroupName: string, managedInstanceName: string, parameters: models.TdeCertificate, callback: ServiceCallback): void; - beginCreate(resourceGroupName: string, managedInstanceName: string, parameters: models.TdeCertificate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * ManagedInstanceKeys - * __NOTE__: An instance of this class is automatically created for an - * instance of the SqlManagementClient. - */ -export interface ManagedInstanceKeys { + createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceEncryptionProtector, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceEncryptionProtector, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceEncryptionProtector, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets a list of managed instance keys. + * Updates an existing encryption protector. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -30638,24 +31896,31 @@ export interface ManagedInstanceKeys { * * @param {string} managedInstanceName The name of the managed instance. * - * @param {object} [options] Optional Parameters. + * @param {object} parameters The requested encryption protector resource + * state. * - * @param {string} [options.filter] An OData filter expression that filters - * elements in the collection. + * @param {string} [parameters.serverKeyName] The name of the managed instance + * key. + * + * @param {string} parameters.serverKeyType The encryption protector type like + * 'ServiceManaged', 'AzureKeyVault'. Possible values include: + * 'ServiceManaged', 'AzureKeyVault' + * + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByInstanceWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceEncryptionProtector, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a list of managed instance keys. + * Updates an existing encryption protector. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource @@ -30663,10 +31928,17 @@ export interface ManagedInstanceKeys { * * @param {string} managedInstanceName The name of the managed instance. * - * @param {object} [options] Optional Parameters. + * @param {object} parameters The requested encryption protector resource + * state. * - * @param {string} [options.filter] An OData filter expression that filters - * elements in the collection. + * @param {string} [parameters.serverKeyName] The name of the managed instance + * key. + * + * @param {string} parameters.serverKeyType The encryption protector type like + * 'ServiceManaged', 'AzureKeyVault'. Possible values include: + * 'ServiceManaged', 'AzureKeyVault' + * + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -30678,7 +31950,7 @@ export interface ManagedInstanceKeys { * * {Promise} A promise is returned. * - * @resolve {ManagedInstanceKeyListResult} - The deserialized result object. + * @resolve {ManagedInstanceEncryptionProtector} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30686,30 +31958,24 @@ export interface ManagedInstanceKeys { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ManagedInstanceKeyListResult} [result] - The deserialized result object if an error did not occur. - * See {@link ManagedInstanceKeyListResult} for more + * {ManagedInstanceEncryptionProtector} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedInstanceEncryptionProtector} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - listByInstance(resourceGroupName: string, managedInstanceName: string, callback: ServiceCallback): void; - listByInstance(resourceGroupName: string, managedInstanceName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceEncryptionProtector, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceEncryptionProtector, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceEncryptionProtector, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets a managed instance key. - * - * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. - * - * @param {string} managedInstanceName The name of the managed instance. + * Gets a list of managed instance encryption protectors * - * @param {string} keyName The name of the managed instance key to be - * retrieved. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -30718,23 +31984,17 @@ export interface ManagedInstanceKeys { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByInstanceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a managed instance key. - * - * @param {string} resourceGroupName The name of the resource group that - * contains the resource. You can obtain this value from the Azure Resource - * Manager API or the portal. - * - * @param {string} managedInstanceName The name of the managed instance. + * Gets a list of managed instance encryption protectors * - * @param {string} keyName The name of the managed instance key to be - * retrieved. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -30748,7 +32008,7 @@ export interface ManagedInstanceKeys { * * {Promise} A promise is returned. * - * @resolve {ManagedInstanceKey} - The deserialized result object. + * @resolve {ManagedInstanceEncryptionProtectorListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30756,38 +32016,38 @@ export interface ManagedInstanceKeys { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ManagedInstanceKey} [result] - The deserialized result object if an error did not occur. - * See {@link ManagedInstanceKey} for more information. + * {ManagedInstanceEncryptionProtectorListResult} [result] - The deserialized result object if an error did not occur. + * See {@link + * ManagedInstanceEncryptionProtectorListResult} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, managedInstanceName: string, keyName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, keyName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByInstanceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByInstanceNext(nextPageLink: string, callback: ServiceCallback): void; + listByInstanceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * ManagedInstanceVulnerabilityAssessments + * __NOTE__: An instance of this class is automatically created for an + * instance of the SqlManagementClient. + */ +export interface ManagedInstanceVulnerabilityAssessments { /** - * Creates or updates a managed instance key. + * Gets the managed instance's vulnerability assessment. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. - * - * @param {string} keyName The name of the managed instance key to be operated - * on (updated or created). - * - * @param {object} parameters The requested managed instance key resource - * state. - * - * @param {string} parameters.serverKeyType The key type like 'ServiceManaged', - * 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault' - * - * @param {string} [parameters.uri] The URI of the key. If the ServerKeyType is - * AzureKeyVault, then the URI is required. + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessment is defined. * * @param {object} [options] Optional Parameters. * @@ -30796,32 +32056,21 @@ export interface ManagedInstanceKeys { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: models.ManagedInstanceKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a managed instance key. + * Gets the managed instance's vulnerability assessment. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. - * - * @param {string} keyName The name of the managed instance key to be operated - * on (updated or created). - * - * @param {object} parameters The requested managed instance key resource - * state. - * - * @param {string} parameters.serverKeyType The key type like 'ServiceManaged', - * 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault' - * - * @param {string} [parameters.uri] The URI of the key. If the ServerKeyType is - * AzureKeyVault, then the URI is required. + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessment is defined. * * @param {object} [options] Optional Parameters. * @@ -30835,7 +32084,7 @@ export interface ManagedInstanceKeys { * * {Promise} A promise is returned. * - * @resolve {ManagedInstanceKey} - The deserialized result object. + * @resolve {ManagedInstanceVulnerabilityAssessment} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30843,28 +32092,56 @@ export interface ManagedInstanceKeys { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ManagedInstanceKey} [result] - The deserialized result object if an error did not occur. - * See {@link ManagedInstanceKey} for more information. + * {ManagedInstanceVulnerabilityAssessment} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedInstanceVulnerabilityAssessment} for + * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: models.ManagedInstanceKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: models.ManagedInstanceKey, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: models.ManagedInstanceKey, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, managedInstanceName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Deletes the managed instance key with the given name. + * Creates or updates the managed instance's vulnerability assessment. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessment is defined. * - * @param {string} keyName The name of the managed instance key to be deleted. + * @param {object} parameters The requested resource. + * + * @param {string} parameters.storageContainerPath A blob storage container + * path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). + * + * @param {string} [parameters.storageContainerSasKey] A shared access + * signature (SAS Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. + * + * @param {string} [parameters.storageAccountAccessKey] Specifies the + * identifier key of the storage account for vulnerability assessment scan + * results. If 'StorageContainerSasKey' isn't specified, + * storageAccountAccessKey is required. + * + * @param {object} [parameters.recurringScans] The recurring scans settings + * + * @param {boolean} [parameters.recurringScans.isEnabled] Recurring scans + * state. + * + * @param {boolean} [parameters.recurringScans.emailSubscriptionAdmins] + * Specifies that the schedule scan notification will be is sent to the + * subscription administrators. + * + * @param {array} [parameters.recurringScans.emails] Specifies an array of + * e-mail addresses to which the scan notification is sent. * * @param {object} [options] Optional Parameters. * @@ -30873,22 +32150,49 @@ export interface ManagedInstanceKeys { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceVulnerabilityAssessment, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the managed instance key with the given name. + * Creates or updates the managed instance's vulnerability assessment. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessment is defined. + * + * @param {object} parameters The requested resource. + * + * @param {string} parameters.storageContainerPath A blob storage container + * path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). + * + * @param {string} [parameters.storageContainerSasKey] A shared access + * signature (SAS Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. + * + * @param {string} [parameters.storageAccountAccessKey] Specifies the + * identifier key of the storage account for vulnerability assessment scan + * results. If 'StorageContainerSasKey' isn't specified, + * storageAccountAccessKey is required. + * + * @param {object} [parameters.recurringScans] The recurring scans settings + * + * @param {boolean} [parameters.recurringScans.isEnabled] Recurring scans + * state. + * + * @param {boolean} [parameters.recurringScans.emailSubscriptionAdmins] + * Specifies that the schedule scan notification will be is sent to the + * subscription administrators. * - * @param {string} keyName The name of the managed instance key to be deleted. + * @param {array} [parameters.recurringScans.emails] Specifies an array of + * e-mail addresses to which the scan notification is sent. * * @param {object} [options] Optional Parameters. * @@ -30902,7 +32206,7 @@ export interface ManagedInstanceKeys { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {ManagedInstanceVulnerabilityAssessment} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30910,37 +32214,28 @@ export interface ManagedInstanceKeys { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {ManagedInstanceVulnerabilityAssessment} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedInstanceVulnerabilityAssessment} for + * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, managedInstanceName: string, keyName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, managedInstanceName: string, keyName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceVulnerabilityAssessment, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceVulnerabilityAssessment, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceVulnerabilityAssessment, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates or updates a managed instance key. + * Removes the managed instance's vulnerability assessment. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. - * - * @param {string} keyName The name of the managed instance key to be operated - * on (updated or created). - * - * @param {object} parameters The requested managed instance key resource - * state. - * - * @param {string} parameters.serverKeyType The key type like 'ServiceManaged', - * 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault' - * - * @param {string} [parameters.uri] The URI of the key. If the ServerKeyType is - * AzureKeyVault, then the URI is required. + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessment is defined. * * @param {object} [options] Optional Parameters. * @@ -30949,32 +32244,21 @@ export interface ManagedInstanceKeys { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: models.ManagedInstanceKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a managed instance key. + * Removes the managed instance's vulnerability assessment. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. - * - * @param {string} keyName The name of the managed instance key to be operated - * on (updated or created). - * - * @param {object} parameters The requested managed instance key resource - * state. - * - * @param {string} parameters.serverKeyType The key type like 'ServiceManaged', - * 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault' - * - * @param {string} [parameters.uri] The URI of the key. If the ServerKeyType is - * AzureKeyVault, then the URI is required. + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessment is defined. * * @param {object} [options] Optional Parameters. * @@ -30988,7 +32272,7 @@ export interface ManagedInstanceKeys { * * {Promise} A promise is returned. * - * @resolve {ManagedInstanceKey} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30996,28 +32280,26 @@ export interface ManagedInstanceKeys { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ManagedInstanceKey} [result] - The deserialized result object if an error did not occur. - * See {@link ManagedInstanceKey} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: models.ManagedInstanceKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: models.ManagedInstanceKey, callback: ServiceCallback): void; - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: models.ManagedInstanceKey, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, managedInstanceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, managedInstanceName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, managedInstanceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Deletes the managed instance key with the given name. + * Gets the managed instance's vulnerability assessment policies. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. - * - * @param {string} keyName The name of the managed instance key to be deleted. + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessments is defined. * * @param {object} [options] Optional Parameters. * @@ -31026,22 +32308,21 @@ export interface ManagedInstanceKeys { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByInstanceWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the managed instance key with the given name. + * Gets the managed instance's vulnerability assessment policies. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. - * - * @param {string} keyName The name of the managed instance key to be deleted. + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessments is defined. * * @param {object} [options] Optional Parameters. * @@ -31055,7 +32336,7 @@ export interface ManagedInstanceKeys { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {ManagedInstanceVulnerabilityAssessmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -31063,19 +32344,22 @@ export interface ManagedInstanceKeys { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {ManagedInstanceVulnerabilityAssessmentListResult} [result] - The deserialized result object if an error did not occur. + * See {@link + * ManagedInstanceVulnerabilityAssessmentListResult} for + * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginDeleteMethod(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginDeleteMethod(resourceGroupName: string, managedInstanceName: string, keyName: string, callback: ServiceCallback): void; - beginDeleteMethod(resourceGroupName: string, managedInstanceName: string, keyName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByInstance(resourceGroupName: string, managedInstanceName: string, callback: ServiceCallback): void; + listByInstance(resourceGroupName: string, managedInstanceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets a list of managed instance keys. + * Gets the managed instance's vulnerability assessment policies. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -31087,14 +32371,14 @@ export interface ManagedInstanceKeys { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByInstanceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByInstanceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a list of managed instance keys. + * Gets the managed instance's vulnerability assessment policies. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -31111,7 +32395,7 @@ export interface ManagedInstanceKeys { * * {Promise} A promise is returned. * - * @resolve {ManagedInstanceKeyListResult} - The deserialized result object. + * @resolve {ManagedInstanceVulnerabilityAssessmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -31119,36 +32403,38 @@ export interface ManagedInstanceKeys { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ManagedInstanceKeyListResult} [result] - The deserialized result object if an error did not occur. - * See {@link ManagedInstanceKeyListResult} for more - * information. + * {ManagedInstanceVulnerabilityAssessmentListResult} [result] - The deserialized result object if an error did not occur. + * See {@link + * ManagedInstanceVulnerabilityAssessmentListResult} for + * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByInstanceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByInstanceNext(nextPageLink: string, callback: ServiceCallback): void; - listByInstanceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByInstanceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByInstanceNext(nextPageLink: string, callback: ServiceCallback): void; + listByInstanceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class - * ManagedInstanceEncryptionProtectors + * ServerVulnerabilityAssessments * __NOTE__: An instance of this class is automatically created for an * instance of the SqlManagementClient. */ -export interface ManagedInstanceEncryptionProtectors { +export interface ServerVulnerabilityAssessments { /** - * Gets a list of managed instance encryption protectors + * Gets the server's vulnerability assessment. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. + * @param {string} serverName The name of the server for which the + * vulnerability assessment is defined. * * @param {object} [options] Optional Parameters. * @@ -31157,20 +32443,21 @@ export interface ManagedInstanceEncryptionProtectors { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByInstanceWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, serverName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a list of managed instance encryption protectors + * Gets the server's vulnerability assessment. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. + * @param {string} serverName The name of the server for which the + * vulnerability assessment is defined. * * @param {object} [options] Optional Parameters. * @@ -31184,7 +32471,7 @@ export interface ManagedInstanceEncryptionProtectors { * * {Promise} A promise is returned. * - * @resolve {ManagedInstanceEncryptionProtectorListResult} - The deserialized result object. + * @resolve {ServerVulnerabilityAssessment} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -31192,28 +32479,56 @@ export interface ManagedInstanceEncryptionProtectors { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ManagedInstanceEncryptionProtectorListResult} [result] - The deserialized result object if an error did not occur. - * See {@link - * ManagedInstanceEncryptionProtectorListResult} for more + * {ServerVulnerabilityAssessment} [result] - The deserialized result object if an error did not occur. + * See {@link ServerVulnerabilityAssessment} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByInstance(resourceGroupName: string, managedInstanceName: string, callback: ServiceCallback): void; - listByInstance(resourceGroupName: string, managedInstanceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, serverName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, serverName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, serverName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets a managed instance encryption protector. + * Creates or updates the server's vulnerability assessment. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. + * @param {string} serverName The name of the server for which the + * vulnerability assessment is defined. + * + * @param {object} parameters The requested resource. + * + * @param {string} parameters.storageContainerPath A blob storage container + * path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). + * + * @param {string} [parameters.storageContainerSasKey] A shared access + * signature (SAS Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. + * + * @param {string} [parameters.storageAccountAccessKey] Specifies the + * identifier key of the storage account for vulnerability assessment scan + * results. If 'StorageContainerSasKey' isn't specified, + * storageAccountAccessKey is required. + * + * @param {object} [parameters.recurringScans] The recurring scans settings + * + * @param {boolean} [parameters.recurringScans.isEnabled] Recurring scans + * state. + * + * @param {boolean} [parameters.recurringScans.emailSubscriptionAdmins] + * Specifies that the schedule scan notification will be is sent to the + * subscription administrators. + * + * @param {array} [parameters.recurringScans.emails] Specifies an array of + * e-mail addresses to which the scan notification is sent. * * @param {object} [options] Optional Parameters. * @@ -31222,20 +32537,49 @@ export interface ManagedInstanceEncryptionProtectors { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serverName: string, parameters: models.ServerVulnerabilityAssessment, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a managed instance encryption protector. + * Creates or updates the server's vulnerability assessment. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. + * @param {string} serverName The name of the server for which the + * vulnerability assessment is defined. + * + * @param {object} parameters The requested resource. + * + * @param {string} parameters.storageContainerPath A blob storage container + * path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). + * + * @param {string} [parameters.storageContainerSasKey] A shared access + * signature (SAS Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. + * + * @param {string} [parameters.storageAccountAccessKey] Specifies the + * identifier key of the storage account for vulnerability assessment scan + * results. If 'StorageContainerSasKey' isn't specified, + * storageAccountAccessKey is required. + * + * @param {object} [parameters.recurringScans] The recurring scans settings + * + * @param {boolean} [parameters.recurringScans.isEnabled] Recurring scans + * state. + * + * @param {boolean} [parameters.recurringScans.emailSubscriptionAdmins] + * Specifies that the schedule scan notification will be is sent to the + * subscription administrators. + * + * @param {array} [parameters.recurringScans.emails] Specifies an array of + * e-mail addresses to which the scan notification is sent. * * @param {object} [options] Optional Parameters. * @@ -31249,7 +32593,7 @@ export interface ManagedInstanceEncryptionProtectors { * * {Promise} A promise is returned. * - * @resolve {ManagedInstanceEncryptionProtector} - The deserialized result object. + * @resolve {ServerVulnerabilityAssessment} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -31257,37 +32601,28 @@ export interface ManagedInstanceEncryptionProtectors { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ManagedInstanceEncryptionProtector} [result] - The deserialized result object if an error did not occur. - * See {@link ManagedInstanceEncryptionProtector} for more + * {ServerVulnerabilityAssessment} [result] - The deserialized result object if an error did not occur. + * See {@link ServerVulnerabilityAssessment} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, managedInstanceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, managedInstanceName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serverName: string, parameters: models.ServerVulnerabilityAssessment, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, serverName: string, parameters: models.ServerVulnerabilityAssessment, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serverName: string, parameters: models.ServerVulnerabilityAssessment, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Updates an existing encryption protector. + * Removes the server's vulnerability assessment. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. - * - * @param {object} parameters The requested encryption protector resource - * state. - * - * @param {string} [parameters.serverKeyName] The name of the managed instance - * key. - * - * @param {string} parameters.serverKeyType The encryption protector type like - * 'ServiceManaged', 'AzureKeyVault'. Possible values include: - * 'ServiceManaged', 'AzureKeyVault' + * @param {string} serverName The name of the server for which the + * vulnerability assessment is defined. * * @param {object} [options] Optional Parameters. * @@ -31296,30 +32631,21 @@ export interface ManagedInstanceEncryptionProtectors { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceEncryptionProtector, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, serverName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates an existing encryption protector. + * Removes the server's vulnerability assessment. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. - * - * @param {object} parameters The requested encryption protector resource - * state. - * - * @param {string} [parameters.serverKeyName] The name of the managed instance - * key. - * - * @param {string} parameters.serverKeyType The encryption protector type like - * 'ServiceManaged', 'AzureKeyVault'. Possible values include: - * 'ServiceManaged', 'AzureKeyVault' + * @param {string} serverName The name of the server for which the + * vulnerability assessment is defined. * * @param {object} [options] Optional Parameters. * @@ -31333,7 +32659,7 @@ export interface ManagedInstanceEncryptionProtectors { * * {Promise} A promise is returned. * - * @resolve {ManagedInstanceEncryptionProtector} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -31341,37 +32667,25 @@ export interface ManagedInstanceEncryptionProtectors { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ManagedInstanceEncryptionProtector} [result] - The deserialized result object if an error did not occur. - * See {@link ManagedInstanceEncryptionProtector} for more - * information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceEncryptionProtector, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceEncryptionProtector, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceEncryptionProtector, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, serverName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, serverName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, serverName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Updates an existing encryption protector. + * Lists the vulnerability assessment policies associated with a server. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. - * - * @param {object} parameters The requested encryption protector resource - * state. - * - * @param {string} [parameters.serverKeyName] The name of the managed instance - * key. - * - * @param {string} parameters.serverKeyType The encryption protector type like - * 'ServiceManaged', 'AzureKeyVault'. Possible values include: - * 'ServiceManaged', 'AzureKeyVault' + * @param {string} serverName The name of the server. * * @param {object} [options] Optional Parameters. * @@ -31380,30 +32694,20 @@ export interface ManagedInstanceEncryptionProtectors { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceEncryptionProtector, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByServerWithHttpOperationResponse(resourceGroupName: string, serverName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates an existing encryption protector. + * Lists the vulnerability assessment policies associated with a server. * * @param {string} resourceGroupName The name of the resource group that * contains the resource. You can obtain this value from the Azure Resource * Manager API or the portal. * - * @param {string} managedInstanceName The name of the managed instance. - * - * @param {object} parameters The requested encryption protector resource - * state. - * - * @param {string} [parameters.serverKeyName] The name of the managed instance - * key. - * - * @param {string} parameters.serverKeyType The encryption protector type like - * 'ServiceManaged', 'AzureKeyVault'. Possible values include: - * 'ServiceManaged', 'AzureKeyVault' + * @param {string} serverName The name of the server. * * @param {object} [options] Optional Parameters. * @@ -31417,7 +32721,7 @@ export interface ManagedInstanceEncryptionProtectors { * * {Promise} A promise is returned. * - * @resolve {ManagedInstanceEncryptionProtector} - The deserialized result object. + * @resolve {ServerVulnerabilityAssessmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -31425,21 +32729,21 @@ export interface ManagedInstanceEncryptionProtectors { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ManagedInstanceEncryptionProtector} [result] - The deserialized result object if an error did not occur. - * See {@link ManagedInstanceEncryptionProtector} for more - * information. + * {ServerVulnerabilityAssessmentListResult} [result] - The deserialized result object if an error did not occur. + * See {@link ServerVulnerabilityAssessmentListResult} for + * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceEncryptionProtector, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceEncryptionProtector, callback: ServiceCallback): void; - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: models.ManagedInstanceEncryptionProtector, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByServer(resourceGroupName: string, serverName: string, callback: ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets a list of managed instance encryption protectors + * Lists the vulnerability assessment policies associated with a server. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -31451,14 +32755,14 @@ export interface ManagedInstanceEncryptionProtectors { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByInstanceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByServerNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a list of managed instance encryption protectors + * Lists the vulnerability assessment policies associated with a server. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -31475,7 +32779,7 @@ export interface ManagedInstanceEncryptionProtectors { * * {Promise} A promise is returned. * - * @resolve {ManagedInstanceEncryptionProtectorListResult} - The deserialized result object. + * @resolve {ServerVulnerabilityAssessmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -31483,16 +32787,15 @@ export interface ManagedInstanceEncryptionProtectors { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ManagedInstanceEncryptionProtectorListResult} [result] - The deserialized result object if an error did not occur. - * See {@link - * ManagedInstanceEncryptionProtectorListResult} for more - * information. + * {ServerVulnerabilityAssessmentListResult} [result] - The deserialized result object if an error did not occur. + * See {@link ServerVulnerabilityAssessmentListResult} for + * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByInstanceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByInstanceNext(nextPageLink: string, callback: ServiceCallback): void; - listByInstanceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByServerNext(nextPageLink: string, callback: ServiceCallback): void; + listByServerNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } diff --git a/lib/services/sqlManagement2/lib/operations/index.js b/lib/services/sqlManagement2/lib/operations/index.js index c2c540a63f..12ed7a8ee9 100644 --- a/lib/services/sqlManagement2/lib/operations/index.js +++ b/lib/services/sqlManagement2/lib/operations/index.js @@ -65,6 +65,7 @@ exports.JobTargetGroups = require('./jobTargetGroups'); exports.JobVersions = require('./jobVersions'); exports.LongTermRetentionBackups = require('./longTermRetentionBackups'); exports.BackupLongTermRetentionPolicies = require('./backupLongTermRetentionPolicies'); +exports.ManagedBackupShortTermRetentionPolicies = require('./managedBackupShortTermRetentionPolicies'); exports.ManagedDatabases = require('./managedDatabases'); exports.ServerAutomaticTuningOperations = require('./serverAutomaticTuningOperations'); exports.ServerDnsAliases = require('./serverDnsAliases'); @@ -83,3 +84,5 @@ exports.TdeCertificates = require('./tdeCertificates'); exports.ManagedInstanceTdeCertificates = require('./managedInstanceTdeCertificates'); exports.ManagedInstanceKeys = require('./managedInstanceKeys'); exports.ManagedInstanceEncryptionProtectors = require('./managedInstanceEncryptionProtectors'); +exports.ManagedInstanceVulnerabilityAssessments = require('./managedInstanceVulnerabilityAssessments'); +exports.ServerVulnerabilityAssessments = require('./serverVulnerabilityAssessments'); diff --git a/lib/services/sqlManagement2/lib/operations/managedBackupShortTermRetentionPolicies.js b/lib/services/sqlManagement2/lib/operations/managedBackupShortTermRetentionPolicies.js new file mode 100644 index 0000000000..4fca1f7421 --- /dev/null +++ b/lib/services/sqlManagement2/lib/operations/managedBackupShortTermRetentionPolicies.js @@ -0,0 +1,1697 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const WebResource = msRest.WebResource; + +/** + * Gets a managed database's short term retention policy. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedBackupShortTermRetentionPolicy} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _get(resourceGroupName, managedInstanceName, databaseName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let policyName = 'default'; + let apiVersion = '2017-03-01-preview'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (managedInstanceName === null || managedInstanceName === undefined || typeof managedInstanceName.valueOf() !== 'string') { + throw new Error('managedInstanceName cannot be null or undefined and it must be of type string.'); + } + if (databaseName === null || databaseName === undefined || typeof databaseName.valueOf() !== 'string') { + throw new Error('databaseName cannot be null or undefined and it must be of type string.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{managedInstanceName}', encodeURIComponent(managedInstanceName)); + requestUrl = requestUrl.replace('{databaseName}', encodeURIComponent(databaseName)); + requestUrl = requestUrl.replace('{policyName}', encodeURIComponent(policyName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ManagedBackupShortTermRetentionPolicy']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + + +/** + * Updates a managed database's short term retention policy. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedBackupShortTermRetentionPolicy} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _createOrUpdate(resourceGroupName, managedInstanceName, databaseName, parameters, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + + if (!callback) { + throw new Error('callback cannot be null.'); + } + + // Send request + this.beginCreateOrUpdate(resourceGroupName, managedInstanceName, databaseName, parameters, options, (err, parsedResult, httpRequest, response) => { + if (err) return callback(err); + + let initialResult = new msRest.HttpOperationResponse(); + initialResult.request = httpRequest; + initialResult.response = response; + initialResult.body = response.body; + client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { + if (err) return callback(err); + + // Create Result + let result = null; + + httpRequest = pollingResult.request; + response = pollingResult.response; + let responseBody = pollingResult.body; + if (responseBody === '') responseBody = null; + + // Deserialize Response + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ManagedBackupShortTermRetentionPolicy']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + + return callback(null, result, httpRequest, response); + }); + }); +} + + +/** + * Updates a managed database's short term retention policy. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedBackupShortTermRetentionPolicy} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _update(resourceGroupName, managedInstanceName, databaseName, parameters, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + + if (!callback) { + throw new Error('callback cannot be null.'); + } + + // Send request + this.beginUpdate(resourceGroupName, managedInstanceName, databaseName, parameters, options, (err, parsedResult, httpRequest, response) => { + if (err) return callback(err); + + let initialResult = new msRest.HttpOperationResponse(); + initialResult.request = httpRequest; + initialResult.response = response; + initialResult.body = response.body; + client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { + if (err) return callback(err); + + // Create Result + let result = null; + + httpRequest = pollingResult.request; + response = pollingResult.response; + let responseBody = pollingResult.body; + if (responseBody === '') responseBody = null; + + // Deserialize Response + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ManagedBackupShortTermRetentionPolicy']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + + return callback(null, result, httpRequest, response); + }); + }); +} + +/** + * Gets a managed database's short term retention policy list. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link + * ManagedBackupShortTermRetentionPolicyListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listByDatabase(resourceGroupName, managedInstanceName, databaseName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-03-01-preview'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (managedInstanceName === null || managedInstanceName === undefined || typeof managedInstanceName.valueOf() !== 'string') { + throw new Error('managedInstanceName cannot be null or undefined and it must be of type string.'); + } + if (databaseName === null || databaseName === undefined || typeof databaseName.valueOf() !== 'string') { + throw new Error('databaseName cannot be null or undefined and it must be of type string.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{managedInstanceName}', encodeURIComponent(managedInstanceName)); + requestUrl = requestUrl.replace('{databaseName}', encodeURIComponent(databaseName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ManagedBackupShortTermRetentionPolicyListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Updates a managed database's short term retention policy. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedBackupShortTermRetentionPolicy} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _beginCreateOrUpdate(resourceGroupName, managedInstanceName, databaseName, parameters, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let policyName = 'default'; + let apiVersion = '2017-03-01-preview'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (managedInstanceName === null || managedInstanceName === undefined || typeof managedInstanceName.valueOf() !== 'string') { + throw new Error('managedInstanceName cannot be null or undefined and it must be of type string.'); + } + if (databaseName === null || databaseName === undefined || typeof databaseName.valueOf() !== 'string') { + throw new Error('databaseName cannot be null or undefined and it must be of type string.'); + } + if (parameters === null || parameters === undefined) { + throw new Error('parameters cannot be null or undefined.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{managedInstanceName}', encodeURIComponent(managedInstanceName)); + requestUrl = requestUrl.replace('{databaseName}', encodeURIComponent(databaseName)); + requestUrl = requestUrl.replace('{policyName}', encodeURIComponent(policyName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'PUT'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + let requestModelMapper = new client.models['ManagedBackupShortTermRetentionPolicy']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(parameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 202) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ManagedBackupShortTermRetentionPolicy']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Updates a managed database's short term retention policy. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedBackupShortTermRetentionPolicy} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _beginUpdate(resourceGroupName, managedInstanceName, databaseName, parameters, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let policyName = 'default'; + let apiVersion = '2017-03-01-preview'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (managedInstanceName === null || managedInstanceName === undefined || typeof managedInstanceName.valueOf() !== 'string') { + throw new Error('managedInstanceName cannot be null or undefined and it must be of type string.'); + } + if (databaseName === null || databaseName === undefined || typeof databaseName.valueOf() !== 'string') { + throw new Error('databaseName cannot be null or undefined and it must be of type string.'); + } + if (parameters === null || parameters === undefined) { + throw new Error('parameters cannot be null or undefined.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{managedInstanceName}', encodeURIComponent(managedInstanceName)); + requestUrl = requestUrl.replace('{databaseName}', encodeURIComponent(databaseName)); + requestUrl = requestUrl.replace('{policyName}', encodeURIComponent(policyName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'PATCH'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + let requestModelMapper = new client.models['ManagedBackupShortTermRetentionPolicy']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(parameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 202) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ManagedBackupShortTermRetentionPolicy']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets a managed database's short term retention policy list. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link + * ManagedBackupShortTermRetentionPolicyListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listByDatabaseNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ManagedBackupShortTermRetentionPolicyListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** Class representing a ManagedBackupShortTermRetentionPolicies. */ +class ManagedBackupShortTermRetentionPolicies { + /** + * Create a ManagedBackupShortTermRetentionPolicies. + * @param {SqlManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._get = _get; + this._createOrUpdate = _createOrUpdate; + this._update = _update; + this._listByDatabase = _listByDatabase; + this._beginCreateOrUpdate = _beginCreateOrUpdate; + this._beginUpdate = _beginUpdate; + this._listByDatabaseNext = _listByDatabaseNext; + } + + /** + * Gets a managed database's short term retention policy. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName, managedInstanceName, databaseName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, managedInstanceName, databaseName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets a managed database's short term retention policy. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ManagedBackupShortTermRetentionPolicy} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedBackupShortTermRetentionPolicy} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName, managedInstanceName, databaseName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._get(resourceGroupName, managedInstanceName, databaseName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, managedInstanceName, databaseName, options, optionalCallback); + } + } + + /** + * Updates a managed database's short term retention policy. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName, managedInstanceName, databaseName, parameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._createOrUpdate(resourceGroupName, managedInstanceName, databaseName, parameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Updates a managed database's short term retention policy. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ManagedBackupShortTermRetentionPolicy} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedBackupShortTermRetentionPolicy} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + createOrUpdate(resourceGroupName, managedInstanceName, databaseName, parameters, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._createOrUpdate(resourceGroupName, managedInstanceName, databaseName, parameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._createOrUpdate(resourceGroupName, managedInstanceName, databaseName, parameters, options, optionalCallback); + } + } + + /** + * Updates a managed database's short term retention policy. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + updateWithHttpOperationResponse(resourceGroupName, managedInstanceName, databaseName, parameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._update(resourceGroupName, managedInstanceName, databaseName, parameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Updates a managed database's short term retention policy. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ManagedBackupShortTermRetentionPolicy} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedBackupShortTermRetentionPolicy} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + update(resourceGroupName, managedInstanceName, databaseName, parameters, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._update(resourceGroupName, managedInstanceName, databaseName, parameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._update(resourceGroupName, managedInstanceName, databaseName, parameters, options, optionalCallback); + } + } + + /** + * Gets a managed database's short term retention policy list. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + listByDatabaseWithHttpOperationResponse(resourceGroupName, managedInstanceName, databaseName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByDatabase(resourceGroupName, managedInstanceName, databaseName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets a managed database's short term retention policy list. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ManagedBackupShortTermRetentionPolicyListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link + * ManagedBackupShortTermRetentionPolicyListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listByDatabase(resourceGroupName, managedInstanceName, databaseName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listByDatabase(resourceGroupName, managedInstanceName, databaseName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByDatabase(resourceGroupName, managedInstanceName, databaseName, options, optionalCallback); + } + } + + /** + * Updates a managed database's short term retention policy. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName, managedInstanceName, databaseName, parameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._beginCreateOrUpdate(resourceGroupName, managedInstanceName, databaseName, parameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Updates a managed database's short term retention policy. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ManagedBackupShortTermRetentionPolicy} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedBackupShortTermRetentionPolicy} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + beginCreateOrUpdate(resourceGroupName, managedInstanceName, databaseName, parameters, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._beginCreateOrUpdate(resourceGroupName, managedInstanceName, databaseName, parameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._beginCreateOrUpdate(resourceGroupName, managedInstanceName, databaseName, parameters, options, optionalCallback); + } + } + + /** + * Updates a managed database's short term retention policy. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + beginUpdateWithHttpOperationResponse(resourceGroupName, managedInstanceName, databaseName, parameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._beginUpdate(resourceGroupName, managedInstanceName, databaseName, parameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Updates a managed database's short term retention policy. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance. + * + * @param {string} databaseName The name of the database. + * + * @param {object} parameters The short term retention policy info. + * + * @param {number} [parameters.retentionDays] The backup retention period in + * days. This is how many days Point-in-Time Restore will be supported. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ManagedBackupShortTermRetentionPolicy} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedBackupShortTermRetentionPolicy} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + beginUpdate(resourceGroupName, managedInstanceName, databaseName, parameters, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._beginUpdate(resourceGroupName, managedInstanceName, databaseName, parameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._beginUpdate(resourceGroupName, managedInstanceName, databaseName, parameters, options, optionalCallback); + } + } + + /** + * Gets a managed database's short term retention policy list. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + listByDatabaseNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByDatabaseNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets a managed database's short term retention policy list. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ManagedBackupShortTermRetentionPolicyListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link + * ManagedBackupShortTermRetentionPolicyListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listByDatabaseNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listByDatabaseNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByDatabaseNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = ManagedBackupShortTermRetentionPolicies; diff --git a/lib/services/sqlManagement2/lib/operations/managedInstanceVulnerabilityAssessments.js b/lib/services/sqlManagement2/lib/operations/managedInstanceVulnerabilityAssessments.js new file mode 100644 index 0000000000..ed448e5c1c --- /dev/null +++ b/lib/services/sqlManagement2/lib/operations/managedInstanceVulnerabilityAssessments.js @@ -0,0 +1,1314 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const WebResource = msRest.WebResource; + +/** + * Gets the managed instance's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessment is defined. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedInstanceVulnerabilityAssessment} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _get(resourceGroupName, managedInstanceName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let vulnerabilityAssessmentName = 'default'; + let apiVersion = '2018-06-01-preview'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (managedInstanceName === null || managedInstanceName === undefined || typeof managedInstanceName.valueOf() !== 'string') { + throw new Error('managedInstanceName cannot be null or undefined and it must be of type string.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{managedInstanceName}', encodeURIComponent(managedInstanceName)); + requestUrl = requestUrl.replace('{vulnerabilityAssessmentName}', encodeURIComponent(vulnerabilityAssessmentName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ManagedInstanceVulnerabilityAssessment']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Creates or updates the managed instance's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessment is defined. + * + * @param {object} parameters The requested resource. + * + * @param {string} parameters.storageContainerPath A blob storage container + * path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). + * + * @param {string} [parameters.storageContainerSasKey] A shared access + * signature (SAS Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. + * + * @param {string} [parameters.storageAccountAccessKey] Specifies the + * identifier key of the storage account for vulnerability assessment scan + * results. If 'StorageContainerSasKey' isn't specified, + * storageAccountAccessKey is required. + * + * @param {object} [parameters.recurringScans] The recurring scans settings + * + * @param {boolean} [parameters.recurringScans.isEnabled] Recurring scans + * state. + * + * @param {boolean} [parameters.recurringScans.emailSubscriptionAdmins] + * Specifies that the schedule scan notification will be is sent to the + * subscription administrators. + * + * @param {array} [parameters.recurringScans.emails] Specifies an array of + * e-mail addresses to which the scan notification is sent. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedInstanceVulnerabilityAssessment} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _createOrUpdate(resourceGroupName, managedInstanceName, parameters, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let vulnerabilityAssessmentName = 'default'; + let apiVersion = '2018-06-01-preview'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (managedInstanceName === null || managedInstanceName === undefined || typeof managedInstanceName.valueOf() !== 'string') { + throw new Error('managedInstanceName cannot be null or undefined and it must be of type string.'); + } + if (parameters === null || parameters === undefined) { + throw new Error('parameters cannot be null or undefined.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{managedInstanceName}', encodeURIComponent(managedInstanceName)); + requestUrl = requestUrl.replace('{vulnerabilityAssessmentName}', encodeURIComponent(vulnerabilityAssessmentName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'PUT'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + let requestModelMapper = new client.models['ManagedInstanceVulnerabilityAssessment']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(parameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 201) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ManagedInstanceVulnerabilityAssessment']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + // Deserialize Response + if (statusCode === 201) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ManagedInstanceVulnerabilityAssessment']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError1 = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError1.request = msRest.stripRequest(httpRequest); + deserializationError1.response = msRest.stripResponse(response); + return callback(deserializationError1); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Removes the managed instance's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessment is defined. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _deleteMethod(resourceGroupName, managedInstanceName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let vulnerabilityAssessmentName = 'default'; + let apiVersion = '2018-06-01-preview'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (managedInstanceName === null || managedInstanceName === undefined || typeof managedInstanceName.valueOf() !== 'string') { + throw new Error('managedInstanceName cannot be null or undefined and it must be of type string.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{managedInstanceName}', encodeURIComponent(managedInstanceName)); + requestUrl = requestUrl.replace('{vulnerabilityAssessmentName}', encodeURIComponent(vulnerabilityAssessmentName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'DELETE'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets the managed instance's vulnerability assessment policies. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessments is defined. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link + * ManagedInstanceVulnerabilityAssessmentListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listByInstance(resourceGroupName, managedInstanceName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2018-06-01-preview'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (managedInstanceName === null || managedInstanceName === undefined || typeof managedInstanceName.valueOf() !== 'string') { + throw new Error('managedInstanceName cannot be null or undefined and it must be of type string.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{managedInstanceName}', encodeURIComponent(managedInstanceName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ManagedInstanceVulnerabilityAssessmentListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets the managed instance's vulnerability assessment policies. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link + * ManagedInstanceVulnerabilityAssessmentListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listByInstanceNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ManagedInstanceVulnerabilityAssessmentListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** Class representing a ManagedInstanceVulnerabilityAssessments. */ +class ManagedInstanceVulnerabilityAssessments { + /** + * Create a ManagedInstanceVulnerabilityAssessments. + * @param {SqlManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._get = _get; + this._createOrUpdate = _createOrUpdate; + this._deleteMethod = _deleteMethod; + this._listByInstance = _listByInstance; + this._listByInstanceNext = _listByInstanceNext; + } + + /** + * Gets the managed instance's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessment is defined. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName, managedInstanceName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, managedInstanceName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets the managed instance's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessment is defined. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ManagedInstanceVulnerabilityAssessment} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedInstanceVulnerabilityAssessment} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName, managedInstanceName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._get(resourceGroupName, managedInstanceName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, managedInstanceName, options, optionalCallback); + } + } + + /** + * Creates or updates the managed instance's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessment is defined. + * + * @param {object} parameters The requested resource. + * + * @param {string} parameters.storageContainerPath A blob storage container + * path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). + * + * @param {string} [parameters.storageContainerSasKey] A shared access + * signature (SAS Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. + * + * @param {string} [parameters.storageAccountAccessKey] Specifies the + * identifier key of the storage account for vulnerability assessment scan + * results. If 'StorageContainerSasKey' isn't specified, + * storageAccountAccessKey is required. + * + * @param {object} [parameters.recurringScans] The recurring scans settings + * + * @param {boolean} [parameters.recurringScans.isEnabled] Recurring scans + * state. + * + * @param {boolean} [parameters.recurringScans.emailSubscriptionAdmins] + * Specifies that the schedule scan notification will be is sent to the + * subscription administrators. + * + * @param {array} [parameters.recurringScans.emails] Specifies an array of + * e-mail addresses to which the scan notification is sent. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName, managedInstanceName, parameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._createOrUpdate(resourceGroupName, managedInstanceName, parameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Creates or updates the managed instance's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessment is defined. + * + * @param {object} parameters The requested resource. + * + * @param {string} parameters.storageContainerPath A blob storage container + * path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). + * + * @param {string} [parameters.storageContainerSasKey] A shared access + * signature (SAS Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. + * + * @param {string} [parameters.storageAccountAccessKey] Specifies the + * identifier key of the storage account for vulnerability assessment scan + * results. If 'StorageContainerSasKey' isn't specified, + * storageAccountAccessKey is required. + * + * @param {object} [parameters.recurringScans] The recurring scans settings + * + * @param {boolean} [parameters.recurringScans.isEnabled] Recurring scans + * state. + * + * @param {boolean} [parameters.recurringScans.emailSubscriptionAdmins] + * Specifies that the schedule scan notification will be is sent to the + * subscription administrators. + * + * @param {array} [parameters.recurringScans.emails] Specifies an array of + * e-mail addresses to which the scan notification is sent. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ManagedInstanceVulnerabilityAssessment} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedInstanceVulnerabilityAssessment} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + createOrUpdate(resourceGroupName, managedInstanceName, parameters, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._createOrUpdate(resourceGroupName, managedInstanceName, parameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._createOrUpdate(resourceGroupName, managedInstanceName, parameters, options, optionalCallback); + } + } + + /** + * Removes the managed instance's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessment is defined. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName, managedInstanceName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._deleteMethod(resourceGroupName, managedInstanceName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Removes the managed instance's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessment is defined. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + deleteMethod(resourceGroupName, managedInstanceName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._deleteMethod(resourceGroupName, managedInstanceName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._deleteMethod(resourceGroupName, managedInstanceName, options, optionalCallback); + } + } + + /** + * Gets the managed instance's vulnerability assessment policies. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessments is defined. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + listByInstanceWithHttpOperationResponse(resourceGroupName, managedInstanceName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByInstance(resourceGroupName, managedInstanceName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets the managed instance's vulnerability assessment policies. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} managedInstanceName The name of the managed instance for + * which the vulnerability assessments is defined. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ManagedInstanceVulnerabilityAssessmentListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link + * ManagedInstanceVulnerabilityAssessmentListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listByInstance(resourceGroupName, managedInstanceName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listByInstance(resourceGroupName, managedInstanceName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByInstance(resourceGroupName, managedInstanceName, options, optionalCallback); + } + } + + /** + * Gets the managed instance's vulnerability assessment policies. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + listByInstanceNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByInstanceNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets the managed instance's vulnerability assessment policies. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ManagedInstanceVulnerabilityAssessmentListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link + * ManagedInstanceVulnerabilityAssessmentListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listByInstanceNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listByInstanceNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByInstanceNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = ManagedInstanceVulnerabilityAssessments; diff --git a/lib/services/sqlManagement2/lib/operations/managedInstances.js b/lib/services/sqlManagement2/lib/operations/managedInstances.js index 4490782668..cd86297f07 100644 --- a/lib/services/sqlManagement2/lib/operations/managedInstances.js +++ b/lib/services/sqlManagement2/lib/operations/managedInstances.js @@ -488,6 +488,8 @@ function _get(resourceGroupName, managedInstanceName, options, callback) { * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -680,6 +682,8 @@ function _deleteMethod(resourceGroupName, managedInstanceName, options, callback * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -812,6 +816,8 @@ function _update(resourceGroupName, managedInstanceName, parameters, options, ca * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -1165,6 +1171,8 @@ function _beginDeleteMethod(resourceGroupName, managedInstanceName, options, cal * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -1913,6 +1921,8 @@ class ManagedInstances { * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -2002,6 +2012,8 @@ class ManagedInstances { * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -2194,6 +2206,8 @@ class ManagedInstances { * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -2273,6 +2287,8 @@ class ManagedInstances { * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -2382,6 +2398,8 @@ class ManagedInstances { * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -2471,6 +2489,8 @@ class ManagedInstances { * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -2663,6 +2683,8 @@ class ManagedInstances { * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. @@ -2742,6 +2764,8 @@ class ManagedInstances { * * @param {number} [parameters.storageSizeInGB] The maximum storage size in GB. * + * @param {string} [parameters.collation] Collation of the managed instance. + * * @param {string} [parameters.dnsZonePartner] The resource id of another * managed instance whose DNS zone this managed instance will share after * creation. diff --git a/lib/services/sqlManagement2/lib/operations/serverVulnerabilityAssessments.js b/lib/services/sqlManagement2/lib/operations/serverVulnerabilityAssessments.js new file mode 100644 index 0000000000..c609b34893 --- /dev/null +++ b/lib/services/sqlManagement2/lib/operations/serverVulnerabilityAssessments.js @@ -0,0 +1,1307 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const WebResource = msRest.WebResource; + +/** + * Gets the server's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server for which the + * vulnerability assessment is defined. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ServerVulnerabilityAssessment} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _get(resourceGroupName, serverName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let vulnerabilityAssessmentName = 'default'; + let apiVersion = '2018-06-01-preview'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (serverName === null || serverName === undefined || typeof serverName.valueOf() !== 'string') { + throw new Error('serverName cannot be null or undefined and it must be of type string.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{serverName}', encodeURIComponent(serverName)); + requestUrl = requestUrl.replace('{vulnerabilityAssessmentName}', encodeURIComponent(vulnerabilityAssessmentName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ServerVulnerabilityAssessment']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Creates or updates the server's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server for which the + * vulnerability assessment is defined. + * + * @param {object} parameters The requested resource. + * + * @param {string} parameters.storageContainerPath A blob storage container + * path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). + * + * @param {string} [parameters.storageContainerSasKey] A shared access + * signature (SAS Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. + * + * @param {string} [parameters.storageAccountAccessKey] Specifies the + * identifier key of the storage account for vulnerability assessment scan + * results. If 'StorageContainerSasKey' isn't specified, + * storageAccountAccessKey is required. + * + * @param {object} [parameters.recurringScans] The recurring scans settings + * + * @param {boolean} [parameters.recurringScans.isEnabled] Recurring scans + * state. + * + * @param {boolean} [parameters.recurringScans.emailSubscriptionAdmins] + * Specifies that the schedule scan notification will be is sent to the + * subscription administrators. + * + * @param {array} [parameters.recurringScans.emails] Specifies an array of + * e-mail addresses to which the scan notification is sent. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ServerVulnerabilityAssessment} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _createOrUpdate(resourceGroupName, serverName, parameters, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let vulnerabilityAssessmentName = 'default'; + let apiVersion = '2018-06-01-preview'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (serverName === null || serverName === undefined || typeof serverName.valueOf() !== 'string') { + throw new Error('serverName cannot be null or undefined and it must be of type string.'); + } + if (parameters === null || parameters === undefined) { + throw new Error('parameters cannot be null or undefined.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{serverName}', encodeURIComponent(serverName)); + requestUrl = requestUrl.replace('{vulnerabilityAssessmentName}', encodeURIComponent(vulnerabilityAssessmentName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'PUT'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + let requestModelMapper = new client.models['ServerVulnerabilityAssessment']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(parameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 201) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ServerVulnerabilityAssessment']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + // Deserialize Response + if (statusCode === 201) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ServerVulnerabilityAssessment']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError1 = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError1.request = msRest.stripRequest(httpRequest); + deserializationError1.response = msRest.stripResponse(response); + return callback(deserializationError1); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Removes the server's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server for which the + * vulnerability assessment is defined. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _deleteMethod(resourceGroupName, serverName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let vulnerabilityAssessmentName = 'default'; + let apiVersion = '2018-06-01-preview'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (serverName === null || serverName === undefined || typeof serverName.valueOf() !== 'string') { + throw new Error('serverName cannot be null or undefined and it must be of type string.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{serverName}', encodeURIComponent(serverName)); + requestUrl = requestUrl.replace('{vulnerabilityAssessmentName}', encodeURIComponent(vulnerabilityAssessmentName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'DELETE'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Lists the vulnerability assessment policies associated with a server. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ServerVulnerabilityAssessmentListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listByServer(resourceGroupName, serverName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2018-06-01-preview'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (serverName === null || serverName === undefined || typeof serverName.valueOf() !== 'string') { + throw new Error('serverName cannot be null or undefined and it must be of type string.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{serverName}', encodeURIComponent(serverName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ServerVulnerabilityAssessmentListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Lists the vulnerability assessment policies associated with a server. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ServerVulnerabilityAssessmentListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listByServerNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ServerVulnerabilityAssessmentListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** Class representing a ServerVulnerabilityAssessments. */ +class ServerVulnerabilityAssessments { + /** + * Create a ServerVulnerabilityAssessments. + * @param {SqlManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._get = _get; + this._createOrUpdate = _createOrUpdate; + this._deleteMethod = _deleteMethod; + this._listByServer = _listByServer; + this._listByServerNext = _listByServerNext; + } + + /** + * Gets the server's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server for which the + * vulnerability assessment is defined. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName, serverName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, serverName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets the server's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server for which the + * vulnerability assessment is defined. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ServerVulnerabilityAssessment} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ServerVulnerabilityAssessment} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName, serverName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._get(resourceGroupName, serverName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, serverName, options, optionalCallback); + } + } + + /** + * Creates or updates the server's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server for which the + * vulnerability assessment is defined. + * + * @param {object} parameters The requested resource. + * + * @param {string} parameters.storageContainerPath A blob storage container + * path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). + * + * @param {string} [parameters.storageContainerSasKey] A shared access + * signature (SAS Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. + * + * @param {string} [parameters.storageAccountAccessKey] Specifies the + * identifier key of the storage account for vulnerability assessment scan + * results. If 'StorageContainerSasKey' isn't specified, + * storageAccountAccessKey is required. + * + * @param {object} [parameters.recurringScans] The recurring scans settings + * + * @param {boolean} [parameters.recurringScans.isEnabled] Recurring scans + * state. + * + * @param {boolean} [parameters.recurringScans.emailSubscriptionAdmins] + * Specifies that the schedule scan notification will be is sent to the + * subscription administrators. + * + * @param {array} [parameters.recurringScans.emails] Specifies an array of + * e-mail addresses to which the scan notification is sent. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName, serverName, parameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._createOrUpdate(resourceGroupName, serverName, parameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Creates or updates the server's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server for which the + * vulnerability assessment is defined. + * + * @param {object} parameters The requested resource. + * + * @param {string} parameters.storageContainerPath A blob storage container + * path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). + * + * @param {string} [parameters.storageContainerSasKey] A shared access + * signature (SAS Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. + * + * @param {string} [parameters.storageAccountAccessKey] Specifies the + * identifier key of the storage account for vulnerability assessment scan + * results. If 'StorageContainerSasKey' isn't specified, + * storageAccountAccessKey is required. + * + * @param {object} [parameters.recurringScans] The recurring scans settings + * + * @param {boolean} [parameters.recurringScans.isEnabled] Recurring scans + * state. + * + * @param {boolean} [parameters.recurringScans.emailSubscriptionAdmins] + * Specifies that the schedule scan notification will be is sent to the + * subscription administrators. + * + * @param {array} [parameters.recurringScans.emails] Specifies an array of + * e-mail addresses to which the scan notification is sent. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ServerVulnerabilityAssessment} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ServerVulnerabilityAssessment} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + createOrUpdate(resourceGroupName, serverName, parameters, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._createOrUpdate(resourceGroupName, serverName, parameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._createOrUpdate(resourceGroupName, serverName, parameters, options, optionalCallback); + } + } + + /** + * Removes the server's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server for which the + * vulnerability assessment is defined. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName, serverName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._deleteMethod(resourceGroupName, serverName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Removes the server's vulnerability assessment. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server for which the + * vulnerability assessment is defined. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + deleteMethod(resourceGroupName, serverName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._deleteMethod(resourceGroupName, serverName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._deleteMethod(resourceGroupName, serverName, options, optionalCallback); + } + } + + /** + * Lists the vulnerability assessment policies associated with a server. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + listByServerWithHttpOperationResponse(resourceGroupName, serverName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByServer(resourceGroupName, serverName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Lists the vulnerability assessment policies associated with a server. + * + * @param {string} resourceGroupName The name of the resource group that + * contains the resource. You can obtain this value from the Azure Resource + * Manager API or the portal. + * + * @param {string} serverName The name of the server. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ServerVulnerabilityAssessmentListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ServerVulnerabilityAssessmentListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listByServer(resourceGroupName, serverName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listByServer(resourceGroupName, serverName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByServer(resourceGroupName, serverName, options, optionalCallback); + } + } + + /** + * Lists the vulnerability assessment policies associated with a server. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + listByServerNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByServerNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Lists the vulnerability assessment policies associated with a server. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ServerVulnerabilityAssessmentListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ServerVulnerabilityAssessmentListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listByServerNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listByServerNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByServerNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = ServerVulnerabilityAssessments; diff --git a/lib/services/sqlManagement2/lib/sqlManagementClient.d.ts b/lib/services/sqlManagement2/lib/sqlManagementClient.d.ts index 30128928b8..6293daea81 100644 --- a/lib/services/sqlManagement2/lib/sqlManagementClient.d.ts +++ b/lib/services/sqlManagement2/lib/sqlManagementClient.d.ts @@ -105,6 +105,7 @@ export default class SqlManagementClient extends AzureServiceClient { jobVersions: operations.JobVersions; longTermRetentionBackups: operations.LongTermRetentionBackups; backupLongTermRetentionPolicies: operations.BackupLongTermRetentionPolicies; + managedBackupShortTermRetentionPolicies: operations.ManagedBackupShortTermRetentionPolicies; managedDatabases: operations.ManagedDatabases; serverAutomaticTuningOperations: operations.ServerAutomaticTuningOperations; serverDnsAliases: operations.ServerDnsAliases; @@ -123,6 +124,8 @@ export default class SqlManagementClient extends AzureServiceClient { managedInstanceTdeCertificates: operations.ManagedInstanceTdeCertificates; managedInstanceKeys: operations.ManagedInstanceKeys; managedInstanceEncryptionProtectors: operations.ManagedInstanceEncryptionProtectors; + managedInstanceVulnerabilityAssessments: operations.ManagedInstanceVulnerabilityAssessments; + serverVulnerabilityAssessments: operations.ServerVulnerabilityAssessments; } export { SqlManagementClient, models as SqlManagementModels }; diff --git a/lib/services/sqlManagement2/lib/sqlManagementClient.js b/lib/services/sqlManagement2/lib/sqlManagementClient.js index 429f69aa57..68f69d3ad1 100644 --- a/lib/services/sqlManagement2/lib/sqlManagementClient.js +++ b/lib/services/sqlManagement2/lib/sqlManagementClient.js @@ -122,6 +122,7 @@ class SqlManagementClient extends ServiceClient { this.jobVersions = new operations.JobVersions(this); this.longTermRetentionBackups = new operations.LongTermRetentionBackups(this); this.backupLongTermRetentionPolicies = new operations.BackupLongTermRetentionPolicies(this); + this.managedBackupShortTermRetentionPolicies = new operations.ManagedBackupShortTermRetentionPolicies(this); this.managedDatabases = new operations.ManagedDatabases(this); this.serverAutomaticTuningOperations = new operations.ServerAutomaticTuningOperations(this); this.serverDnsAliases = new operations.ServerDnsAliases(this); @@ -140,6 +141,8 @@ class SqlManagementClient extends ServiceClient { this.managedInstanceTdeCertificates = new operations.ManagedInstanceTdeCertificates(this); this.managedInstanceKeys = new operations.ManagedInstanceKeys(this); this.managedInstanceEncryptionProtectors = new operations.ManagedInstanceEncryptionProtectors(this); + this.managedInstanceVulnerabilityAssessments = new operations.ManagedInstanceVulnerabilityAssessments(this); + this.serverVulnerabilityAssessments = new operations.ServerVulnerabilityAssessments(this); this.models = models; msRest.addSerializationMixin(this); }