// 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.models;

import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;

/** Resource collection API of NetAppResources. */
public interface NetAppResources {
    /**
     * Check resource name availability
     *
     * <p>Check if a resource name is available.
     *
     * @param location The name of Azure region.
     * @param body Name availability request.
     * @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 regarding availability of a resource along with {@link Response}.
     */
    Response<CheckAvailabilityResponse> checkNameAvailabilityWithResponse(
        String location, ResourceNameAvailabilityRequest body, Context context);

    /**
     * Check resource name availability
     *
     * <p>Check if a resource name is available.
     *
     * @param location The name of Azure region.
     * @param body Name availability request.
     * @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 regarding availability of a resource.
     */
    CheckAvailabilityResponse checkNameAvailability(String location, ResourceNameAvailabilityRequest body);

    /**
     * Check file path availability
     *
     * <p>Check if a file path is available.
     *
     * @param location The name of Azure region.
     * @param body File path availability request.
     * @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 regarding availability of a resource along with {@link Response}.
     */
    Response<CheckAvailabilityResponse> checkFilePathAvailabilityWithResponse(
        String location, FilePathAvailabilityRequest body, Context context);

    /**
     * Check file path availability
     *
     * <p>Check if a file path is available.
     *
     * @param location The name of Azure region.
     * @param body File path availability request.
     * @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 regarding availability of a resource.
     */
    CheckAvailabilityResponse checkFilePathAvailability(String location, FilePathAvailabilityRequest body);

    /**
     * Check quota availability
     *
     * <p>Check if a quota is available.
     *
     * @param location The name of Azure region.
     * @param body Quota availability request.
     * @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 regarding availability of a resource along with {@link Response}.
     */
    Response<CheckAvailabilityResponse> checkQuotaAvailabilityWithResponse(
        String location, QuotaAvailabilityRequest body, Context context);

    /**
     * Check quota availability
     *
     * <p>Check if a quota is available.
     *
     * @param location The name of Azure region.
     * @param body Quota availability request.
     * @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 regarding availability of a resource.
     */
    CheckAvailabilityResponse checkQuotaAvailability(String location, QuotaAvailabilityRequest body);

    /**
     * Describes region specific information.
     *
     * <p>Provides storage to network proximity and logical zone mapping information.
     *
     * @param location The name of Azure region.
     * @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 provides region specific information along with {@link Response}.
     */
    Response<RegionInfo> queryRegionInfoWithResponse(String location, Context context);

    /**
     * Describes region specific information.
     *
     * <p>Provides storage to network proximity and logical zone mapping information.
     *
     * @param location The name of Azure region.
     * @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 provides region specific information.
     */
    RegionInfo queryRegionInfo(String location);
}
