View Source GoogleApi.Batch.V1.Model.InstancePolicyOrTemplate (google_api_batch v0.4.2)

InstancePolicyOrTemplate lets you define the type of resources to use for this job either with an InstancePolicy or an instance template. If undefined, Batch picks the type of VM to use and doesn't include optional VM resources such as GPUs and extra disks.

Attributes

  • installGpuDrivers (type: boolean(), default: nil) - Set this field true if you want Batch to help fetch drivers from a third party location and install them for GPUs specified in policy.accelerators or instance_template on your behalf. Default is false. For Container-Optimized Image cases, Batch will install the accelerator driver following milestones of https://cloud.google.com/container-optimized-os/docs/release-notes. For non Container-Optimized Image cases, following https://github.com/GoogleCloudPlatform/compute-gpu-installation/blob/main/linux/install_gpu_driver.py.
  • installOpsAgent (type: boolean(), default: nil) - Optional. Set this field true if you want Batch to install Ops Agent on your behalf. Default is false.
  • instanceTemplate (type: String.t, default: nil) - Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid c++ keyword conflict.
  • policy (type: GoogleApi.Batch.V1.Model.InstancePolicy.t, default: nil) - InstancePolicy.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Batch.V1.Model.InstancePolicyOrTemplate{
  installGpuDrivers: boolean() | nil,
  installOpsAgent: boolean() | nil,
  instanceTemplate: String.t() | nil,
  policy: GoogleApi.Batch.V1.Model.InstancePolicy.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.