Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand All @@ -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.
Expand Down Expand Up @@ -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',
Expand All @@ -213,6 +231,13 @@ def self.mapper()
type: {
name: 'String'
}
},
recoverable_database_id: {
required: false,
serialized_name: 'properties.recoverableDatabaseId',
type: {
name: 'String'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module ManagedDatabaseCreateMode
Default = "Default"
RestoreExternalBackup = "RestoreExternalBackup"
PointInTimeRestore = "PointInTimeRestore"
Recovery = "Recovery"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module ManagedDatabaseStatus
Shutdown = "Shutdown"
Creating = "Creating"
Inaccessible = "Inaccessible"
Updating = "Updating"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand Down