import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { SearchService, ServicesListByResourceGroupOptionalParams, ServicesListBySubscriptionOptionalParams, ServicesCreateOrUpdateOptionalParams, ServicesCreateOrUpdateResponse, SearchServiceUpdate, ServicesUpdateOptionalParams, ServicesUpdateResponse, ServicesGetOptionalParams, ServicesGetResponse, ServicesDeleteOptionalParams, ServicesCheckNameAvailabilityOptionalParams, ServicesCheckNameAvailabilityResponse, ServicesUpgradeOptionalParams, ServicesUpgradeResponse } from "../models/index.js"; /** Interface representing a Services. */ export interface Services { /** * Gets a list of all Search services in the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. * @param options The options parameters. */ listByResourceGroup(resourceGroupName: string, options?: ServicesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; /** * Gets a list of all Search services in the given subscription. * @param options The options parameters. */ listBySubscription(options?: ServicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; /** * Creates or updates a search service in the given resource group. If the search service already * exists, all properties will be updated with the given values. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. * @param searchServiceName The name of the Azure AI Search service to create or update. Search service * names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or * last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in * length. Search service names must be unique since they are part of the service URI * (https://.search.windows.net). You cannot change the service name after the service is * created. * @param service The definition of the search service to create or update. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, searchServiceName: string, service: SearchService, options?: ServicesCreateOrUpdateOptionalParams): Promise, ServicesCreateOrUpdateResponse>>; /** * Creates or updates a search service in the given resource group. If the search service already * exists, all properties will be updated with the given values. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. * @param searchServiceName The name of the Azure AI Search service to create or update. Search service * names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or * last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in * length. Search service names must be unique since they are part of the service URI * (https://.search.windows.net). You cannot change the service name after the service is * created. * @param service The definition of the search service to create or update. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, searchServiceName: string, service: SearchService, options?: ServicesCreateOrUpdateOptionalParams): Promise; /** * Updates an existing search service in the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. * @param searchServiceName The name of the Azure AI Search service to update. * @param service The definition of the search service to update. * @param options The options parameters. */ update(resourceGroupName: string, searchServiceName: string, service: SearchServiceUpdate, options?: ServicesUpdateOptionalParams): Promise; /** * Gets the search service with the given name in the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. * @param searchServiceName The name of the Azure AI Search service associated with the specified * resource group. * @param options The options parameters. */ get(resourceGroupName: string, searchServiceName: string, options?: ServicesGetOptionalParams): Promise; /** * Deletes a search service in the given resource group, along with its associated resources. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. * @param searchServiceName The name of the Azure AI Search service associated with the specified * resource group. * @param options The options parameters. */ delete(resourceGroupName: string, searchServiceName: string, options?: ServicesDeleteOptionalParams): Promise; /** * Checks whether or not the given search service name is available for use. Search service names must * be globally unique since they are part of the service URI (https://.search.windows.net). * @param name The search service name to validate. Search service names must only contain lowercase * letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain * consecutive dashes, and must be between 2 and 60 characters in length. * @param options The options parameters. */ checkNameAvailability(name: string, options?: ServicesCheckNameAvailabilityOptionalParams): Promise; /** * Upgrades the Azure AI Search service to the latest version available. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. * @param searchServiceName The name of the Azure AI Search service associated with the specified * resource group. * @param options The options parameters. */ beginUpgrade(resourceGroupName: string, searchServiceName: string, options?: ServicesUpgradeOptionalParams): Promise, ServicesUpgradeResponse>>; /** * Upgrades the Azure AI Search service to the latest version available. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. * @param searchServiceName The name of the Azure AI Search service associated with the specified * resource group. * @param options The options parameters. */ beginUpgradeAndWait(resourceGroupName: string, searchServiceName: string, options?: ServicesUpgradeOptionalParams): Promise; } //# sourceMappingURL=services.d.ts.map