Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Secret" /> class.
 /// </summary>
 /// <param name="iD">iD.</param>
 /// <param name="version">version.</param>
 /// <param name="createdAt">createdAt.</param>
 /// <param name="updatedAt">updatedAt.</param>
 /// <param name="spec">spec.</param>
 public Secret(string iD = default(string), ObjectVersion version = default(ObjectVersion), string createdAt = default(string), string updatedAt = default(string), SecretSpec spec = default(SecretSpec))
 {
     this.ID        = iD;
     this.Version   = version;
     this.CreatedAt = createdAt;
     this.UpdatedAt = updatedAt;
     this.Spec      = spec;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Service" /> class.
 /// </summary>
 /// <param name="iD">iD.</param>
 /// <param name="version">version.</param>
 /// <param name="createdAt">createdAt.</param>
 /// <param name="updatedAt">updatedAt.</param>
 /// <param name="spec">spec.</param>
 /// <param name="endpoint">endpoint.</param>
 /// <param name="updateStatus">updateStatus.</param>
 public Service(string iD = default(string), ObjectVersion version = default(ObjectVersion), string createdAt = default(string), string updatedAt = default(string), ServiceSpec spec = default(ServiceSpec), ServiceEndpoint endpoint = default(ServiceEndpoint), ServiceUpdateStatus updateStatus = default(ServiceUpdateStatus))
 {
     this.ID           = iD;
     this.Version      = version;
     this.CreatedAt    = createdAt;
     this.UpdatedAt    = updatedAt;
     this.Spec         = spec;
     this.Endpoint     = endpoint;
     this.UpdateStatus = updateStatus;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Node" /> class.
 /// </summary>
 /// <param name="iD">iD.</param>
 /// <param name="version">version.</param>
 /// <param name="createdAt">Date and time at which the node was added to the swarm in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. .</param>
 /// <param name="updatedAt">Date and time at which the node was last updated in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. .</param>
 /// <param name="spec">spec.</param>
 /// <param name="description">description.</param>
 /// <param name="status">status.</param>
 /// <param name="managerStatus">managerStatus.</param>
 public Node(string iD = default(string), ObjectVersion version = default(ObjectVersion), string createdAt = default(string), string updatedAt = default(string), NodeSpec spec = default(NodeSpec), NodeDescription description = default(NodeDescription), NodeStatus status = default(NodeStatus), ManagerStatus managerStatus = default(ManagerStatus))
 {
     this.ID            = iD;
     this.Version       = version;
     this.CreatedAt     = createdAt;
     this.UpdatedAt     = updatedAt;
     this.Spec          = spec;
     this.Description   = description;
     this.Status        = status;
     this.ManagerStatus = managerStatus;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClusterInfo" /> class.
 /// </summary>
 /// <param name="iD">The ID of the swarm..</param>
 /// <param name="version">version.</param>
 /// <param name="createdAt">Date and time at which the swarm was initialised in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. .</param>
 /// <param name="updatedAt">Date and time at which the swarm was last updated in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. .</param>
 /// <param name="spec">spec.</param>
 /// <param name="tLSInfo">tLSInfo.</param>
 /// <param name="rootRotationInProgress">Whether there is currently a root CA rotation in progress for the swarm.</param>
 /// <param name="defaultAddrPool">Default Address Pool specifies default subnet pools for global scope networks. .</param>
 /// <param name="subnetSize">SubnetSize specifies the subnet size of the networks created from the default subnet pool .</param>
 public ClusterInfo(string iD = default(string), ObjectVersion version = default(ObjectVersion), string createdAt = default(string), string updatedAt = default(string), SwarmSpec spec = default(SwarmSpec), TLSInfo tLSInfo = default(TLSInfo), bool?rootRotationInProgress = default(bool?), List <string> defaultAddrPool = default(List <string>), int?subnetSize = default(int?))
 {
     this.ID        = iD;
     this.Version   = version;
     this.CreatedAt = createdAt;
     this.UpdatedAt = updatedAt;
     this.Spec      = spec;
     this.TLSInfo   = tLSInfo;
     this.RootRotationInProgress = rootRotationInProgress;
     this.DefaultAddrPool        = defaultAddrPool;
     this.SubnetSize             = subnetSize;
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Task" /> class.
 /// </summary>
 /// <param name="iD">The ID of the task..</param>
 /// <param name="version">version.</param>
 /// <param name="createdAt">createdAt.</param>
 /// <param name="updatedAt">updatedAt.</param>
 /// <param name="name">Name of the task..</param>
 /// <param name="labels">User-defined key/value metadata..</param>
 /// <param name="spec">spec.</param>
 /// <param name="serviceID">The ID of the service this task is part of..</param>
 /// <param name="slot">slot.</param>
 /// <param name="nodeID">The ID of the node that this task is on..</param>
 /// <param name="assignedGenericResources">assignedGenericResources.</param>
 /// <param name="status">status.</param>
 /// <param name="desiredState">desiredState.</param>
 public Task(string iD = default(string), ObjectVersion version = default(ObjectVersion), string createdAt = default(string), string updatedAt = default(string), string name = default(string), Dictionary <string, string> labels = default(Dictionary <string, string>), TaskSpec spec = default(TaskSpec), string serviceID = default(string), int?slot = default(int?), string nodeID = default(string), GenericResources assignedGenericResources = default(GenericResources), TaskStatus status = default(TaskStatus), TaskState?desiredState = default(TaskState?))
 {
     this.ID        = iD;
     this.Version   = version;
     this.CreatedAt = createdAt;
     this.UpdatedAt = updatedAt;
     this.Name      = name;
     this.Labels    = labels;
     this.Spec      = spec;
     this.ServiceID = serviceID;
     this.Slot      = slot;
     this.NodeID    = nodeID;
     this.AssignedGenericResources = assignedGenericResources;
     this.Status       = status;
     this.DesiredState = desiredState;
 }