Class ServiceResources
Specifies the service resource requirements and limits.
Namespace: Neon.Docker
Assembly: Neon.Docker.dll
Syntax
public class ServiceResources
Properties
Limits
Specifies resource limits for service containers.
Declaration
public ServiceResourceSettings Limits { get; set; }
Property Value
Type | Description |
---|---|
ServiceResourceSettings |
Reservations
Specifies resource reservations for service containers.
Declaration
public ServiceResourceSettings Reservations { get; set; }
Property Value
Type | Description |
---|---|
ServiceResourceSettings |
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()