Reference documentation and code samples for the Google Cloud Network Management V1 Client class RouteInfo.
For display only. Metadata associated with a Compute Engine route.
Generated from protobuf message google.cloud.networkmanagement.v1.RouteInfo
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ route_type |
int
Type of route. |
↳ next_hop_type |
int
Type of next hop. |
↳ display_name |
string
Name of a Compute Engine route. |
↳ uri |
string
URI of a Compute Engine route. Dynamic route from cloud router does not have a URI. Advertised route from Google Cloud VPC to on-premises network also does not have a URI. |
↳ dest_ip_range |
string
Destination IP range of the route. |
↳ next_hop |
string
Next hop of the route. |
↳ network_uri |
string
URI of a Compute Engine network. |
↳ priority |
int
Priority of the route. |
↳ instance_tags |
array
Instance tags of the route. |
getRouteType
Type of route.
Returns | |
---|---|
Type | Description |
int |
setRouteType
Type of route.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getNextHopType
Type of next hop.
Returns | |
---|---|
Type | Description |
int |
setNextHopType
Type of next hop.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getDisplayName
Name of a Compute Engine route.
Returns | |
---|---|
Type | Description |
string |
setDisplayName
Name of a Compute Engine route.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getUri
URI of a Compute Engine route.
Dynamic route from cloud router does not have a URI. Advertised route from Google Cloud VPC to on-premises network also does not have a URI.
Returns | |
---|---|
Type | Description |
string |
setUri
URI of a Compute Engine route.
Dynamic route from cloud router does not have a URI. Advertised route from Google Cloud VPC to on-premises network also does not have a URI.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDestIpRange
Destination IP range of the route.
Returns | |
---|---|
Type | Description |
string |
setDestIpRange
Destination IP range of the route.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getNextHop
Next hop of the route.
Returns | |
---|---|
Type | Description |
string |
setNextHop
Next hop of the route.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getNetworkUri
URI of a Compute Engine network.
Returns | |
---|---|
Type | Description |
string |
setNetworkUri
URI of a Compute Engine network.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getPriority
Priority of the route.
Returns | |
---|---|
Type | Description |
int |
setPriority
Priority of the route.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getInstanceTags
Instance tags of the route.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setInstanceTags
Instance tags of the route.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |