import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { Server, ServersListOptionalParams, ServersListByResourceGroupOptionalParams, CheckNameAvailabilityRequest, ServersCheckNameAvailabilityOptionalParams, ServersCheckNameAvailabilityResponse, ServersGetOptionalParams, ServersGetResponse, ServersCreateOrUpdateOptionalParams, ServersCreateOrUpdateResponse, ServersDeleteOptionalParams, ServerUpdate, ServersUpdateOptionalParams, ServersUpdateResponse, ImportNewDatabaseDefinition, ServersImportDatabaseOptionalParams, ServersImportDatabaseResponse, ServersRefreshStatusOptionalParams, ServersRefreshStatusResponse } from "../models"; /** Interface representing a Servers. */ export interface Servers { /** * Gets a list of all servers in the subscription. * @param options The options parameters. */ list(options?: ServersListOptionalParams): PagedAsyncIterableIterator; /** * Gets a list of servers in a resource groups. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param options The options parameters. */ listByResourceGroup(resourceGroupName: string, options?: ServersListByResourceGroupOptionalParams): PagedAsyncIterableIterator; /** * Determines whether a resource can be created with the specified name. * @param parameters The name availability request parameters. * @param options The options parameters. */ checkNameAvailability(parameters: CheckNameAvailabilityRequest, options?: ServersCheckNameAvailabilityOptionalParams): Promise; /** * Gets a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, options?: ServersGetOptionalParams): Promise; /** * Creates or updates a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters The requested server resource state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: Server, options?: ServersCreateOrUpdateOptionalParams): Promise, ServersCreateOrUpdateResponse>>; /** * Creates or updates a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters The requested server resource state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, parameters: Server, options?: ServersCreateOrUpdateOptionalParams): Promise; /** * Deletes a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, options?: ServersDeleteOptionalParams): Promise, void>>; /** * Deletes a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, options?: ServersDeleteOptionalParams): Promise; /** * Updates a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters The requested server resource state. * @param options The options parameters. */ beginUpdate(resourceGroupName: string, serverName: string, parameters: ServerUpdate, options?: ServersUpdateOptionalParams): Promise, ServersUpdateResponse>>; /** * Updates a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters The requested server resource state. * @param options The options parameters. */ beginUpdateAndWait(resourceGroupName: string, serverName: string, parameters: ServerUpdate, options?: ServersUpdateOptionalParams): Promise; /** * Imports a bacpac into a new database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters The database import request parameters. * @param options The options parameters. */ beginImportDatabase(resourceGroupName: string, serverName: string, parameters: ImportNewDatabaseDefinition, options?: ServersImportDatabaseOptionalParams): Promise, ServersImportDatabaseResponse>>; /** * Imports a bacpac into a new database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters The database import request parameters. * @param options The options parameters. */ beginImportDatabaseAndWait(resourceGroupName: string, serverName: string, parameters: ImportNewDatabaseDefinition, options?: ServersImportDatabaseOptionalParams): Promise; /** * Refresh external governance enablement status. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ beginRefreshStatus(resourceGroupName: string, serverName: string, options?: ServersRefreshStatusOptionalParams): Promise, ServersRefreshStatusResponse>>; /** * Refresh external governance enablement status. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ beginRefreshStatusAndWait(resourceGroupName: string, serverName: string, options?: ServersRefreshStatusOptionalParams): Promise; } //# sourceMappingURL=servers.d.ts.map