Class: Azure::Network::Mgmt::V2020_03_01::Models::BgpSettings

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-03-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/2020-03-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/2020-03-01/generated/azure_mgmt_network/models/bgp_settings.rb', line 20

def bgp_peering_address
  @bgp_peering_address
end

#bgp_peering_addressesArray<IPConfigurationBgpPeeringAddress>

with IP configuration ID for virtual network gateway.

Returns:


28
29
30
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/bgp_settings.rb', line 28

def bgp_peering_addresses
  @bgp_peering_addresses
end

#peer_weightInteger

speaker.

Returns:

  • (Integer)

    The weight added to routes learned from this BGP


24
25
26
# File 'lib/2020-03-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.


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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/bgp_settings.rb', line 35

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'
          }
        },
        bgp_peering_addresses: {
          client_side_validation: true,
          required: false,
          serialized_name: 'bgpPeeringAddresses',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'IPConfigurationBgpPeeringAddressElementType',
                type: {
                  name: 'Composite',
                  class_name: 'IPConfigurationBgpPeeringAddress'
                }
            }
          }
        }
      }
    }
  }
end