// 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 VendorNetworkFunctions. */
public interface VendorNetworkFunctions {
    /**
     * Gets information about the specified vendor network function.
     *
     * @param locationName The Azure region where the network function resource was created by the customer.
     * @param vendorName The name of the vendor.
     * @param serviceKey The GUID for the vendor network function.
     * @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 information about the specified vendor network function along with {@link Response}.
     */
    Response<VendorNetworkFunction> getWithResponse(
        String locationName, String vendorName, String serviceKey, Context context);

    /**
     * Gets information about the specified vendor network function.
     *
     * @param locationName The Azure region where the network function resource was created by the customer.
     * @param vendorName The name of the vendor.
     * @param serviceKey The GUID for the vendor network function.
     * @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 information about the specified vendor network function.
     */
    VendorNetworkFunction get(String locationName, String vendorName, String serviceKey);

    /**
     * Lists all the vendor network function sub resources in an Azure region, filtered by skuType, skuName,
     * vendorProvisioningState.
     *
     * @param locationName The Azure region where the network function resource was created by the customer.
     * @param vendorName The name of the vendor.
     * @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 response for vendors API service call as paginated response with {@link PagedIterable}.
     */
    PagedIterable<VendorNetworkFunction> list(String locationName, String vendorName);

    /**
     * Lists all the vendor network function sub resources in an Azure region, filtered by skuType, skuName,
     * vendorProvisioningState.
     *
     * @param locationName The Azure region where the network function resource was created by the customer.
     * @param vendorName The name of the vendor.
     * @param filter The filter to apply on the operation. The properties you can use for eq (equals) are: skuType,
     *     skuName and vendorProvisioningState.
     * @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 response for vendors API service call as paginated response with {@link PagedIterable}.
     */
    PagedIterable<VendorNetworkFunction> list(String locationName, String vendorName, String filter, Context context);

    /**
     * Gets information about the specified vendor network function.
     *
     * @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 information about the specified vendor network function along with {@link Response}.
     */
    VendorNetworkFunction getById(String id);

    /**
     * Gets information about the specified vendor network function.
     *
     * @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 information about the specified vendor network function along with {@link Response}.
     */
    Response<VendorNetworkFunction> getByIdWithResponse(String id, Context context);

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