Google Cloud Edge Network V1 Client - Class BgpPeerStatus (0.3.5)

Reference documentation and code samples for the Google Cloud Edge Network V1 Client class BgpPeerStatus.

Status of a BGP peer.

Generated from protobuf message google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus

Namespace

Google \ Cloud \ EdgeNetwork \ V1 \ RouterStatus

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Name of this BGP peer. Unique within the Routers resource.

↳ ip_address string

IP address of the local BGP interface.

↳ peer_ip_address string

IP address of the remote BGP interface.

↳ status int

The current status of BGP.

↳ state string

BGP state as specified in RFC1771.

↳ uptime string

Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds

↳ uptime_seconds int|string

Time this session has been up, in seconds.

↳ prefix_counter Google\Cloud\EdgeNetwork\V1\RouterStatus\PrefixCounter

A collection of counts for prefixes.

getName

Name of this BGP peer. Unique within the Routers resource.

Returns
Type Description
string

setName

Name of this BGP peer. Unique within the Routers resource.

Parameter
Name Description
var string
Returns
Type Description
$this

getIpAddress

IP address of the local BGP interface.

Returns
Type Description
string

setIpAddress

IP address of the local BGP interface.

Parameter
Name Description
var string
Returns
Type Description
$this

getPeerIpAddress

IP address of the remote BGP interface.

Returns
Type Description
string

setPeerIpAddress

IP address of the remote BGP interface.

Parameter
Name Description
var string
Returns
Type Description
$this

getStatus

The current status of BGP.

Returns
Type Description
int

setStatus

The current status of BGP.

Parameter
Name Description
var int
Returns
Type Description
$this

getState

BGP state as specified in RFC1771.

Returns
Type Description
string

setState

BGP state as specified in RFC1771.

Parameter
Name Description
var string
Returns
Type Description
$this

getUptime

Time this session has been up.

Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds

Returns
Type Description
string

setUptime

Time this session has been up.

Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds

Parameter
Name Description
var string
Returns
Type Description
$this

getUptimeSeconds

Time this session has been up, in seconds.

Returns
Type Description
int|string

setUptimeSeconds

Time this session has been up, in seconds.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getPrefixCounter

A collection of counts for prefixes.

Returns
Type Description
Google\Cloud\EdgeNetwork\V1\RouterStatus\PrefixCounter|null

hasPrefixCounter

clearPrefixCounter

setPrefixCounter

A collection of counts for prefixes.

Parameter
Name Description
var Google\Cloud\EdgeNetwork\V1\RouterStatus\PrefixCounter
Returns
Type Description
$this