Class: Google::Apis::NetworkservicesV1beta1::GrpcRouteMethodMatch
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1beta1::GrpcRouteMethodMatch
- 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
Specifies a match against a method.
Instance Attribute Summary collapse
-
#case_sensitive ⇒ Boolean
(also: #case_sensitive?)
Optional.
-
#grpc_method ⇒ String
Required.
-
#grpc_service ⇒ String
Required.
-
#type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GrpcRouteMethodMatch
constructor
A new instance of GrpcRouteMethodMatch.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GrpcRouteMethodMatch
Returns a new instance of GrpcRouteMethodMatch.
1299 1300 1301 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1299 def initialize(**args) update!(**args) end |
Instance Attribute Details
#case_sensitive ⇒ Boolean Also known as: case_sensitive?
Optional. Specifies that matches are case sensitive. The default value is true.
case_sensitive must not be used with a type of REGULAR_EXPRESSION.
Corresponds to the JSON property caseSensitive
1278 1279 1280 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1278 def case_sensitive @case_sensitive end |
#grpc_method ⇒ String
Required. Name of the method to match against. If unspecified, will match all
methods.
Corresponds to the JSON property grpcMethod
1285 1286 1287 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1285 def grpc_method @grpc_method end |
#grpc_service ⇒ String
Required. Name of the service to match against. If unspecified, will match all
services.
Corresponds to the JSON property grpcService
1291 1292 1293 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1291 def grpc_service @grpc_service end |
#type ⇒ String
Optional. Specifies how to match against the name. If not specified, a default
value of "EXACT" is used.
Corresponds to the JSON property type
1297 1298 1299 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1297 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1304 1305 1306 1307 1308 1309 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1304 def update!(**args) @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive) @grpc_method = args[:grpc_method] if args.key?(:grpc_method) @grpc_service = args[:grpc_service] if args.key?(:grpc_service) @type = args[:type] if args.key?(:type) end |