Class: Azure::Network::Mgmt::V2015_06_15::Models::BgpSettings

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-06-15/generated/azure_mgmt_network/models/bgp_settings.rb

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#asnInteger

Returns Gets or sets this BGP speaker's ASN.

Returns:

  • (Integer)

    Gets or sets this BGP speaker's ASN


17
18
19
# File 'lib/2015-06-15/generated/azure_mgmt_network/models/bgp_settings.rb', line 17

def asn
  @asn
end

#bgp_peering_addressString

identifier of this BGP speaker

Returns:

  • (String)

    Gets or sets the BGP peering address and BGP


21
22
23
# File 'lib/2015-06-15/generated/azure_mgmt_network/models/bgp_settings.rb', line 21

def bgp_peering_address
  @bgp_peering_address
end

#peer_weightInteger

this BGP speaker

Returns:

  • (Integer)

    Gets or sets the weight added to routes learned from


25
26
27
# File 'lib/2015-06-15/generated/azure_mgmt_network/models/bgp_settings.rb', line 25

def peer_weight
  @peer_weight
end

Class Method Details

.mapperObject

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


32
33
34
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
# File 'lib/2015-06-15/generated/azure_mgmt_network/models/bgp_settings.rb', line 32

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'BgpSettings',
    type: {
      name: 'Composite',
      class_name: 'BgpSettings',
      model_properties: {
        asn: {
          client_side_validation: true,
          required: false,
          serialized_name: 'asn',
          type: {
            name: 'Number'
          }
        },
        bgp_peering_address: {
          client_side_validation: true,
          required: false,
          serialized_name: 'bgpPeeringAddress',
          type: {
            name: 'String'
          }
        },
        peer_weight: {
          client_side_validation: true,
          required: false,
          serialized_name: 'peerWeight',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end