Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class PolicyBasedRoute.
Policy-based routes route L4 network traffic based on not just destination IP address, but also source IP address, protocol, and more. If a policy-based route conflicts with other types of routes, the policy-based route always takes precedence.
Generated from protobuf message google.cloud.networkconnectivity.v1.PolicyBasedRoute
Namespace
Google \ Cloud \ NetworkConnectivity \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ virtual_machine
↳ interconnect_attachment
PolicyBasedRoute\InterconnectAttachment
Optional. The interconnect attachments that this policy-based route applies to.
↳ next_hop_ilb_ip
string
Optional. The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. For this version, only nextHopIlbIp is supported.
↳ next_hop_other_routes
int
Optional. Other routes that will be referenced to determine the next hop of the packet.
↳ name
string
Immutable. A unique name of the resource in the form of projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}
↳ create_time
↳ update_time
↳ labels
↳ description
string
Optional. An optional description of this resource. Provide this field when you create the resource.
↳ network
string
Required. Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
↳ filter
↳ priority
int
Optional. The priority of this policy-based route. Priority is used to break ties in cases where there are more than one matching policy-based routes found. In cases where multiple policy-based routes are matched, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 1 to 65535, inclusive.
↳ warnings
array< PolicyBasedRoute\Warnings
>
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
↳ self_link
string
Output only. Server-defined fully-qualified URL for this resource.
↳ kind
string
Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for policy-based Route resources.
getVirtualMachine
Optional. VM instances that this policy-based route applies to.
hasVirtualMachine
setVirtualMachine
Optional. VM instances that this policy-based route applies to.
$this
getInterconnectAttachment
Optional. The interconnect attachments that this policy-based route applies to.
hasInterconnectAttachment
setInterconnectAttachment
Optional. The interconnect attachments that this policy-based route applies to.
$this
getNextHopIlbIp
Optional. The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. For this version, only nextHopIlbIp is supported.
string
hasNextHopIlbIp
setNextHopIlbIp
Optional. The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. For this version, only nextHopIlbIp is supported.
var
string
$this
getNextHopOtherRoutes
Optional. Other routes that will be referenced to determine the next hop of the packet.
int
hasNextHopOtherRoutes
setNextHopOtherRoutes
Optional. Other routes that will be referenced to determine the next hop of the packet.
var
int
$this
getName
Immutable. A unique name of the resource in the form of projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}
string
setName
Immutable. A unique name of the resource in the form of projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}
var
string
$this
getCreateTime
Output only. Time when the policy-based route was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Time when the policy-based route was created.
$this
getUpdateTime
Output only. Time when the policy-based route was updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Time when the policy-based route was updated.
$this
getLabels
User-defined labels.
setLabels
User-defined labels.
$this
getDescription
Optional. An optional description of this resource. Provide this field when you create the resource.
string
setDescription
Optional. An optional description of this resource. Provide this field when you create the resource.
var
string
$this
getNetwork
Required. Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
string
setNetwork
Required. Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
var
string
$this
getFilter
Required. The filter to match L4 traffic.
hasFilter
clearFilter
setFilter
Required. The filter to match L4 traffic.
$this
getPriority
Optional. The priority of this policy-based route. Priority is used to break ties in cases where there are more than one matching policy-based routes found. In cases where multiple policy-based routes are matched, the one with the lowest-numbered priority value wins. The default value is
- The priority value must be from 1 to 65535, inclusive.
int
setPriority
Optional. The priority of this policy-based route. Priority is used to break ties in cases where there are more than one matching policy-based routes found. In cases where multiple policy-based routes are matched, the one with the lowest-numbered priority value wins. The default value is
- The priority value must be from 1 to 65535, inclusive.
var
int
$this
getWarnings
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
setWarnings
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
$this
getSelfLink
Output only. Server-defined fully-qualified URL for this resource.
string
setSelfLink
Output only. Server-defined fully-qualified URL for this resource.
var
string
$this
getKind
Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for policy-based Route resources.
string
setKind
Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for policy-based Route resources.
var
string
$this
getTarget
string
getNextHop
string