Partilhar via


Container Class

Definition

Container App container definition

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.ContainerTypeConverter))]
public class Container : Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainer, Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.App.Models.ContainerTypeConverter))>]
type Container = class
    interface IContainer
    interface IJsonSerializable
    interface IBaseContainer
    interface IValidates
Public Class Container
Implements IContainer, IValidates
Inheritance
Container
Attributes
Implements

Constructors

Container()

Creates an new Container instance.

Properties

Arg

Container start command arguments.

Command

Container start command.

Env

Container environment variables.

Image

Container image tag.

Name

Custom container name.

Probe

List of probes for the container.

ResourceCpu

Required CPU in cores, e.g. 0.5

ResourceEphemeralStorage

Ephemeral Storage, e.g. "1Gi"

ResourceMemory

Required memory, e.g. "250Mb"

VolumeMount

Container volume mounts.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Container.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Container.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.App.Models.IContainer.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of Container into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to