class Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeerAsn

The essential information related to the peer's ASN.

Attributes

peer_asn[RW]

@return [Integer] The Autonomous System Number (ASN) of the peer.

peer_contact_info[RW]

@return [ContactInfo] The contact information of the peer.

peer_name[RW]

@return [String] The name of the peer.

validation_state[RW]

@return [ValidationState] The validation state of the ASN associated with the peer. Possible values include: 'None', 'Pending', 'Approved', 'Failed'

Private Class Methods

mapper() click to toggle source

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

# File lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peer_asn.rb, line 34
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PeerAsn',
    type: {
      name: 'Composite',
      class_name: 'PeerAsn',
      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'
          }
        },
        peer_asn: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.peerAsn',
          type: {
            name: 'Number'
          }
        },
        peer_contact_info: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.peerContactInfo',
          type: {
            name: 'Composite',
            class_name: 'ContactInfo'
          }
        },
        peer_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.peerName',
          type: {
            name: 'String'
          }
        },
        validation_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.validationState',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end