class Google::Apis::NetworksecurityV1beta1::Destination

Specification of traffic destination attributes.

Attributes

hosts[RW]

Required. List of host names to match. Matched against HOST 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 ”*“. Corresponds to the JSON property `hosts` @return [Array<String>]

http_header_match[RW]

Specification of HTTP header match atrributes. Corresponds to the JSON property `httpHeaderMatch` @return [Google::Apis::NetworksecurityV1beta1::HttpHeaderMatch]

methods_prop[RW]

Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services. Corresponds to the JSON property `methods` @return [Array<String>]

ports[RW]

Required. List of destination ports to match. At least one port should match. Corresponds to the JSON property `ports` @return [Array<Fixnum>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/networksecurity_v1beta1/classes.rb, line 221
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/networksecurity_v1beta1/classes.rb, line 226
def update!(**args)
  @hosts = args[:hosts] if args.key?(:hosts)
  @http_header_match = args[:http_header_match] if args.key?(:http_header_match)
  @methods_prop = args[:methods_prop] if args.key?(:methods_prop)
  @ports = args[:ports] if args.key?(:ports)
end