Compute V1 Client - Class RouterStatus (1.12.1)

Reference documentation and code samples for the Compute V1 Client class RouterStatus.

Generated from protobuf message google.cloud.compute.v1.RouterStatus

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ best_routesarray<Google\Cloud\Compute\V1\Route>

Best routes for this router's network.

↳ best_routes_for_routerarray<Google\Cloud\Compute\V1\Route>

Best routes learned by this router.

↳ bgp_peer_statusarray<Google\Cloud\Compute\V1\RouterStatusBgpPeerStatus>
↳ nat_statusarray<Google\Cloud\Compute\V1\RouterStatusNatStatus>
↳ networkstring

URI of the network to which this router belongs.

getBestRoutes

Best routes for this router's network.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setBestRoutes

Best routes for this router's network.

Parameter
NameDescription
vararray<Google\Cloud\Compute\V1\Route>
Returns
TypeDescription
$this

getBestRoutesForRouter

Best routes learned by this router.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setBestRoutesForRouter

Best routes learned by this router.

Parameter
NameDescription
vararray<Google\Cloud\Compute\V1\Route>
Returns
TypeDescription
$this

getBgpPeerStatus

Generated from protobuf field repeated .google.cloud.compute.v1.RouterStatusBgpPeerStatus bgp_peer_status = 218459131;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setBgpPeerStatus

Generated from protobuf field repeated .google.cloud.compute.v1.RouterStatusBgpPeerStatus bgp_peer_status = 218459131;

Parameter
NameDescription
vararray<Google\Cloud\Compute\V1\RouterStatusBgpPeerStatus>
Returns
TypeDescription
$this

getNatStatus

Generated from protobuf field repeated .google.cloud.compute.v1.RouterStatusNatStatus nat_status = 63098064;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNatStatus

Generated from protobuf field repeated .google.cloud.compute.v1.RouterStatusNatStatus nat_status = 63098064;

Parameter
NameDescription
vararray<Google\Cloud\Compute\V1\RouterStatusNatStatus>
Returns
TypeDescription
$this

getNetwork

URI of the network to which this router belongs.

Returns
TypeDescription
string

hasNetwork

clearNetwork

setNetwork

URI of the network to which this router belongs.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this