Class: Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule::Destination

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/networksecurity/v1beta1/authorization_policy.rb

Overview

Specification of traffic destination attributes.

Defined Under Namespace

Classes: HttpHeaderMatch

Instance Attribute Summary collapse

Instance Attribute Details

#hosts::Array<::String>

Returns Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.") or a suffix match (example ".myorg.com") or a presence (any) match "*".

Returns:

  • (::Array<::String>)

    Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.") or a suffix match (example ".myorg.com") or a presence (any) match "*".



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'proto_docs/google/cloud/networksecurity/v1beta1/authorization_policy.rb', line 121

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

  # Specification of HTTP header match attributes.
  # @!attribute [rw] regex_match
  #   @return [::String]
  #     Required. The value of the header must match the regular expression
  #     specified in regexMatch. For regular expression grammar,
  #     please see: en.cppreference.com/w/cpp/regex/ecmascript
  #     For matching against a port specified in the HTTP
  #     request, use a headerMatch with headerName set to Host
  #     and a regular expression that satisfies the RFC2616 Host
  #     header's port specifier.
  # @!attribute [rw] header_name
  #   @return [::String]
  #     Required. The name of the HTTP header to match. For matching
  #     against the HTTP request's authority, use a headerMatch
  #     with the header name ":authority". For matching a
  #     request's method, use the headerName ":method".
  class HttpHeaderMatch
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#http_header_match::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule::Destination::HttpHeaderMatch

Returns Optional. Match against key:value pair in http header. Provides a flexible match based on HTTP headers, for potentially advanced use cases. At least one header should match. Avoid using header matches to make authorization decisions unless there is a strong guarantee that requests arrive through a trusted client or proxy.

Returns:



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'proto_docs/google/cloud/networksecurity/v1beta1/authorization_policy.rb', line 121

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

  # Specification of HTTP header match attributes.
  # @!attribute [rw] regex_match
  #   @return [::String]
  #     Required. The value of the header must match the regular expression
  #     specified in regexMatch. For regular expression grammar,
  #     please see: en.cppreference.com/w/cpp/regex/ecmascript
  #     For matching against a port specified in the HTTP
  #     request, use a headerMatch with headerName set to Host
  #     and a regular expression that satisfies the RFC2616 Host
  #     header's port specifier.
  # @!attribute [rw] header_name
  #   @return [::String]
  #     Required. The name of the HTTP header to match. For matching
  #     against the HTTP request's authority, use a headerMatch
  #     with the header name ":authority". For matching a
  #     request's method, use the headerName ":method".
  class HttpHeaderMatch
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#methods::Array<::String>

Returns Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.

Returns:

  • (::Array<::String>)

    Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'proto_docs/google/cloud/networksecurity/v1beta1/authorization_policy.rb', line 121

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

  # Specification of HTTP header match attributes.
  # @!attribute [rw] regex_match
  #   @return [::String]
  #     Required. The value of the header must match the regular expression
  #     specified in regexMatch. For regular expression grammar,
  #     please see: en.cppreference.com/w/cpp/regex/ecmascript
  #     For matching against a port specified in the HTTP
  #     request, use a headerMatch with headerName set to Host
  #     and a regular expression that satisfies the RFC2616 Host
  #     header's port specifier.
  # @!attribute [rw] header_name
  #   @return [::String]
  #     Required. The name of the HTTP header to match. For matching
  #     against the HTTP request's authority, use a headerMatch
  #     with the header name ":authority". For matching a
  #     request's method, use the headerName ":method".
  class HttpHeaderMatch
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#ports::Array<::Integer>

Returns Required. List of destination ports to match. At least one port should match.

Returns:

  • (::Array<::Integer>)

    Required. List of destination ports to match. At least one port should match.



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'proto_docs/google/cloud/networksecurity/v1beta1/authorization_policy.rb', line 121

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

  # Specification of HTTP header match attributes.
  # @!attribute [rw] regex_match
  #   @return [::String]
  #     Required. The value of the header must match the regular expression
  #     specified in regexMatch. For regular expression grammar,
  #     please see: en.cppreference.com/w/cpp/regex/ecmascript
  #     For matching against a port specified in the HTTP
  #     request, use a headerMatch with headerName set to Host
  #     and a regular expression that satisfies the RFC2616 Host
  #     header's port specifier.
  # @!attribute [rw] header_name
  #   @return [::String]
  #     Required. The name of the HTTP header to match. For matching
  #     against the HTTP request's authority, use a headerMatch
  #     with the header name ":authority". For matching a
  #     request's method, use the headerName ":method".
  class HttpHeaderMatch
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end