Google Cloud Edge Network V1 Client - Class BgpPeer (1.1.0)

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

BGPPeer defines the peer side layer-3 information for building the BGP session.

Generated from protobuf message google.cloud.edgenetwork.v1.Router.BgpPeer

Namespace

Google \ Cloud \ EdgeNetwork \ V1 \ Router

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 Zones resource.

↳ interface string

Name of the RouterInterface the BGP peer is associated with.

↳ interface_ipv4_cidr string

IP range of the interface within Google.

↳ interface_ipv6_cidr string

IPv6 range of the interface within Google.

↳ peer_ipv4_cidr string

IP range of the BGP interface outside Google.

↳ peer_ipv6_cidr string

IPv6 range of the BGP interface outside Google.

↳ peer_asn int

Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value.

↳ local_asn int

Output only. Local BGP Autonomous System Number (ASN). This field is ST_NOT_REQUIRED because it stores private ASNs, which are meaningless outside the zone in which they are being used.

getName

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

Returns
Type Description
string

setName

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

Parameter
Name Description
var string
Returns
Type Description
$this

getInterface

Name of the RouterInterface the BGP peer is associated with.

Returns
Type Description
string

setInterface

Name of the RouterInterface the BGP peer is associated with.

Parameter
Name Description
var string
Returns
Type Description
$this

getInterfaceIpv4Cidr

IP range of the interface within Google.

Returns
Type Description
string

setInterfaceIpv4Cidr

IP range of the interface within Google.

Parameter
Name Description
var string
Returns
Type Description
$this

getInterfaceIpv6Cidr

IPv6 range of the interface within Google.

Returns
Type Description
string

setInterfaceIpv6Cidr

IPv6 range of the interface within Google.

Parameter
Name Description
var string
Returns
Type Description
$this

getPeerIpv4Cidr

IP range of the BGP interface outside Google.

Returns
Type Description
string

setPeerIpv4Cidr

IP range of the BGP interface outside Google.

Parameter
Name Description
var string
Returns
Type Description
$this

getPeerIpv6Cidr

IPv6 range of the BGP interface outside Google.

Returns
Type Description
string

setPeerIpv6Cidr

IPv6 range of the BGP interface outside Google.

Parameter
Name Description
var string
Returns
Type Description
$this

getPeerAsn

Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value.

Returns
Type Description
int

setPeerAsn

Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value.

Parameter
Name Description
var int
Returns
Type Description
$this

getLocalAsn

Output only. Local BGP Autonomous System Number (ASN).

This field is ST_NOT_REQUIRED because it stores private ASNs, which are meaningless outside the zone in which they are being used.

Returns
Type Description
int

setLocalAsn

Output only. Local BGP Autonomous System Number (ASN).

This field is ST_NOT_REQUIRED because it stores private ASNs, which are meaningless outside the zone in which they are being used.

Parameter
Name Description
var int
Returns
Type Description
$this