Class: Azure::Signalr::Mgmt::V2018_10_01::Models::ErrorResponseBody
- Inherits:
-
Object
- Object
- Azure::Signalr::Mgmt::V2018_10_01::Models::ErrorResponseBody
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-10-01/generated/azure_mgmt_signalr/models/error_response_body.rb
Overview
Describes a particular API error with an error code and a message.
Instance Attribute Summary collapse
-
#code ⇒ String
precisely than an HTTP status code.
-
#details ⇒ Array<ErrorResponseBody>
related to this error.
-
#message ⇒ String
provides debugging information.
-
#target ⇒ String
name of the property in error).
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ErrorResponseBody class as Ruby Hash.
Instance Attribute Details
#code ⇒ String
precisely than an HTTP status code. Can be used to programmatically handle specific error cases.
18 19 20 |
# File 'lib/2018-10-01/generated/azure_mgmt_signalr/models/error_response_body.rb', line 18 def code @code end |
#details ⇒ Array<ErrorResponseBody>
related to this error.
30 31 32 |
# File 'lib/2018-10-01/generated/azure_mgmt_signalr/models/error_response_body.rb', line 30 def details @details end |
#message ⇒ String
provides debugging information.
22 23 24 |
# File 'lib/2018-10-01/generated/azure_mgmt_signalr/models/error_response_body.rb', line 22 def @message end |
#target ⇒ String
name of the property in error).
26 27 28 |
# File 'lib/2018-10-01/generated/azure_mgmt_signalr/models/error_response_body.rb', line 26 def target @target end |
Class Method Details
.mapper ⇒ Object
Mapper for ErrorResponseBody 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 |
# File 'lib/2018-10-01/generated/azure_mgmt_signalr/models/error_response_body.rb', line 37 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ErrorResponseBody', type: { name: 'Composite', class_name: 'ErrorResponseBody', model_properties: { code: { client_side_validation: true, required: true, serialized_name: 'code', type: { name: 'String' } }, message: { client_side_validation: true, required: true, serialized_name: 'message', type: { name: 'String' } }, target: { client_side_validation: true, required: false, serialized_name: 'target', type: { name: 'String' } }, details: { client_side_validation: true, required: false, serialized_name: 'details', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ErrorResponseBodyElementType', type: { name: 'Composite', class_name: 'ErrorResponseBody' } } } } } } } end |