Class: Google::Apis::NetworksecurityV1beta1::Destination
- Inherits:
-
Object
- Object
- Google::Apis::NetworksecurityV1beta1::Destination
- 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
-
#hosts ⇒ Array<String>
Required.
-
#http_header_match ⇒ Google::Apis::NetworksecurityV1beta1::HttpHeaderMatch
Specification of HTTP header match attributes.
-
#methods_prop ⇒ Array<String>
Optional.
-
#ports ⇒ Array<Fixnum>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Destination
constructor
A new instance of Destination.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Destination
Returns a new instance of Destination.
1096 1097 1098 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1096 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hosts ⇒ 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 "*".
Corresponds to the JSON property hosts
1078 1079 1080 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1078 def hosts @hosts end |
#http_header_match ⇒ Google::Apis::NetworksecurityV1beta1::HttpHeaderMatch
Specification of HTTP header match attributes.
Corresponds to the JSON property httpHeaderMatch
1083 1084 1085 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1083 def http_header_match @http_header_match end |
#methods_prop ⇒ Array<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
1089 1090 1091 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1089 def methods_prop @methods_prop end |
#ports ⇒ Array<Fixnum>
Required. List of destination ports to match. At least one port should match.
Corresponds to the JSON property ports
1094 1095 1096 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1094 def ports @ports end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1101 1102 1103 1104 1105 1106 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1101 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 |