ServiceTaskSpec constructor

const ServiceTaskSpec({
  1. required Input<ServiceTaskSpecContainerSpec> containerSpec,
  2. Input<int?>? forceUpdate,
  3. Input<ServiceTaskSpecLogDriver?>? logDriver,
  4. Input<List<ServiceTaskSpecNetworksAdvanced>?>? networksAdvanceds,
  5. Input<ServiceTaskSpecPlacement?>? placement,
  6. Input<ServiceTaskSpecResources?>? resources,
  7. Input<ServiceTaskSpecRestartPolicy?>? restartPolicy,
  8. 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.

Implementation

const ServiceTaskSpec({
  required this.containerSpec,
  this.forceUpdate,
  this.logDriver,
  this.networksAdvanceds,
  this.placement,
  this.resources,
  this.restartPolicy,
  this.runtime,
});