Class: Azure::Network::Mgmt::V2020_08_01::Models::BgpPeerStatus
- Inherits:
-
Object
- Object
- Azure::Network::Mgmt::V2020_08_01::Models::BgpPeerStatus
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-08-01/generated/azure_mgmt_network/models/bgp_peer_status.rb
Overview
BGP peer status details.
Instance Attribute Summary collapse
-
#asn ⇒ Integer
The autonomous system number of the remote BGP peer.
-
#connected_duration ⇒ String
For how long the peering has been up.
-
#local_address ⇒ String
The virtual network gateway’s local address.
-
#messages_received ⇒ Integer
The number of BGP messages received.
-
#messages_sent ⇒ Integer
The number of BGP messages sent.
-
#neighbor ⇒ String
The remote BGP peer.
-
#routes_received ⇒ Integer
The number of routes learned from this peer.
-
#state ⇒ BgpPeerState
‘Unknown’, ‘Stopped’, ‘Idle’, ‘Connecting’, ‘Connected’.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for BgpPeerStatus class as Ruby Hash.
Instance Attribute Details
#asn ⇒ Integer
Returns The autonomous system number of the remote BGP peer.
22 23 24 |
# File 'lib/2020-08-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 22 def asn @asn end |
#connected_duration ⇒ String
Returns For how long the peering has been up.
29 30 31 |
# File 'lib/2020-08-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 29 def connected_duration @connected_duration end |
#local_address ⇒ String
Returns The virtual network gateway’s local address.
16 17 18 |
# File 'lib/2020-08-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 16 def local_address @local_address end |
#messages_received ⇒ Integer
Returns The number of BGP messages received.
38 39 40 |
# File 'lib/2020-08-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 38 def @messages_received end |
#messages_sent ⇒ Integer
Returns The number of BGP messages sent.
35 36 37 |
# File 'lib/2020-08-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 35 def @messages_sent end |
#neighbor ⇒ String
Returns The remote BGP peer.
19 20 21 |
# File 'lib/2020-08-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 19 def neighbor @neighbor end |
#routes_received ⇒ Integer
Returns The number of routes learned from this peer.
32 33 34 |
# File 'lib/2020-08-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 32 def routes_received @routes_received end |
#state ⇒ BgpPeerState
‘Unknown’, ‘Stopped’, ‘Idle’, ‘Connecting’, ‘Connected’
26 27 28 |
# File 'lib/2020-08-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 26 def state @state end |
Class Method Details
.mapper ⇒ Object
Mapper for BgpPeerStatus class as Ruby Hash. This will be used for serialization/deserialization.
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 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
# File 'lib/2020-08-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 45 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'BgpPeerStatus', type: { name: 'Composite', class_name: 'BgpPeerStatus', model_properties: { local_address: { client_side_validation: true, required: false, read_only: true, serialized_name: 'localAddress', type: { name: 'String' } }, neighbor: { client_side_validation: true, required: false, read_only: true, serialized_name: 'neighbor', type: { name: 'String' } }, asn: { client_side_validation: true, required: false, read_only: true, serialized_name: 'asn', constraints: { InclusiveMaximum: 4294967295, InclusiveMinimum: 0 }, type: { name: 'Number' } }, state: { client_side_validation: true, required: false, read_only: true, serialized_name: 'state', type: { name: 'String' } }, connected_duration: { client_side_validation: true, required: false, read_only: true, serialized_name: 'connectedDuration', type: { name: 'String' } }, routes_received: { client_side_validation: true, required: false, read_only: true, serialized_name: 'routesReceived', type: { name: 'Number' } }, messages_sent: { client_side_validation: true, required: false, read_only: true, serialized_name: 'messagesSent', type: { name: 'Number' } }, messages_received: { client_side_validation: true, required: false, read_only: true, serialized_name: 'messagesReceived', type: { name: 'Number' } } } } } end |