Reference documentation and code samples for the Compute V1 Client class InstancePropertiesPatch.
Represents the change that you want to make to the instance properties.
Generated from protobuf message google.cloud.compute.v1.InstancePropertiesPatch
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ expose_host_topology |
bool
This optional flag exposes the hashed physical host ID. |
↳ labels |
array|Google\Protobuf\Internal\MapField
The label key-value pairs that you want to patch onto the instance. |
↳ metadata |
array|Google\Protobuf\Internal\MapField
The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata. |
getExposeHostTopology
This optional flag exposes the hashed physical host ID.
| Returns | |
|---|---|
| Type | Description |
bool |
|
hasExposeHostTopology
clearExposeHostTopology
setExposeHostTopology
This optional flag exposes the hashed physical host ID.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLabels
The label key-value pairs that you want to patch onto the instance.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField |
|
setLabels
The label key-value pairs that you want to patch onto the instance.
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMetadata
The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField |
|
setMetadata
The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata.
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|