Class: Google::Apis::NetworkservicesV1beta1::TlsRouteRouteMatch
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1beta1::TlsRouteRouteMatch
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkservices_v1beta1/classes.rb,
lib/google/apis/networkservices_v1beta1/representations.rb,
lib/google/apis/networkservices_v1beta1/representations.rb
Overview
RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "AND"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
Instance Attribute Summary collapse
-
#alpn ⇒ Array<String>
Optional.
-
#sni_host ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TlsRouteRouteMatch
constructor
A new instance of TlsRouteRouteMatch.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TlsRouteRouteMatch
Returns a new instance of TlsRouteRouteMatch.
2908 2909 2910 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 2908 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alpn ⇒ 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.
Corresponds to the JSON property alpn
2896 2897 2898 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 2896 def alpn @alpn end |
#sni_host ⇒ 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 5 sni hosts across all
matches can be set.
Corresponds to the JSON property sniHost
2906 2907 2908 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 2906 def sni_host @sni_host end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2913 2914 2915 2916 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 2913 def update!(**args) @alpn = args[:alpn] if args.key?(:alpn) @sni_host = args[:sni_host] if args.key?(:sni_host) end |