Class TcpRoute (0.2.1)

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

TcpRoute is the resource defining how TCP traffic should be routed by a Mesh/Gateway resource.

Attributes

NameDescription
name str
Required. Name of the TcpRoute resource. It matches pattern ``projects/*/locations/global/tcpRoutes/tcp_route_name>``.
self_link str
Output only. Server-defined URL of this resource
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. The timestamp when the resource was created.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. The timestamp when the resource was updated.
description str
Optional. A free-text description of the resource. Max length 1024 characters.
rules Sequence[google.cloud.network_services_v1.types.TcpRoute.RouteRule]
Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.
meshes Sequence[str]
Optional. Meshes defines a list of meshes this TcpRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: ``projects/*/locations/global/meshes/
gateways Sequence[str]
Optional. Gateways defines a list of gateways this TcpRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: ``projects/*/locations/global/gateways/
labels Mapping[str, str]
Optional. Set of label tags associated with the TcpRoute resource.

Inheritance

builtins.object > proto.message.Message > TcpRoute

Classes

LabelsEntry

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

The abstract base class for a message.

Parameters
NameDescription
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.

RouteAction

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

The specifications for routing traffic and applying associated policies.

RouteDestination

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

Describe the destination for traffic to be routed to.

RouteMatch

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

RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.

RouteRule

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

Specifies how to match traffic and how to route traffic when traffic is matched.