Compute V1 Client - Class InstanceWithNamedPorts (1.10.1)

Reference documentation and code samples for the Compute V1 Client class InstanceWithNamedPorts.

Generated from protobuf message google.cloud.compute.v1.InstanceWithNamedPorts

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ instance string

[Output Only] The URL of the instance.

↳ named_ports array<Google\Cloud\Compute\V1\NamedPort>

[Output Only] The named ports that belong to this instance group.

↳ status string

[Output Only] The status of the instance. Check the Status enum for the list of possible values.

getInstance

[Output Only] The URL of the instance.

Returns
TypeDescription
string

hasInstance

clearInstance

setInstance

[Output Only] The URL of the instance.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNamedPorts

[Output Only] The named ports that belong to this instance group.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNamedPorts

[Output Only] The named ports that belong to this instance group.

Parameter
NameDescription
var array<Google\Cloud\Compute\V1\NamedPort>
Returns
TypeDescription
$this

getStatus

[Output Only] The status of the instance.

Check the Status enum for the list of possible values.

Returns
TypeDescription
string

hasStatus

clearStatus

setStatus

[Output Only] The status of the instance.

Check the Status enum for the list of possible values.

Parameter
NameDescription
var string
Returns
TypeDescription
$this