Class: Azure::Network::Mgmt::V2018_08_01::Models::Error

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-08-01/generated/azure_mgmt_network/models/error.rb

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#codeString

Returns:

  • (String)

17
18
19
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/error.rb', line 17

def code
  @code
end

#detailsArray<ErrorDetails>

Returns:


26
27
28
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/error.rb', line 26

def details
  @details
end

#inner_errorString

Returns:

  • (String)

29
30
31
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/error.rb', line 29

def inner_error
  @inner_error
end

#messageString

Returns:

  • (String)

20
21
22
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/error.rb', line 20

def message
  @message
end

#targetString

Returns:

  • (String)

23
24
25
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/error.rb', line 23

def target
  @target
end

Class Method Details

.mapperObject

Mapper for Error class as Ruby Hash. This will be used for serialization/deserialization.


36
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
92
93
94
95
96
97
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/error.rb', line 36

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