Class: Google::Apis::NetworkservicesV1beta1::TrafficPortSelector
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1beta1::TrafficPortSelector
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkservices_v1beta1/classes.rb,
lib/google/apis/networkservices_v1beta1/representations.rb,
lib/google/apis/networkservices_v1beta1/representations.rb
Overview
Specification of a port-based selector.
Instance Attribute Summary collapse
-
#ports ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TrafficPortSelector
constructor
A new instance of TrafficPortSelector.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TrafficPortSelector
Returns a new instance of TrafficPortSelector.
3719 3720 3721 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3719 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ports ⇒ Array<String>
Optional. A list of ports. Can be port numbers or port range (example, [80-90]
specifies all ports from 80 to 90, including 80 and 90) or named ports or * to
specify all ports. If the list is empty, all ports are selected.
Corresponds to the JSON property ports
3717 3718 3719 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3717 def ports @ports end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3724 3725 3726 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3724 def update!(**args) @ports = args[:ports] if args.key?(:ports) end |