Google Cloud Edge Network V1 Client - Class BgpPeer (0.2.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
NameDescription
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
TypeDescription
string

setName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInterface

Name of the RouterInterface the BGP peer is associated with.

Returns
TypeDescription
string

setInterface

Name of the RouterInterface the BGP peer is associated with.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInterfaceIpv4Cidr

IP range of the interface within Google.

Returns
TypeDescription
string

setInterfaceIpv4Cidr

IP range of the interface within Google.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInterfaceIpv6Cidr

IPv6 range of the interface within Google.

Returns
TypeDescription
string

setInterfaceIpv6Cidr

IPv6 range of the interface within Google.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPeerIpv4Cidr

IP range of the BGP interface outside Google.

Returns
TypeDescription
string

setPeerIpv4Cidr

IP range of the BGP interface outside Google.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPeerIpv6Cidr

IPv6 range of the BGP interface outside Google.

Returns
TypeDescription
string

setPeerIpv6Cidr

IPv6 range of the BGP interface outside Google.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPeerAsn

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

Returns
TypeDescription
int

setPeerAsn

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

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$this