Google Cloud Ai Platform V1 Client - Class Port (0.31.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

Namespace

Google \ Cloud \ AIPlatform \ V1

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