Class: Google::Apis::WorkstationsV1::PortRange
- Inherits:
-
Object
- Object
- Google::Apis::WorkstationsV1::PortRange
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workstations_v1/classes.rb,
lib/google/apis/workstations_v1/representations.rb,
lib/google/apis/workstations_v1/representations.rb
Overview
A PortRange defines a range of ports. Both first and last are inclusive. To specify a single port, both first and last should be the same.
Instance Attribute Summary collapse
-
#first ⇒ Fixnum
Required.
-
#last ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PortRange
constructor
A new instance of PortRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PortRange
Returns a new instance of PortRange.
1436 1437 1438 |
# File 'lib/google/apis/workstations_v1/classes.rb', line 1436 def initialize(**args) update!(**args) end |
Instance Attribute Details
#first ⇒ Fixnum
Required. Starting port number for the current range of ports. Valid ports are
22, 80, and ports within the range 1024-65535.
Corresponds to the JSON property first
1428 1429 1430 |
# File 'lib/google/apis/workstations_v1/classes.rb', line 1428 def first @first end |
#last ⇒ Fixnum
Required. Ending port number for the current range of ports. Valid ports are
22, 80, and ports within the range 1024-65535.
Corresponds to the JSON property last
1434 1435 1436 |
# File 'lib/google/apis/workstations_v1/classes.rb', line 1434 def last @last end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1441 1442 1443 1444 |
# File 'lib/google/apis/workstations_v1/classes.rb', line 1441 def update!(**args) @first = args[:first] if args.key?(:first) @last = args[:last] if args.key?(:last) end |