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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.ContainerGroup.DefinitionStages.WithFirstContainerInstancewithEmptyDirectoryVolume(String name)Specifies an empty directory volume that can be shared by the container instances in the container group.ContainerGroup.DefinitionStages.WithFirstContainerInstancewithNewAzureFileShareVolume(String volumeName, String shareName)Specifies a new Azure file share name to be created.ContainerGroup.DefinitionStages.WithFirstContainerInstancewithoutVolume()Skips the definition of volumes to be shared by the container instances.-
Methods inherited from interface com.azure.resourcemanager.containerinstance.models.ContainerGroup.DefinitionStages.WithPrivateImageRegistry
withPrivateImageRegistry
-
-
-
-
Method Detail
-
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
-
withNewAzureFileShareVolume
ContainerGroup.DefinitionStages.WithFirstContainerInstance withNewAzureFileShareVolume(String volumeName, String shareName)
Specifies a new Azure file share name to be created.- Parameters:
volumeName- the name of the volumeshareName- the Azure file share name to be created- Returns:
- the next stage of the definition
-
withEmptyDirectoryVolume
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
-
-