Partager via


InitContainer Class

Definition

Container App init container definition

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

Constructors

InitContainer()

Creates an new InitContainer instance.

Properties

Arg

Container start command arguments.

Command

Container start command.

Env

Container environment variables.

Image

Container image tag.

Name

Custom container name.

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 InitContainer.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of InitContainer.

FromJson(JsonNode)

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

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of InitContainer into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to