Class: Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseOperation
- Inherits:
-
ProxyResource
- Object
- Resource
- ProxyResource
- Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseOperation
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_operation.rb
Overview
A database operation.
Instance Attribute Summary collapse
-
#database_name ⇒ String
performed on.
-
#description ⇒ String
The operation description.
-
#error_code ⇒ Integer
The operation error code.
-
#error_description ⇒ String
The operation error description.
-
#error_severity ⇒ Integer
The operation error severity.
-
#estimated_completion_time ⇒ DateTime
The estimated completion time of the operation.
-
#is_cancellable ⇒ Boolean
Whether the operation can be cancelled.
-
#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.
Methods inherited from Resource
Instance Attribute Details
#database_name ⇒ String
performed on.
17 18 19 |
# File 'lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_operation.rb', line 17 def database_name @database_name end |
#description ⇒ String
Returns The operation description.
55 56 57 |
# File 'lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_operation.rb', line 55 def description @description end |
#error_code ⇒ Integer
Returns The operation error code.
40 41 42 |
# File 'lib/2017-10-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-10-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-10-01-preview/generated/azure_mgmt_sql/models/database_operation.rb', line 46 def error_severity @error_severity end |
#estimated_completion_time ⇒ DateTime
Returns The estimated completion time of the operation.
52 53 54 |
# File 'lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_operation.rb', line 52 def estimated_completion_time @estimated_completion_time end |
#is_cancellable ⇒ Boolean
Returns Whether the operation can be cancelled.
58 59 60 |
# File 'lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_operation.rb', line 58 def is_cancellable @is_cancellable end |
#is_user_error ⇒ Boolean
Returns Whether or not the error is a user error.
49 50 51 |
# File 'lib/2017-10-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-10-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-10-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-10-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-10-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-10-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-10-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.
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 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
# 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 |