ServiceTaskSpec class

Constructors

ServiceTaskSpec({required Input<ServiceTaskSpecContainerSpec> containerSpec, Input<int?>? forceUpdate, Input<ServiceTaskSpecLogDriver?>? logDriver, Input<List<ServiceTaskSpecNetworksAdvanced>?>? networksAdvanceds, Input<ServiceTaskSpecPlacement?>? placement, Input<ServiceTaskSpecResources?>? resources, Input<ServiceTaskSpecRestartPolicy?>? restartPolicy, Input<String?>? runtime})
Creates a new ServiceTaskSpec. containerSpec The spec for each container forceUpdate A counter that triggers an update even if no relevant parameters have been changed. See the spec. logDriver Specifies the log driver to use for tasks created from this spec. If not present, the default one for the swarm will be used, finally falling back to the engine default if not specified networksAdvanceds The networks the container is attached to placement The placement preferences resources Resource requirements which apply to each individual container created as part of the service restartPolicy Specification for the restart policy which applies to containers created as part of this service. runtime Runtime is the type of runtime specified for the task executor. See the types.
const
ServiceTaskSpec.fromMap(Map<String, dynamic> map)
factory

Properties

containerSpec → Input<ServiceTaskSpecContainerSpec>
The spec for each container
final
forceUpdate → Input<int?>?
A counter that triggers an update even if no relevant parameters have been changed. See the spec.
final
hashCode → int
The hash code for this object.
no setterinherited
logDriver → Input<ServiceTaskSpecLogDriver?>?
Specifies the log driver to use for tasks created from this spec. If not present, the default one for the swarm will be used, finally falling back to the engine default if not specified
final
networksAdvanceds → Input<List<ServiceTaskSpecNetworksAdvanced>?>?
The networks the container is attached to
final
placement → Input<ServiceTaskSpecPlacement?>?
The placement preferences
final
resources → Input<ServiceTaskSpecResources?>?
Resource requirements which apply to each individual container created as part of the service
final
restartPolicy → Input<ServiceTaskSpecRestartPolicy?>?
Specification for the restart policy which applies to containers created as part of this service.
final
runtime → Input<String?>?
Runtime is the type of runtime specified for the task executor. See the types.
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