Class: Google::Apis::ComputeBeta::RouterStatusBgpPeerStatus

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RouterStatusBgpPeerStatus

Returns a new instance of RouterStatusBgpPeerStatus.


8279
8280
8281
# File 'generated/google/apis/compute_beta/classes.rb', line 8279

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#advertised_routesArray<Google::Apis::ComputeBeta::Route>

Routes that were advertised to the remote BGP peer Corresponds to the JSON property advertisedRoutes


8231
8232
8233
# File 'generated/google/apis/compute_beta/classes.rb', line 8231

def advertised_routes
  @advertised_routes
end

#ip_addressString

IP address of the local BGP interface. Corresponds to the JSON property ipAddress

Returns:

  • (String)

8236
8237
8238
# File 'generated/google/apis/compute_beta/classes.rb', line 8236

def ip_address
  @ip_address
end

#linked_vpn_tunnelString

URL of the VPN tunnel that this BGP peer controls. Corresponds to the JSON property linkedVpnTunnel

Returns:

  • (String)

8241
8242
8243
# File 'generated/google/apis/compute_beta/classes.rb', line 8241

def linked_vpn_tunnel
  @linked_vpn_tunnel
end

#nameString

Name of this BGP peer. Unique within the Routers resource. Corresponds to the JSON property name

Returns:

  • (String)

8246
8247
8248
# File 'generated/google/apis/compute_beta/classes.rb', line 8246

def name
  @name
end

#num_learned_routesFixnum

Number of routes learned from the remote BGP Peer. Corresponds to the JSON property numLearnedRoutes

Returns:

  • (Fixnum)

8251
8252
8253
# File 'generated/google/apis/compute_beta/classes.rb', line 8251

def num_learned_routes
  @num_learned_routes
end

#peer_ip_addressString

IP address of the remote BGP interface. Corresponds to the JSON property peerIpAddress

Returns:

  • (String)

8256
8257
8258
# File 'generated/google/apis/compute_beta/classes.rb', line 8256

def peer_ip_address
  @peer_ip_address
end

#stateString

BGP state as specified in RFC1771. Corresponds to the JSON property state

Returns:

  • (String)

8261
8262
8263
# File 'generated/google/apis/compute_beta/classes.rb', line 8261

def state
  @state
end

#statusString

Status of the BGP peer: UP, DOWN Corresponds to the JSON property status

Returns:

  • (String)

8266
8267
8268
# File 'generated/google/apis/compute_beta/classes.rb', line 8266

def status
  @status
end

#uptimeString

Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds Corresponds to the JSON property uptime

Returns:

  • (String)

8272
8273
8274
# File 'generated/google/apis/compute_beta/classes.rb', line 8272

def uptime
  @uptime
end

#uptime_secondsString

Time this session has been up, in seconds. Format: 145 Corresponds to the JSON property uptimeSeconds

Returns:

  • (String)

8277
8278
8279
# File 'generated/google/apis/compute_beta/classes.rb', line 8277

def uptime_seconds
  @uptime_seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
# File 'generated/google/apis/compute_beta/classes.rb', line 8284

def update!(**args)
  @advertised_routes = args[:advertised_routes] if args.key?(:advertised_routes)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @linked_vpn_tunnel = args[:linked_vpn_tunnel] if args.key?(:linked_vpn_tunnel)
  @name = args[:name] if args.key?(:name)
  @num_learned_routes = args[:num_learned_routes] if args.key?(:num_learned_routes)
  @peer_ip_address = args[:peer_ip_address] if args.key?(:peer_ip_address)
  @state = args[:state] if args.key?(:state)
  @status = args[:status] if args.key?(:status)
  @uptime = args[:uptime] if args.key?(:uptime)
  @uptime_seconds = args[:uptime_seconds] if args.key?(:uptime_seconds)
end