class Google::Apis::NetworkservicesV1beta1::TrafficPortSelector

Specification of a port-based selector.

Attributes

ports[RW]

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` @return [Array<String>]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

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