Migrate for Compute Engine V1 API - Class Google::Cloud::VMMigration::V1::ComputeScheduling (v0.8.0)

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

#node_affinities=

def node_affinities=(value) -> ::Array<::Google::Cloud::VMMigration::V1::SchedulingNodeAffinity>
Parameter
Returns

#on_host_maintenance

def on_host_maintenance() -> ::Google::Cloud::VMMigration::V1::ComputeScheduling::OnHostMaintenance
Returns

#on_host_maintenance=

def on_host_maintenance=(value) -> ::Google::Cloud::VMMigration::V1::ComputeScheduling::OnHostMaintenance
Parameter
Returns

#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.