Google Cloud Vmware Engine V1 Client - Class PeeringRoute (0.4.0)

Reference documentation and code samples for the Google Cloud Vmware Engine V1 Client class PeeringRoute.

Exchanged network peering route.

Generated from protobuf message google.cloud.vmwareengine.v1.PeeringRoute

Namespace

Google \ Cloud \ VmwareEngine \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ dest_range string

Output only. Destination range of the peering route in CIDR notation.

↳ type int

Output only. Type of the route in the peer VPC network.

↳ next_hop_region string

Output only. Region containing the next hop of the peering route. This field only applies to dynamic routes in the peer VPC network.

↳ priority int|string

Output only. The priority of the peering route.

↳ imported bool

Output only. True if the peering route has been imported from a peered VPC network; false otherwise. The import happens if the field NetworkPeering.importCustomRoutes is true for this network, NetworkPeering.exportCustomRoutes is true for the peer VPC network, and the import does not result in a route conflict.

↳ direction int

Output only. Direction of the routes exchanged with the peer network, from the VMware Engine network perspective: * Routes of direction INCOMING are imported from the peer network. * Routes of direction OUTGOING are exported from the intranet VPC network of the VMware Engine network.

getDestRange

Output only. Destination range of the peering route in CIDR notation.

Returns
TypeDescription
string

setDestRange

Output only. Destination range of the peering route in CIDR notation.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

Output only. Type of the route in the peer VPC network.

Returns
TypeDescription
int

setType

Output only. Type of the route in the peer VPC network.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getNextHopRegion

Output only. Region containing the next hop of the peering route. This field only applies to dynamic routes in the peer VPC network.

Returns
TypeDescription
string

setNextHopRegion

Output only. Region containing the next hop of the peering route. This field only applies to dynamic routes in the peer VPC network.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPriority

Output only. The priority of the peering route.

Returns
TypeDescription
int|string

setPriority

Output only. The priority of the peering route.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getImported

Output only. True if the peering route has been imported from a peered VPC network; false otherwise. The import happens if the field NetworkPeering.importCustomRoutes is true for this network, NetworkPeering.exportCustomRoutes is true for the peer VPC network, and the import does not result in a route conflict.

Returns
TypeDescription
bool

setImported

Output only. True if the peering route has been imported from a peered VPC network; false otherwise. The import happens if the field NetworkPeering.importCustomRoutes is true for this network, NetworkPeering.exportCustomRoutes is true for the peer VPC network, and the import does not result in a route conflict.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getDirection

Output only. Direction of the routes exchanged with the peer network, from the VMware Engine network perspective:

  • Routes of direction INCOMING are imported from the peer network.

  • Routes of direction OUTGOING are exported from the intranet VPC network of the VMware Engine network.

Returns
TypeDescription
int

setDirection

Output only. Direction of the routes exchanged with the peer network, from the VMware Engine network perspective:

  • Routes of direction INCOMING are imported from the peer network.

  • Routes of direction OUTGOING are exported from the intranet VPC network of the VMware Engine network.

Parameter
NameDescription
var int
Returns
TypeDescription
$this