AllocationPolicyArgs

data class AllocationPolicyArgs(val instances: Output<List<InstancePolicyOrTemplateArgs>>? = null, val labels: Output<Map<String, String>>? = null, val location: Output<LocationPolicyArgs>? = null, val network: Output<NetworkPolicyArgs>? = null, val placement: Output<PlacementPolicyArgs>? = null, val serviceAccount: Output<ServiceAccountArgs>? = null) : ConvertibleToJava<AllocationPolicyArgs>

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

Constructors

Link copied to clipboard
fun AllocationPolicyArgs(instances: Output<List<InstancePolicyOrTemplateArgs>>? = null, labels: Output<Map<String, String>>? = null, location: Output<LocationPolicyArgs>? = null, network: Output<NetworkPolicyArgs>? = null, placement: Output<PlacementPolicyArgs>? = null, serviceAccount: Output<ServiceAccountArgs>? = null)

Functions

Link copied to clipboard
open override fun toJava(): AllocationPolicyArgs

Properties

Link copied to clipboard

Describe instances that can be created by this AllocationPolicy. Only instances0 is supported now.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

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.

Link copied to clipboard
val location: Output<LocationPolicyArgs>? = null

Location where compute resources should be allocated for the Job.

Link copied to clipboard
val network: Output<NetworkPolicyArgs>? = null

The network policy.

Link copied to clipboard
val placement: Output<PlacementPolicyArgs>? = null

The placement policy.

Link copied to clipboard
val serviceAccount: Output<ServiceAccountArgs>? = null

Service account that VMs will run as.