Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class ComputeScheduling.
Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes.
Generated from protobuf message google.cloud.vmmigration.v1.ComputeScheduling
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ on_host_maintenance
int
How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
↳ restart_type
int
Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to automaticRestart
field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.
↳ node_affinities
array< Google\Cloud\VMMigration\V1\SchedulingNodeAffinity
>
A set of node affinity and anti-affinity configurations for sole tenant nodes.
↳ min_node_cpus
int
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
getOnHostMaintenance
How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
int
setOnHostMaintenance
How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
var
int
$this
getRestartType
Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user).
This configuration is identical to automaticRestart
field in Compute
Engine create instance under scheduling.
It was changed to an enum (instead of a boolean) to match the default
value in Compute Engine which is automatic restart.
int
setRestartType
Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user).
This configuration is identical to automaticRestart
field in Compute
Engine create instance under scheduling.
It was changed to an enum (instead of a boolean) to match the default
value in Compute Engine which is automatic restart.
var
int
$this
getNodeAffinities
A set of node affinity and anti-affinity configurations for sole tenant nodes.
setNodeAffinities
A set of node affinity and anti-affinity configurations for sole tenant nodes.
$this
getMinNodeCpus
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
int
setMinNodeCpus
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
var
int
$this