Class: Google::Apis::NetworksecurityV1beta1::Destination

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networksecurity_v1beta1/classes.rb,
lib/google/apis/networksecurity_v1beta1/representations.rb,
lib/google/apis/networksecurity_v1beta1/representations.rb

Overview

Specification of traffic destination attributes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Destination

Returns a new instance of Destination.



1178
1179
1180
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1178

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#hostsArray<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 "*". Corresponds to the JSON property hosts

Returns:

  • (Array<String>)


1160
1161
1162
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1160

def hosts
  @hosts
end

#http_header_matchGoogle::Apis::NetworksecurityV1beta1::HttpHeaderMatch

Specification of HTTP header match attributes. Corresponds to the JSON property httpHeaderMatch



1165
1166
1167
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1165

def http_header_match
  @http_header_match
end

#methods_propArray<String>

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

Returns:

  • (Array<String>)


1171
1172
1173
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1171

def methods_prop
  @methods_prop
end

#portsArray<Fixnum>

Required. List of destination ports to match. At least one port should match. Corresponds to the JSON property ports

Returns:

  • (Array<Fixnum>)


1176
1177
1178
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1176

def ports
  @ports
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1183
1184
1185
1186
1187
1188
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1183

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