Class: Azure::Network::Mgmt::V2019_09_01::Models::BgpSettings

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-09-01/generated/azure_mgmt_network/models/bgp_settings.rb

Overview

BGP settings details.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#asnInteger

Returns The BGP speaker's ASN.

Returns:

  • (Integer)

    The BGP speaker's ASN.


16
17
18
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/bgp_settings.rb', line 16

def asn
  @asn
end

#bgp_peering_addressString

speaker.

Returns:

  • (String)

    The BGP peering address and BGP identifier of this BGP


20
21
22
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/bgp_settings.rb', line 20

def bgp_peering_address
  @bgp_peering_address
end

#peer_weightInteger

speaker.

Returns:

  • (Integer)

    The weight added to routes learned from this BGP


24
25
26
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/bgp_settings.rb', line 24

def peer_weight
  @peer_weight
end

Class Method Details

.mapperObject

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


31
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
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/bgp_settings.rb', line 31

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