Google Cloud Ai Platform V1 Client - Class Port (0.16.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class Port.

Represents a network port in a container.

Generated from protobuf message google.cloud.aiplatform.v1.Port

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ container_port int

The number of the port to expose on the pod's IP address. Must be a valid port number, between 1 and 65535 inclusive.

getContainerPort

The number of the port to expose on the pod's IP address.

Must be a valid port number, between 1 and 65535 inclusive.

Returns
TypeDescription
int

setContainerPort

The number of the port to expose on the pod's IP address.

Must be a valid port number, between 1 and 65535 inclusive.

Parameter
NameDescription
var int
Returns
TypeDescription
$this