コード例 #1
0
        /// <summary>
        /// Returns true if PortMap instances are equal
        /// </summary>
        /// <param name="input">Instance of PortMap to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PortMap input)
        {
            if (input == null)
            {
                return(false);
            }

            return(base.Equals(input));
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NetworkSettings" /> class.
 /// </summary>
 /// <param name="bridge">Name of the network&#39;a bridge (for example, &#x60;docker0&#x60;)..</param>
 /// <param name="sandboxID">SandboxID uniquely represents a container&#39;s network stack..</param>
 /// <param name="hairpinMode">Indicates if hairpin NAT should be enabled on the virtual interface. .</param>
 /// <param name="linkLocalIPv6Address">IPv6 unicast address using the link-local prefix..</param>
 /// <param name="linkLocalIPv6PrefixLen">Prefix length of the IPv6 unicast address..</param>
 /// <param name="ports">ports.</param>
 /// <param name="sandboxKey">SandboxKey identifies the sandbox.</param>
 /// <param name="secondaryIPAddresses">secondaryIPAddresses.</param>
 /// <param name="secondaryIPv6Addresses">secondaryIPv6Addresses.</param>
 /// <param name="endpointID">EndpointID uniquely represents a service endpoint in a Sandbox.  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;  &gt; **Deprecated**: This field is only propagated when attached to the &gt; default \&quot;bridge\&quot; network. Use the information from the \&quot;bridge\&quot; &gt; network inside the &#x60;Networks&#x60; map instead, which contains the same &gt; information. This field was deprecated in Docker 1.9 and is scheduled &gt; to be removed in Docker 17.12.0 .</param>
 /// <param name="gateway">Gateway address for the default \&quot;bridge\&quot; network.  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;  &gt; **Deprecated**: This field is only propagated when attached to the &gt; default \&quot;bridge\&quot; network. Use the information from the \&quot;bridge\&quot; &gt; network inside the &#x60;Networks&#x60; map instead, which contains the same &gt; information. This field was deprecated in Docker 1.9 and is scheduled &gt; to be removed in Docker 17.12.0 .</param>
 /// <param name="globalIPv6Address">Global IPv6 address for the default \&quot;bridge\&quot; network.  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;  &gt; **Deprecated**: This field is only propagated when attached to the &gt; default \&quot;bridge\&quot; network. Use the information from the \&quot;bridge\&quot; &gt; network inside the &#x60;Networks&#x60; map instead, which contains the same &gt; information. This field was deprecated in Docker 1.9 and is scheduled &gt; to be removed in Docker 17.12.0 .</param>
 /// <param name="globalIPv6PrefixLen">Mask length of the global IPv6 address.  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;  &gt; **Deprecated**: This field is only propagated when attached to the &gt; default \&quot;bridge\&quot; network. Use the information from the \&quot;bridge\&quot; &gt; network inside the &#x60;Networks&#x60; map instead, which contains the same &gt; information. This field was deprecated in Docker 1.9 and is scheduled &gt; to be removed in Docker 17.12.0 .</param>
 /// <param name="iPAddress">IPv4 address for the default \&quot;bridge\&quot; network.  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;  &gt; **Deprecated**: This field is only propagated when attached to the &gt; default \&quot;bridge\&quot; network. Use the information from the \&quot;bridge\&quot; &gt; network inside the &#x60;Networks&#x60; map instead, which contains the same &gt; information. This field was deprecated in Docker 1.9 and is scheduled &gt; to be removed in Docker 17.12.0 .</param>
 /// <param name="iPPrefixLen">Mask length of the IPv4 address.  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;  &gt; **Deprecated**: This field is only propagated when attached to the &gt; default \&quot;bridge\&quot; network. Use the information from the \&quot;bridge\&quot; &gt; network inside the &#x60;Networks&#x60; map instead, which contains the same &gt; information. This field was deprecated in Docker 1.9 and is scheduled &gt; to be removed in Docker 17.12.0 .</param>
 /// <param name="iPv6Gateway">IPv6 gateway address for this network.  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;  &gt; **Deprecated**: This field is only propagated when attached to the &gt; default \&quot;bridge\&quot; network. Use the information from the \&quot;bridge\&quot; &gt; network inside the &#x60;Networks&#x60; map instead, which contains the same &gt; information. This field was deprecated in Docker 1.9 and is scheduled &gt; to be removed in Docker 17.12.0 .</param>
 /// <param name="macAddress">MAC address for the container on the default \&quot;bridge\&quot; network.  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;  &gt; **Deprecated**: This field is only propagated when attached to the &gt; default \&quot;bridge\&quot; network. Use the information from the \&quot;bridge\&quot; &gt; network inside the &#x60;Networks&#x60; map instead, which contains the same &gt; information. This field was deprecated in Docker 1.9 and is scheduled &gt; to be removed in Docker 17.12.0 .</param>
 /// <param name="networks">Information about all networks that the container is connected to. .</param>
 public NetworkSettings(string bridge = default(string), string sandboxID = default(string), bool?hairpinMode = default(bool?), string linkLocalIPv6Address = default(string), int?linkLocalIPv6PrefixLen = default(int?), PortMap ports = default(PortMap), string sandboxKey = default(string), List <Address> secondaryIPAddresses = default(List <Address>), List <Address> secondaryIPv6Addresses = default(List <Address>), string endpointID = default(string), string gateway = default(string), string globalIPv6Address = default(string), int?globalIPv6PrefixLen = default(int?), string iPAddress = default(string), int?iPPrefixLen = default(int?), string iPv6Gateway = default(string), string macAddress = default(string), Dictionary <string, EndpointSettings> networks = default(Dictionary <string, EndpointSettings>))
 {
     this.Bridge                 = bridge;
     this.SandboxID              = sandboxID;
     this.HairpinMode            = hairpinMode;
     this.LinkLocalIPv6Address   = linkLocalIPv6Address;
     this.LinkLocalIPv6PrefixLen = linkLocalIPv6PrefixLen;
     this.Ports                  = ports;
     this.SandboxKey             = sandboxKey;
     this.SecondaryIPAddresses   = secondaryIPAddresses;
     this.SecondaryIPv6Addresses = secondaryIPv6Addresses;
     this.EndpointID             = endpointID;
     this.Gateway                = gateway;
     this.GlobalIPv6Address      = globalIPv6Address;
     this.GlobalIPv6PrefixLen    = globalIPv6PrefixLen;
     this.IPAddress              = iPAddress;
     this.IPPrefixLen            = iPPrefixLen;
     this.IPv6Gateway            = iPv6Gateway;
     this.MacAddress             = macAddress;
     this.Networks               = networks;
 }