AllocationPolicyResponse class

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

Constructors

AllocationPolicyResponse({required Input<List<InstancePolicyOrTemplateResponse>> instances, required Input<Map<String, String>> labels, required Input<LocationPolicyResponse> location, required Input<NetworkPolicyResponse> network, required Input<PlacementPolicyResponse> placement, required Input<ServiceAccountResponse> serviceAccount})
Creates a new AllocationPolicyResponse. instances Describe instances that can be created by this AllocationPolicy. Only instances0 is supported now. labels 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 Location where compute resources should be allocated for the Job. network 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 The placement policy. serviceAccount Service account that VMs will run as.
const
AllocationPolicyResponse.fromMap(Map<String, dynamic> map)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
instances → Input<List<InstancePolicyOrTemplateResponse>>
Describe instances that can be created by this AllocationPolicy. Only instances0 is supported now.
final
labels → Input<Map<String, String>>
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.
final
location → Input<LocationPolicyResponse>
Location where compute resources should be allocated for the Job.
final
network → Input<NetworkPolicyResponse>
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.
final
placement → Input<PlacementPolicyResponse>
The placement policy.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serviceAccount → Input<ServiceAccountResponse>
Service account that VMs will run as.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited