Reference documentation and code samples for the Migrate for Compute Engine V1 API class Google::Cloud::VMMigration::V1::ComputeScheduling.
Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#min_node_cpus
def min_node_cpus() -> ::Integer
Returns
- (::Integer) — The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
#min_node_cpus=
def min_node_cpus=(value) -> ::Integer
Parameter
- value (::Integer) — The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
Returns
- (::Integer) — The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
#node_affinities
def node_affinities() -> ::Array<::Google::Cloud::VMMigration::V1::SchedulingNodeAffinity>
Returns
- (::Array<::Google::Cloud::VMMigration::V1::SchedulingNodeAffinity>) — A set of node affinity and anti-affinity configurations for sole tenant nodes.
#node_affinities=
def node_affinities=(value) -> ::Array<::Google::Cloud::VMMigration::V1::SchedulingNodeAffinity>
Parameter
- value (::Array<::Google::Cloud::VMMigration::V1::SchedulingNodeAffinity>) — A set of node affinity and anti-affinity configurations for sole tenant nodes.
Returns
- (::Array<::Google::Cloud::VMMigration::V1::SchedulingNodeAffinity>) — A set of node affinity and anti-affinity configurations for sole tenant nodes.
#on_host_maintenance
def on_host_maintenance() -> ::Google::Cloud::VMMigration::V1::ComputeScheduling::OnHostMaintenance
Returns
- (::Google::Cloud::VMMigration::V1::ComputeScheduling::OnHostMaintenance) — How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
#on_host_maintenance=
def on_host_maintenance=(value) -> ::Google::Cloud::VMMigration::V1::ComputeScheduling::OnHostMaintenance
Parameter
- value (::Google::Cloud::VMMigration::V1::ComputeScheduling::OnHostMaintenance) — How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
Returns
- (::Google::Cloud::VMMigration::V1::ComputeScheduling::OnHostMaintenance) — How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
#restart_type
def restart_type() -> ::Google::Cloud::VMMigration::V1::ComputeScheduling::RestartType
Returns
-
(::Google::Cloud::VMMigration::V1::ComputeScheduling::RestartType) — 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.
#restart_type=
def restart_type=(value) -> ::Google::Cloud::VMMigration::V1::ComputeScheduling::RestartType
Parameter
-
value (::Google::Cloud::VMMigration::V1::ComputeScheduling::RestartType) — 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.
Returns
-
(::Google::Cloud::VMMigration::V1::ComputeScheduling::RestartType) — 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.