Network Security V1beta1 API - Class Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule::Destination (v0.7.0)

Reference documentation and code samples for the Network Security V1beta1 API class Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule::Destination.

Specification of traffic destination attributes.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#hosts

def hosts() -> ::Array<::String>
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 "*".

#hosts=

def hosts=(value) -> ::Array<::String>
Parameter
  • value (::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 "*".
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 "*".

#http_header_match

def http_header_match() -> ::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule::Destination::HttpHeaderMatch
Returns

#http_header_match=

def http_header_match=(value) -> ::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule::Destination::HttpHeaderMatch
Parameter
Returns

#methods

def methods() -> ::Array<::String>
Returns
  • (::Array<::String>) — Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.

#methods=

def methods=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — 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.

#ports

def ports() -> ::Array<::Integer>
Returns
  • (::Array<::Integer>) — Required. List of destination ports to match. At least one port should match.

#ports=

def ports=(value) -> ::Array<::Integer>
Parameter
  • value (::Array<::Integer>) — 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.