
com.azure.resourcemanager.netapp.fluent.AccountsClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-netapp Show documentation
Show all versions of azure-resourcemanager-netapp Show documentation
This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-preview-2024-07-01-preview.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.netapp.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
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.SyncPoller;
import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner;
import com.azure.resourcemanager.netapp.models.NetAppAccountPatch;
/** An instance of this class provides access to all the operations defined in AccountsClient. */
public interface AccountsClient {
/**
* List and describe all NetApp accounts in the 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 list of NetApp account resources.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
/**
* List and describe all NetApp accounts in the 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 list of NetApp account resources.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
* Get the NetApp account.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @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 NetApp account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NetAppAccountInner getByResourceGroup(String resourceGroupName, String accountName);
/**
* Get the NetApp account.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @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 NetApp account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
String resourceGroupName, String accountName, Context context);
/**
* Create or update the specified NetApp account within the resource group.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @param body NetApp Account object supplied in the body of the 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 netApp account resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller, NetAppAccountInner> beginCreateOrUpdate(
String resourceGroupName, String accountName, NetAppAccountInner body);
/**
* Create or update the specified NetApp account within the resource group.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @param body NetApp Account object supplied in the body of the 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 netApp account resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller, NetAppAccountInner> beginCreateOrUpdate(
String resourceGroupName, String accountName, NetAppAccountInner body, Context context);
/**
* Create or update the specified NetApp account within the resource group.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @param body NetApp Account object supplied in the body of the 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 netApp account resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NetAppAccountInner createOrUpdate(String resourceGroupName, String accountName, NetAppAccountInner body);
/**
* Create or update the specified NetApp account within the resource group.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @param body NetApp Account object supplied in the body of the 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 netApp account resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NetAppAccountInner createOrUpdate(
String resourceGroupName, String accountName, NetAppAccountInner body, Context context);
/**
* Delete the specified NetApp account.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller, Void> beginDelete(String resourceGroupName, String accountName);
/**
* Delete the specified NetApp account.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, Context context);
/**
* Delete the specified NetApp account.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @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 accountName);
/**
* Delete the specified NetApp account.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @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 accountName, Context context);
/**
* Patch the specified NetApp account.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @param body NetApp Account object supplied in the body of the 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 netApp account resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller, NetAppAccountInner> beginUpdate(
String resourceGroupName, String accountName, NetAppAccountPatch body);
/**
* Patch the specified NetApp account.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @param body NetApp Account object supplied in the body of the 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 netApp account resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller, NetAppAccountInner> beginUpdate(
String resourceGroupName, String accountName, NetAppAccountPatch body, Context context);
/**
* Patch the specified NetApp account.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @param body NetApp Account object supplied in the body of the 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 netApp account resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NetAppAccountInner update(String resourceGroupName, String accountName, NetAppAccountPatch body);
/**
* Patch the specified NetApp account.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @param body NetApp Account object supplied in the body of the 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 netApp account resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NetAppAccountInner update(String resourceGroupName, String accountName, NetAppAccountPatch body, Context context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy