Reference documentation and code samples for the Compute V1 Client class InstanceParams.
Additional instance params.
Generated from protobuf message google.cloud.compute.v1.InstanceParams
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ request_valid_for_duration |
Duration
Relative deadline for waiting for capacity. Relevant only for Instances.Insert API. |
↳ resource_manager_tags |
array|Google\Protobuf\Internal\MapField
Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys and values can be either in numeric format, such as |
getRequestValidForDuration
Relative deadline for waiting for capacity. Relevant only for Instances.Insert API.
| Returns | |
|---|---|
| Type | Description |
Duration|null |
|
hasRequestValidForDuration
clearRequestValidForDuration
setRequestValidForDuration
Relative deadline for waiting for capacity. Relevant only for Instances.Insert API.
| Parameter | |
|---|---|
| Name | Description |
var |
Duration
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getResourceManagerTags
Resource manager tags to be bound to the instance. Tag keys and values
have the same definition as resource
manager tags. Keys and values can be either in numeric format,
such as tagKeys/{tag_key_id} and tagValues/456 or in namespaced
format such as {org_id|project_id}/{tag_key_short_name} and
{tag_value_short_name}. The field is ignored (both PUT &
PATCH) when empty.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField |
|
setResourceManagerTags
Resource manager tags to be bound to the instance. Tag keys and values
have the same definition as resource
manager tags. Keys and values can be either in numeric format,
such as tagKeys/{tag_key_id} and tagValues/456 or in namespaced
format such as {org_id|project_id}/{tag_key_short_name} and
{tag_value_short_name}. The field is ignored (both PUT &
PATCH) when empty.
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|