PlacementPolicy class
PlacementPolicy describes a group placement policy for the VMs controlled by this AllocationPolicy.
Constructors
-
PlacementPolicy({Input<
String> ? collocation, Input<String> ? maxDistance}) -
Creates a new PlacementPolicy.
collocationUNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you want VMs to be located close to each other for low network latency between the VMs. No placement policy will be generated when collocation is UNSPECIFIED.maxDistanceWhen specified, causes the job to fail if more than max_distance logical switches are required between VMs. Batch uses the most compact possible placement of VMs even when max_distance is not specified. An explicit max_distance makes that level of compactness a strict requirement. Not yet implementedconst -
PlacementPolicy.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
collocation
→ Input<
String> ? -
UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you want VMs to be located close to each other for low network latency between the VMs. No placement policy will be generated when collocation is UNSPECIFIED.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
maxDistance
→ Input<
String> ? -
When specified, causes the job to fail if more than max_distance logical switches are required between VMs. Batch uses the most compact possible placement of VMs even when max_distance is not specified. An explicit max_distance makes that level of compactness a strict requirement. Not yet implemented
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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