ServiceTaskSpecPlacement class
Constructors
-
ServiceTaskSpecPlacement({Input<
List< ? constraints, Input<String> ?>int?> ? maxReplicas, Input<List< ? platforms, Input<ServiceTaskSpecPlacementPlatform> ?>List< ? prefs})String> ?> -
Creates a new ServiceTaskSpecPlacement.
constraintsAn array of constraints. e.g.:node.role==managermaxReplicasMaximum number of replicas for per node (default value is0, which is unlimited)platformsPlatforms stores all the platforms that the service's image can run onprefsPreferences provide a way to make the scheduler aware of factors such as topology. They are provided in order from highest to lowest precedence, e.g.:spread=node.role.managerconst -
ServiceTaskSpecPlacement.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
constraints
→ Input<
List< ?String> ?> -
An array of constraints. e.g.:
node.role==managerfinal - hashCode → int
-
The hash code for this object.
no setterinherited
-
maxReplicas
→ Input<
int?> ? -
Maximum number of replicas for per node (default value is
0, which is unlimited)final -
platforms
→ Input<
List< ?ServiceTaskSpecPlacementPlatform> ?> -
Platforms stores all the platforms that the service's image can run on
final
-
prefs
→ Input<
List< ?String> ?> -
Preferences provide a way to make the scheduler aware of factors such as topology. They are provided in order from highest to lowest precedence, e.g.:
spread=node.role.managerfinal - 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