Google Cloud Edge Network V1 Client - Class Router (0.2.0)

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

Message describing Router object

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

Namespace

Google \ Cloud \ EdgeNetwork \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The canonical resource name of the router.

↳ create_time Google\Protobuf\Timestamp

Output only. The time when the router was created.

↳ update_time Google\Protobuf\Timestamp

Output only. The time when the router was last updated.

↳ labels array|Google\Protobuf\Internal\MapField

Labels associated with this resource.

↳ description string

Optional. A free-text description of the resource. Max length 1024 characters.

↳ network string

Required. The canonical name of the network to which this router belongs. The name is in the form of projects/{project}/locations/{location}/zones/{zone}/networks/{network}.

↳ interface array<Google\Cloud\EdgeNetwork\V1\Router\PBInterface>

Router interfaces.

↳ bgp_peer array<Google\Cloud\EdgeNetwork\V1\Router\BgpPeer>

BGP peers.

↳ bgp Google\Cloud\EdgeNetwork\V1\Router\Bgp

BGP information specific to this router.

↳ state int

Output only. Current stage of the resource to the device by config push.

↳ route_advertisements array

Optional. A list of CIDRs in IP/Length format to advertise northbound as static routes from this router.

getName

Required. The canonical resource name of the router.

Returns
TypeDescription
string

setName

Required. The canonical resource name of the router.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The time when the router was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time when the router was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. The time when the router was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The time when the router was last updated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getLabels

Labels associated with this resource.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Labels associated with this resource.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getDescription

Optional. A free-text description of the resource. Max length 1024 characters.

Returns
TypeDescription
string

setDescription

Optional. A free-text description of the resource. Max length 1024 characters.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNetwork

Required. The canonical name of the network to which this router belongs.

The name is in the form of projects/{project}/locations/{location}/zones/{zone}/networks/{network}.

Returns
TypeDescription
string

setNetwork

Required. The canonical name of the network to which this router belongs.

The name is in the form of projects/{project}/locations/{location}/zones/{zone}/networks/{network}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInterface

Router interfaces.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setInterface

Router interfaces.

Parameter
NameDescription
var array<Google\Cloud\EdgeNetwork\V1\Router\PBInterface>
Returns
TypeDescription
$this

getBgpPeer

BGP peers.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setBgpPeer

BGP peers.

Parameter
NameDescription
var array<Google\Cloud\EdgeNetwork\V1\Router\BgpPeer>
Returns
TypeDescription
$this

getBgp

BGP information specific to this router.

Returns
TypeDescription
Google\Cloud\EdgeNetwork\V1\Router\Bgp|null

hasBgp

clearBgp

setBgp

BGP information specific to this router.

Parameter
NameDescription
var Google\Cloud\EdgeNetwork\V1\Router\Bgp
Returns
TypeDescription
$this

getState

Output only. Current stage of the resource to the device by config push.

Returns
TypeDescription
int

setState

Output only. Current stage of the resource to the device by config push.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRouteAdvertisements

Optional. A list of CIDRs in IP/Length format to advertise northbound as static routes from this router.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setRouteAdvertisements

Optional. A list of CIDRs in IP/Length format to advertise northbound as static routes from this router.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this