diff --git a/packages/@azure/arm-sql/lib/models/index.ts b/packages/@azure/arm-sql/lib/models/index.ts index f89dd8d43d2c..323d54e8297b 100644 --- a/packages/@azure/arm-sql/lib/models/index.ts +++ b/packages/@azure/arm-sql/lib/models/index.ts @@ -4360,9 +4360,9 @@ export interface ManagedDatabase extends TrackedResource { */ collation?: string; /** - * @member {ManagedDatabaseStatus} [status] Status for the database. Possible + * @member {ManagedDatabaseStatus} [status] Status of the database. Possible * values include: 'Online', 'Offline', 'Shutdown', 'Creating', - * 'Inaccessible' + * 'Inaccessible', 'Updating' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -4406,8 +4406,10 @@ export interface ManagedDatabase extends TrackedResource { * 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' + * 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' */ createMode?: ManagedDatabaseCreateMode; /** @@ -4421,6 +4423,11 @@ export interface ManagedDatabase extends TrackedResource { * database associated with create operation of this database. */ sourceDatabaseId?: string; + /** + * @member {string} [restorableDroppedDatabaseId] The restorable dropped + * database resource id to restore when creating this database. + */ + restorableDroppedDatabaseId?: string; /** * @member {string} [storageContainerSasToken] Conditional. If createMode is * RestoreExternalBackup, this value is required. Specifies the storage @@ -4434,6 +4441,11 @@ export interface ManagedDatabase extends TrackedResource { * the server.** */ readonly failoverGroupId?: string; + /** + * @member {string} [recoverableDatabaseId] The resource identifier of the + * recoverable database associated with create operation of this database. + */ + recoverableDatabaseId?: string; } /** @@ -4448,9 +4460,9 @@ export interface ManagedDatabaseUpdate { */ collation?: string; /** - * @member {ManagedDatabaseStatus} [status] Status for the database. Possible + * @member {ManagedDatabaseStatus} [status] Status of the database. Possible * values include: 'Online', 'Offline', 'Shutdown', 'Creating', - * 'Inaccessible' + * 'Inaccessible', 'Updating' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -4494,8 +4506,10 @@ export interface ManagedDatabaseUpdate { * 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' + * 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' */ createMode?: ManagedDatabaseCreateMode; /** @@ -4509,6 +4523,11 @@ export interface ManagedDatabaseUpdate { * database associated with create operation of this database. */ sourceDatabaseId?: string; + /** + * @member {string} [restorableDroppedDatabaseId] The restorable dropped + * database resource id to restore when creating this database. + */ + restorableDroppedDatabaseId?: string; /** * @member {string} [storageContainerSasToken] Conditional. If createMode is * RestoreExternalBackup, this value is required. Specifies the storage @@ -4522,6 +4541,11 @@ export interface ManagedDatabaseUpdate { * the server.** */ readonly failoverGroupId?: string; + /** + * @member {string} [recoverableDatabaseId] The resource identifier of the + * recoverable database associated with create operation of this database. + */ + recoverableDatabaseId?: string; /** * @member {{ [propertyName: string]: string }} [tags] Resource tags. */ @@ -8181,11 +8205,11 @@ export type JobTargetGroupMembershipType = 'Include' | 'Exclude'; /** * Defines values for ManagedDatabaseStatus. - * Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible' + * Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', 'Updating' * @readonly * @enum {string} */ -export type ManagedDatabaseStatus = 'Online' | 'Offline' | 'Shutdown' | 'Creating' | 'Inaccessible'; +export type ManagedDatabaseStatus = 'Online' | 'Offline' | 'Shutdown' | 'Creating' | 'Inaccessible' | 'Updating'; /** * Defines values for CatalogCollationType. @@ -8197,11 +8221,11 @@ export type CatalogCollationType = 'DATABASE_DEFAULT' | 'SQL_Latin1_General_CP1_ /** * Defines values for ManagedDatabaseCreateMode. - * Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore' + * Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * @readonly * @enum {string} */ -export type ManagedDatabaseCreateMode = 'Default' | 'RestoreExternalBackup' | 'PointInTimeRestore'; +export type ManagedDatabaseCreateMode = 'Default' | 'RestoreExternalBackup' | 'PointInTimeRestore' | 'Recovery'; /** * Defines values for AutomaticTuningServerMode. diff --git a/packages/@azure/arm-sql/lib/models/mappers.ts b/packages/@azure/arm-sql/lib/models/mappers.ts index 70aaad876e55..4ea7b3530589 100644 --- a/packages/@azure/arm-sql/lib/models/mappers.ts +++ b/packages/@azure/arm-sql/lib/models/mappers.ts @@ -4952,6 +4952,12 @@ export const ManagedDatabase: msRest.CompositeMapper = { name: "String" } }, + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", + type: { + name: "String" + } + }, storageContainerSasToken: { serializedName: "properties.storageContainerSasToken", type: { @@ -4964,6 +4970,12 @@ export const ManagedDatabase: msRest.CompositeMapper = { type: { name: "String" } + }, + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", + type: { + name: "String" + } } } } @@ -5039,6 +5051,12 @@ export const ManagedDatabaseUpdate: msRest.CompositeMapper = { name: "String" } }, + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", + type: { + name: "String" + } + }, storageContainerSasToken: { serializedName: "properties.storageContainerSasToken", type: { @@ -5052,6 +5070,12 @@ export const ManagedDatabaseUpdate: msRest.CompositeMapper = { name: "String" } }, + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", + type: { + name: "String" + } + }, tags: { serializedName: "tags", type: { diff --git a/packages/@azure/arm-sql/lib/operations/managedDatabases.ts b/packages/@azure/arm-sql/lib/operations/managedDatabases.ts index d8a6f60e4a10..54f3ed265170 100644 --- a/packages/@azure/arm-sql/lib/operations/managedDatabases.ts +++ b/packages/@azure/arm-sql/lib/operations/managedDatabases.ts @@ -130,7 +130,7 @@ export class ManagedDatabases { } /** - * Deletes the managed database. + * Deletes a managed database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. @@ -202,7 +202,7 @@ export class ManagedDatabases { } /** - * Deletes the managed database. + * Deletes a managed database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance.