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.

Returns:

  • (::String)

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



129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 129

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.



129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 129

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.



129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 129

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.

Returns:

  • (::String)

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



129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 129

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.

Returns:

  • (::Boolean)

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



129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 129

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.

Returns:



129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 129

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.

Returns:



129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 129

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.

Returns:

  • (::String)

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



129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 129

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