Class: Google::Cloud::NetworkServices::V1::GrpcRoute::HeaderMatch

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/networkservices/v1/grpc_route.rb

Overview

A match against a collection of headers.

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Attribute Details

#key::String

Returns Required. The key of the header.

Returns:

  • (::String)

    Required. The key of the header.



152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# File 'proto_docs/google/cloud/networkservices/v1/grpc_route.rb', line 152

class HeaderMatch
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of match.
  module Type
    # Unspecified.
    TYPE_UNSPECIFIED = 0

    # Will only match the exact value provided.
    EXACT = 1

    # Will match paths conforming to the prefix specified by value. RE2
    # syntax is supported.
    REGULAR_EXPRESSION = 2
  end
end

#type::Google::Cloud::NetworkServices::V1::GrpcRoute::HeaderMatch::Type

Returns Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.

Returns:



152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# File 'proto_docs/google/cloud/networkservices/v1/grpc_route.rb', line 152

class HeaderMatch
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of match.
  module Type
    # Unspecified.
    TYPE_UNSPECIFIED = 0

    # Will only match the exact value provided.
    EXACT = 1

    # Will match paths conforming to the prefix specified by value. RE2
    # syntax is supported.
    REGULAR_EXPRESSION = 2
  end
end

#value::String

Returns Required. The value of the header.

Returns:

  • (::String)

    Required. The value of the header.



152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# File 'proto_docs/google/cloud/networkservices/v1/grpc_route.rb', line 152

class HeaderMatch
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of match.
  module Type
    # Unspecified.
    TYPE_UNSPECIFIED = 0

    # Will only match the exact value provided.
    EXACT = 1

    # Will match paths conforming to the prefix specified by value. RE2
    # syntax is supported.
    REGULAR_EXPRESSION = 2
  end
end