Class PolicyBasedRoute (2.8.1)

PolicyBasedRoute(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
virtual_machine google.cloud.networkconnectivity_v1.types.PolicyBasedRoute.VirtualMachine
Optional. VM instances that this policy-based route applies to. This field is a member of oneof_ target.
interconnect_attachment google.cloud.networkconnectivity_v1.types.PolicyBasedRoute.InterconnectAttachment
Optional. The interconnect attachments that this policy-based route applies to. This field is a member of oneof_ target.
next_hop_ilb_ip str
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. This field is a member of oneof_ next_hop.
next_hop_other_routes google.cloud.networkconnectivity_v1.types.PolicyBasedRoute.OtherRoutes
Optional. Other routes that will be referenced to determine the next hop of the packet. This field is a member of oneof_ next_hop.
name str
Immutable. A unique name of the resource in the form of projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. Time when the policy-based route was created.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. Time when the policy-based route was updated.
labels MutableMapping[str, str]
User-defined labels.
description str
Optional. An optional description of this resource. Provide this field when you create the resource.
network str
Required. Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
filter google.cloud.networkconnectivity_v1.types.PolicyBasedRoute.Filter
Required. The filter to match L4 traffic.
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 MutableSequence[google.cloud.networkconnectivity_v1.types.PolicyBasedRoute.Warnings]
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
self_link str
Output only. Server-defined fully-qualified URL for this resource.
kind str
Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for policy-based Route resources.

Classes

Filter

Filter(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Filter matches L4 traffic.

InterconnectAttachment

InterconnectAttachment(mapping=None, *, ignore_unknown_fields=False, **kwargs)

InterconnectAttachment that this route applies to.

LabelsEntry

LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
Name Description
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

OtherRoutes

OtherRoutes(value)

The other routing cases.

VirtualMachine

VirtualMachine(mapping=None, *, ignore_unknown_fields=False, **kwargs)

VM instances that this policy-based route applies to.

Warnings

Warnings(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Informational warning message.