InitContainerDefinition Constructors

Definition

Overloads

InitContainerDefinition()

Initializes a new instance of the InitContainerDefinition class.

InitContainerDefinition(String, String, IList<String>, IList<EnvironmentVariable>, InitContainerPropertiesDefinitionInstanceView, IList<VolumeMount>)

Initializes a new instance of the InitContainerDefinition class.

InitContainerDefinition()

Initializes a new instance of the InitContainerDefinition class.

public InitContainerDefinition ();
Public Sub New ()

Applies to

InitContainerDefinition(String, String, IList<String>, IList<EnvironmentVariable>, InitContainerPropertiesDefinitionInstanceView, IList<VolumeMount>)

Initializes a new instance of the InitContainerDefinition class.

public InitContainerDefinition (string name, string image = default, System.Collections.Generic.IList<string> command = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.EnvironmentVariable> environmentVariables = default, Microsoft.Azure.Management.ContainerInstance.Models.InitContainerPropertiesDefinitionInstanceView instanceView = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.VolumeMount> volumeMounts = default);
new Microsoft.Azure.Management.ContainerInstance.Models.InitContainerDefinition : string * string * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.EnvironmentVariable> * Microsoft.Azure.Management.ContainerInstance.Models.InitContainerPropertiesDefinitionInstanceView * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.VolumeMount> -> Microsoft.Azure.Management.ContainerInstance.Models.InitContainerDefinition
Public Sub New (name As String, Optional image As String = Nothing, Optional command As IList(Of String) = Nothing, Optional environmentVariables As IList(Of EnvironmentVariable) = Nothing, Optional instanceView As InitContainerPropertiesDefinitionInstanceView = Nothing, Optional volumeMounts As IList(Of VolumeMount) = Nothing)

Parameters

name
System.String

The name for the init container.

image
System.String

The image of the init container.

command
System.Collections.Generic.IList<System.String>

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

environmentVariables
System.Collections.Generic.IList<EnvironmentVariable>

The environment variables to set in the init container.

instanceView
InitContainerPropertiesDefinitionInstanceView

The instance view of the init container. Only valid in response.

volumeMounts
System.Collections.Generic.IList<VolumeMount>

The volume mounts available to the init container.

Applies to