class Google::Apis::VmmigrationV1::ComputeScheduling

Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes.

Attributes

min_node_cpus[RW]

The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured. Corresponds to the JSON property ‘minNodeCpus` @return [Fixnum]

node_affinities[RW]

A set of node affinity and anti-affinity configurations for sole tenant nodes. Corresponds to the JSON property ‘nodeAffinities` @return [Array<Google::Apis::VmmigrationV1::SchedulingNodeAffinity>]

on_host_maintenance[RW]

How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance. Corresponds to the JSON property ‘onHostMaintenance` @return [String]

restart_type[RW]

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. Corresponds to the JSON property `restartType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vmmigration_v1/classes.rb, line 530
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vmmigration_v1/classes.rb, line 535
def update!(**args)
  @min_node_cpus = args[:min_node_cpus] if args.key?(:min_node_cpus)
  @node_affinities = args[:node_affinities] if args.key?(:node_affinities)
  @on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance)
  @restart_type = args[:restart_type] if args.key?(:restart_type)
end