AllocationPolicyResponse

data class AllocationPolicyResponse(val instances: List<InstancePolicyOrTemplateResponse>, val labels: Map<String, String>, val location: LocationPolicyResponse, val network: NetworkPolicyResponse, val placement: PlacementPolicyResponse, val serviceAccount: ServiceAccountResponse)

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

Constructors

Link copied to clipboard
constructor(instances: List<InstancePolicyOrTemplateResponse>, labels: Map<String, String>, location: LocationPolicyResponse, network: NetworkPolicyResponse, placement: PlacementPolicyResponse, serviceAccount: ServiceAccountResponse)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard

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

Location where compute resources should be allocated for the Job.

Link copied to clipboard

The network policy.

Link copied to clipboard

The placement policy.

Link copied to clipboard

Service account that VMs will run as.