Class: Google::Cloud::NetworkServices::V1::HttpRoute::HeaderMatch

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

Overview

Specifies how to select a route rule based on HTTP request headers.

Defined Under Namespace

Classes: IntegerRange

Instance Attribute Summary collapse

Instance Attribute Details

#exact_match::String

Returns The value of the header should match exactly the content of exact_match.

Note: The following fields are mutually exclusive: exact_match, regex_match, prefix_match, present_match, suffix_match, range_match. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::String)

    The value of the header should match exactly the content of exact_match.

    Note: The following fields are mutually exclusive: exact_match, regex_match, prefix_match, present_match, suffix_match, range_match. If a field in that set is populated, all other fields in the set will automatically be cleared.



141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 141

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

  # Represents an integer value range.
  # @!attribute [rw] start
  #   @return [::Integer]
  #     Start of the range (inclusive)
  # @!attribute [rw] end
  #   @return [::Integer]
  #     End of the range (exclusive)
  class IntegerRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#header::String

Returns The name of the HTTP header to match against.

Returns:

  • (::String)

    The name of the HTTP header to match against.



141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 141

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

  # Represents an integer value range.
  # @!attribute [rw] start
  #   @return [::Integer]
  #     Start of the range (inclusive)
  # @!attribute [rw] end
  #   @return [::Integer]
  #     End of the range (exclusive)
  class IntegerRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#invert_match::Boolean

Returns If specified, the match result will be inverted before checking. Default value is set to false.

Returns:

  • (::Boolean)

    If specified, the match result will be inverted before checking. Default value is set to false.



141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 141

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

  # Represents an integer value range.
  # @!attribute [rw] start
  #   @return [::Integer]
  #     Start of the range (inclusive)
  # @!attribute [rw] end
  #   @return [::Integer]
  #     End of the range (exclusive)
  class IntegerRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#prefix_match::String

Returns The value of the header must start with the contents of prefix_match.

Note: The following fields are mutually exclusive: prefix_match, exact_match, regex_match, present_match, suffix_match, range_match. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::String)

    The value of the header must start with the contents of prefix_match.

    Note: The following fields are mutually exclusive: prefix_match, exact_match, regex_match, present_match, suffix_match, range_match. If a field in that set is populated, all other fields in the set will automatically be cleared.



141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 141

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

  # Represents an integer value range.
  # @!attribute [rw] start
  #   @return [::Integer]
  #     Start of the range (inclusive)
  # @!attribute [rw] end
  #   @return [::Integer]
  #     End of the range (exclusive)
  class IntegerRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#present_match::Boolean

Returns A header with header_name must exist. The match takes place whether or not the header has a value.

Note: The following fields are mutually exclusive: present_match, exact_match, regex_match, prefix_match, suffix_match, range_match. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Boolean)

    A header with header_name must exist. The match takes place whether or not the header has a value.

    Note: The following fields are mutually exclusive: present_match, exact_match, regex_match, prefix_match, suffix_match, range_match. If a field in that set is populated, all other fields in the set will automatically be cleared.



141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 141

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

  # Represents an integer value range.
  # @!attribute [rw] start
  #   @return [::Integer]
  #     Start of the range (inclusive)
  # @!attribute [rw] end
  #   @return [::Integer]
  #     End of the range (exclusive)
  class IntegerRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#range_match::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderMatch::IntegerRange

Returns If specified, the rule will match if the request header value is within the range.

Note: The following fields are mutually exclusive: range_match, exact_match, regex_match, prefix_match, present_match, suffix_match. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderMatch::IntegerRange)

    If specified, the rule will match if the request header value is within the range.

    Note: The following fields are mutually exclusive: range_match, exact_match, regex_match, prefix_match, present_match, suffix_match. If a field in that set is populated, all other fields in the set will automatically be cleared.



141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 141

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

  # Represents an integer value range.
  # @!attribute [rw] start
  #   @return [::Integer]
  #     Start of the range (inclusive)
  # @!attribute [rw] end
  #   @return [::Integer]
  #     End of the range (exclusive)
  class IntegerRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#regex_match::String

Returns The value of the header must match the regular expression specified in regex_match. For regular expression grammar, please see: https://github.com/google/re2/wiki/Syntax

Note: The following fields are mutually exclusive: regex_match, exact_match, prefix_match, present_match, suffix_match, range_match. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::String)

    The value of the header must match the regular expression specified in regex_match. For regular expression grammar, please see: https://github.com/google/re2/wiki/Syntax

    Note: The following fields are mutually exclusive: regex_match, exact_match, prefix_match, present_match, suffix_match, range_match. If a field in that set is populated, all other fields in the set will automatically be cleared.



141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 141

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

  # Represents an integer value range.
  # @!attribute [rw] start
  #   @return [::Integer]
  #     Start of the range (inclusive)
  # @!attribute [rw] end
  #   @return [::Integer]
  #     End of the range (exclusive)
  class IntegerRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#suffix_match::String

Returns The value of the header must end with the contents of suffix_match.

Note: The following fields are mutually exclusive: suffix_match, exact_match, regex_match, prefix_match, present_match, range_match. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::String)

    The value of the header must end with the contents of suffix_match.

    Note: The following fields are mutually exclusive: suffix_match, exact_match, regex_match, prefix_match, present_match, range_match. If a field in that set is populated, all other fields in the set will automatically be cleared.



141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 141

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

  # Represents an integer value range.
  # @!attribute [rw] start
  #   @return [::Integer]
  #     Start of the range (inclusive)
  # @!attribute [rw] end
  #   @return [::Integer]
  #     End of the range (exclusive)
  class IntegerRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end