public interface Disks extends SupportsCreating<Disk.DefinitionStages.Blank>, SupportsListing<Disk>, SupportsListingByResourceGroup<Disk>, SupportsGettingByResourceGroup<Disk>, SupportsGettingById<Disk>, SupportsDeletingById, SupportsDeletingByResourceGroup, SupportsBatchCreation<Disk>, SupportsBatchDeletion, HasManager<ComputeManager>
Modifier and Type | Method and Description |
---|---|
Accepted<Void> |
beginDeleteById(String id)
Begins deleting a disk from Azure, identifying it by its resource ID.
|
Accepted<Void> |
beginDeleteByResourceGroup(String resourceGroupName,
String name)
Begins deleting a disk from Azure, identifying it by its name and its resource group.
|
String |
grantAccess(String resourceGroupName,
String diskName,
AccessLevel accessLevel,
int accessDuration)
Grants access to a disk.
|
Mono<String> |
grantAccessAsync(String resourceGroupName,
String diskName,
AccessLevel accessLevel,
int accessDuration)
Grants access to the disk asynchronously.
|
void |
revokeAccess(String resourceGroupName,
String diskName)
Revoke access granted to a disk.
|
Mono<Void> |
revokeAccessAsync(String resourceGroupName,
String diskName)
Revoke access granted to the snapshot asynchronously.
|
define
list, listAsync
listByResourceGroup, listByResourceGroupAsync
getByResourceGroup, getByResourceGroupAsync
getById, getByIdAsync
deleteById, deleteByIdAsync
deleteByResourceGroup, deleteByResourceGroupAsync
create, create, createAsync, createAsync
deleteByIds, deleteByIds, deleteByIdsAsync, deleteByIdsAsync
manager
String grantAccess(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration)
resourceGroupName
- a resource group namediskName
- a disk nameaccessLevel
- access levelaccessDuration
- access durationMono<String> grantAccessAsync(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration)
resourceGroupName
- the resource group namediskName
- the disk nameaccessLevel
- access levelaccessDuration
- access durationvoid revokeAccess(String resourceGroupName, String diskName)
resourceGroupName
- the resource group namediskName
- the disk nameMono<Void> revokeAccessAsync(String resourceGroupName, String diskName)
resourceGroupName
- the resource group namediskName
- the disk nameAccepted<Void> beginDeleteById(String id)
id
- the resource ID of the disk to deleteAccepted<Void> beginDeleteByResourceGroup(String resourceGroupName, String name)
resourceGroupName
- the resource group the resource is part ofname
- the disk nameCopyright © 2020 Microsoft Corporation. All rights reserved.