ServiceCreateRequest

constructor(name: String? = null, labels: Map<String, String>? = null, taskTemplate: TaskSpec? = null, mode: ServiceSpecMode? = null, updateConfig: ServiceSpecUpdateConfig? = null, rollbackConfig: ServiceSpecRollbackConfig? = null, networks: List<NetworkAttachmentConfig>? = null, endpointSpec: EndpointSpec? = null)

Parameters

name

Name of the service.

labels

User-defined key/value metadata.

taskTemplate
mode
updateConfig
rollbackConfig
networks

Specifies which networks the service should attach to. Deprecated: This field is deprecated since v1.44. The Networks field in TaskSpec should be used instead.

endpointSpec