/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { Pool, PoolsListByProjectOptionalParams, PoolsGetOptionalParams, PoolsGetResponse, PoolsCreateOrUpdateOptionalParams, PoolsCreateOrUpdateResponse, PoolUpdate, PoolsUpdateOptionalParams, PoolsUpdateResponse, PoolsDeleteOptionalParams, PoolsDeleteResponse, PoolsRunHealthChecksOptionalParams, PoolsRunHealthChecksResponse, } from "../models"; /// /** Interface representing a Pools. */ export interface Pools { /** * Lists pools for a project * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param projectName The name of the project. * @param options The options parameters. */ listByProject( resourceGroupName: string, projectName: string, options?: PoolsListByProjectOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a machine pool * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param projectName The name of the project. * @param poolName Name of the pool. * @param options The options parameters. */ get( resourceGroupName: string, projectName: string, poolName: string, options?: PoolsGetOptionalParams, ): Promise; /** * Creates or updates a machine pool * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param projectName The name of the project. * @param poolName Name of the pool. * @param body Represents a machine pool * @param options The options parameters. */ beginCreateOrUpdate( resourceGroupName: string, projectName: string, poolName: string, body: Pool, options?: PoolsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, PoolsCreateOrUpdateResponse > >; /** * Creates or updates a machine pool * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param projectName The name of the project. * @param poolName Name of the pool. * @param body Represents a machine pool * @param options The options parameters. */ beginCreateOrUpdateAndWait( resourceGroupName: string, projectName: string, poolName: string, body: Pool, options?: PoolsCreateOrUpdateOptionalParams, ): Promise; /** * Partially updates a machine pool * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param projectName The name of the project. * @param poolName Name of the pool. * @param body Represents a machine pool * @param options The options parameters. */ beginUpdate( resourceGroupName: string, projectName: string, poolName: string, body: PoolUpdate, options?: PoolsUpdateOptionalParams, ): Promise< SimplePollerLike, PoolsUpdateResponse> >; /** * Partially updates a machine pool * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param projectName The name of the project. * @param poolName Name of the pool. * @param body Represents a machine pool * @param options The options parameters. */ beginUpdateAndWait( resourceGroupName: string, projectName: string, poolName: string, body: PoolUpdate, options?: PoolsUpdateOptionalParams, ): Promise; /** * Deletes a machine pool * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param projectName The name of the project. * @param poolName Name of the pool. * @param options The options parameters. */ beginDelete( resourceGroupName: string, projectName: string, poolName: string, options?: PoolsDeleteOptionalParams, ): Promise< SimplePollerLike, PoolsDeleteResponse> >; /** * Deletes a machine pool * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param projectName The name of the project. * @param poolName Name of the pool. * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, projectName: string, poolName: string, options?: PoolsDeleteOptionalParams, ): Promise; /** * Triggers a refresh of the pool status. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param projectName The name of the project. * @param poolName Name of the pool. * @param options The options parameters. */ beginRunHealthChecks( resourceGroupName: string, projectName: string, poolName: string, options?: PoolsRunHealthChecksOptionalParams, ): Promise< SimplePollerLike< OperationState, PoolsRunHealthChecksResponse > >; /** * Triggers a refresh of the pool status. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param projectName The name of the project. * @param poolName Name of the pool. * @param options The options parameters. */ beginRunHealthChecksAndWait( resourceGroupName: string, projectName: string, poolName: string, options?: PoolsRunHealthChecksOptionalParams, ): Promise; }