Class: Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringLocation

Inherits:
Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_location.rb

Overview

Peering location is where connectivity could be established to the Microsoft Cloud Edge.

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #name, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#azure_regionString

Returns The Azure region associated with the peering location.

Returns:

  • (String)

    The Azure region associated with the peering location.



35
36
37
# File 'lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_location.rb', line 35

def azure_region
  @azure_region
end

#countryString

Returns The country in which the peering location exists.

Returns:

  • (String)

    The country in which the peering location exists.



32
33
34
# File 'lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_location.rb', line 32

def country
  @country
end

#directPeeringLocationPropertiesDirect

direct peering location.

Returns:



22
23
24
# File 'lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_location.rb', line 22

def direct
  @direct
end

#exchangePeeringLocationPropertiesExchange

an exchange peering location.

Returns:



26
27
28
# File 'lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_location.rb', line 26

def exchange
  @exchange
end

#kindKind

Possible values include: ‘Direct’, ‘Exchange’

Returns:

  • (Kind)

    The kind of peering that the peering location supports.



18
19
20
# File 'lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_location.rb', line 18

def kind
  @kind
end

#peering_locationString

Returns The name of the peering location.

Returns:

  • (String)

    The name of the peering location.



29
30
31
# File 'lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_location.rb', line 29

def peering_location
  @peering_location
end

Class Method Details

.mapperObject

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



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
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
124
125
126
127
128
129
130
131
# File 'lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_location.rb', line 42

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PeeringLocation',
    type: {
      name: 'Composite',
      class_name: 'PeeringLocation',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        kind: {
          client_side_validation: true,
          required: false,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        direct: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.direct',
          type: {
            name: 'Composite',
            class_name: 'PeeringLocationPropertiesDirect'
          }
        },
        exchange: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.exchange',
          type: {
            name: 'Composite',
            class_name: 'PeeringLocationPropertiesExchange'
          }
        },
        peering_location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.peeringLocation',
          type: {
            name: 'String'
          }
        },
        country: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.country',
          type: {
            name: 'String'
          }
        },
        azure_region: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.azureRegion',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end