ServiceTaskSpec class
Constructors
-
ServiceTaskSpec({required Input<
ServiceTaskSpecContainerSpec> containerSpec, Input<int?> ? forceUpdate, Input<ServiceTaskSpecLogDriver?> ? logDriver, Input<List< ? networksAdvanceds, Input<ServiceTaskSpecNetworksAdvanced> ?>ServiceTaskSpecPlacement?> ? placement, Input<ServiceTaskSpecResources?> ? resources, Input<ServiceTaskSpecRestartPolicy?> ? restartPolicy, Input<String?> ? runtime}) -
Creates a new ServiceTaskSpec.
containerSpecThe spec for each containerforceUpdateA counter that triggers an update even if no relevant parameters have been changed. See the spec.logDriverSpecifies 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 specifiednetworksAdvancedsThe networks the container is attached toplacementThe placement preferencesresourcesResource requirements which apply to each individual container created as part of the servicerestartPolicySpecification for the restart policy which applies to containers created as part of this service.runtimeRuntime 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