diff --git a/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/managed_databases.rb b/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/managed_databases.rb index 9bb4950311..860ab68be6 100644 --- a/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/managed_databases.rb +++ b/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/managed_databases.rb @@ -319,7 +319,7 @@ def create_or_update_async(resource_group_name, managed_instance_name, database_ end # - # Deletes the managed database. + # Deletes a managed database. # # @param resource_group_name [String] The name of the resource group that # contains the resource. You can obtain this value from the Azure Resource @@ -641,7 +641,7 @@ def begin_create_or_update_async(resource_group_name, managed_instance_name, dat end # - # Deletes the managed database. + # Deletes a managed database. # # @param resource_group_name [String] The name of the resource group that # contains the resource. You can obtain this value from the Azure Resource @@ -658,7 +658,7 @@ def begin_delete(resource_group_name, managed_instance_name, database_name, cust end # - # Deletes the managed database. + # Deletes a managed database. # # @param resource_group_name [String] The name of the resource group that # contains the resource. You can obtain this value from the Azure Resource @@ -675,7 +675,7 @@ def begin_delete_with_http_info(resource_group_name, managed_instance_name, data end # - # Deletes the managed database. + # Deletes a managed database. # # @param resource_group_name [String] The name of the resource group that # contains the resource. You can obtain this value from the Azure Resource diff --git a/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database.rb b/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database.rb index 7a99e0b345..37e94f1127 100644 --- a/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database.rb +++ b/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database.rb @@ -15,9 +15,9 @@ class ManagedDatabase < TrackedResource # @return [String] Collation of the managed database. attr_accessor :collation - # @return [ManagedDatabaseStatus] Status for the database. Possible - # values include: 'Online', 'Offline', 'Shutdown', 'Creating', - # 'Inaccessible' + # @return [ManagedDatabaseStatus] Status of the database. Possible values + # include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', + # 'Updating' attr_accessor :status # @return [DateTime] Creation date of the database. @@ -46,8 +46,11 @@ class ManagedDatabase < 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' + # 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' attr_accessor :create_mode # @return [String] Conditional. If createMode is RestoreExternalBackup, @@ -59,6 +62,10 @@ class ManagedDatabase < TrackedResource # associated with create operation of this database. attr_accessor :source_database_id + # @return [String] The restorable dropped database resource id to restore + # when creating this database. + attr_accessor :restorable_dropped_database_id + # @return [String] Conditional. If createMode is RestoreExternalBackup, # this value is required. Specifies the storage container sas token. attr_accessor :storage_container_sas_token @@ -67,6 +74,10 @@ class ManagedDatabase < TrackedResource # managed database belongs to. attr_accessor :failover_group_id + # @return [String] The resource identifier of the recoverable database + # associated with create operation of this database. + attr_accessor :recoverable_database_id + # # Mapper for ManagedDatabase class as Ruby Hash. @@ -199,6 +210,13 @@ def self.mapper() name: 'String' } }, + restorable_dropped_database_id: { + required: false, + serialized_name: 'properties.restorableDroppedDatabaseId', + type: { + name: 'String' + } + }, storage_container_sas_token: { required: false, serialized_name: 'properties.storageContainerSasToken', @@ -213,6 +231,13 @@ def self.mapper() type: { name: 'String' } + }, + recoverable_database_id: { + required: false, + serialized_name: 'properties.recoverableDatabaseId', + type: { + name: 'String' + } } } } diff --git a/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_create_mode.rb b/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_create_mode.rb index e2d1a0d378..989870fb5d 100644 --- a/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_create_mode.rb +++ b/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_create_mode.rb @@ -12,6 +12,7 @@ module ManagedDatabaseCreateMode Default = "Default" RestoreExternalBackup = "RestoreExternalBackup" PointInTimeRestore = "PointInTimeRestore" + Recovery = "Recovery" end end end diff --git a/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_status.rb b/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_status.rb index 08b84fd7ff..3d0c627507 100644 --- a/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_status.rb +++ b/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_status.rb @@ -14,6 +14,7 @@ module ManagedDatabaseStatus Shutdown = "Shutdown" Creating = "Creating" Inaccessible = "Inaccessible" + Updating = "Updating" end end end diff --git a/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_update.rb b/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_update.rb index e6aff87833..bf86593717 100644 --- a/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_update.rb +++ b/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_update.rb @@ -15,9 +15,9 @@ class ManagedDatabaseUpdate # @return [String] Collation of the managed database. attr_accessor :collation - # @return [ManagedDatabaseStatus] Status for the database. Possible - # values include: 'Online', 'Offline', 'Shutdown', 'Creating', - # 'Inaccessible' + # @return [ManagedDatabaseStatus] Status of the database. Possible values + # include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', + # 'Updating' attr_accessor :status # @return [DateTime] Creation date of the database. @@ -46,8 +46,11 @@ class 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' + # 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' attr_accessor :create_mode # @return [String] Conditional. If createMode is RestoreExternalBackup, @@ -59,6 +62,10 @@ class ManagedDatabaseUpdate # associated with create operation of this database. attr_accessor :source_database_id + # @return [String] The restorable dropped database resource id to restore + # when creating this database. + attr_accessor :restorable_dropped_database_id + # @return [String] Conditional. If createMode is RestoreExternalBackup, # this value is required. Specifies the storage container sas token. attr_accessor :storage_container_sas_token @@ -67,6 +74,10 @@ class ManagedDatabaseUpdate # managed database belongs to. attr_accessor :failover_group_id + # @return [String] The resource identifier of the recoverable database + # associated with create operation of this database. + attr_accessor :recoverable_database_id + # @return [Hash{String => String}] Resource tags. attr_accessor :tags @@ -157,6 +168,13 @@ def self.mapper() name: 'String' } }, + restorable_dropped_database_id: { + required: false, + serialized_name: 'properties.restorableDroppedDatabaseId', + type: { + name: 'String' + } + }, storage_container_sas_token: { required: false, serialized_name: 'properties.storageContainerSasToken', @@ -172,6 +190,13 @@ def self.mapper() name: 'String' } }, + recoverable_database_id: { + required: false, + serialized_name: 'properties.recoverableDatabaseId', + type: { + name: 'String' + } + }, tags: { required: false, serialized_name: 'tags',