class Azure::Peering::Mgmt::V2019_08_01_preview::Models::DirectConnection

The properties that define a direct connection.

Attributes

bandwidth_in_mbps[RW]

@return [Integer] The bandwidth of the connection.

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.

provisioned_bandwidth_in_mbps[RW]

@return [Integer] The bandwidth that is actually provisioned.

session_address_provider[RW]

@return [SessionAddressProvider] The field indicating if Microsoft provides session ip addresses. Possible values include: 'Microsoft', 'Peer'

use_for_peering_service[RW]

@return [Boolean] The flag that indicates whether or not the connection is used for peering service.

Private Class Methods

mapper() click to toggle source

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

# File lib/2019-08-01-preview/generated/azure_mgmt_peering/models/direct_connection.rb, line 50
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DirectConnection',
    type: {
      name: 'Composite',
      class_name: 'DirectConnection',
      model_properties: {
        bandwidth_in_mbps: {
          client_side_validation: true,
          required: false,
          serialized_name: 'bandwidthInMbps',
          type: {
            name: 'Number'
          }
        },
        provisioned_bandwidth_in_mbps: {
          client_side_validation: true,
          required: false,
          serialized_name: 'provisionedBandwidthInMbps',
          type: {
            name: 'Number'
          }
        },
        session_address_provider: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sessionAddressProvider',
          type: {
            name: 'String'
          }
        },
        use_for_peering_service: {
          client_side_validation: true,
          required: false,
          serialized_name: 'useForPeeringService',
          type: {
            name: 'Boolean'
          }
        },
        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