Class: Azure::TrafficManager::Mgmt::V2017_03_01::Models::Region

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-03-01/generated/azure_mgmt_traffic_manager/models/region.rb

Overview

Class representing a region in the Geographic hierarchy used with the Geographic traffic routing method.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#codeString

Returns The code of the region.

Returns:

  • (String)

    The code of the region



17
18
19
# File 'lib/2017-03-01/generated/azure_mgmt_traffic_manager/models/region.rb', line 17

def code
  @code
end

#nameString

Returns The name of the region.

Returns:

  • (String)

    The name of the region



20
21
22
# File 'lib/2017-03-01/generated/azure_mgmt_traffic_manager/models/region.rb', line 20

def name
  @name
end

#regionsArray<Region>

in the Geographic Hierarchy.

Returns:

  • (Array<Region>)

    The list of Regions grouped under this Region



24
25
26
# File 'lib/2017-03-01/generated/azure_mgmt_traffic_manager/models/region.rb', line 24

def regions
  @regions
end

Class Method Details

.mapperObject

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



31
32
33
34
35
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
# File 'lib/2017-03-01/generated/azure_mgmt_traffic_manager/models/region.rb', line 31

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Region',
    type: {
      name: 'Composite',
      class_name: 'Region',
      model_properties: {
        code: {
          client_side_validation: true,
          required: false,
          serialized_name: 'code',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        regions: {
          client_side_validation: true,
          required: false,
          serialized_name: 'regions',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'RegionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'Region'
                }
            }
          }
        }
      }
    }
  }
end