Class: Azure::MixedReality::Mgmt::V2019_12_02_preview::Models::ErrorResponse

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-12-02-preview/generated/azure_mgmt_mixedreality/models/error_response.rb

Overview

Response on Error

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#codeString

the error.

Returns:

  • (String)

    String that can be used to programmatically identify



21
22
23
# File 'lib/2019-12-02-preview/generated/azure_mgmt_mixedreality/models/error_response.rb', line 21

def code
  @code
end

#detailsString

pairs for code and message, and MAY contain a name/value pair for target, as described above.The contents of this section are service-defined but must adhere to the aforementioned schema.

Returns:

  • (String)

    An array of JSON objects that MUST contain name/value



30
31
32
# File 'lib/2019-12-02-preview/generated/azure_mgmt_mixedreality/models/error_response.rb', line 30

def details
  @details
end

#messageString

information

Returns:

  • (String)

    Describes the error in detail and provides debugging



17
18
19
# File 'lib/2019-12-02-preview/generated/azure_mgmt_mixedreality/models/error_response.rb', line 17

def message
  @message
end

#targetString

Returns The target of the particular error.

Returns:

  • (String)

    The target of the particular error



24
25
26
# File 'lib/2019-12-02-preview/generated/azure_mgmt_mixedreality/models/error_response.rb', line 24

def target
  @target
end

Class Method Details

.mapperObject

Mapper for ErrorResponse 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
# File 'lib/2019-12-02-preview/generated/azure_mgmt_mixedreality/models/error_response.rb', line 37

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ErrorResponse',
    type: {
      name: 'Composite',
      class_name: 'ErrorResponse',
      model_properties: {
        message: {
          client_side_validation: true,
          required: true,
          serialized_name: 'message',
          type: {
            name: 'String'
          }
        },
        code: {
          client_side_validation: true,
          required: true,
          serialized_name: 'code',
          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: 'String'
          }
        }
      }
    }
  }
end