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

A Job's resource allocation policy describes when, where, and how compute resources should be allocated for the Job.

Attributes

  • instances (type: list(GoogleApi.Batch.V1.Model.InstancePolicyOrTemplate.t), default: nil) - Describe instances that can be created by this AllocationPolicy. Only instances[0] is supported now.
  • labels (type: map(), default: nil) - Labels applied to all VM instances and other resources created by AllocationPolicy. Labels could be user provided or system generated. You can assign up to 64 labels. Google Compute Engine label restrictions apply. Label names that start with "goog-" or "google-" are reserved.
  • location (type: GoogleApi.Batch.V1.Model.LocationPolicy.t, default: nil) - Location where compute resources should be allocated for the Job.
  • network (type: GoogleApi.Batch.V1.Model.NetworkPolicy.t, default: nil) - The network policy. If you define an instance template in the InstancePolicyOrTemplate field, Batch will use the network settings in the instance template instead of this field.
  • placement (type: GoogleApi.Batch.V1.Model.PlacementPolicy.t, default: nil) - The placement policy.
  • serviceAccount (type: GoogleApi.Batch.V1.Model.ServiceAccount.t, default: nil) - Service account that VMs will run as.
  • tags (type: list(String.t), default: nil) - Optional. Tags applied to the VM instances. The tags identify valid sources or targets for network firewalls. Each tag must be 1-63 characters long, and comply with RFC1035.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Batch.V1.Model.AllocationPolicy{
  instances: [GoogleApi.Batch.V1.Model.InstancePolicyOrTemplate.t()] | nil,
  labels: map() | nil,
  location: GoogleApi.Batch.V1.Model.LocationPolicy.t() | nil,
  network: GoogleApi.Batch.V1.Model.NetworkPolicy.t() | nil,
  placement: GoogleApi.Batch.V1.Model.PlacementPolicy.t() | nil,
  serviceAccount: GoogleApi.Batch.V1.Model.ServiceAccount.t() | nil,
  tags: [String.t()] | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.