Class: Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ErrorBody
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ErrorBody
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/error_body.rb
Overview
Cognitive Services error body.
Instance Attribute Summary collapse
-
#code ⇒ String
Error code.
-
#message ⇒ String
Error message.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ErrorBody class as Ruby Hash.
Instance Attribute Details
#code ⇒ String
Returns error code.
16 17 18 |
# File 'lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/error_body.rb', line 16 def code @code end |
#message ⇒ String
Returns error message.
19 20 21 |
# File 'lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/error_body.rb', line 19 def end |
Class Method Details
.mapper ⇒ Object
Mapper for ErrorBody class as Ruby Hash. This will be used for serialization/deserialization.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/error_body.rb', line 26 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ErrorBody', type: { name: 'Composite', class_name: 'ErrorBody', 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' } } } } } end |