Class: Google::Cloud::NetworkServices::V1::TlsRoute
- Inherits:
-
Object
- Object
- Google::Cloud::NetworkServices::V1::TlsRoute
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/networkservices/v1/tls_route.rb
Overview
TlsRoute defines how traffic should be routed based on SNI and other matching L3 attributes.
Defined Under Namespace
Classes: LabelsEntry, RouteAction, RouteDestination, RouteMatch, RouteRule
Instance Attribute Summary collapse
-
#create_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#description ⇒ ::String
Optional.
-
#gateways ⇒ ::Array<::String>
Optional.
-
#labels ⇒ ::Google::Protobuf::Map{::String => ::String}
Optional.
-
#meshes ⇒ ::Array<::String>
Optional.
-
#name ⇒ ::String
Identifier.
-
#rules ⇒ ::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteRule>
Required.
-
#self_link ⇒ ::String
readonly
Output only.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
Instance Attribute Details
#create_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The timestamp when the resource was created.
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'proto_docs/google/cloud/networkservices/v1/tls_route.rb', line 67 class TlsRoute include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies how to match traffic and how to route traffic when traffic is # matched. # @!attribute [rw] matches # @return [::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteMatch>] # Required. RouteMatch defines the predicate used to match requests to a # given action. Multiple match types are "OR"ed for evaluation. Atleast one # RouteMatch must be supplied. # @!attribute [rw] action # @return [::Google::Cloud::NetworkServices::V1::TlsRoute::RouteAction] # Required. The detailed rule defining how to route matched traffic. class RouteRule include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # RouteMatch defines the predicate used to match requests to a given action. # Multiple match types are "AND"ed for evaluation. # @!attribute [rw] sni_host # @return [::Array<::String>] # Optional. SNI (server name indicator) to match against. # SNI will be matched against all wildcard domains, i.e. `www.example.com` # will be first matched against `www.example.com`, then `*.example.com`, # then `*.com.` # Partial wildcards are not supported, and values like *w.example.com are # invalid. # At least one of sni_host and alpn is required. # Up to 100 sni hosts across all matches can be set. # @!attribute [rw] alpn # @return [::Array<::String>] # Optional. ALPN (Application-Layer Protocol Negotiation) to match against. # Examples: "http/1.1", "h2". # At least one of sni_host and alpn is required. # Up to 5 alpns across all matches can be set. class RouteMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The specifications for routing traffic and applying associated policies. # @!attribute [rw] destinations # @return [::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteDestination>] # Required. The destination services to which traffic should be forwarded. # At least one destination service is required. # @!attribute [rw] idle_timeout # @return [::Google::Protobuf::Duration] # Optional. Specifies the idle timeout for the selected route. The idle # timeout is defined as the period in which there are no bytes sent or # received on either the upstream or downstream connection. If not set, the # default idle timeout is 1 hour. If set to 0s, the timeout will be # disabled. class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Describe the destination for traffic to be routed to. # @!attribute [rw] service_name # @return [::String] # Required. The URL of a BackendService to route traffic to. # @!attribute [rw] weight # @return [::Integer] # Optional. Specifies the proportion of requests forwarded to the backend # referenced by the service_name field. This is computed as: # - weight/Sum(weights in destinations) # Weights in all destinations does not need to sum up to 100. class RouteDestination include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#description ⇒ ::String
Returns Optional. A free-text description of the resource. Max length 1024 characters.
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'proto_docs/google/cloud/networkservices/v1/tls_route.rb', line 67 class TlsRoute include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies how to match traffic and how to route traffic when traffic is # matched. # @!attribute [rw] matches # @return [::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteMatch>] # Required. RouteMatch defines the predicate used to match requests to a # given action. Multiple match types are "OR"ed for evaluation. Atleast one # RouteMatch must be supplied. # @!attribute [rw] action # @return [::Google::Cloud::NetworkServices::V1::TlsRoute::RouteAction] # Required. The detailed rule defining how to route matched traffic. class RouteRule include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # RouteMatch defines the predicate used to match requests to a given action. # Multiple match types are "AND"ed for evaluation. # @!attribute [rw] sni_host # @return [::Array<::String>] # Optional. SNI (server name indicator) to match against. # SNI will be matched against all wildcard domains, i.e. `www.example.com` # will be first matched against `www.example.com`, then `*.example.com`, # then `*.com.` # Partial wildcards are not supported, and values like *w.example.com are # invalid. # At least one of sni_host and alpn is required. # Up to 100 sni hosts across all matches can be set. # @!attribute [rw] alpn # @return [::Array<::String>] # Optional. ALPN (Application-Layer Protocol Negotiation) to match against. # Examples: "http/1.1", "h2". # At least one of sni_host and alpn is required. # Up to 5 alpns across all matches can be set. class RouteMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The specifications for routing traffic and applying associated policies. # @!attribute [rw] destinations # @return [::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteDestination>] # Required. The destination services to which traffic should be forwarded. # At least one destination service is required. # @!attribute [rw] idle_timeout # @return [::Google::Protobuf::Duration] # Optional. Specifies the idle timeout for the selected route. The idle # timeout is defined as the period in which there are no bytes sent or # received on either the upstream or downstream connection. If not set, the # default idle timeout is 1 hour. If set to 0s, the timeout will be # disabled. class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Describe the destination for traffic to be routed to. # @!attribute [rw] service_name # @return [::String] # Required. The URL of a BackendService to route traffic to. # @!attribute [rw] weight # @return [::Integer] # Optional. Specifies the proportion of requests forwarded to the backend # referenced by the service_name field. This is computed as: # - weight/Sum(weights in destinations) # Weights in all destinations does not need to sum up to 100. class RouteDestination include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#gateways ⇒ ::Array<::String>
Returns 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/global/gateways/<gateway_name>.
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'proto_docs/google/cloud/networkservices/v1/tls_route.rb', line 67 class TlsRoute include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies how to match traffic and how to route traffic when traffic is # matched. # @!attribute [rw] matches # @return [::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteMatch>] # Required. RouteMatch defines the predicate used to match requests to a # given action. Multiple match types are "OR"ed for evaluation. Atleast one # RouteMatch must be supplied. # @!attribute [rw] action # @return [::Google::Cloud::NetworkServices::V1::TlsRoute::RouteAction] # Required. The detailed rule defining how to route matched traffic. class RouteRule include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # RouteMatch defines the predicate used to match requests to a given action. # Multiple match types are "AND"ed for evaluation. # @!attribute [rw] sni_host # @return [::Array<::String>] # Optional. SNI (server name indicator) to match against. # SNI will be matched against all wildcard domains, i.e. `www.example.com` # will be first matched against `www.example.com`, then `*.example.com`, # then `*.com.` # Partial wildcards are not supported, and values like *w.example.com are # invalid. # At least one of sni_host and alpn is required. # Up to 100 sni hosts across all matches can be set. # @!attribute [rw] alpn # @return [::Array<::String>] # Optional. ALPN (Application-Layer Protocol Negotiation) to match against. # Examples: "http/1.1", "h2". # At least one of sni_host and alpn is required. # Up to 5 alpns across all matches can be set. class RouteMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The specifications for routing traffic and applying associated policies. # @!attribute [rw] destinations # @return [::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteDestination>] # Required. The destination services to which traffic should be forwarded. # At least one destination service is required. # @!attribute [rw] idle_timeout # @return [::Google::Protobuf::Duration] # Optional. Specifies the idle timeout for the selected route. The idle # timeout is defined as the period in which there are no bytes sent or # received on either the upstream or downstream connection. If not set, the # default idle timeout is 1 hour. If set to 0s, the timeout will be # disabled. class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Describe the destination for traffic to be routed to. # @!attribute [rw] service_name # @return [::String] # Required. The URL of a BackendService to route traffic to. # @!attribute [rw] weight # @return [::Integer] # Optional. Specifies the proportion of requests forwarded to the backend # referenced by the service_name field. This is computed as: # - weight/Sum(weights in destinations) # Weights in all destinations does not need to sum up to 100. class RouteDestination include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#labels ⇒ ::Google::Protobuf::Map{::String => ::String}
Returns Optional. Set of label tags associated with the TlsRoute resource.
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'proto_docs/google/cloud/networkservices/v1/tls_route.rb', line 67 class TlsRoute include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies how to match traffic and how to route traffic when traffic is # matched. # @!attribute [rw] matches # @return [::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteMatch>] # Required. RouteMatch defines the predicate used to match requests to a # given action. Multiple match types are "OR"ed for evaluation. Atleast one # RouteMatch must be supplied. # @!attribute [rw] action # @return [::Google::Cloud::NetworkServices::V1::TlsRoute::RouteAction] # Required. The detailed rule defining how to route matched traffic. class RouteRule include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # RouteMatch defines the predicate used to match requests to a given action. # Multiple match types are "AND"ed for evaluation. # @!attribute [rw] sni_host # @return [::Array<::String>] # Optional. SNI (server name indicator) to match against. # SNI will be matched against all wildcard domains, i.e. `www.example.com` # will be first matched against `www.example.com`, then `*.example.com`, # then `*.com.` # Partial wildcards are not supported, and values like *w.example.com are # invalid. # At least one of sni_host and alpn is required. # Up to 100 sni hosts across all matches can be set. # @!attribute [rw] alpn # @return [::Array<::String>] # Optional. ALPN (Application-Layer Protocol Negotiation) to match against. # Examples: "http/1.1", "h2". # At least one of sni_host and alpn is required. # Up to 5 alpns across all matches can be set. class RouteMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The specifications for routing traffic and applying associated policies. # @!attribute [rw] destinations # @return [::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteDestination>] # Required. The destination services to which traffic should be forwarded. # At least one destination service is required. # @!attribute [rw] idle_timeout # @return [::Google::Protobuf::Duration] # Optional. Specifies the idle timeout for the selected route. The idle # timeout is defined as the period in which there are no bytes sent or # received on either the upstream or downstream connection. If not set, the # default idle timeout is 1 hour. If set to 0s, the timeout will be # disabled. class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Describe the destination for traffic to be routed to. # @!attribute [rw] service_name # @return [::String] # Required. The URL of a BackendService to route traffic to. # @!attribute [rw] weight # @return [::Integer] # Optional. Specifies the proportion of requests forwarded to the backend # referenced by the service_name field. This is computed as: # - weight/Sum(weights in destinations) # Weights in all destinations does not need to sum up to 100. class RouteDestination include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#meshes ⇒ ::Array<::String>
Returns 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/global/meshes/<mesh_name>
The attached Mesh should be of a type SIDECAR.
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'proto_docs/google/cloud/networkservices/v1/tls_route.rb', line 67 class TlsRoute include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies how to match traffic and how to route traffic when traffic is # matched. # @!attribute [rw] matches # @return [::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteMatch>] # Required. RouteMatch defines the predicate used to match requests to a # given action. Multiple match types are "OR"ed for evaluation. Atleast one # RouteMatch must be supplied. # @!attribute [rw] action # @return [::Google::Cloud::NetworkServices::V1::TlsRoute::RouteAction] # Required. The detailed rule defining how to route matched traffic. class RouteRule include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # RouteMatch defines the predicate used to match requests to a given action. # Multiple match types are "AND"ed for evaluation. # @!attribute [rw] sni_host # @return [::Array<::String>] # Optional. SNI (server name indicator) to match against. # SNI will be matched against all wildcard domains, i.e. `www.example.com` # will be first matched against `www.example.com`, then `*.example.com`, # then `*.com.` # Partial wildcards are not supported, and values like *w.example.com are # invalid. # At least one of sni_host and alpn is required. # Up to 100 sni hosts across all matches can be set. # @!attribute [rw] alpn # @return [::Array<::String>] # Optional. ALPN (Application-Layer Protocol Negotiation) to match against. # Examples: "http/1.1", "h2". # At least one of sni_host and alpn is required. # Up to 5 alpns across all matches can be set. class RouteMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The specifications for routing traffic and applying associated policies. # @!attribute [rw] destinations # @return [::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteDestination>] # Required. The destination services to which traffic should be forwarded. # At least one destination service is required. # @!attribute [rw] idle_timeout # @return [::Google::Protobuf::Duration] # Optional. Specifies the idle timeout for the selected route. The idle # timeout is defined as the period in which there are no bytes sent or # received on either the upstream or downstream connection. If not set, the # default idle timeout is 1 hour. If set to 0s, the timeout will be # disabled. class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Describe the destination for traffic to be routed to. # @!attribute [rw] service_name # @return [::String] # Required. The URL of a BackendService to route traffic to. # @!attribute [rw] weight # @return [::Integer] # Optional. Specifies the proportion of requests forwarded to the backend # referenced by the service_name field. This is computed as: # - weight/Sum(weights in destinations) # Weights in all destinations does not need to sum up to 100. class RouteDestination include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#name ⇒ ::String
Returns Identifier. Name of the TlsRoute resource. It matches pattern
projects/*/locations/global/tlsRoutes/tls_route_name>.
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'proto_docs/google/cloud/networkservices/v1/tls_route.rb', line 67 class TlsRoute include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies how to match traffic and how to route traffic when traffic is # matched. # @!attribute [rw] matches # @return [::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteMatch>] # Required. RouteMatch defines the predicate used to match requests to a # given action. Multiple match types are "OR"ed for evaluation. Atleast one # RouteMatch must be supplied. # @!attribute [rw] action # @return [::Google::Cloud::NetworkServices::V1::TlsRoute::RouteAction] # Required. The detailed rule defining how to route matched traffic. class RouteRule include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # RouteMatch defines the predicate used to match requests to a given action. # Multiple match types are "AND"ed for evaluation. # @!attribute [rw] sni_host # @return [::Array<::String>] # Optional. SNI (server name indicator) to match against. # SNI will be matched against all wildcard domains, i.e. `www.example.com` # will be first matched against `www.example.com`, then `*.example.com`, # then `*.com.` # Partial wildcards are not supported, and values like *w.example.com are # invalid. # At least one of sni_host and alpn is required. # Up to 100 sni hosts across all matches can be set. # @!attribute [rw] alpn # @return [::Array<::String>] # Optional. ALPN (Application-Layer Protocol Negotiation) to match against. # Examples: "http/1.1", "h2". # At least one of sni_host and alpn is required. # Up to 5 alpns across all matches can be set. class RouteMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The specifications for routing traffic and applying associated policies. # @!attribute [rw] destinations # @return [::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteDestination>] # Required. The destination services to which traffic should be forwarded. # At least one destination service is required. # @!attribute [rw] idle_timeout # @return [::Google::Protobuf::Duration] # Optional. Specifies the idle timeout for the selected route. The idle # timeout is defined as the period in which there are no bytes sent or # received on either the upstream or downstream connection. If not set, the # default idle timeout is 1 hour. If set to 0s, the timeout will be # disabled. class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Describe the destination for traffic to be routed to. # @!attribute [rw] service_name # @return [::String] # Required. The URL of a BackendService to route traffic to. # @!attribute [rw] weight # @return [::Integer] # Optional. Specifies the proportion of requests forwarded to the backend # referenced by the service_name field. This is computed as: # - weight/Sum(weights in destinations) # Weights in all destinations does not need to sum up to 100. class RouteDestination include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#rules ⇒ ::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteRule>
Returns 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.
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'proto_docs/google/cloud/networkservices/v1/tls_route.rb', line 67 class TlsRoute include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies how to match traffic and how to route traffic when traffic is # matched. # @!attribute [rw] matches # @return [::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteMatch>] # Required. RouteMatch defines the predicate used to match requests to a # given action. Multiple match types are "OR"ed for evaluation. Atleast one # RouteMatch must be supplied. # @!attribute [rw] action # @return [::Google::Cloud::NetworkServices::V1::TlsRoute::RouteAction] # Required. The detailed rule defining how to route matched traffic. class RouteRule include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # RouteMatch defines the predicate used to match requests to a given action. # Multiple match types are "AND"ed for evaluation. # @!attribute [rw] sni_host # @return [::Array<::String>] # Optional. SNI (server name indicator) to match against. # SNI will be matched against all wildcard domains, i.e. `www.example.com` # will be first matched against `www.example.com`, then `*.example.com`, # then `*.com.` # Partial wildcards are not supported, and values like *w.example.com are # invalid. # At least one of sni_host and alpn is required. # Up to 100 sni hosts across all matches can be set. # @!attribute [rw] alpn # @return [::Array<::String>] # Optional. ALPN (Application-Layer Protocol Negotiation) to match against. # Examples: "http/1.1", "h2". # At least one of sni_host and alpn is required. # Up to 5 alpns across all matches can be set. class RouteMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The specifications for routing traffic and applying associated policies. # @!attribute [rw] destinations # @return [::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteDestination>] # Required. The destination services to which traffic should be forwarded. # At least one destination service is required. # @!attribute [rw] idle_timeout # @return [::Google::Protobuf::Duration] # Optional. Specifies the idle timeout for the selected route. The idle # timeout is defined as the period in which there are no bytes sent or # received on either the upstream or downstream connection. If not set, the # default idle timeout is 1 hour. If set to 0s, the timeout will be # disabled. class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Describe the destination for traffic to be routed to. # @!attribute [rw] service_name # @return [::String] # Required. The URL of a BackendService to route traffic to. # @!attribute [rw] weight # @return [::Integer] # Optional. Specifies the proportion of requests forwarded to the backend # referenced by the service_name field. This is computed as: # - weight/Sum(weights in destinations) # Weights in all destinations does not need to sum up to 100. class RouteDestination include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#self_link ⇒ ::String (readonly)
Returns Output only. Server-defined URL of this resource.
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'proto_docs/google/cloud/networkservices/v1/tls_route.rb', line 67 class TlsRoute include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies how to match traffic and how to route traffic when traffic is # matched. # @!attribute [rw] matches # @return [::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteMatch>] # Required. RouteMatch defines the predicate used to match requests to a # given action. Multiple match types are "OR"ed for evaluation. Atleast one # RouteMatch must be supplied. # @!attribute [rw] action # @return [::Google::Cloud::NetworkServices::V1::TlsRoute::RouteAction] # Required. The detailed rule defining how to route matched traffic. class RouteRule include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # RouteMatch defines the predicate used to match requests to a given action. # Multiple match types are "AND"ed for evaluation. # @!attribute [rw] sni_host # @return [::Array<::String>] # Optional. SNI (server name indicator) to match against. # SNI will be matched against all wildcard domains, i.e. `www.example.com` # will be first matched against `www.example.com`, then `*.example.com`, # then `*.com.` # Partial wildcards are not supported, and values like *w.example.com are # invalid. # At least one of sni_host and alpn is required. # Up to 100 sni hosts across all matches can be set. # @!attribute [rw] alpn # @return [::Array<::String>] # Optional. ALPN (Application-Layer Protocol Negotiation) to match against. # Examples: "http/1.1", "h2". # At least one of sni_host and alpn is required. # Up to 5 alpns across all matches can be set. class RouteMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The specifications for routing traffic and applying associated policies. # @!attribute [rw] destinations # @return [::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteDestination>] # Required. The destination services to which traffic should be forwarded. # At least one destination service is required. # @!attribute [rw] idle_timeout # @return [::Google::Protobuf::Duration] # Optional. Specifies the idle timeout for the selected route. The idle # timeout is defined as the period in which there are no bytes sent or # received on either the upstream or downstream connection. If not set, the # default idle timeout is 1 hour. If set to 0s, the timeout will be # disabled. class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Describe the destination for traffic to be routed to. # @!attribute [rw] service_name # @return [::String] # Required. The URL of a BackendService to route traffic to. # @!attribute [rw] weight # @return [::Integer] # Optional. Specifies the proportion of requests forwarded to the backend # referenced by the service_name field. This is computed as: # - weight/Sum(weights in destinations) # Weights in all destinations does not need to sum up to 100. class RouteDestination include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#update_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The timestamp when the resource was updated.
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'proto_docs/google/cloud/networkservices/v1/tls_route.rb', line 67 class TlsRoute include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies how to match traffic and how to route traffic when traffic is # matched. # @!attribute [rw] matches # @return [::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteMatch>] # Required. RouteMatch defines the predicate used to match requests to a # given action. Multiple match types are "OR"ed for evaluation. Atleast one # RouteMatch must be supplied. # @!attribute [rw] action # @return [::Google::Cloud::NetworkServices::V1::TlsRoute::RouteAction] # Required. The detailed rule defining how to route matched traffic. class RouteRule include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # RouteMatch defines the predicate used to match requests to a given action. # Multiple match types are "AND"ed for evaluation. # @!attribute [rw] sni_host # @return [::Array<::String>] # Optional. SNI (server name indicator) to match against. # SNI will be matched against all wildcard domains, i.e. `www.example.com` # will be first matched against `www.example.com`, then `*.example.com`, # then `*.com.` # Partial wildcards are not supported, and values like *w.example.com are # invalid. # At least one of sni_host and alpn is required. # Up to 100 sni hosts across all matches can be set. # @!attribute [rw] alpn # @return [::Array<::String>] # Optional. ALPN (Application-Layer Protocol Negotiation) to match against. # Examples: "http/1.1", "h2". # At least one of sni_host and alpn is required. # Up to 5 alpns across all matches can be set. class RouteMatch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The specifications for routing traffic and applying associated policies. # @!attribute [rw] destinations # @return [::Array<::Google::Cloud::NetworkServices::V1::TlsRoute::RouteDestination>] # Required. The destination services to which traffic should be forwarded. # At least one destination service is required. # @!attribute [rw] idle_timeout # @return [::Google::Protobuf::Duration] # Optional. Specifies the idle timeout for the selected route. The idle # timeout is defined as the period in which there are no bytes sent or # received on either the upstream or downstream connection. If not set, the # default idle timeout is 1 hour. If set to 0s, the timeout will be # disabled. class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Describe the destination for traffic to be routed to. # @!attribute [rw] service_name # @return [::String] # Required. The URL of a BackendService to route traffic to. # @!attribute [rw] weight # @return [::Integer] # Optional. Specifies the proportion of requests forwarded to the backend # referenced by the service_name field. This is computed as: # - weight/Sum(weights in destinations) # Weights in all destinations does not need to sum up to 100. class RouteDestination include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |