Class: Azure::Peering::Mgmt::V2019_08_01_preview::Models::ExchangeConnection

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

Overview

The properties that define an exchange connection.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#bgp_sessionBgpSession

Returns The BGP session associated with the connection.

Returns:

  • (BgpSession)

    The BGP session associated with the connection.



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

def bgp_session
  @bgp_session
end

#connection_identifierString

Returns The unique identifier (GUID) for the connection.

Returns:

  • (String)

    The unique identifier (GUID) for the connection.



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

def connection_identifier
  @connection_identifier
end

#connection_stateConnectionState

include: ‘None’, ‘PendingApproval’, ‘Approved’, ‘ProvisioningStarted’, ‘ProvisioningFailed’, ‘ProvisioningCompleted’, ‘Validating’, ‘Active’

Returns:



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

def connection_state
  @connection_state
end

#peering_dbfacility_idInteger

connection has to be set up.

Returns:

  • (Integer)

    The PeeringDB.com ID of the facility at which the



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

def peering_dbfacility_id
  @peering_dbfacility_id
end

Class Method Details

.mapperObject

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



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
77
78
79
80
81
# File 'lib/2019-08-01-preview/generated/azure_mgmt_peering/models/exchange_connection.rb', line 35

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ExchangeConnection',
    type: {
      name: 'Composite',
      class_name: 'ExchangeConnection',
      model_properties: {
        peering_dbfacility_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'peeringDBFacilityId',
          type: {
            name: 'Number'
          }
        },
        connection_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'connectionState',
          type: {
            name: 'String'
          }
        },
        bgp_session: {
          client_side_validation: true,
          required: false,
          serialized_name: 'bgpSession',
          type: {
            name: 'Composite',
            class_name: 'BgpSession'
          }
        },
        connection_identifier: {
          client_side_validation: true,
          required: false,
          serialized_name: 'connectionIdentifier',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end