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

package com.azure.resourcemanager.dynatrace.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 SingleSignOns. */
public interface SingleSignOns {
    /**
     * Get a DynatraceSingleSignOnResource.
     *
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param monitorName Monitor resource name.
     * @param configurationName Single Sign On Configuration 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 a DynatraceSingleSignOnResource.
     */
    DynatraceSingleSignOnResource get(String resourceGroupName, String monitorName, String configurationName);

    /**
     * Get a DynatraceSingleSignOnResource.
     *
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param monitorName Monitor resource name.
     * @param configurationName Single Sign On Configuration 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 a DynatraceSingleSignOnResource along with {@link Response}.
     */
    Response<DynatraceSingleSignOnResource> getWithResponse(
        String resourceGroupName, String monitorName, String configurationName, Context context);

    /**
     * List all DynatraceSingleSignOnResource by monitorName.
     *
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param monitorName Monitor resource 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 the response of a DynatraceSingleSignOnResource list operation as paginated response with {@link
     *     PagedIterable}.
     */
    PagedIterable<DynatraceSingleSignOnResource> list(String resourceGroupName, String monitorName);

    /**
     * List all DynatraceSingleSignOnResource by monitorName.
     *
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param monitorName Monitor resource 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 response of a DynatraceSingleSignOnResource list operation as paginated response with {@link
     *     PagedIterable}.
     */
    PagedIterable<DynatraceSingleSignOnResource> list(String resourceGroupName, String monitorName, Context context);

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

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

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