# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::TlsRoute (v2.10.1)

2.10.1 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.1 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.2.0 0.1.0 Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::TlsRoute.

TlsRoute defines how traffic should be routed based on SNI and other matching
L3 attributes.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The timestamp when the resource was created.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Optional. A free-text description of the resource. Max length 1024 characters.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A free-text description of the resource. Max length 1024 characters.
**Returns**

- (::String) --- Optional. A free-text description of the resource. Max length 1024 characters.

### #gateways

    def gateways() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Optional. Gateways defines a list of gateways this TlsRoute 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/*/gateways/<gateway_name>`

### #gateways=

    def gateways=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Optional. Gateways defines a list of gateways this TlsRoute 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/*/gateways/<gateway_name>`
**Returns**

- (::Array\<::String\>) --- Optional. Gateways defines a list of gateways this TlsRoute 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/*/gateways/<gateway_name>`

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Set of label tags associated with the TlsRoute resource.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Set of label tags associated with the TlsRoute resource.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Set of label tags associated with the TlsRoute resource.

### #meshes

    def meshes() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Optional. Meshes defines a list of meshes this TlsRoute 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/*/meshes/<mesh_name>`

  The attached Mesh should be of a type SIDECAR

### #meshes=

    def meshes=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Optional. Meshes defines a list of meshes this TlsRoute 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/*/meshes/<mesh_name>`

  The attached Mesh should be of a type SIDECAR
**Returns**

- (::Array\<::String\>) --- Optional. Meshes defines a list of meshes this TlsRoute 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/*/meshes/<mesh_name>`

  The attached Mesh should be of a type SIDECAR

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. Name of the TlsRoute resource. It matches pattern `projects/*/locations/*/tlsRoutes/tls_route_name>`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. Name of the TlsRoute resource. It matches pattern `projects/*/locations/*/tlsRoutes/tls_route_name>`.
**Returns**

- (::String) --- Identifier. Name of the TlsRoute resource. It matches pattern `projects/*/locations/*/tlsRoutes/tls_route_name>`.

### #rules

    def rules() -> ::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteRule>

**Returns**

- (::Array\<[::Google::Cloud::NetworkServices::V1::TlsRoute::RouteRule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-TlsRoute-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::TlsRoute::RouteRule>

**Parameter**

- **value** (::Array\<[::Google::Cloud::NetworkServices::V1::TlsRoute::RouteRule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-TlsRoute-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.
**Returns**

- (::Array\<[::Google::Cloud::NetworkServices::V1::TlsRoute::RouteRule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-TlsRoute-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

**Returns**

- (::String) --- Output only. Server-defined URL of this resource

### #target_proxies

    def target_proxies() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is attached to, as one of the routing rules to route the requests served by the TargetTcpProxy.

  Each TargetTcpProxy reference should match the pattern:
  `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`

### #target_proxies=

    def target_proxies=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is attached to, as one of the routing rules to route the requests served by the TargetTcpProxy.


  Each TargetTcpProxy reference should match the pattern:
  `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
**Returns**

- (::Array\<::String\>) --- Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is attached to, as one of the routing rules to route the requests served by the TargetTcpProxy.

  Each TargetTcpProxy reference should match the pattern:
  `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The timestamp when the resource was updated.