Class ServiceSpec
User modifiable service configuration.
Namespace: Neon.Docker
Assembly: Neon.Docker.dll
Syntax
public class ServiceSpec
Properties
EndpointSpec
Service endpoint and Docker load balancer settings.
Declaration
public ServiceEndpointSpec EndpointSpec { get; set; }
Property Value
Type | Description |
---|---|
ServiceEndpointSpec |
Labels
Service labels.
Declaration
public Dictionary<string, string> Labels { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> |
Mode
Service scheduling mode details.
Declaration
public ServiceSchedulingMode Mode { get; set; }
Property Value
Type | Description |
---|---|
ServiceSchedulingMode |
Name
The service Name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Networks
Specifies attached networks.
Declaration
public List<ServiceNetwork> Networks { get; set; }
Property Value
Type | Description |
---|---|
List<ServiceNetwork> |
RollbackConfig
Specifies the service update strategy.
Declaration
public ServiceRollbackConfig RollbackConfig { get; set; }
Property Value
Type | Description |
---|---|
ServiceRollbackConfig |
TaskTemplate
User modifiable service task configuration.
Declaration
public ServiceTaskTemplate TaskTemplate { get; set; }
Property Value
Type | Description |
---|---|
ServiceTaskTemplate |
UpdateConfig
Specifies the service update strategy.
Declaration
public ServiceUpdateConfig UpdateConfig { get; set; }
Property Value
Type | Description |
---|---|
ServiceUpdateConfig |
Methods
Normalize()
Recursively ensures ensures that any null class or list related properties are replaced with instances with default values or empty lists.
Declaration
public void Normalize()