Network Services v1 API - Class TcpRoute (1.0.0-beta01)

public sealed class TcpRoute : IMessage<TcpRoute>, IEquatable<TcpRoute>, IDeepCloneable<TcpRoute>, IBufferMessage, IMessage

Reference documentation and code samples for the Network Services v1 API class TcpRoute.

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

Inheritance

object > TcpRoute

Namespace

Google.Cloud.NetworkServices.V1

Assembly

Google.Cloud.NetworkServices.V1.dll

Constructors

TcpRoute()

public TcpRoute()

TcpRoute(TcpRoute)

public TcpRoute(TcpRoute other)
Parameter
Name Description
other TcpRoute

Properties

CreateTime

public Timestamp CreateTime { get; set; }

Output only. The timestamp when the resource was created.

Property Value
Type Description
Timestamp

Description

public string Description { get; set; }

Optional. A free-text description of the resource. Max length 1024 characters.

Property Value
Type Description
string

Gateways

public RepeatedField<string> Gateways { get; }

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/<gateway_name>

Property Value
Type Description
RepeatedFieldstring

GatewaysAsGatewayNames

public ResourceNameList<GatewayName> GatewaysAsGatewayNames { get; }

GatewayName-typed view over the Gateways resource name property.

Property Value
Type Description
ResourceNameListGatewayName

Labels

public MapField<string, string> Labels { get; }

Optional. Set of label tags associated with the TcpRoute resource.

Property Value
Type Description
MapFieldstringstring

Meshes

public RepeatedField<string> Meshes { get; }

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/<mesh_name>

The attached Mesh should be of a type SIDECAR

Property Value
Type Description
RepeatedFieldstring

MeshesAsMeshNames

public ResourceNameList<MeshName> MeshesAsMeshNames { get; }

MeshName-typed view over the Meshes resource name property.

Property Value
Type Description
ResourceNameListMeshName

Name

public string Name { get; set; }

Required. Name of the TcpRoute resource. It matches pattern projects/*/locations/global/tcpRoutes/tcp_route_name>.

Property Value
Type Description
string

Rules

public RepeatedField<TcpRoute.Types.RouteRule> Rules { get; }

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.

Property Value
Type Description
RepeatedFieldTcpRouteTypesRouteRule
public string SelfLink { get; set; }

Output only. Server-defined URL of this resource

Property Value
Type Description
string

TcpRouteName

public TcpRouteName TcpRouteName { get; set; }

TcpRouteName-typed view over the Name resource name property.

Property Value
Type Description
TcpRouteName

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. The timestamp when the resource was updated.

Property Value
Type Description
Timestamp