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

package com.azure.resourcemanager.networkcloud.models;

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

/** Resource collection API of MetricsConfigurations. */
public interface MetricsConfigurations {
    /**
     * List metrics configurations of the cluster.
     *
     * <p>Get a list of metrics configurations for the provided cluster.
     *
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param clusterName The name of the cluster.
     * @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 list of metrics configurations for the provided cluster as paginated response with {@link
     *     PagedIterable}.
     */
    PagedIterable<ClusterMetricsConfiguration> listByCluster(String resourceGroupName, String clusterName);

    /**
     * List metrics configurations of the cluster.
     *
     * <p>Get a list of metrics configurations for the provided cluster.
     *
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param clusterName The name of the cluster.
     * @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 list of metrics configurations for the provided cluster as paginated response with {@link
     *     PagedIterable}.
     */
    PagedIterable<ClusterMetricsConfiguration> listByCluster(
        String resourceGroupName, String clusterName, Context context);

    /**
     * Retrieve the metrics configuration of the cluster.
     *
     * <p>Get metrics configuration of the provided cluster.
     *
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param clusterName The name of the cluster.
     * @param metricsConfigurationName The name of the metrics configuration for the cluster.
     * @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 metrics configuration of the provided cluster along with {@link Response}.
     */
    Response<ClusterMetricsConfiguration> getWithResponse(
        String resourceGroupName, String clusterName, String metricsConfigurationName, Context context);

    /**
     * Retrieve the metrics configuration of the cluster.
     *
     * <p>Get metrics configuration of the provided cluster.
     *
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param clusterName The name of the cluster.
     * @param metricsConfigurationName The name of the metrics configuration for the cluster.
     * @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 metrics configuration of the provided cluster.
     */
    ClusterMetricsConfiguration get(String resourceGroupName, String clusterName, String metricsConfigurationName);

    /**
     * Delete the metrics configuration of the cluster.
     *
     * <p>Delete the metrics configuration of the provided cluster.
     *
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param clusterName The name of the cluster.
     * @param metricsConfigurationName The name of the metrics configuration for the cluster.
     * @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.
     */
    void delete(String resourceGroupName, String clusterName, String metricsConfigurationName);

    /**
     * Delete the metrics configuration of the cluster.
     *
     * <p>Delete the metrics configuration of the provided cluster.
     *
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param clusterName The name of the cluster.
     * @param metricsConfigurationName The name of the metrics configuration for the cluster.
     * @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.
     */
    void delete(String resourceGroupName, String clusterName, String metricsConfigurationName, Context context);

    /**
     * Retrieve the metrics configuration of the cluster.
     *
     * <p>Get metrics configuration of the provided cluster.
     *
     * @param id the resource ID.
     * @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 metrics configuration of the provided cluster along with {@link Response}.
     */
    ClusterMetricsConfiguration getById(String id);

    /**
     * Retrieve the metrics configuration of the cluster.
     *
     * <p>Get metrics configuration of the provided cluster.
     *
     * @param id the resource ID.
     * @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 metrics configuration of the provided cluster along with {@link Response}.
     */
    Response<ClusterMetricsConfiguration> getByIdWithResponse(String id, Context context);

    /**
     * Delete the metrics configuration of the cluster.
     *
     * <p>Delete the metrics configuration of the provided cluster.
     *
     * @param id the resource ID.
     * @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.
     */
    void deleteById(String id);

    /**
     * Delete the metrics configuration of the cluster.
     *
     * <p>Delete the metrics configuration of the provided cluster.
     *
     * @param id the resource ID.
     * @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.
     */
    void deleteByIdWithResponse(String id, Context context);

    /**
     * Begins definition for a new ClusterMetricsConfiguration resource.
     *
     * @param name resource name.
     * @return the first stage of the new ClusterMetricsConfiguration definition.
     */
    ClusterMetricsConfiguration.DefinitionStages.Blank define(String name);
}
