/// <summary> /// Initializes a new instance of the <see cref="ServiceEndpoint" /> class. /// </summary> /// <param name="spec">spec.</param> /// <param name="ports">ports.</param> /// <param name="virtualIPs">virtualIPs.</param> public ServiceEndpoint(EndpointSpec spec = default(EndpointSpec), List <EndpointPortConfig> ports = default(List <EndpointPortConfig>), List <ServiceEndpointVirtualIPs> virtualIPs = default(List <ServiceEndpointVirtualIPs>)) { this.Spec = spec; this.Ports = ports; this.VirtualIPs = virtualIPs; }
/// <summary> /// Initializes a new instance of the <see cref="ServiceSpec" /> class. /// </summary> /// <param name="name">Name of the service..</param> /// <param name="labels">User-defined key/value metadata..</param> /// <param name="taskTemplate">taskTemplate.</param> /// <param name="mode">mode.</param> /// <param name="updateConfig">updateConfig.</param> /// <param name="rollbackConfig">rollbackConfig.</param> /// <param name="networks">Array of network names or IDs to attach the service to..</param> /// <param name="endpointSpec">endpointSpec.</param> public ServiceSpec(string name = default(string), Dictionary <string, string> labels = default(Dictionary <string, string>), TaskSpec taskTemplate = default(TaskSpec), ServiceSpecMode mode = default(ServiceSpecMode), ServiceSpecUpdateConfig updateConfig = default(ServiceSpecUpdateConfig), ServiceSpecRollbackConfig rollbackConfig = default(ServiceSpecRollbackConfig), List <TaskSpecNetworks> networks = default(List <TaskSpecNetworks>), EndpointSpec endpointSpec = default(EndpointSpec)) { this.Name = name; this.Labels = labels; this.TaskTemplate = taskTemplate; this.Mode = mode; this.UpdateConfig = updateConfig; this.RollbackConfig = rollbackConfig; this.Networks = networks; this.EndpointSpec = endpointSpec; }