Class: Azure::Compute::Mgmt::V2019_11_01::Models::ApiError
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2019_11_01::Models::ApiError
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-11-01/generated/azure_mgmt_compute/models/api_error.rb
Overview
Api error.
Instance Attribute Summary collapse
-
#code ⇒ String
The error code.
-
#details ⇒ Array<ApiErrorBase>
The Api error details.
-
#innererror ⇒ InnerError
The Api inner error.
-
#message ⇒ String
The error message.
-
#target ⇒ String
The target of the particular error.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ApiError class as Ruby Hash.
Instance Attribute Details
#code ⇒ String
Returns The error code.
22 23 24 |
# File 'lib/2019-11-01/generated/azure_mgmt_compute/models/api_error.rb', line 22 def code @code end |
#details ⇒ Array<ApiErrorBase>
Returns The Api error details.
16 17 18 |
# File 'lib/2019-11-01/generated/azure_mgmt_compute/models/api_error.rb', line 16 def details @details end |
#innererror ⇒ InnerError
Returns The Api inner error.
19 20 21 |
# File 'lib/2019-11-01/generated/azure_mgmt_compute/models/api_error.rb', line 19 def innererror @innererror end |
#message ⇒ String
Returns The error message.
28 29 30 |
# File 'lib/2019-11-01/generated/azure_mgmt_compute/models/api_error.rb', line 28 def @message end |
#target ⇒ String
Returns The target of the particular error.
25 26 27 |
# File 'lib/2019-11-01/generated/azure_mgmt_compute/models/api_error.rb', line 25 def target @target end |
Class Method Details
.mapper ⇒ Object
Mapper for ApiError class as Ruby Hash. This will be used for serialization/deserialization.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 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 |
# File 'lib/2019-11-01/generated/azure_mgmt_compute/models/api_error.rb', line 35 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ApiError', type: { name: 'Composite', class_name: 'ApiError', model_properties: { details: { client_side_validation: true, required: false, serialized_name: 'details', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ApiErrorBaseElementType', type: { name: 'Composite', class_name: 'ApiErrorBase' } } } }, innererror: { client_side_validation: true, required: false, serialized_name: 'innererror', type: { name: 'Composite', class_name: 'InnerError' } }, code: { client_side_validation: true, required: false, serialized_name: 'code', type: { name: 'String' } }, target: { client_side_validation: true, required: false, serialized_name: 'target', type: { name: 'String' } }, message: { client_side_validation: true, required: false, serialized_name: 'message', type: { name: 'String' } } } } } end |