ArmContainerInstanceModelFactory.InitContainerDefinitionContent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of InitContainerDefinitionContent.
public static Azure.ResourceManager.ContainerInstance.Models.InitContainerDefinitionContent InitContainerDefinitionContent (string name = default, string image = default, System.Collections.Generic.IEnumerable<string> command = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.ContainerEnvironmentVariable> environmentVariables = default, Azure.ResourceManager.ContainerInstance.Models.InitContainerPropertiesDefinitionInstanceView instanceView = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.ContainerVolumeMount> volumeMounts = default, Azure.ResourceManager.ContainerInstance.Models.ContainerSecurityContextDefinition securityContext = default);
static member InitContainerDefinitionContent : string * string * seq<string> * seq<Azure.ResourceManager.ContainerInstance.Models.ContainerEnvironmentVariable> * Azure.ResourceManager.ContainerInstance.Models.InitContainerPropertiesDefinitionInstanceView * seq<Azure.ResourceManager.ContainerInstance.Models.ContainerVolumeMount> * Azure.ResourceManager.ContainerInstance.Models.ContainerSecurityContextDefinition -> Azure.ResourceManager.ContainerInstance.Models.InitContainerDefinitionContent
Public Shared Function InitContainerDefinitionContent (Optional name As String = Nothing, Optional image As String = Nothing, Optional command As IEnumerable(Of String) = Nothing, Optional environmentVariables As IEnumerable(Of ContainerEnvironmentVariable) = Nothing, Optional instanceView As InitContainerPropertiesDefinitionInstanceView = Nothing, Optional volumeMounts As IEnumerable(Of ContainerVolumeMount) = Nothing, Optional securityContext As ContainerSecurityContextDefinition = Nothing) As InitContainerDefinitionContent
Parameters
- name
- String
The name for the init container.
- image
- String
The image of the init container.
- command
- IEnumerable<String>
The command to execute within the init container in exec form.
- environmentVariables
- IEnumerable<ContainerEnvironmentVariable>
The environment variables to set in the init container.
- instanceView
- InitContainerPropertiesDefinitionInstanceView
The instance view of the init container. Only valid in response.
- volumeMounts
- IEnumerable<ContainerVolumeMount>
The volume mounts available to the init container.
- securityContext
- ContainerSecurityContextDefinition
The container security properties.
Returns
A new InitContainerDefinitionContent instance for mocking.
Applies to
Azure SDK for .NET