Reference documentation and code samples for the Compute V1 Client class InstanceWithNamedPorts.
Generated from protobuf message google.cloud.compute.v1.InstanceWithNamedPorts
Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
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.
Generated from protobuf field optional string instance = 18257045;
| Returns | |
|---|---|
| Type | Description |
string |
|
hasInstance
clearInstance
setInstance
[Output Only] The URL of the instance.
Generated from protobuf field optional string instance = 18257045;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNamedPorts
[Output Only] The named ports that belong to this instance group.
Generated from protobuf field repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setNamedPorts
[Output Only] The named ports that belong to this instance group.
Generated from protobuf field repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Cloud\Compute\V1\NamedPort>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getStatus
[Output Only] The status of the instance.
Check the Status enum for the list of possible values.
Generated from protobuf field optional string status = 181260274;
| Returns | |
|---|---|
| Type | Description |
string |
|
hasStatus
clearStatus
setStatus
[Output Only] The status of the instance.
Check the Status enum for the list of possible values.
Generated from protobuf field optional string status = 181260274;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|