Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::TcpRoute.
TcpRoute is the resource defining how TCP traffic should be routed by a Mesh/Gateway resource.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The timestamp when the resource was created.
#description
def description() -> ::String
- (::String) — Optional. A free-text description of the resource. Max length 1024 characters.
#description=
def description=(value) -> ::String
- value (::String) — Optional. A free-text description of the resource. Max length 1024 characters.
- (::String) — Optional. A free-text description of the resource. Max length 1024 characters.
#gateways
def gateways() -> ::Array<::String>
-
(::Array<::String>) — 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>
#gateways=
def gateways=(value) -> ::Array<::String>
-
value (::Array<::String>) — 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>
-
(::Array<::String>) — 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>
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — Optional. Set of label tags associated with the TcpRoute resource.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — Optional. Set of label tags associated with the TcpRoute resource.
- (::Google::Protobuf::Map{::String => ::String}) — Optional. Set of label tags associated with the TcpRoute resource.
#meshes
def meshes() -> ::Array<::String>
-
(::Array<::String>) — 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
#meshes=
def meshes=(value) -> ::Array<::String>
-
value (::Array<::String>) — 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
-
(::Array<::String>) — 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
#name
def name() -> ::String
-
(::String) — Required. Name of the TcpRoute resource. It matches pattern
projects/*/locations/global/tcpRoutes/tcp_route_name>
.
#name=
def name=(value) -> ::String
-
value (::String) — Required. Name of the TcpRoute resource. It matches pattern
projects/*/locations/global/tcpRoutes/tcp_route_name>
.
-
(::String) — Required. Name of the TcpRoute resource. It matches pattern
projects/*/locations/global/tcpRoutes/tcp_route_name>
.
#rules
def rules() -> ::Array<::Google::Cloud::NetworkServices::V1::TcpRoute::RouteRule>
- (::Array<::Google::Cloud::NetworkServices::V1::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.
#rules=
def rules=(value) -> ::Array<::Google::Cloud::NetworkServices::V1::TcpRoute::RouteRule>
- value (::Array<::Google::Cloud::NetworkServices::V1::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.
- (::Array<::Google::Cloud::NetworkServices::V1::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.
#self_link
def self_link() -> ::String
- (::String) — Output only. Server-defined URL of this resource
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The timestamp when the resource was updated.