public interface Disks extends SupportsCreating<Disk.DefinitionStages.Blank>, SupportsListing<Disk>, SupportsListingByResourceGroup<Disk>, SupportsGettingByResourceGroup<Disk>, SupportsGettingById<Disk>, SupportsDeletingById, SupportsDeletingByResourceGroup, SupportsBatchCreation<Disk>, SupportsBatchDeletion, HasManager<com.microsoft.azure.management.compute.implementation.ComputeManager>, HasInner<com.microsoft.azure.management.compute.implementation.DisksInner>
Modifier and Type | Method and Description |
---|---|
String |
grantAccess(String resourceGroupName,
String diskName,
AccessLevel accessLevel,
int accessDuration)
Grants access to a disk.
|
rx.Observable<String> |
grantAccessAsync(String resourceGroupName,
String diskName,
AccessLevel accessLevel,
int accessDuration)
Grants access to the disk asynchronously.
|
ServiceFuture<String> |
grantAccessAsync(String resourceGroupName,
String diskName,
AccessLevel accessLevel,
int accessDuration,
ServiceCallback<String> callback)
Grants access to the disk asynchronously.
|
void |
revokeAccess(String resourceGroupName,
String diskName)
Revoke access granted to a disk.
|
rx.Completable |
revokeAccessAsync(String resourceGroupName,
String diskName)
Revoke access granted to the snapshot asynchronously.
|
ServiceFuture<Void> |
revokeAccessAsync(String resourceGroupName,
String diskName,
ServiceCallback<Void> callback)
Revoke access granted to the snapshot asynchronously.
|
define
list, listAsync
listByResourceGroup, listByResourceGroupAsync
getByResourceGroup, getByResourceGroupAsync, getByResourceGroupAsync
getById, getByIdAsync, getByIdAsync
deleteById, deleteByIdAsync, deleteByIdAsync
deleteByResourceGroup, deleteByResourceGroupAsync, deleteByResourceGroupAsync
create, create, createAsync, createAsync, 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 duration@Beta(value=V1_2_0) rx.Observable<String> grantAccessAsync(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration)
resourceGroupName
- the resource group namediskName
- the disk nameaccessLevel
- access levelaccessDuration
- access duration@Beta(value=V1_2_0) ServiceFuture<String> grantAccessAsync(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration, ServiceCallback<String> callback)
resourceGroupName
- the resource group namediskName
- the disk nameaccessLevel
- access levelaccessDuration
- access durationcallback
- the callback to call on success or failure, on success it will pass read-only SAS URI to the disk in callbackvoid revokeAccess(String resourceGroupName, String diskName)
resourceGroupName
- the resource group namediskName
- the disk name@Beta(value=V1_2_0) rx.Completable revokeAccessAsync(String resourceGroupName, String diskName)
resourceGroupName
- the resource group namediskName
- the disk name@Beta(value=V1_2_0) ServiceFuture<Void> revokeAccessAsync(String resourceGroupName, String diskName, ServiceCallback<Void> callback)
resourceGroupName
- the resource group namediskName
- the disk namecallback
- the callback to call on success or failureCopyright © 2019. All rights reserved.