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

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
NameDescription
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
TypeDescription
string

setName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getIpAddress

IP address of the local BGP interface.

Returns
TypeDescription
string

setIpAddress

IP address of the local BGP interface.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPeerIpAddress

IP address of the remote BGP interface.

Returns
TypeDescription
string

setPeerIpAddress

IP address of the remote BGP interface.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStatus

The current status of BGP.

Returns
TypeDescription
int

setStatus

The current status of BGP.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getState

BGP state as specified in RFC1771.

Returns
TypeDescription
string

setState

BGP state as specified in RFC1771.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUptime

Time this session has been up.

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

Returns
TypeDescription
string

setUptime

Time this session has been up.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUptimeSeconds

Time this session has been up, in seconds.

Returns
TypeDescription
int|string

setUptimeSeconds

Time this session has been up, in seconds.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getPrefixCounter

A collection of counts for prefixes.

Returns
TypeDescription
Google\Cloud\EdgeNetwork\V1\RouterStatus\PrefixCounter|null

hasPrefixCounter

clearPrefixCounter

setPrefixCounter

A collection of counts for prefixes.

Parameter
NameDescription
var Google\Cloud\EdgeNetwork\V1\RouterStatus\PrefixCounter
Returns
TypeDescription
$this