@azure/arm-compute
Version:
A generated SDK for ComputeManagementClient.
112 lines • 8.66 kB
TypeScript
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
import type { CapacityReservations } from "../operationsInterfaces/index.js";
import type { ComputeManagementClient } from "../computeManagementClient.js";
import type { SimplePollerLike, OperationState } from "@azure/core-lro";
import type { CapacityReservation, CapacityReservationsListByCapacityReservationGroupOptionalParams, CapacityReservationsGetOptionalParams, CapacityReservationsGetResponse, CapacityReservationsCreateOrUpdateOptionalParams, CapacityReservationsCreateOrUpdateResponse, CapacityReservationUpdate, CapacityReservationsUpdateOptionalParams, CapacityReservationsUpdateResponse, CapacityReservationsDeleteOptionalParams } from "../models/index.js";
/** Class containing CapacityReservations operations. */
export declare class CapacityReservationsImpl implements CapacityReservations {
private readonly client;
/**
* Initialize a new instance of the class CapacityReservations class.
* @param client Reference to the service client
*/
constructor(client: ComputeManagementClient);
/**
* Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink
* property in the response to get the next page of capacity reservations.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param capacityReservationGroupName The name of the capacity reservation group.
* @param options The options parameters.
*/
listByCapacityReservationGroup(resourceGroupName: string, capacityReservationGroupName: string, options?: CapacityReservationsListByCapacityReservationGroupOptionalParams): PagedAsyncIterableIterator<CapacityReservation>;
private listByCapacityReservationGroupPagingPage;
private listByCapacityReservationGroupPagingAll;
/**
* Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink
* property in the response to get the next page of capacity reservations.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param capacityReservationGroupName The name of the capacity reservation group.
* @param options The options parameters.
*/
private _listByCapacityReservationGroup;
/**
* The operation that retrieves information about the capacity reservation.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param capacityReservationGroupName The name of the capacity reservation group.
* @param capacityReservationName The name of the capacity reservation.
* @param options The options parameters.
*/
get(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, options?: CapacityReservationsGetOptionalParams): Promise<CapacityReservationsGetResponse>;
/**
* The operation to create or update a capacity reservation. Please note some properties can be set
* only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for
* more details.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param capacityReservationGroupName The name of the capacity reservation group.
* @param capacityReservationName The name of the capacity reservation.
* @param parameters Parameters supplied to the Create capacity reservation.
* @param options The options parameters.
*/
beginCreateOrUpdate(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservation, options?: CapacityReservationsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<CapacityReservationsCreateOrUpdateResponse>, CapacityReservationsCreateOrUpdateResponse>>;
/**
* The operation to create or update a capacity reservation. Please note some properties can be set
* only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for
* more details.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param capacityReservationGroupName The name of the capacity reservation group.
* @param capacityReservationName The name of the capacity reservation.
* @param parameters Parameters supplied to the Create capacity reservation.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservation, options?: CapacityReservationsCreateOrUpdateOptionalParams): Promise<CapacityReservationsCreateOrUpdateResponse>;
/**
* The operation to update a capacity reservation.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param capacityReservationGroupName The name of the capacity reservation group.
* @param capacityReservationName The name of the capacity reservation.
* @param parameters Parameters supplied to the Update capacity reservation operation.
* @param options The options parameters.
*/
beginUpdate(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservationUpdate, options?: CapacityReservationsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<CapacityReservationsUpdateResponse>, CapacityReservationsUpdateResponse>>;
/**
* The operation to update a capacity reservation.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param capacityReservationGroupName The name of the capacity reservation group.
* @param capacityReservationName The name of the capacity reservation.
* @param parameters Parameters supplied to the Update capacity reservation operation.
* @param options The options parameters.
*/
beginUpdateAndWait(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservationUpdate, options?: CapacityReservationsUpdateOptionalParams): Promise<CapacityReservationsUpdateResponse>;
/**
* The operation to delete a capacity reservation. This operation is allowed only when all the
* associated resources are disassociated from the capacity reservation. Please refer to
* https://aka.ms/CapacityReservation for more details. Note: Block capacity reservations cannot be
* deleted after it has been successfully allocated until the schedule end time.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param capacityReservationGroupName The name of the capacity reservation group.
* @param capacityReservationName The name of the capacity reservation.
* @param options The options parameters.
*/
beginDelete(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, options?: CapacityReservationsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
/**
* The operation to delete a capacity reservation. This operation is allowed only when all the
* associated resources are disassociated from the capacity reservation. Please refer to
* https://aka.ms/CapacityReservation for more details. Note: Block capacity reservations cannot be
* deleted after it has been successfully allocated until the schedule end time.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param capacityReservationGroupName The name of the capacity reservation group.
* @param capacityReservationName The name of the capacity reservation.
* @param options The options parameters.
*/
beginDeleteAndWait(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, options?: CapacityReservationsDeleteOptionalParams): Promise<void>;
/**
* ListByCapacityReservationGroupNext
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param capacityReservationGroupName The name of the capacity reservation group.
* @param nextLink The nextLink from the previous successful call to the ListByCapacityReservationGroup
* method.
* @param options The options parameters.
*/
private _listByCapacityReservationGroupNext;
}
//# sourceMappingURL=capacityReservations.d.ts.map