Reference documentation and code samples for the Compute V1 Client class ResourceStatusScheduling.
Generated from protobuf message google.cloud.compute.v1.ResourceStatusScheduling
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ availability_domain |
int
Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance. |
↳ graceful_shutdown_timestamp |
string
Output only. Specifies the timestamp, when the instance will start graceful shutdown process, in RFC3339 text format. |
↳ termination_timestamp |
string
Time in future when the instance will be terminated inRFC3339 text format. |
getAvailabilityDomain
Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasAvailabilityDomain
clearAvailabilityDomain
setAvailabilityDomain
Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGracefulShutdownTimestamp
Output only. Specifies the timestamp, when the instance will start graceful shutdown process, in RFC3339 text format.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasGracefulShutdownTimestamp
clearGracefulShutdownTimestamp
setGracefulShutdownTimestamp
Output only. Specifies the timestamp, when the instance will start graceful shutdown process, in RFC3339 text format.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTerminationTimestamp
Time in future when the instance will be terminated inRFC3339 text format.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasTerminationTimestamp
clearTerminationTimestamp
setTerminationTimestamp
Time in future when the instance will be terminated inRFC3339 text format.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|