Interface ContainerGroup.DefinitionStages.WithPrivateImageRegistryOrVolume
- All Superinterfaces:
ContainerGroup.DefinitionStages.WithPrivateImageRegistry
- All Known Subinterfaces:
ContainerGroup.Definition
- Enclosing interface:
- ContainerGroup.DefinitionStages
public static interface ContainerGroup.DefinitionStages.WithPrivateImageRegistryOrVolume
extends ContainerGroup.DefinitionStages.WithPrivateImageRegistry
The stage of the container group definition allowing to specify a private image registry or a volume.
-
Method Summary
Modifier and TypeMethodDescriptionContainerGroup.DefinitionStages.VolumeDefinitionStages.VolumeDefinitionBlank<ContainerGroup.DefinitionStages.WithVolume>
defineVolume
(String name) Begins the definition of a volume that can be shared by the container instances in the container group.Specifies an empty directory volume that can be shared by the container instances in the container group.withNewAzureFileShareVolume
(String volumeName, String shareName) Specifies a new Azure file share name to be created.Skips the definition of volumes to be shared by the container instances.Methods inherited from interface com.microsoft.azure.management.containerinstance.ContainerGroup.DefinitionStages.WithPrivateImageRegistry
withPrivateImageRegistry
-
Method Details
-
withoutVolume
ContainerGroup.DefinitionStages.WithFirstContainerInstance withoutVolume()Skips the definition of volumes to be shared by the container instances.An IllegalArgumentException will be thrown if a container instance attempts to define a volume mounting.
- Returns:
- the next stage of the definition
-
withEmptyDirectoryVolume
@Beta(V1_7_0) ContainerGroup.DefinitionStages.WithFirstContainerInstance withEmptyDirectoryVolume(String name) Specifies an empty directory volume that can be shared by the container instances in the container group.- Parameters:
name
- the name of the empty directory volume- Returns:
- the next stage of the definition
-
defineVolume
ContainerGroup.DefinitionStages.VolumeDefinitionStages.VolumeDefinitionBlank<ContainerGroup.DefinitionStages.WithVolume> defineVolume(String name) Begins the definition of a volume that can be shared by the container instances in the container group.The definition must be completed with a call to
Attachable.InDefinition.attach()
- Parameters:
name
- the name of the volume- Returns:
- the next stage of the definition
-