class Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseOperation
A database operation.
Attributes
@return [String] The name of the database the operation is being performed on.
@return [String] The operation description.
@return [Integer] The operation error code.
@return [String] The operation error description.
@return [Integer] The operation error severity.
@return [DateTime] The estimated completion time of the operation.
@return [Boolean] Whether the operation can be cancelled.
@return [Boolean] Whether or not the error is a user error.
@return [String] The name of operation.
@return [String] The friendly name of operation.
@return [Integer] The percentage of the operation completed.
@return [String] The name of the server.
@return [DateTime] The operation start time.
@return [ManagementOperationState] The operation state. Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', 'CancelInProgress', 'Cancelled'
Private Class Methods
Mapper for DatabaseOperation
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_operation.rb, line 65 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'DatabaseOperation', type: { name: 'Composite', class_name: 'DatabaseOperation', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, database_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.databaseName', type: { name: 'String' } }, operation: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.operation', type: { name: 'String' } }, operation_friendly_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.operationFriendlyName', type: { name: 'String' } }, percent_complete: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.percentComplete', type: { name: 'Number' } }, server_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.serverName', type: { name: 'String' } }, start_time: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.startTime', type: { name: 'DateTime' } }, state: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.state', type: { name: 'String' } }, error_code: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.errorCode', type: { name: 'Number' } }, error_description: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.errorDescription', type: { name: 'String' } }, error_severity: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.errorSeverity', type: { name: 'Number' } }, is_user_error: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.isUserError', type: { name: 'Boolean' } }, estimated_completion_time: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.estimatedCompletionTime', type: { name: 'DateTime' } }, description: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.description', type: { name: 'String' } }, is_cancellable: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.isCancellable', type: { name: 'Boolean' } } } } } end