AllocationPolicy class
A Job's resource allocation policy describes when, where, and how compute resources should be allocated for the Job.
Constructors
-
AllocationPolicy({Input<
List< ? instances, Input<InstancePolicyOrTemplate> >Map< ? labels, Input<String, String> >LocationPolicy> ? location, Input<NetworkPolicy> ? network, Input<PlacementPolicy> ? placement, Input<ServiceAccount> ? serviceAccount}) -
Creates a new AllocationPolicy.
instancesDescribe instances that can be created by this AllocationPolicy. Only instances0is supported now.labelsLabels 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.locationLocation where compute resources should be allocated for the Job.networkThe 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.placementThe placement policy.serviceAccountService account that VMs will run as.const -
AllocationPolicy.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
instances
→ Input<
List< ?InstancePolicyOrTemplate> > -
Describe instances that can be created by this AllocationPolicy. Only instances
0is 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<
LocationPolicy> ? -
Location where compute resources should be allocated for the Job.
final
-
network
→ Input<
NetworkPolicy> ? -
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<
PlacementPolicy> ? -
The placement policy.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serviceAccount
→ Input<
ServiceAccount> ? -
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