/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.compute;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.compute.implementation.ComputeManager;
import com.microsoft.azure.management.compute.implementation.DisksInner;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsBatchDeletion;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsDeletingByResourceGroup;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByResourceGroup;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingById;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsListingByResourceGroup;
import com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsBatchCreation;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsCreating;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsDeletingById;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing;
import com.microsoft.azure.management.resources.fluentcore.model.HasInner;
/**
* Entry point to managed disk management API in Azure.
*/
@Fluent
public interface Disks extends
SupportsCreating<Disk.DefinitionStages.Blank>,
SupportsListing<Disk>,
SupportsListingByResourceGroup<Disk>,
SupportsGettingByResourceGroup<Disk>,
SupportsGettingById<Disk>,
SupportsDeletingById,
SupportsDeletingByResourceGroup,
SupportsBatchCreation<Disk>,
SupportsBatchDeletion,
HasManager<ComputeManager>,
HasInner<DisksInner> {
/**
* Grants access to a disk.
*
* @param resourceGroupName a resource group name
* @param diskName a disk name
* @param accessLevel access level
* @param accessDuration access duration
* @return the read-only SAS URI to the disk
*/
String grantAccess(String resourceGroupName,
String diskName,
AccessLevel accessLevel,
int accessDuration);
/**
* Revoke access granted to a disk.
*
* @param resourceGroupName the resource group name
* @param diskName the disk name
*/
void revokeAccess(String resourceGroupName, String diskName);
}