Class: Azure::CognitiveServices::LocalSearch::V1_0::Models::Error
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::LocalSearch::V1_0::Models::Error
- Includes:
- MsRestAzure
- Defined in:
- lib/1.0/generated/azure_cognitiveservices_localsearch/models/error.rb
Overview
Defines the error that occurred.
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#_type ⇒ Object
Returns the value of attribute _type.
-
#code ⇒ ErrorCode
error.
-
#message ⇒ String
A description of the error.
-
#more_details ⇒ String
about the error.
-
#parameter ⇒ String
The parameter in the request that caused the error.
-
#sub_code ⇒ ErrorSubCode
the error.
-
#value ⇒ String
valid.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Error class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize ⇒ Error
Returns a new instance of Error.
17 18 19 |
# File 'lib/1.0/generated/azure_cognitiveservices_localsearch/models/error.rb', line 17 def initialize @_type = "Error" end |
Instance Attribute Details
#_type ⇒ Object
Returns the value of attribute _type.
21 22 23 |
# File 'lib/1.0/generated/azure_cognitiveservices_localsearch/models/error.rb', line 21 def _type @_type end |
#code ⇒ ErrorCode
error. Possible values include: ‘None’, ‘ServerError’, ‘InvalidRequest’, ‘RateLimitExceeded’, ‘InvalidAuthorization’, ‘InsufficientAuthorization’. Default value: ‘None’ .
27 28 29 |
# File 'lib/1.0/generated/azure_cognitiveservices_localsearch/models/error.rb', line 27 def code @code end |
#message ⇒ String
Returns A description of the error.
38 39 40 |
# File 'lib/1.0/generated/azure_cognitiveservices_localsearch/models/error.rb', line 38 def @message end |
#more_details ⇒ String
about the error.
42 43 44 |
# File 'lib/1.0/generated/azure_cognitiveservices_localsearch/models/error.rb', line 42 def more_details @more_details end |
#parameter ⇒ String
Returns The parameter in the request that caused the error.
45 46 47 |
# File 'lib/1.0/generated/azure_cognitiveservices_localsearch/models/error.rb', line 45 def parameter @parameter end |
#sub_code ⇒ ErrorSubCode
the error. Possible values include: ‘UnexpectedError’, ‘ResourceError’, ‘NotImplemented’, ‘ParameterMissing’, ‘ParameterInvalidValue’, ‘HttpNotAllowed’, ‘Blocked’, ‘AuthorizationMissing’, ‘AuthorizationRedundancy’, ‘AuthorizationDisabled’, ‘AuthorizationExpired’
35 36 37 |
# File 'lib/1.0/generated/azure_cognitiveservices_localsearch/models/error.rb', line 35 def sub_code @sub_code end |
#value ⇒ String
valid.
49 50 51 |
# File 'lib/1.0/generated/azure_cognitiveservices_localsearch/models/error.rb', line 49 def value @value end |
Class Method Details
.mapper ⇒ Object
Mapper for Error class as Ruby Hash. This will be used for serialization/deserialization.
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 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 |
# File 'lib/1.0/generated/azure_cognitiveservices_localsearch/models/error.rb', line 56 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Error', type: { name: 'Composite', polymorphic_discriminator: '_type', uber_parent: 'Error', class_name: 'Error', model_properties: { code: { client_side_validation: true, required: true, serialized_name: 'code', default_value: 'None', type: { name: 'String' } }, sub_code: { client_side_validation: true, required: false, read_only: true, serialized_name: 'subCode', type: { name: 'String' } }, message: { client_side_validation: true, required: true, serialized_name: 'message', type: { name: 'String' } }, more_details: { client_side_validation: true, required: false, read_only: true, serialized_name: 'moreDetails', type: { name: 'String' } }, parameter: { client_side_validation: true, required: false, read_only: true, serialized_name: 'parameter', type: { name: 'String' } }, value: { client_side_validation: true, required: false, read_only: true, serialized_name: 'value', type: { name: 'String' } } } } } end |