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

package com.azure.resourcemanager.hybridnetwork.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 VendorSkuPreviews. */
public interface VendorSkuPreviews {
    /**
     * Lists all the preview information of a vendor sku.
     *
     * @param vendorName The name of the vendor.
     * @param skuName The name of the sku.
     * @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 customer subscriptions which can use a sku as paginated response with {@link PagedIterable}.
     */
    PagedIterable<PreviewSubscription> list(String vendorName, String skuName);

    /**
     * Lists all the preview information of a vendor sku.
     *
     * @param vendorName The name of the vendor.
     * @param skuName The name of the sku.
     * @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 customer subscriptions which can use a sku as paginated response with {@link PagedIterable}.
     */
    PagedIterable<PreviewSubscription> list(String vendorName, String skuName, Context context);

    /**
     * Gets the preview information of a vendor sku.
     *
     * @param vendorName The name of the vendor.
     * @param skuName The name of the vendor sku.
     * @param previewSubscription Preview subscription 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 preview information of a vendor sku along with {@link Response}.
     */
    Response<PreviewSubscription> getWithResponse(
        String vendorName, String skuName, String previewSubscription, Context context);

    /**
     * Gets the preview information of a vendor sku.
     *
     * @param vendorName The name of the vendor.
     * @param skuName The name of the vendor sku.
     * @param previewSubscription Preview subscription 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 the preview information of a vendor sku.
     */
    PreviewSubscription get(String vendorName, String skuName, String previewSubscription);

    /**
     * Deletes the preview information of a vendor sku.
     *
     * @param vendorName The name of the vendor.
     * @param skuName The name of the vendor sku.
     * @param previewSubscription Preview subscription 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 delete(String vendorName, String skuName, String previewSubscription);

    /**
     * Deletes the preview information of a vendor sku.
     *
     * @param vendorName The name of the vendor.
     * @param skuName The name of the vendor sku.
     * @param previewSubscription Preview subscription 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 delete(String vendorName, String skuName, String previewSubscription, Context context);

    /**
     * Gets the preview information of a vendor sku.
     *
     * @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 the preview information of a vendor sku along with {@link Response}.
     */
    PreviewSubscription getById(String id);

    /**
     * Gets the preview information of a vendor sku.
     *
     * @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 preview information of a vendor sku along with {@link Response}.
     */
    Response<PreviewSubscription> getByIdWithResponse(String id, Context context);

    /**
     * Deletes the preview information of a vendor sku.
     *
     * @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);

    /**
     * Deletes the preview information of a vendor sku.
     *
     * @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 PreviewSubscription resource.
     *
     * @param name resource name.
     * @return the first stage of the new PreviewSubscription definition.
     */
    PreviewSubscription.DefinitionStages.Blank define(String name);
}
