Reference documentation and code samples for the Compute V1 Client class SchedulingOnInstanceStopAction.
Defines the behaviour for instances with the instance_termination_action STOP.
Generated from protobuf message google.cloud.compute.v1.SchedulingOnInstanceStopAction
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ discard_local_ssd |
bool
If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD data will be preserved when the instance is stopped at the end of the run duration/termination time. |
getDiscardLocalSsd
If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD data will be preserved when the instance is stopped at the end of the run duration/termination time.
Returns | |
---|---|
Type | Description |
bool |
hasDiscardLocalSsd
clearDiscardLocalSsd
setDiscardLocalSsd
If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD data will be preserved when the instance is stopped at the end of the run duration/termination time.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |