Class: Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseOperation
- Inherits:
-
ProxyResource
- Object
- Resource
- ProxyResource
- Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseOperation
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_operation.rb
Overview
A database operation.
Instance Attribute Summary collapse
-
#database_name ⇒ String
performed on.
-
#error_code ⇒ Integer
The operation error code.
-
#error_description ⇒ String
The operation error description.
-
#error_severity ⇒ Integer
The operation error severity.
-
#is_user_error ⇒ Boolean
Whether or not the error is a user error.
-
#operation ⇒ String
The name of operation.
-
#operation_friendly_name ⇒ String
The friendly name of operation.
-
#percent_complete ⇒ Integer
The percentage of the operation completed.
-
#server_name ⇒ String
The name of the server.
-
#start_time ⇒ DateTime
The operation start time.
-
#state ⇒ ManagementOperationState
include: ‘Pending’, ‘InProgress’, ‘Succeeded’, ‘Failed’, ‘CancelInProgress’, ‘Cancelled’.
Attributes inherited from Resource
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for DatabaseOperation class as Ruby Hash.
Instance Attribute Details
#database_name ⇒ String
performed on.
17 18 19 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_operation.rb', line 17 def database_name @database_name end |
#error_code ⇒ Integer
Returns The operation error code.
40 41 42 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_operation.rb', line 40 def error_code @error_code end |
#error_description ⇒ String
Returns The operation error description.
43 44 45 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_operation.rb', line 43 def error_description @error_description end |
#error_severity ⇒ Integer
Returns The operation error severity.
46 47 48 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_operation.rb', line 46 def error_severity @error_severity end |
#is_user_error ⇒ Boolean
Returns Whether or not the error is a user error.
49 50 51 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_operation.rb', line 49 def is_user_error @is_user_error end |
#operation ⇒ String
Returns The name of operation.
20 21 22 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_operation.rb', line 20 def operation @operation end |
#operation_friendly_name ⇒ String
Returns The friendly name of operation.
23 24 25 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_operation.rb', line 23 def operation_friendly_name @operation_friendly_name end |
#percent_complete ⇒ Integer
Returns The percentage of the operation completed.
26 27 28 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_operation.rb', line 26 def percent_complete @percent_complete end |
#server_name ⇒ String
Returns The name of the server.
29 30 31 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_operation.rb', line 29 def server_name @server_name end |
#start_time ⇒ DateTime
Returns The operation start time.
32 33 34 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_operation.rb', line 32 def start_time @start_time end |
#state ⇒ ManagementOperationState
include: ‘Pending’, ‘InProgress’, ‘Succeeded’, ‘Failed’, ‘CancelInProgress’, ‘Cancelled’
37 38 39 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_operation.rb', line 37 def state @state end |
Class Method Details
.mapper ⇒ Object
Mapper for DatabaseOperation class as Ruby Hash. This will be used for serialization/deserialization.
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_operation.rb', line 56 def self.mapper() { required: false, serialized_name: 'DatabaseOperation', type: { name: 'Composite', class_name: 'DatabaseOperation', model_properties: { id: { required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, database_name: { required: false, read_only: true, serialized_name: 'properties.databaseName', type: { name: 'String' } }, operation: { required: false, read_only: true, serialized_name: 'properties.operation', type: { name: 'String' } }, operation_friendly_name: { required: false, read_only: true, serialized_name: 'properties.operationFriendlyName', type: { name: 'String' } }, percent_complete: { required: false, read_only: true, serialized_name: 'properties.percentComplete', type: { name: 'Number' } }, server_name: { required: false, read_only: true, serialized_name: 'properties.serverName', type: { name: 'String' } }, start_time: { required: false, read_only: true, serialized_name: 'properties.startTime', type: { name: 'DateTime' } }, state: { required: false, read_only: true, serialized_name: 'properties.state', type: { name: 'String' } }, error_code: { required: false, read_only: true, serialized_name: 'properties.errorCode', type: { name: 'Number' } }, error_description: { required: false, read_only: true, serialized_name: 'properties.errorDescription', type: { name: 'String' } }, error_severity: { required: false, read_only: true, serialized_name: 'properties.errorSeverity', type: { name: 'Number' } }, is_user_error: { required: false, read_only: true, serialized_name: 'properties.isUserError', type: { name: 'Boolean' } } } } } end |