/// <summary> /// Initializes a new instance of the <see cref="Swarm" /> 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> /// <param name="joinTokens">joinTokens.</param> public Swarm(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?), JoinTokens joinTokens = default(JoinTokens)) { 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; this.JoinTokens = joinTokens; }
/// <summary> /// Initializes a new instance of the <see cref="NodeDescription" /> class. /// </summary> /// <param name="hostname">hostname.</param> /// <param name="platform">platform.</param> /// <param name="resources">resources.</param> /// <param name="engine">engine.</param> /// <param name="tLSInfo">tLSInfo.</param> public NodeDescription(string hostname = default(string), Platform platform = default(Platform), ResourceObject resources = default(ResourceObject), EngineDescription engine = default(EngineDescription), TLSInfo tLSInfo = default(TLSInfo)) { this.Hostname = hostname; this.Platform = platform; this.Resources = resources; this.Engine = engine; this.TLSInfo = tLSInfo; }