class Azure::Peering::Mgmt::V2019_08_01_preview::Models::ExchangeConnection

The properties that define an exchange connection.

Attributes

bgp_session[RW]

@return [BgpSession] The BGP session associated with the connection.

connection_identifier[RW]

@return [String] The unique identifier (GUID) for the connection.

connection_state[RW]

@return [ConnectionState] The state of the connection. Possible values include: 'None', 'PendingApproval', 'Approved', 'ProvisioningStarted', 'ProvisioningFailed', 'ProvisioningCompleted', 'Validating', 'Active'

peering_dbfacility_id[RW]

@return [Integer] The PeeringDB.com ID of the facility at which the connection has to be set up.

Private Class Methods

mapper() click to toggle source

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

# 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