AllocationPolicy class
A Job's resource allocation policy describes when, where, and how compute resources should be allocated for the Job.
Constructors
-
AllocationPolicy({List<
InstancePolicyOrTemplate> ? instances, Map<String, String> ? labels, LocationPolicy? location, NetworkPolicy? network, PlacementPolicy? placement, ServiceAccount? serviceAccount, List<String> ? tags}) - AllocationPolicy.fromJson(Map json_)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
instances
↔ List<
InstancePolicyOrTemplate> ? -
Describe instances that can be created by this AllocationPolicy.
getter/setter pair
-
labels
↔ Map<
String, String> ? -
Labels applied to all VM instances and other resources created by
AllocationPolicy.
getter/setter pair
- location ↔ LocationPolicy?
-
Location where compute resources should be allocated for the Job.
getter/setter pair
- network ↔ NetworkPolicy?
-
The network policy.
getter/setter pair
- placement ↔ PlacementPolicy?
-
The placement policy.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceAccount ↔ ServiceAccount?
-
Service account that VMs will run as.
getter/setter pair
-
Tags applied to the VM instances.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited