diff --git a/lib/services/sqlManagement2/lib/models/index.d.ts b/lib/services/sqlManagement2/lib/models/index.d.ts index 5b827998f1..c786230293 100644 --- a/lib/services/sqlManagement2/lib/models/index.d.ts +++ b/lib/services/sqlManagement2/lib/models/index.d.ts @@ -2901,8 +2901,8 @@ export interface CompleteDatabaseRestoreDefinition { * A managed database resource. * * @property {string} [collation] Collation of the managed database. - * @property {string} [status] Status for the database. Possible values - * include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible' + * @property {string} [status] Status of the database. Possible values include: + * 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', 'Updating' * @property {date} [creationDate] Creation date of the database. * @property {date} [earliestRestorePoint] Earliest restore point in time for * point in time restore. @@ -2918,18 +2918,24 @@ export interface CompleteDatabaseRestoreDefinition { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * @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. * @property {string} [sourceDatabaseId] The resource identifier of the source * database associated with create operation of this database. + * @property {string} [restorableDroppedDatabaseId] The restorable dropped + * database resource id to restore when creating this database. * @property {string} [storageContainerSasToken] Conditional. If createMode is * RestoreExternalBackup, this value is required. Specifies the storage * container sas token. * @property {string} [failoverGroupId] Instance Failover Group resource * identifier that this managed database belongs to. + * @property {string} [recoverableDatabaseId] The resource identifier of the + * recoverable database associated with create operation of this database. */ export interface ManagedDatabase extends TrackedResource { collation?: string; @@ -2942,8 +2948,10 @@ export interface ManagedDatabase extends TrackedResource { createMode?: string; storageContainerUri?: string; sourceDatabaseId?: string; + restorableDroppedDatabaseId?: string; storageContainerSasToken?: string; readonly failoverGroupId?: string; + recoverableDatabaseId?: string; } /** @@ -2953,8 +2961,8 @@ export interface ManagedDatabase extends TrackedResource { * An managed database update. * * @property {string} [collation] Collation of the managed database. - * @property {string} [status] Status for the database. Possible values - * include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible' + * @property {string} [status] Status of the database. Possible values include: + * 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', 'Updating' * @property {date} [creationDate] Creation date of the database. * @property {date} [earliestRestorePoint] Earliest restore point in time for * point in time restore. @@ -2970,18 +2978,24 @@ export interface ManagedDatabase extends TrackedResource { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * @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. * @property {string} [sourceDatabaseId] The resource identifier of the source * database associated with create operation of this database. + * @property {string} [restorableDroppedDatabaseId] The restorable dropped + * database resource id to restore when creating this database. * @property {string} [storageContainerSasToken] Conditional. If createMode is * RestoreExternalBackup, this value is required. Specifies the storage * container sas token. * @property {string} [failoverGroupId] Instance Failover Group resource * identifier that this managed database belongs to. + * @property {string} [recoverableDatabaseId] The resource identifier of the + * recoverable database associated with create operation of this database. * @property {object} [tags] Resource tags. */ export interface ManagedDatabaseUpdate { @@ -2995,8 +3009,10 @@ export interface ManagedDatabaseUpdate { createMode?: string; storageContainerUri?: string; sourceDatabaseId?: string; + restorableDroppedDatabaseId?: string; storageContainerSasToken?: string; readonly failoverGroupId?: string; + recoverableDatabaseId?: string; tags?: { [propertyName: string]: string }; } diff --git a/lib/services/sqlManagement2/lib/models/managedDatabase.js b/lib/services/sqlManagement2/lib/models/managedDatabase.js index d3ec0cf277..0ff8229728 100644 --- a/lib/services/sqlManagement2/lib/models/managedDatabase.js +++ b/lib/services/sqlManagement2/lib/models/managedDatabase.js @@ -21,8 +21,9 @@ class ManagedDatabase extends models['TrackedResource'] { /** * Create a ManagedDatabase. * @property {string} [collation] Collation of the managed database. - * @property {string} [status] Status for the database. Possible values - * include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible' + * @property {string} [status] Status of the database. Possible values + * include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', + * 'Updating' * @property {date} [creationDate] Creation date of the database. * @property {date} [earliestRestorePoint] Earliest restore point in time for * point in time restore. @@ -39,18 +40,25 @@ class ManagedDatabase extends models['TrackedResource'] { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database + * by restoring a geo-replicated backup. RecoverableDatabaseId must be + * specified as the recoverable database resource ID to restore. Possible + * values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', + * 'Recovery' * @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. * @property {string} [sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. + * @property {string} [restorableDroppedDatabaseId] The restorable dropped + * database resource id to restore when creating this database. * @property {string} [storageContainerSasToken] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the storage * container sas token. * @property {string} [failoverGroupId] Instance Failover Group resource * identifier that this managed database belongs to. + * @property {string} [recoverableDatabaseId] The resource identifier of the + * recoverable database associated with create operation of this database. */ constructor() { super(); @@ -189,6 +197,13 @@ class ManagedDatabase extends models['TrackedResource'] { name: 'String' } }, + restorableDroppedDatabaseId: { + required: false, + serializedName: 'properties.restorableDroppedDatabaseId', + type: { + name: 'String' + } + }, storageContainerSasToken: { required: false, serializedName: 'properties.storageContainerSasToken', @@ -203,6 +218,13 @@ class ManagedDatabase extends models['TrackedResource'] { type: { name: 'String' } + }, + recoverableDatabaseId: { + required: false, + serializedName: 'properties.recoverableDatabaseId', + type: { + name: 'String' + } } } } diff --git a/lib/services/sqlManagement2/lib/models/managedDatabaseUpdate.js b/lib/services/sqlManagement2/lib/models/managedDatabaseUpdate.js index f2f030c378..95d93fe3d4 100644 --- a/lib/services/sqlManagement2/lib/models/managedDatabaseUpdate.js +++ b/lib/services/sqlManagement2/lib/models/managedDatabaseUpdate.js @@ -18,8 +18,9 @@ class ManagedDatabaseUpdate { /** * Create a ManagedDatabaseUpdate. * @property {string} [collation] Collation of the managed database. - * @property {string} [status] Status for the database. Possible values - * include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible' + * @property {string} [status] Status of the database. Possible values + * include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', + * 'Updating' * @property {date} [creationDate] Creation date of the database. * @property {date} [earliestRestorePoint] Earliest restore point in time for * point in time restore. @@ -36,18 +37,25 @@ class ManagedDatabaseUpdate { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database + * by restoring a geo-replicated backup. RecoverableDatabaseId must be + * specified as the recoverable database resource ID to restore. Possible + * values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', + * 'Recovery' * @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. * @property {string} [sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. + * @property {string} [restorableDroppedDatabaseId] The restorable dropped + * database resource id to restore when creating this database. * @property {string} [storageContainerSasToken] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the storage * container sas token. * @property {string} [failoverGroupId] Instance Failover Group resource * identifier that this managed database belongs to. + * @property {string} [recoverableDatabaseId] The resource identifier of the + * recoverable database associated with create operation of this database. * @property {object} [tags] Resource tags. */ constructor() { @@ -141,6 +149,13 @@ class ManagedDatabaseUpdate { name: 'String' } }, + restorableDroppedDatabaseId: { + required: false, + serializedName: 'properties.restorableDroppedDatabaseId', + type: { + name: 'String' + } + }, storageContainerSasToken: { required: false, serializedName: 'properties.storageContainerSasToken', @@ -156,6 +171,13 @@ class ManagedDatabaseUpdate { name: 'String' } }, + recoverableDatabaseId: { + required: false, + serializedName: 'properties.recoverableDatabaseId', + type: { + name: 'String' + } + }, tags: { required: false, serializedName: 'tags', diff --git a/lib/services/sqlManagement2/lib/operations/index.d.ts b/lib/services/sqlManagement2/lib/operations/index.d.ts index e98ef61a2b..d5d288cb15 100644 --- a/lib/services/sqlManagement2/lib/operations/index.d.ts +++ b/lib/services/sqlManagement2/lib/operations/index.d.ts @@ -25181,8 +25181,10 @@ export interface ManagedDatabases { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -25191,10 +25193,17 @@ export interface ManagedDatabases { * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {string} parameters.location Resource location. * * @param {object} [parameters.tags] Resource tags. @@ -25241,8 +25250,10 @@ export interface ManagedDatabases { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -25251,10 +25262,17 @@ export interface ManagedDatabases { * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {string} parameters.location Resource location. * * @param {object} [parameters.tags] Resource tags. @@ -25292,7 +25310,7 @@ export interface ManagedDatabases { /** - * Deletes the managed database. + * Deletes 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 @@ -25316,7 +25334,7 @@ export interface ManagedDatabases { deleteMethodWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the managed database. + * Deletes 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 @@ -25386,8 +25404,10 @@ export interface ManagedDatabases { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -25396,10 +25416,17 @@ export interface ManagedDatabases { * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. @@ -25444,8 +25471,10 @@ export interface ManagedDatabases { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -25454,10 +25483,17 @@ export interface ManagedDatabases { * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. @@ -25593,8 +25629,10 @@ export interface ManagedDatabases { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -25603,10 +25641,17 @@ export interface ManagedDatabases { * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {string} parameters.location Resource location. * * @param {object} [parameters.tags] Resource tags. @@ -25653,8 +25698,10 @@ export interface ManagedDatabases { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -25663,10 +25710,17 @@ export interface ManagedDatabases { * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {string} parameters.location Resource location. * * @param {object} [parameters.tags] Resource tags. @@ -25704,7 +25758,7 @@ export interface ManagedDatabases { /** - * Deletes the managed database. + * Deletes 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 @@ -25728,7 +25782,7 @@ export interface ManagedDatabases { beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the managed database. + * Deletes 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 @@ -25798,8 +25852,10 @@ export interface ManagedDatabases { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -25808,10 +25864,17 @@ export interface ManagedDatabases { * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. @@ -25856,8 +25919,10 @@ export interface ManagedDatabases { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -25866,10 +25931,17 @@ export interface ManagedDatabases { * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. diff --git a/lib/services/sqlManagement2/lib/operations/managedDatabases.js b/lib/services/sqlManagement2/lib/operations/managedDatabases.js index e20ff0e1b1..b0324d3a73 100644 --- a/lib/services/sqlManagement2/lib/operations/managedDatabases.js +++ b/lib/services/sqlManagement2/lib/operations/managedDatabases.js @@ -411,8 +411,10 @@ function _get(resourceGroupName, managedInstanceName, databaseName, options, cal * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -421,10 +423,17 @@ function _get(resourceGroupName, managedInstanceName, databaseName, options, cal * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {string} parameters.location Resource location. * * @param {object} [parameters.tags] Resource tags. @@ -501,7 +510,7 @@ function _createOrUpdate(resourceGroupName, managedInstanceName, databaseName, p /** - * Deletes the managed database. + * Deletes 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 @@ -596,8 +605,10 @@ function _deleteMethod(resourceGroupName, managedInstanceName, databaseName, opt * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -606,10 +617,17 @@ function _deleteMethod(resourceGroupName, managedInstanceName, databaseName, opt * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. @@ -860,8 +878,10 @@ function _beginCompleteRestore(locationName, operationId, parameters, options, c * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -870,10 +890,17 @@ function _beginCompleteRestore(locationName, operationId, parameters, options, c * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {string} parameters.location Resource location. * * @param {object} [parameters.tags] Resource tags. @@ -1053,7 +1080,7 @@ function _beginCreateOrUpdate(resourceGroupName, managedInstanceName, databaseNa } /** - * Deletes the managed database. + * Deletes 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 @@ -1214,8 +1241,10 @@ function _beginDeleteMethod(resourceGroupName, managedInstanceName, databaseName * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -1224,10 +1253,17 @@ function _beginDeleteMethod(resourceGroupName, managedInstanceName, databaseName * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. @@ -1849,8 +1885,10 @@ class ManagedDatabases { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -1859,10 +1897,17 @@ class ManagedDatabases { * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {string} parameters.location Resource location. * * @param {object} [parameters.tags] Resource tags. @@ -1921,8 +1966,10 @@ class ManagedDatabases { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -1931,10 +1978,17 @@ class ManagedDatabases { * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {string} parameters.location Resource location. * * @param {object} [parameters.tags] Resource tags. @@ -1987,7 +2041,7 @@ class ManagedDatabases { } /** - * Deletes the managed database. + * Deletes 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 @@ -2023,7 +2077,7 @@ class ManagedDatabases { } /** - * Deletes the managed database. + * Deletes 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 @@ -2108,8 +2162,10 @@ class ManagedDatabases { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -2118,10 +2174,17 @@ class ManagedDatabases { * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. @@ -2178,8 +2241,10 @@ class ManagedDatabases { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -2188,10 +2253,17 @@ class ManagedDatabases { * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. @@ -2369,8 +2441,10 @@ class ManagedDatabases { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -2379,10 +2453,17 @@ class ManagedDatabases { * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {string} parameters.location Resource location. * * @param {object} [parameters.tags] Resource tags. @@ -2441,8 +2522,10 @@ class ManagedDatabases { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -2451,10 +2534,17 @@ class ManagedDatabases { * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {string} parameters.location Resource location. * * @param {object} [parameters.tags] Resource tags. @@ -2507,7 +2597,7 @@ class ManagedDatabases { } /** - * Deletes the managed database. + * Deletes 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 @@ -2543,7 +2633,7 @@ class ManagedDatabases { } /** - * Deletes the managed database. + * Deletes 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 @@ -2628,8 +2718,10 @@ class ManagedDatabases { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -2638,10 +2730,17 @@ class ManagedDatabases { * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. @@ -2698,8 +2797,10 @@ class ManagedDatabases { * 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' + * StorageContainerSasToken must be specified. Recovery: Creates a database by + * restoring a geo-replicated backup. RecoverableDatabaseId must be specified + * as the recoverable database resource ID to restore. Possible values include: + * 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * * @param {string} [parameters.storageContainerUri] Conditional. If createMode * is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -2708,10 +2809,17 @@ class ManagedDatabases { * @param {string} [parameters.sourceDatabaseId] The resource identifier of the * source database associated with create operation of this database. * + * @param {string} [parameters.restorableDroppedDatabaseId] The restorable + * dropped database resource id to restore when creating this database. + * * @param {string} [parameters.storageContainerSasToken] Conditional. If * createMode is RestoreExternalBackup, this value is required. Specifies the * storage container sas token. * + * @param {string} [parameters.recoverableDatabaseId] The resource identifier + * of the recoverable database associated with create operation of this + * database. + * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters.