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

package azure.resourcemanager.commonproperties.models;

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

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

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

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

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

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