GoogleApi.Compute.V1.Model.Scheduling (google_api_compute v0.41.0) View Source

Sets the scheduling options for an Instance. NextID: 21

Attributes

  • automaticRestart (type: boolean(), default: nil) - Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.
  • locationHint (type: String.t, default: nil) - An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.
  • minNodeCpus (type: integer(), default: nil) - The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
  • nodeAffinities (type: list(GoogleApi.Compute.V1.Model.SchedulingNodeAffinity.t), default: nil) - A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
  • onHostMaintenance (type: String.t, default: nil) - Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Setting Instance Scheduling Options.
  • preemptible (type: boolean(), default: nil) - Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a TERMINATED state. See Instance Life Cycle for more information on the possible instance states.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Compute.V1.Model.Scheduling{
  automaticRestart: boolean() | nil,
  locationHint: String.t() | nil,
  minNodeCpus: integer() | nil,
  nodeAffinities: [GoogleApi.Compute.V1.Model.SchedulingNodeAffinity.t()] | nil,
  onHostMaintenance: String.t() | nil,
  preemptible: boolean() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.