Class: Google::Apis::NetworkservicesV1beta1::TcpRouteRouteMatch
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1beta1::TcpRouteRouteMatch
- 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 "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
Instance Attribute Summary collapse
-
#address ⇒ String
Required.
-
#port ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TcpRouteRouteMatch
constructor
A new instance of TcpRouteRouteMatch.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TcpRouteRouteMatch
Returns a new instance of TcpRouteRouteMatch.
3434 3435 3436 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3434 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ String
Required. Must be specified in the CIDR range format. A CIDR range consists of
an IP Address and a prefix length to construct the subnet mask. By default,
the prefix length is 32 (i.e. matches a single IP address). Only IPV4
addresses are supported. Examples: "10.0.0.1" - matches against this exact IP
address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0
subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.
Corresponds to the JSON property address
3427 3428 3429 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3427 def address @address end |
#port ⇒ String
Required. Specifies the destination port to match against.
Corresponds to the JSON property port
3432 3433 3434 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3432 def port @port end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3439 3440 3441 3442 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3439 def update!(**args) @address = args[:address] if args.key?(:address) @port = args[:port] if args.key?(:port) end |