class Google::Apis::NetworksecurityV1::Destination
Specification of traffic destination attributes.
Attributes
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>]
Specification of HTTP header match atrributes. Corresponds to the JSON property `httpHeaderMatch` @return [Google::Apis::NetworksecurityV1::HttpHeaderMatch]
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>]
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
# File lib/google/apis/networksecurity_v1/classes.rb, line 221 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/networksecurity_v1/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