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

Sets the scheduling options for an Instance.

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.
  • instanceTerminationAction (type: String.t, default: nil) - Specifies the termination action for the instance.
  • localSsdRecoveryTimeout (type: GoogleApi.Compute.V1.Model.Duration.t, default: nil) - Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
  • 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 Set VM host maintenance policy.
  • 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.
  • provisioningModel (type: String.t, default: nil) - Specifies the provisioning model of the instance.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

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

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.