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

package azure.resourcemanager.methodsubscriptionid.models;

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

/**
 * Resource collection API of MixedSubscriptionPlacementResourceGroupResourceOperations.
 */
public interface MixedSubscriptionPlacementResourceGroupResourceOperations {
    /**
     * Get a ResourceGroupResource.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param resourceGroupResourceName The name of the ResourceGroupResource.
     * @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 ResourceGroupResource along with {@link Response}.
     */
    Response<ResourceGroupResource> getByResourceGroupWithResponse(String resourceGroupName,
        String resourceGroupResourceName, Context context);

    /**
     * Get a ResourceGroupResource.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param resourceGroupResourceName The name of the ResourceGroupResource.
     * @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 ResourceGroupResource.
     */
    ResourceGroupResource getByResourceGroup(String resourceGroupName, String resourceGroupResourceName);

    /**
     * Delete a ResourceGroupResource.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param resourceGroupResourceName The name of the ResourceGroupResource.
     * @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 resourceGroupResourceName,
        Context context);

    /**
     * Delete a ResourceGroupResource.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param resourceGroupResourceName The name of the ResourceGroupResource.
     * @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 resourceGroupResourceName);

    /**
     * Get a ResourceGroupResource.
     * 
     * @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 a ResourceGroupResource along with {@link Response}.
     */
    ResourceGroupResource getById(String id);

    /**
     * Get a ResourceGroupResource.
     * 
     * @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 a ResourceGroupResource along with {@link Response}.
     */
    Response<ResourceGroupResource> getByIdWithResponse(String id, Context context);

    /**
     * Delete a ResourceGroupResource.
     * 
     * @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 a ResourceGroupResource.
     * 
     * @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 ResourceGroupResource resource.
     * 
     * @param name resource name.
     * @return the first stage of the new ResourceGroupResource definition.
     */
    ResourceGroupResource.DefinitionStages.Blank define(String name);
}
