ServiceTaskSpecPlacement class

Constructors

ServiceTaskSpecPlacement({Input<List<String>?>? constraints, Input<int?>? maxReplicas, Input<List<ServiceTaskSpecPlacementPlatform>?>? platforms, Input<List<String>?>? prefs})
Creates a new ServiceTaskSpecPlacement. constraints An array of constraints. e.g.: node.role==manager maxReplicas Maximum number of replicas for per node (default value is 0, which is unlimited) platforms Platforms stores all the platforms that the service's image can run on prefs 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.manager
const
ServiceTaskSpecPlacement.fromMap(Map<String, dynamic> map)
factory

Properties

constraints → Input<List<String>?>?
An array of constraints. e.g.: node.role==manager
final
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.manager
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