// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.storagecache.models;

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

/** Resource collection API of ResourceProviders. */
public interface ResourceProviders {
    /**
     * Check that subnets will be valid for AML file system create calls.
     *
     * @param amlFilesystemSubnetInfo Information about the subnets to validate.
     * @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 com.azure.resourcemanager.storagecache.models.AmlFilesystemCheckSubnetErrorException thrown if the
     *     request is rejected by server on status code 400.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the {@link Response}.
     */
    Response<Void> checkAmlFSSubnetsWithResponse(AmlFilesystemSubnetInfo amlFilesystemSubnetInfo, Context context);

    /**
     * Check that subnets will be valid for AML file system create calls.
     *
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws com.azure.resourcemanager.storagecache.models.AmlFilesystemCheckSubnetErrorException thrown if the
     *     request is rejected by server on status code 400.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     */
    void checkAmlFSSubnets();

    /**
     * Get the number of available IP addresses needed for the AML file system information provided.
     *
     * @param requiredAmlFilesystemSubnetsSizeInfo Information to determine the number of available IPs a subnet will
     *     need to host the AML file system.
     * @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 number of available IP addresses needed for the AML file system information provided along with
     *     {@link Response}.
     */
    Response<RequiredAmlFilesystemSubnetsSize> getRequiredAmlFSSubnetsSizeWithResponse(
        RequiredAmlFilesystemSubnetsSizeInfo requiredAmlFilesystemSubnetsSizeInfo, Context context);

    /**
     * Get the number of available IP addresses needed for the AML file system information provided.
     *
     * @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 number of available IP addresses needed for the AML file system information provided.
     */
    RequiredAmlFilesystemSubnetsSize getRequiredAmlFSSubnetsSize();
}
