Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Generated from 9d8ee581a6a578917bf10678c5d69d7e08d57c7f (#2081)
Browse files Browse the repository at this point in the history
Updating managed database swagger
  • Loading branch information
AutorestCI authored Dec 13, 2018
1 parent 94c9c33 commit 78c9a28
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 14 deletions.
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

0 comments on commit 78c9a28

Please sign in to comment.