Partager via


ContainerPort Class

Definition

The port exposed on the container instance.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPortTypeConverter))]
public class ContainerPort : Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.ContainerPortTypeConverter))>]
type ContainerPort = class
    interface IContainerPort
    interface IJsonSerializable
Public Class ContainerPort
Implements IContainerPort
Inheritance
ContainerPort
Attributes
Implements

Constructors

ContainerPort()

Creates an new ContainerPort instance.

Properties

Port

The port number exposed within the container group.

Protocol

The protocol associated with the port.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ContainerPort.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ContainerPort.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20221001Preview.IContainerPort.

FromJsonString(String)

Creates a new instance of ContainerPort, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of ContainerPort into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to