/// <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)); }
/// <summary> /// Initializes a new instance of the <see cref="NetworkSettings" /> class. /// </summary> /// <param name="bridge">Name of the network'a bridge (for example, `docker0`)..</param> /// <param name="sandboxID">SandboxID uniquely represents a container'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. <p><br /></p> > **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 .</param> /// <param name="gateway">Gateway address for the default \"bridge\" network. <p><br /></p> > **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 .</param> /// <param name="globalIPv6Address">Global IPv6 address for the default \"bridge\" network. <p><br /></p> > **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 .</param> /// <param name="globalIPv6PrefixLen">Mask length of the global IPv6 address. <p><br /></p> > **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 .</param> /// <param name="iPAddress">IPv4 address for the default \"bridge\" network. <p><br /></p> > **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 .</param> /// <param name="iPPrefixLen">Mask length of the IPv4 address. <p><br /></p> > **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 .</param> /// <param name="iPv6Gateway">IPv6 gateway address for this network. <p><br /></p> > **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 .</param> /// <param name="macAddress">MAC address for the container on the default \"bridge\" network. <p><br /></p> > **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > 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; }