Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::NamedPort (v2.3.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::NamedPort.

The named port. For example: <"http", 80>.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#name

def name() -> ::String
Returns
  • (::String) — The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
Returns
  • (::String) — The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.

#port

def port() -> ::Integer
Returns
  • (::Integer) — The port number, which can be a value between 1 and 65535.

#port=

def port=(value) -> ::Integer
Parameter
  • value (::Integer) — The port number, which can be a value between 1 and 65535.
Returns
  • (::Integer) — The port number, which can be a value between 1 and 65535.