Пример #1
0
 /// <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;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Body1" /> class.
 /// </summary>
 /// <param name="listenAddr">Listen address used for inter-manager communication, as well as determining the networking interface used for the VXLAN Tunnel Endpoint (VTEP). This can either be an address/port combination in the form &#x60;192.168.1.1:4567&#x60;, or an interface followed by a port number, like &#x60;eth0:4567&#x60;. If the port number is omitted, the default swarm listening port is used..</param>
 /// <param name="advertiseAddr">Externally reachable address advertised to other nodes. This can either be an address/port combination in the form &#x60;192.168.1.1:4567&#x60;, or an interface followed by a port number, like &#x60;eth0:4567&#x60;. If the port number is omitted, the port number from the listen address is used. If &#x60;AdvertiseAddr&#x60; is not specified, it will be automatically detected when possible..</param>
 /// <param name="dataPathAddr">Address or interface to use for data path traffic (format: &#x60;&lt;ip|interface&gt;&#x60;), for example,  &#x60;192.168.1.1&#x60;, or an interface, like &#x60;eth0&#x60;. If &#x60;DataPathAddr&#x60; is unspecified, the same address as &#x60;AdvertiseAddr&#x60; is used.  The &#x60;DataPathAddr&#x60; specifies the address that global scope network drivers will publish towards other nodes in order to reach the containers running on this node. Using this parameter it is possible to separate the container data traffic from the management traffic of the cluster. .</param>
 /// <param name="defaultAddrPool">Default Address Pool specifies default subnet pools for global scope networks. .</param>
 /// <param name="forceNewCluster">Force creation of a new swarm..</param>
 /// <param name="subnetSize">SubnetSize specifies the subnet size of the networks created from the default subnet pool .</param>
 /// <param name="spec">spec.</param>
 public Body1(string listenAddr = default(string), string advertiseAddr = default(string), string dataPathAddr = default(string), List <string> defaultAddrPool = default(List <string>), bool?forceNewCluster = default(bool?), int?subnetSize = default(int?), SwarmSpec spec = default(SwarmSpec))
 {
     this.ListenAddr      = listenAddr;
     this.AdvertiseAddr   = advertiseAddr;
     this.DataPathAddr    = dataPathAddr;
     this.DefaultAddrPool = defaultAddrPool;
     this.ForceNewCluster = forceNewCluster;
     this.SubnetSize      = subnetSize;
     this.Spec            = spec;
 }