Class: Azure::Network::Mgmt::V2016_12_01::Models::BgpPeerStatus

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-12-01/generated/azure_mgmt_network/models/bgp_peer_status.rb

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#asnInteger

Returns The autonomous system number of the remote BGP peer.

Returns:

  • (Integer)

    The autonomous system number of the remote BGP peer


23
24
25
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 23

def asn
  @asn
end

#connected_durationString

Returns For how long the peering has been up.

Returns:

  • (String)

    For how long the peering has been up


30
31
32
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 30

def connected_duration
  @connected_duration
end

#local_addressString

Returns The virtual network gateway's local address.

Returns:

  • (String)

    The virtual network gateway's local address


17
18
19
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 17

def local_address
  @local_address
end

#messages_receivedInteger

Returns The number of BGP messages received.

Returns:

  • (Integer)

    The number of BGP messages received


39
40
41
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 39

def messages_received
  @messages_received
end

#messages_sentInteger

Returns The number of BGP messages sent.

Returns:

  • (Integer)

    The number of BGP messages sent


36
37
38
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 36

def messages_sent
  @messages_sent
end

#neighborString

Returns The remote BGP peer.

Returns:

  • (String)

    The remote BGP peer


20
21
22
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 20

def neighbor
  @neighbor
end

#routes_receivedInteger

Returns The number of routes learned from this peer.

Returns:

  • (Integer)

    The number of routes learned from this peer


33
34
35
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 33

def routes_received
  @routes_received
end

#stateBgpPeerState

'Unknown', 'Stopped', 'Idle', 'Connecting', 'Connected'

Returns:

  • (BgpPeerState)

    The BGP peer state. Possible values include:


27
28
29
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 27

def state
  @state
end

Class Method Details

.mapperObject

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


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
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/bgp_peer_status.rb', line 46

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',
          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