View Source GoogleApi.Batch.V1.Model.InstancePolicy (google_api_batch v0.2.1)

InstancePolicy describes an instance type and resources attached to each VM created by this InstancePolicy.

Attributes

  • accelerators (type: list(GoogleApi.Batch.V1.Model.Accelerator.t), default: nil) - The accelerators attached to each VM instance.
  • bootDisk (type: GoogleApi.Batch.V1.Model.Disk.t, default: nil) - Boot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. Batch API now only supports booting from image.
  • disks (type: list(GoogleApi.Batch.V1.Model.AttachedDisk.t), default: nil) - Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
  • machineType (type: String.t, default: nil) - The Compute Engine machine type.
  • minCpuPlatform (type: String.t, default: nil) - The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
  • provisioningModel (type: String.t, default: nil) - The provisioning model.
  • reservation (type: String.t, default: nil) - Optional. If specified, VMs will consume only the specified reservation. If not specified (default), VMs will consume any applicable reservation.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Batch.V1.Model.InstancePolicy{
  accelerators: [GoogleApi.Batch.V1.Model.Accelerator.t()] | nil,
  bootDisk: GoogleApi.Batch.V1.Model.Disk.t() | nil,
  disks: [GoogleApi.Batch.V1.Model.AttachedDisk.t()] | nil,
  machineType: String.t() | nil,
  minCpuPlatform: String.t() | nil,
  provisioningModel: String.t() | nil,
  reservation: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.