com.azure.resourcemanager.compute.fluent.DiskEncryptionSetsClient 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.DiskEncryptionSetInner;
import com.azure.resourcemanager.compute.models.DiskEncryptionSetUpdate;
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 DiskEncryptionSetsClient.
*/
public interface DiskEncryptionSetsClient extends InnerSupportsGet,
InnerSupportsListing, InnerSupportsDelete {
/**
* Creates or updates a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
* maximum name length is 80 characters.
* @param diskEncryptionSet disk encryption set object supplied in the body of the Put disk encryption set
* operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return disk encryption set resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
String diskEncryptionSetName, DiskEncryptionSetInner diskEncryptionSet);
/**
* Creates or updates a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
* maximum name length is 80 characters.
* @param diskEncryptionSet disk encryption set object supplied in the body of the Put disk encryption set
* operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 encryption set resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, DiskEncryptionSetInner> beginCreateOrUpdateAsync(
String resourceGroupName, String diskEncryptionSetName, DiskEncryptionSetInner diskEncryptionSet);
/**
* Creates or updates a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
* maximum name length is 80 characters.
* @param diskEncryptionSet disk encryption set object supplied in the body of the Put disk encryption set
* operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 encryption set resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DiskEncryptionSetInner> beginCreateOrUpdate(String resourceGroupName,
String diskEncryptionSetName, DiskEncryptionSetInner diskEncryptionSet);
/**
* Creates or updates a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
* maximum name length is 80 characters.
* @param diskEncryptionSet disk encryption set object supplied in the body of the Put disk encryption set
* operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 encryption set resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DiskEncryptionSetInner> beginCreateOrUpdate(String resourceGroupName,
String diskEncryptionSetName, DiskEncryptionSetInner diskEncryptionSet, Context context);
/**
* Creates or updates a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
* maximum name length is 80 characters.
* @param diskEncryptionSet disk encryption set object supplied in the body of the Put disk encryption set
* operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return disk encryption set resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createOrUpdateAsync(String resourceGroupName, String diskEncryptionSetName,
DiskEncryptionSetInner diskEncryptionSet);
/**
* Creates or updates a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
* maximum name length is 80 characters.
* @param diskEncryptionSet disk encryption set object supplied in the body of the Put disk encryption set
* operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return disk encryption set resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiskEncryptionSetInner createOrUpdate(String resourceGroupName, String diskEncryptionSetName,
DiskEncryptionSetInner diskEncryptionSet);
/**
* Creates or updates a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
* maximum name length is 80 characters.
* @param diskEncryptionSet disk encryption set object supplied in the body of the Put disk encryption set
* operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return disk encryption set resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiskEncryptionSetInner createOrUpdate(String resourceGroupName, String diskEncryptionSetName,
DiskEncryptionSetInner diskEncryptionSet, Context context);
/**
* Updates (patches) a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
* maximum name length is 80 characters.
* @param diskEncryptionSet disk encryption set object supplied in the body of the Patch disk encryption set
* operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return disk encryption set resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> updateWithResponseAsync(String resourceGroupName, String diskEncryptionSetName,
DiskEncryptionSetUpdate diskEncryptionSet);
/**
* Updates (patches) a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
* maximum name length is 80 characters.
* @param diskEncryptionSet disk encryption set object supplied in the body of the Patch disk encryption set
* operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 encryption set resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, DiskEncryptionSetInner> beginUpdateAsync(String resourceGroupName,
String diskEncryptionSetName, DiskEncryptionSetUpdate diskEncryptionSet);
/**
* Updates (patches) a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
* maximum name length is 80 characters.
* @param diskEncryptionSet disk encryption set object supplied in the body of the Patch disk encryption set
* operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 encryption set resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DiskEncryptionSetInner> beginUpdate(String resourceGroupName,
String diskEncryptionSetName, DiskEncryptionSetUpdate diskEncryptionSet);
/**
* Updates (patches) a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
* maximum name length is 80 characters.
* @param diskEncryptionSet disk encryption set object supplied in the body of the Patch disk encryption set
* operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 encryption set resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DiskEncryptionSetInner> beginUpdate(String resourceGroupName,
String diskEncryptionSetName, DiskEncryptionSetUpdate diskEncryptionSet, Context context);
/**
* Updates (patches) a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
* maximum name length is 80 characters.
* @param diskEncryptionSet disk encryption set object supplied in the body of the Patch disk encryption set
* operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return disk encryption set resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono updateAsync(String resourceGroupName, String diskEncryptionSetName,
DiskEncryptionSetUpdate diskEncryptionSet);
/**
* Updates (patches) a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
* maximum name length is 80 characters.
* @param diskEncryptionSet disk encryption set object supplied in the body of the Patch disk encryption set
* operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return disk encryption set resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiskEncryptionSetInner update(String resourceGroupName, String diskEncryptionSetName,
DiskEncryptionSetUpdate diskEncryptionSet);
/**
* Updates (patches) a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The
* maximum name length is 80 characters.
* @param diskEncryptionSet disk encryption set object supplied in the body of the Patch disk encryption set
* operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return disk encryption set resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiskEncryptionSetInner update(String resourceGroupName, String diskEncryptionSetName,
DiskEncryptionSetUpdate diskEncryptionSet, Context context);
/**
* Gets information about a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set 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.resourcemanager.compute.models.ApiErrorException 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 encryption set along with {@link Response} on successful completion of
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
String diskEncryptionSetName);
/**
* Gets information about a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set 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.resourcemanager.compute.models.ApiErrorException 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 encryption set on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono getByResourceGroupAsync(String resourceGroupName, String diskEncryptionSetName);
/**
* Gets information about a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set 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.resourcemanager.compute.models.ApiErrorException 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 encryption set along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName,
String diskEncryptionSetName, Context context);
/**
* Gets information about a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set 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.resourcemanager.compute.models.ApiErrorException 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 encryption set.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiskEncryptionSetInner getByResourceGroup(String resourceGroupName, String diskEncryptionSetName);
/**
* Deletes a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set 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.resourcemanager.compute.models.ApiErrorException 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 diskEncryptionSetName);
/**
* Deletes a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set 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.resourcemanager.compute.models.ApiErrorException 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 diskEncryptionSetName);
/**
* Deletes a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set 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.resourcemanager.compute.models.ApiErrorException 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 diskEncryptionSetName);
/**
* Deletes a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set 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.resourcemanager.compute.models.ApiErrorException 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 diskEncryptionSetName,
Context context);
/**
* Deletes a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set 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.resourcemanager.compute.models.ApiErrorException 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 diskEncryptionSetName);
/**
* Deletes a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set 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.resourcemanager.compute.models.ApiErrorException 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 diskEncryptionSetName);
/**
* Deletes a disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set 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.resourcemanager.compute.models.ApiErrorException 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 diskEncryptionSetName, Context context);
/**
* Lists all the disk encryption sets under a resource group.
*
* @param resourceGroupName The name of the resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 disk encryption set operation response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listByResourceGroupAsync(String resourceGroupName);
/**
* Lists all the disk encryption sets under a resource group.
*
* @param resourceGroupName The name of the resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 disk encryption set operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
/**
* Lists all the disk encryption sets 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.resourcemanager.compute.models.ApiErrorException 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 disk encryption set operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
* Lists all the disk encryption sets under a subscription.
*
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 disk encryption set operation response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listAsync();
/**
* Lists all the disk encryption sets under a subscription.
*
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 disk encryption set operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* Lists all the disk encryption sets under a subscription.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 disk encryption set operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
/**
* Lists all resources that are encrypted with this disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set 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.resourcemanager.compute.models.ApiErrorException 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 resources which are encrypted with the disk encryption set as paginated response with
* {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listAssociatedResourcesAsync(String resourceGroupName, String diskEncryptionSetName);
/**
* Lists all resources that are encrypted with this disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set 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.resourcemanager.compute.models.ApiErrorException 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 resources which are encrypted with the disk encryption set as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listAssociatedResources(String resourceGroupName, String diskEncryptionSetName);
/**
* Lists all resources that are encrypted with this disk encryption set.
*
* @param resourceGroupName The name of the resource group.
* @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed
* after the disk encryption set 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.resourcemanager.compute.models.ApiErrorException 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 resources which are encrypted with the disk encryption set as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listAssociatedResources(String resourceGroupName, String diskEncryptionSetName,
Context context);
}