Class: Google::Apis::NetworkservicesV1::GrpcRouteMethodMatch

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkservices_v1/classes.rb,
lib/google/apis/networkservices_v1/representations.rb,
lib/google/apis/networkservices_v1/representations.rb

Overview

Specifies a match against a method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GrpcRouteMethodMatch

Returns a new instance of GrpcRouteMethodMatch.



1037
1038
1039
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1037

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#case_sensitiveBoolean 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

Returns:

  • (Boolean)


1016
1017
1018
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1016

def case_sensitive
  @case_sensitive
end

#grpc_methodString

Required. Name of the method to match against. If unspecified, will match all methods. Corresponds to the JSON property grpcMethod

Returns:

  • (String)


1023
1024
1025
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1023

def grpc_method
  @grpc_method
end

#grpc_serviceString

Required. Name of the service to match against. If unspecified, will match all services. Corresponds to the JSON property grpcService

Returns:

  • (String)


1029
1030
1031
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1029

def grpc_service
  @grpc_service
end

#typeString

Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used. Corresponds to the JSON property type

Returns:

  • (String)


1035
1036
1037
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1035

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1042
1043
1044
1045
1046
1047
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1042

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