Cloud Workstations V1BETA API - Class Google::Cloud::Workstations::V1beta::WorkstationConfig::PortRange (v0.9.0)

Reference documentation and code samples for the Cloud Workstations V1BETA API class Google::Cloud::Workstations::V1beta::WorkstationConfig::PortRange.

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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#first

def first() -> ::Integer
Returns
  • (::Integer) — Required. Starting port number for the current range of ports. Valid ports are 22, 80, and ports within the range 1024-65535.

#first=

def first=(value) -> ::Integer
Parameter
  • value (::Integer) — Required. Starting port number for the current range of ports. Valid ports are 22, 80, and ports within the range 1024-65535.
Returns
  • (::Integer) — Required. Starting port number for the current range of ports. Valid ports are 22, 80, and ports within the range 1024-65535.

#last

def last() -> ::Integer
Returns
  • (::Integer) — Required. Ending port number for the current range of ports. Valid ports are 22, 80, and ports within the range 1024-65535.

#last=

def last=(value) -> ::Integer
Parameter
  • value (::Integer) — Required. Ending port number for the current range of ports. Valid ports are 22, 80, and ports within the range 1024-65535.
Returns
  • (::Integer) — Required. Ending port number for the current range of ports. Valid ports are 22, 80, and ports within the range 1024-65535.