Google Cloud Ai Platform V1 Client - Class Port (1.5.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
Name Description
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
Type Description
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
Name Description
var int
Returns
Type Description
$this