![JAR search and dependency download from the Maven repository](/logo.png)
com.azure.resourcemanager.compute.fluent.DisksClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-compute Show documentation
Show all versions of azure-resourcemanager-compute Show documentation
This package contains Microsoft Azure Compute Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.compute.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.compute.fluent.models.AccessUriInner;
import com.azure.resourcemanager.compute.fluent.models.DiskInner;
import com.azure.resourcemanager.compute.models.DiskUpdate;
import com.azure.resourcemanager.compute.models.GrantAccessData;
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete;
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet;
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/**
* An instance of this class provides access to all the operations defined in DisksClient.
*/
public interface DisksClient
extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete {
/**
* Creates or updates a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param disk Disk object supplied in the body of the Put disk operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return disk resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String diskName,
DiskInner disk);
/**
* Creates or updates a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param disk Disk object supplied in the body of the Put disk operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link PollerFlux} for polling of disk resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, DiskInner> beginCreateOrUpdateAsync(String resourceGroupName, String diskName,
DiskInner disk);
/**
* Creates or updates a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param disk Disk object supplied in the body of the Put disk operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of disk resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DiskInner> beginCreateOrUpdate(String resourceGroupName, String diskName,
DiskInner disk);
/**
* Creates or updates a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param disk Disk object supplied in the body of the Put disk operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of disk resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DiskInner> beginCreateOrUpdate(String resourceGroupName, String diskName,
DiskInner disk, Context context);
/**
* Creates or updates a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param disk Disk object supplied in the body of the Put disk operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return disk resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createOrUpdateAsync(String resourceGroupName, String diskName, DiskInner disk);
/**
* Creates or updates a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param disk Disk object supplied in the body of the Put disk operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return disk resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiskInner createOrUpdate(String resourceGroupName, String diskName, DiskInner disk);
/**
* Creates or updates a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param disk Disk object supplied in the body of the Put disk operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return disk resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiskInner createOrUpdate(String resourceGroupName, String diskName, DiskInner disk, Context context);
/**
* Updates (patches) a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param disk Disk object supplied in the body of the Patch disk operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return disk resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> updateWithResponseAsync(String resourceGroupName, String diskName,
DiskUpdate disk);
/**
* Updates (patches) a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param disk Disk object supplied in the body of the Patch disk operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link PollerFlux} for polling of disk resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, DiskInner> beginUpdateAsync(String resourceGroupName, String diskName,
DiskUpdate disk);
/**
* Updates (patches) a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param disk Disk object supplied in the body of the Patch disk operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of disk resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DiskInner> beginUpdate(String resourceGroupName, String diskName,
DiskUpdate disk);
/**
* Updates (patches) a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param disk Disk object supplied in the body of the Patch disk operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of disk resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DiskInner> beginUpdate(String resourceGroupName, String diskName, DiskUpdate disk,
Context context);
/**
* Updates (patches) a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param disk Disk object supplied in the body of the Patch disk operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return disk resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono updateAsync(String resourceGroupName, String diskName, DiskUpdate disk);
/**
* Updates (patches) a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param disk Disk object supplied in the body of the Patch disk operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return disk resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiskInner update(String resourceGroupName, String diskName, DiskUpdate disk);
/**
* Updates (patches) a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param disk Disk object supplied in the body of the Patch disk operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return disk resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiskInner update(String resourceGroupName, String diskName, DiskUpdate disk, Context context);
/**
* Gets information about a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a disk along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String diskName);
/**
* Gets information about a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a disk on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono getByResourceGroupAsync(String resourceGroupName, String diskName);
/**
* Gets information about a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a disk along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName, String diskName, Context context);
/**
* Gets information about a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a disk.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiskInner getByResourceGroup(String resourceGroupName, String diskName);
/**
* Deletes a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> deleteWithResponseAsync(String resourceGroupName, String diskName);
/**
* Deletes a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String diskName);
/**
* Deletes a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String diskName);
/**
* Deletes a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String diskName, Context context);
/**
* Deletes a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono deleteAsync(String resourceGroupName, String diskName);
/**
* Deletes a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String diskName);
/**
* Deletes a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String diskName, Context context);
/**
* Lists all the disks under a resource group.
*
* @param resourceGroupName The name of the resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Disks operation response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listByResourceGroupAsync(String resourceGroupName);
/**
* Lists all the disks under a resource group.
*
* @param resourceGroupName The name of the resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Disks operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
/**
* Lists all the disks under a resource group.
*
* @param resourceGroupName The name of the resource group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Disks operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
* Lists all the disks under a subscription.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Disks operation response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listAsync();
/**
* Lists all the disks under a subscription.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Disks operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* Lists all the disks under a subscription.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List Disks operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
/**
* Grants access to a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param grantAccessData Access data object supplied in the body of the get disk access operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a disk access SAS uri along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> grantAccessWithResponseAsync(String resourceGroupName, String diskName,
GrantAccessData grantAccessData);
/**
* Grants access to a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param grantAccessData Access data object supplied in the body of the get disk access operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link PollerFlux} for polling of a disk access SAS uri.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, AccessUriInner> beginGrantAccessAsync(String resourceGroupName,
String diskName, GrantAccessData grantAccessData);
/**
* Grants access to a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param grantAccessData Access data object supplied in the body of the get disk access operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of a disk access SAS uri.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, AccessUriInner> beginGrantAccess(String resourceGroupName, String diskName,
GrantAccessData grantAccessData);
/**
* Grants access to a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param grantAccessData Access data object supplied in the body of the get disk access operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of a disk access SAS uri.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, AccessUriInner> beginGrantAccess(String resourceGroupName, String diskName,
GrantAccessData grantAccessData, Context context);
/**
* Grants access to a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param grantAccessData Access data object supplied in the body of the get disk access operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a disk access SAS uri on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono grantAccessAsync(String resourceGroupName, String diskName, GrantAccessData grantAccessData);
/**
* Grants access to a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param grantAccessData Access data object supplied in the body of the get disk access operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a disk access SAS uri.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AccessUriInner grantAccess(String resourceGroupName, String diskName, GrantAccessData grantAccessData);
/**
* Grants access to a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param grantAccessData Access data object supplied in the body of the get disk access operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a disk access SAS uri.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AccessUriInner grantAccess(String resourceGroupName, String diskName, GrantAccessData grantAccessData,
Context context);
/**
* Revokes access to a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> revokeAccessWithResponseAsync(String resourceGroupName, String diskName);
/**
* Revokes access to a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, Void> beginRevokeAccessAsync(String resourceGroupName, String diskName);
/**
* Revokes access to a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRevokeAccess(String resourceGroupName, String diskName);
/**
* Revokes access to a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRevokeAccess(String resourceGroupName, String diskName, Context context);
/**
* Revokes access to a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono revokeAccessAsync(String resourceGroupName, String diskName);
/**
* Revokes access to a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void revokeAccess(String resourceGroupName, String diskName);
/**
* Revokes access to a disk.
*
* @param resourceGroupName The name of the resource group.
* @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is
* created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void revokeAccess(String resourceGroupName, String diskName, Context context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy