Class: Azure::ARM::Network::Models::Error
- Inherits:
-
Object
- Object
- Azure::ARM::Network::Models::Error
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_network/models/error.rb
Overview
Model object.
Instance Attribute Summary collapse
- #code ⇒ String
- #details ⇒ Array<ErrorDetails>
- #inner_error ⇒ String
- #message ⇒ String
- #target ⇒ String
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Error class as Ruby Hash.
Instance Attribute Details
#code ⇒ String
18 19 20 |
# File 'lib/generated/azure_mgmt_network/models/error.rb', line 18 def code @code end |
#details ⇒ Array<ErrorDetails>
27 28 29 |
# File 'lib/generated/azure_mgmt_network/models/error.rb', line 27 def details @details end |
#inner_error ⇒ String
30 31 32 |
# File 'lib/generated/azure_mgmt_network/models/error.rb', line 30 def inner_error @inner_error end |
#message ⇒ String
21 22 23 |
# File 'lib/generated/azure_mgmt_network/models/error.rb', line 21 def @message end |
#target ⇒ String
24 25 26 |
# File 'lib/generated/azure_mgmt_network/models/error.rb', line 24 def target @target end |
Class Method Details
.mapper ⇒ Object
Mapper for Error class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/generated/azure_mgmt_network/models/error.rb', line 37 def self.mapper() { required: false, serialized_name: 'Error', type: { name: 'Composite', class_name: 'Error', model_properties: { code: { required: false, serialized_name: 'code', type: { name: 'String' } }, message: { required: false, serialized_name: 'message', type: { name: 'String' } }, target: { required: false, serialized_name: 'target', type: { name: 'String' } }, details: { required: false, serialized_name: 'details', type: { name: 'Sequence', element: { required: false, serialized_name: 'ErrorDetailsElementType', type: { name: 'Composite', class_name: 'ErrorDetails' } } } }, inner_error: { required: false, serialized_name: 'innerError', type: { name: 'String' } } } } } end |