Share via


InitContainerDefinition Class

Definition

The init container definition.

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

Constructors

InitContainerDefinition()

Creates an new InitContainerDefinition instance.

Properties

Command

The command to execute within the init container in exec form.

CurrentState

The state of the container instance.

CurrentStateDetailStatus

The human-readable status of the container instance state.

CurrentStateExitCode

The container instance exit codes correspond to those from the docker run command.

CurrentStateFinishTime

The date-time when the container instance state finished.

CurrentStateStartTime

The date-time when the container instance state started.

EnvironmentVariable

The environment variables to set in the init container.

Image

The image of the init container.

InstanceViewEvent

The events of the init container.

InstanceViewRestartCount

The number of times that the init container has been restarted.

Name

The name for the init container.

PreviousState
PreviousStateDetailStatus
PreviousStateExitCode
PreviousStateFinishTime
PreviousStateStartTime
VolumeMount

The volume mounts available to the init container.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of InitContainerDefinition.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of InitContainerDefinition.

FromJson(JsonNode)

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

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of InitContainerDefinition into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to