public interface Disks extends com.microsoft.azure.management.resources.fluentcore.collection.SupportsCreating<Disk.DefinitionStages.Blank>, com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing<Disk>, com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsListingByResourceGroup<Disk>, com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByResourceGroup<Disk>, com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingById<Disk>, com.microsoft.azure.management.resources.fluentcore.collection.SupportsDeletingById, com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsDeletingByResourceGroup, com.microsoft.azure.management.resources.fluentcore.collection.SupportsBatchCreation<Disk>, com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsBatchDeletion, com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager<com.microsoft.azure.management.compute.implementation.ComputeManager>, com.microsoft.azure.management.resources.fluentcore.model.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.
|
com.microsoft.rest.ServiceFuture<String> |
grantAccessAsync(String resourceGroupName,
String diskName,
AccessLevel accessLevel,
int accessDuration,
com.microsoft.rest.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.
|
com.microsoft.rest.ServiceFuture<Void> |
revokeAccessAsync(String resourceGroupName,
String diskName,
com.microsoft.rest.ServiceCallback<Void> callback)
Revoke access granted to the snapshot asynchronously.
|
definelist, listAsynclistByResourceGroup, listByResourceGroupAsyncgetByResourceGroup, getByResourceGroupAsync, getByResourceGroupAsyncgetById, getByIdAsync, getByIdAsyncdeleteById, deleteByIdAsync, deleteByIdAsyncdeleteByResourceGroup, deleteByResourceGroupAsync, deleteByResourceGroupAsynccreate, create, createAsync, createAsync, createAsync, createAsyncdeleteByIds, deleteByIds, deleteByIdsAsync, deleteByIdsAsyncString 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) com.microsoft.rest.ServiceFuture<String> grantAccessAsync(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration, com.microsoft.rest.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) com.microsoft.rest.ServiceFuture<Void> revokeAccessAsync(String resourceGroupName, String diskName, com.microsoft.rest.ServiceCallback<Void> callback)
resourceGroupName - the resource group namediskName - the disk namecallback - the callback to call on success or failure/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/