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

package com.azure.resourcemanager.vmwarecloudsimple.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 DedicatedCloudNodes. */
public interface DedicatedCloudNodes {
    /**
     * Implements list of dedicated cloud nodes within subscription method
     *
     * <p>Returns list of dedicate cloud nodes within subscription.
     *
     * @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 dedicated nodes response model as paginated response with {@link PagedIterable}.
     */
    PagedIterable<DedicatedCloudNode> list();

    /**
     * Implements list of dedicated cloud nodes within subscription method
     *
     * <p>Returns list of dedicate cloud nodes within subscription.
     *
     * @param filter The filter to apply on the list operation.
     * @param top The maximum number of record sets to return.
     * @param skipToken to be used by nextLink implementation.
     * @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 dedicated nodes response model as paginated response with {@link PagedIterable}.
     */
    PagedIterable<DedicatedCloudNode> list(String filter, Integer top, String skipToken, Context context);

    /**
     * Implements list of dedicated cloud nodes within RG method
     *
     * <p>Returns list of dedicate cloud nodes within 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 dedicated nodes response model as paginated response with {@link PagedIterable}.
     */
    PagedIterable<DedicatedCloudNode> listByResourceGroup(String resourceGroupName);

    /**
     * Implements list of dedicated cloud nodes within RG method
     *
     * <p>Returns list of dedicate cloud nodes within resource group.
     *
     * @param resourceGroupName The name of the resource group.
     * @param filter The filter to apply on the list operation.
     * @param top The maximum number of record sets to return.
     * @param skipToken to be used by nextLink implementation.
     * @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 dedicated nodes response model as paginated response with {@link PagedIterable}.
     */
    PagedIterable<DedicatedCloudNode> listByResourceGroup(
        String resourceGroupName, String filter, Integer top, String skipToken, Context context);

    /**
     * Implements dedicated cloud node GET method
     *
     * <p>Returns dedicated cloud node.
     *
     * @param resourceGroupName The name of the resource group.
     * @param dedicatedCloudNodeName dedicated cloud node name.
     * @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 dedicated cloud node model along with {@link Response}.
     */
    Response<DedicatedCloudNode> getByResourceGroupWithResponse(
        String resourceGroupName, String dedicatedCloudNodeName, Context context);

    /**
     * Implements dedicated cloud node GET method
     *
     * <p>Returns dedicated cloud node.
     *
     * @param resourceGroupName The name of the resource group.
     * @param dedicatedCloudNodeName dedicated cloud node name.
     * @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 dedicated cloud node model.
     */
    DedicatedCloudNode getByResourceGroup(String resourceGroupName, String dedicatedCloudNodeName);

    /**
     * Implements dedicated cloud node DELETE method
     *
     * <p>Delete dedicated cloud node.
     *
     * @param resourceGroupName The name of the resource group.
     * @param dedicatedCloudNodeName dedicated cloud node name.
     * @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 {@link Response}.
     */
    Response<Void> deleteByResourceGroupWithResponse(
        String resourceGroupName, String dedicatedCloudNodeName, Context context);

    /**
     * Implements dedicated cloud node DELETE method
     *
     * <p>Delete dedicated cloud node.
     *
     * @param resourceGroupName The name of the resource group.
     * @param dedicatedCloudNodeName dedicated cloud node name.
     * @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 deleteByResourceGroup(String resourceGroupName, String dedicatedCloudNodeName);

    /**
     * Implements dedicated cloud node GET method
     *
     * <p>Returns dedicated cloud node.
     *
     * @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 dedicated cloud node model along with {@link Response}.
     */
    DedicatedCloudNode getById(String id);

    /**
     * Implements dedicated cloud node GET method
     *
     * <p>Returns dedicated cloud node.
     *
     * @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 dedicated cloud node model along with {@link Response}.
     */
    Response<DedicatedCloudNode> getByIdWithResponse(String id, Context context);

    /**
     * Implements dedicated cloud node DELETE method
     *
     * <p>Delete dedicated cloud node.
     *
     * @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);

    /**
     * Implements dedicated cloud node DELETE method
     *
     * <p>Delete dedicated cloud node.
     *
     * @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 the {@link Response}.
     */
    Response<Void> deleteByIdWithResponse(String id, Context context);

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