@azure/arm-quota 1.1.1-alpha.20250717.1 → 1.1.1-alpha.20250730.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/azureQuotaExtensionAPI.js +24 -5
- package/dist/browser/azureQuotaExtensionAPI.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +72 -28
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/groupQuotaLimits.js +1 -0
- package/dist/browser/operations/groupQuotaLimits.js.map +1 -1
- package/dist/browser/operations/groupQuotaLimitsRequest.js +34 -46
- package/dist/browser/operations/groupQuotaLimitsRequest.js.map +1 -1
- package/dist/browser/operations/groupQuotaSubscriptionAllocation.js +1 -0
- package/dist/browser/operations/groupQuotaSubscriptionAllocation.js.map +1 -1
- package/dist/browser/operations/groupQuotaSubscriptionAllocationRequest.js +34 -46
- package/dist/browser/operations/groupQuotaSubscriptionAllocationRequest.js.map +1 -1
- package/dist/browser/operations/groupQuotaSubscriptionRequests.js +23 -40
- package/dist/browser/operations/groupQuotaSubscriptionRequests.js.map +1 -1
- package/dist/browser/operations/groupQuotaSubscriptions.js +56 -58
- package/dist/browser/operations/groupQuotaSubscriptions.js.map +1 -1
- package/dist/browser/operations/groupQuotas.js +56 -58
- package/dist/browser/operations/groupQuotas.js.map +1 -1
- package/dist/browser/operations/quota.js +45 -52
- package/dist/browser/operations/quota.js.map +1 -1
- package/dist/browser/operations/quotaOperation.js +23 -40
- package/dist/browser/operations/quotaOperation.js.map +1 -1
- package/dist/browser/operations/quotaRequestStatus.js +23 -40
- package/dist/browser/operations/quotaRequestStatus.js.map +1 -1
- package/dist/browser/operations/usages.js +23 -40
- package/dist/browser/operations/usages.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/azureQuotaExtensionAPI.js +24 -5
- package/dist/commonjs/azureQuotaExtensionAPI.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +72 -28
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/groupQuotaLimits.js +1 -0
- package/dist/commonjs/operations/groupQuotaLimits.js.map +1 -1
- package/dist/commonjs/operations/groupQuotaLimitsRequest.js +34 -45
- package/dist/commonjs/operations/groupQuotaLimitsRequest.js.map +1 -1
- package/dist/commonjs/operations/groupQuotaSubscriptionAllocation.js +1 -0
- package/dist/commonjs/operations/groupQuotaSubscriptionAllocation.js.map +1 -1
- package/dist/commonjs/operations/groupQuotaSubscriptionAllocationRequest.js +34 -45
- package/dist/commonjs/operations/groupQuotaSubscriptionAllocationRequest.js.map +1 -1
- package/dist/commonjs/operations/groupQuotaSubscriptionRequests.js +23 -39
- package/dist/commonjs/operations/groupQuotaSubscriptionRequests.js.map +1 -1
- package/dist/commonjs/operations/groupQuotaSubscriptions.js +56 -57
- package/dist/commonjs/operations/groupQuotaSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/groupQuotas.js +56 -57
- package/dist/commonjs/operations/groupQuotas.js.map +1 -1
- package/dist/commonjs/operations/quota.js +45 -51
- package/dist/commonjs/operations/quota.js.map +1 -1
- package/dist/commonjs/operations/quotaOperation.js +23 -39
- package/dist/commonjs/operations/quotaOperation.js.map +1 -1
- package/dist/commonjs/operations/quotaRequestStatus.js +23 -39
- package/dist/commonjs/operations/quotaRequestStatus.js.map +1 -1
- package/dist/commonjs/operations/usages.js +23 -39
- package/dist/commonjs/operations/usages.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/azureQuotaExtensionAPI.js +24 -5
- package/dist/esm/azureQuotaExtensionAPI.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +72 -28
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/groupQuotaLimits.js +1 -0
- package/dist/esm/operations/groupQuotaLimits.js.map +1 -1
- package/dist/esm/operations/groupQuotaLimitsRequest.js +34 -46
- package/dist/esm/operations/groupQuotaLimitsRequest.js.map +1 -1
- package/dist/esm/operations/groupQuotaSubscriptionAllocation.js +1 -0
- package/dist/esm/operations/groupQuotaSubscriptionAllocation.js.map +1 -1
- package/dist/esm/operations/groupQuotaSubscriptionAllocationRequest.js +34 -46
- package/dist/esm/operations/groupQuotaSubscriptionAllocationRequest.js.map +1 -1
- package/dist/esm/operations/groupQuotaSubscriptionRequests.js +23 -40
- package/dist/esm/operations/groupQuotaSubscriptionRequests.js.map +1 -1
- package/dist/esm/operations/groupQuotaSubscriptions.js +56 -58
- package/dist/esm/operations/groupQuotaSubscriptions.js.map +1 -1
- package/dist/esm/operations/groupQuotas.js +56 -58
- package/dist/esm/operations/groupQuotas.js.map +1 -1
- package/dist/esm/operations/quota.js +45 -52
- package/dist/esm/operations/quota.js.map +1 -1
- package/dist/esm/operations/quotaOperation.js +23 -40
- package/dist/esm/operations/quotaOperation.js.map +1 -1
- package/dist/esm/operations/quotaRequestStatus.js +23 -40
- package/dist/esm/operations/quotaRequestStatus.js.map +1 -1
- package/dist/esm/operations/usages.js +23 -40
- package/dist/esm/operations/usages.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/azureQuotaExtensionAPI.js +24 -5
- package/dist/react-native/azureQuotaExtensionAPI.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +72 -28
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/groupQuotaLimits.js +1 -0
- package/dist/react-native/operations/groupQuotaLimits.js.map +1 -1
- package/dist/react-native/operations/groupQuotaLimitsRequest.js +34 -46
- package/dist/react-native/operations/groupQuotaLimitsRequest.js.map +1 -1
- package/dist/react-native/operations/groupQuotaSubscriptionAllocation.js +1 -0
- package/dist/react-native/operations/groupQuotaSubscriptionAllocation.js.map +1 -1
- package/dist/react-native/operations/groupQuotaSubscriptionAllocationRequest.js +34 -46
- package/dist/react-native/operations/groupQuotaSubscriptionAllocationRequest.js.map +1 -1
- package/dist/react-native/operations/groupQuotaSubscriptionRequests.js +23 -40
- package/dist/react-native/operations/groupQuotaSubscriptionRequests.js.map +1 -1
- package/dist/react-native/operations/groupQuotaSubscriptions.js +56 -58
- package/dist/react-native/operations/groupQuotaSubscriptions.js.map +1 -1
- package/dist/react-native/operations/groupQuotas.js +56 -58
- package/dist/react-native/operations/groupQuotas.js.map +1 -1
- package/dist/react-native/operations/quota.js +45 -52
- package/dist/react-native/operations/quota.js.map +1 -1
- package/dist/react-native/operations/quotaOperation.js +23 -40
- package/dist/react-native/operations/quotaOperation.js.map +1 -1
- package/dist/react-native/operations/quotaRequestStatus.js +23 -40
- package/dist/react-native/operations/quotaRequestStatus.js.map +1 -1
- package/dist/react-native/operations/usages.js +23 -40
- package/dist/react-native/operations/usages.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-quota-node.api.md +1148 -1148
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groupQuotas.js","sourceRoot":"","sources":["../../../src/operations/groupQuotas.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,C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C,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { GroupQuotas } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureQuotaExtensionAPI } from \"../azureQuotaExtensionAPI.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n GroupQuotasEntity,\n GroupQuotasListNextOptionalParams,\n GroupQuotasListOptionalParams,\n GroupQuotasListResponse,\n GroupQuotasCreateOrUpdateOptionalParams,\n GroupQuotasCreateOrUpdateResponse,\n GroupQuotasUpdateOptionalParams,\n GroupQuotasUpdateResponse,\n GroupQuotasGetOptionalParams,\n GroupQuotasGetResponse,\n GroupQuotasDeleteOptionalParams,\n GroupQuotasDeleteResponse,\n GroupQuotasListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing GroupQuotas operations. */\nexport class GroupQuotasImpl implements GroupQuotas {\n private readonly client: AzureQuotaExtensionAPI;\n\n /**\n * Initialize a new instance of the class GroupQuotas class.\n * @param client Reference to the service client\n */\n constructor(client: AzureQuotaExtensionAPI) {\n this.client = client;\n }\n\n /**\n * Lists GroupQuotas for the scope passed. It will return the GroupQuotas QuotaEntity properties\n * only.The details on group quota can be access from the group quota APIs.\n * @param managementGroupId Management Group Id.\n * @param options The options parameters.\n */\n public list(\n managementGroupId: string,\n options?: GroupQuotasListOptionalParams,\n ): PagedAsyncIterableIterator<GroupQuotasEntity> {\n const iter = this.listPagingAll(managementGroupId, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(managementGroupId, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n managementGroupId: string,\n options?: GroupQuotasListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<GroupQuotasEntity[]> {\n let result: GroupQuotasListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(managementGroupId, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n managementGroupId,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n managementGroupId: string,\n options?: GroupQuotasListOptionalParams,\n ): AsyncIterableIterator<GroupQuotasEntity> {\n for await (const page of this.listPagingPage(managementGroupId, options)) {\n yield* page;\n }\n }\n\n /**\n * Creates a new GroupQuota for the name passed. A RequestId will be returned by the Service. The\n * status can be polled periodically. The status Async polling is using standards defined at -\n * https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.\n * Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified\n * in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI\n * will change to Get URI and full details can be checked.\n * @param managementGroupId Management Group Id.\n * @param groupQuotaName The GroupQuota name. The name should be unique for the provided context\n * tenantId/MgId.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotasCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GroupQuotasCreateOrUpdateResponse>,\n GroupQuotasCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GroupQuotasCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { managementGroupId, groupQuotaName, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n GroupQuotasCreateOrUpdateResponse,\n OperationState<GroupQuotasCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a new GroupQuota for the name passed. A RequestId will be returned by the Service. The\n * status can be polled periodically. The status Async polling is using standards defined at -\n * https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.\n * Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified\n * in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI\n * will change to Get URI and full details can be checked.\n * @param managementGroupId Management Group Id.\n * @param groupQuotaName The GroupQuota name. The name should be unique for the provided context\n * tenantId/MgId.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotasCreateOrUpdateOptionalParams,\n ): Promise<GroupQuotasCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n managementGroupId,\n groupQuotaName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates the GroupQuotas for the name passed. A GroupQuotas RequestId will be returned by the\n * Service. The status can be polled periodically. The status Async polling is using standards defined\n * at -\n * https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.\n * Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified\n * in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI\n * will change to Get URI and full details can be checked.\n * Any change in the filters will be applicable to the future quota assignments, existing quota\n * allocated to subscriptions from the GroupQuotas remains unchanged.\n * @param managementGroupId Management Group Id.\n * @param groupQuotaName The GroupQuota name. The name should be unique for the provided context\n * tenantId/MgId.\n * @param options The options parameters.\n */\n async beginUpdate(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotasUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GroupQuotasUpdateResponse>,\n GroupQuotasUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GroupQuotasUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { managementGroupId, groupQuotaName, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n GroupQuotasUpdateResponse,\n OperationState<GroupQuotasUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the GroupQuotas for the name passed. A GroupQuotas RequestId will be returned by the\n * Service. The status can be polled periodically. The status Async polling is using standards defined\n * at -\n * https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.\n * Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified\n * in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI\n * will change to Get URI and full details can be checked.\n * Any change in the filters will be applicable to the future quota assignments, existing quota\n * allocated to subscriptions from the GroupQuotas remains unchanged.\n * @param managementGroupId Management Group Id.\n * @param groupQuotaName The GroupQuota name. The name should be unique for the provided context\n * tenantId/MgId.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotasUpdateOptionalParams,\n ): Promise<GroupQuotasUpdateResponse> {\n const poller = await this.beginUpdate(\n managementGroupId,\n groupQuotaName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the GroupQuotas for the name passed. It will return the GroupQuotas properties only. The\n * details on group quota can be access from the group quota APIs.\n * @param managementGroupId Management Group Id.\n * @param groupQuotaName The GroupQuota name. The name should be unique for the provided context\n * tenantId/MgId.\n * @param options The options parameters.\n */\n get(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotasGetOptionalParams,\n ): Promise<GroupQuotasGetResponse> {\n return this.client.sendOperationRequest(\n { managementGroupId, groupQuotaName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes the GroupQuotas for the name passed. All the remaining shareQuota in the GroupQuotas will be\n * lost.\n * @param managementGroupId Management Group Id.\n * @param groupQuotaName The GroupQuota name. The name should be unique for the provided context\n * tenantId/MgId.\n * @param options The options parameters.\n */\n async beginDelete(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotasDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GroupQuotasDeleteResponse>,\n GroupQuotasDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GroupQuotasDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { managementGroupId, groupQuotaName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n GroupQuotasDeleteResponse,\n OperationState<GroupQuotasDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the GroupQuotas for the name passed. All the remaining shareQuota in the GroupQuotas will be\n * lost.\n * @param managementGroupId Management Group Id.\n * @param groupQuotaName The GroupQuota name. The name should be unique for the provided context\n * tenantId/MgId.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotasDeleteOptionalParams,\n ): Promise<GroupQuotasDeleteResponse> {\n const poller = await this.beginDelete(\n managementGroupId,\n groupQuotaName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists GroupQuotas for the scope passed. It will return the GroupQuotas QuotaEntity properties\n * only.The details on group quota can be access from the group quota APIs.\n * @param managementGroupId Management Group Id.\n * @param options The options parameters.\n */\n private _list(\n managementGroupId: string,\n options?: GroupQuotasListOptionalParams,\n ): Promise<GroupQuotasListResponse> {\n return this.client.sendOperationRequest(\n { managementGroupId, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param managementGroupId Management Group Id.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n managementGroupId: string,\n nextLink: string,\n options?: GroupQuotasListNextOptionalParams,\n ): Promise<GroupQuotasListNextResponse> {\n return this.client.sendOperationRequest(\n { managementGroupId, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotasEntity,\n },\n 201: {\n bodyMapper: Mappers.GroupQuotasEntity,\n },\n 202: {\n bodyMapper: Mappers.GroupQuotasEntity,\n },\n 204: {\n bodyMapper: Mappers.GroupQuotasEntity,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.groupQuotaPutRequestBody,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.groupQuotaName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotasEntity,\n },\n 201: {\n bodyMapper: Mappers.GroupQuotasEntity,\n },\n 202: {\n bodyMapper: Mappers.GroupQuotasEntity,\n },\n 204: {\n bodyMapper: Mappers.GroupQuotasEntity,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.groupQuotasPatchRequestBody,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.groupQuotaName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotasEntity,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.groupQuotaName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.GroupQuotasDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.GroupQuotasDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.GroupQuotasDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.GroupQuotasDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.groupQuotaName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.managementGroupId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"groupQuotas.js","sourceRoot":"","sources":["../../../src/operations/groupQuotas.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAiB9C,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IACT,MAAM,CAAyB;IAEhD;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,OAAuC;QAEvC,MAAM,IAAI,GA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ACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC;IAC/D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { GroupQuotas } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureQuotaExtensionAPI } from \"../azureQuotaExtensionAPI.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n GroupQuotasEntity,\n GroupQuotasListNextOptionalParams,\n GroupQuotasListOptionalParams,\n GroupQuotasListResponse,\n GroupQuotasCreateOrUpdateOptionalParams,\n GroupQuotasCreateOrUpdateResponse,\n GroupQuotasUpdateOptionalParams,\n GroupQuotasUpdateResponse,\n GroupQuotasGetOptionalParams,\n GroupQuotasGetResponse,\n GroupQuotasDeleteOptionalParams,\n GroupQuotasDeleteResponse,\n GroupQuotasListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing GroupQuotas operations. */\nexport class GroupQuotasImpl implements GroupQuotas {\n private readonly client: AzureQuotaExtensionAPI;\n\n /**\n * Initialize a new instance of the class GroupQuotas class.\n * @param client Reference to the service client\n */\n constructor(client: AzureQuotaExtensionAPI) {\n this.client = client;\n }\n\n /**\n * Lists GroupQuotas for the scope passed. It will return the GroupQuotas QuotaEntity properties\n * only.The details on group quota can be access from the group quota APIs.\n * @param managementGroupId Management Group Id.\n * @param options The options parameters.\n */\n public list(\n managementGroupId: string,\n options?: GroupQuotasListOptionalParams,\n ): PagedAsyncIterableIterator<GroupQuotasEntity> {\n const iter = this.listPagingAll(managementGroupId, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(managementGroupId, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n managementGroupId: string,\n options?: GroupQuotasListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<GroupQuotasEntity[]> {\n let result: GroupQuotasListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(managementGroupId, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n managementGroupId,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n managementGroupId: string,\n options?: GroupQuotasListOptionalParams,\n ): AsyncIterableIterator<GroupQuotasEntity> {\n for await (const page of this.listPagingPage(managementGroupId, options)) {\n yield* page;\n }\n }\n\n /**\n * Creates a new GroupQuota for the name passed. A RequestId will be returned by the Service. The\n * status can be polled periodically. The status Async polling is using standards defined at -\n * https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.\n * Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified\n * in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI\n * will change to Get URI and full details can be checked.\n * @param managementGroupId Management Group Id.\n * @param groupQuotaName The GroupQuota name. The name should be unique for the provided context\n * tenantId/MgId.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotasCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GroupQuotasCreateOrUpdateResponse>,\n GroupQuotasCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GroupQuotasCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { managementGroupId, groupQuotaName, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n GroupQuotasCreateOrUpdateResponse,\n OperationState<GroupQuotasCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a new GroupQuota for the name passed. A RequestId will be returned by the Service. The\n * status can be polled periodically. The status Async polling is using standards defined at -\n * https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.\n * Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified\n * in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI\n * will change to Get URI and full details can be checked.\n * @param managementGroupId Management Group Id.\n * @param groupQuotaName The GroupQuota name. The name should be unique for the provided context\n * tenantId/MgId.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotasCreateOrUpdateOptionalParams,\n ): Promise<GroupQuotasCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n managementGroupId,\n groupQuotaName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates the GroupQuotas for the name passed. A GroupQuotas RequestId will be returned by the\n * Service. The status can be polled periodically. The status Async polling is using standards defined\n * at -\n * https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.\n * Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified\n * in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI\n * will change to Get URI and full details can be checked.\n * Any change in the filters will be applicable to the future quota assignments, existing quota\n * allocated to subscriptions from the GroupQuotas remains unchanged.\n * @param managementGroupId Management Group Id.\n * @param groupQuotaName The GroupQuota name. The name should be unique for the provided context\n * tenantId/MgId.\n * @param options The options parameters.\n */\n async beginUpdate(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotasUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GroupQuotasUpdateResponse>,\n GroupQuotasUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GroupQuotasUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { managementGroupId, groupQuotaName, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n GroupQuotasUpdateResponse,\n OperationState<GroupQuotasUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the GroupQuotas for the name passed. A GroupQuotas RequestId will be returned by the\n * Service. The status can be polled periodically. The status Async polling is using standards defined\n * at -\n * https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.\n * Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified\n * in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI\n * will change to Get URI and full details can be checked.\n * Any change in the filters will be applicable to the future quota assignments, existing quota\n * allocated to subscriptions from the GroupQuotas remains unchanged.\n * @param managementGroupId Management Group Id.\n * @param groupQuotaName The GroupQuota name. The name should be unique for the provided context\n * tenantId/MgId.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotasUpdateOptionalParams,\n ): Promise<GroupQuotasUpdateResponse> {\n const poller = await this.beginUpdate(\n managementGroupId,\n groupQuotaName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the GroupQuotas for the name passed. It will return the GroupQuotas properties only. The\n * details on group quota can be access from the group quota APIs.\n * @param managementGroupId Management Group Id.\n * @param groupQuotaName The GroupQuota name. The name should be unique for the provided context\n * tenantId/MgId.\n * @param options The options parameters.\n */\n get(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotasGetOptionalParams,\n ): Promise<GroupQuotasGetResponse> {\n return this.client.sendOperationRequest(\n { managementGroupId, groupQuotaName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes the GroupQuotas for the name passed. All the remaining shareQuota in the GroupQuotas will be\n * lost.\n * @param managementGroupId Management Group Id.\n * @param groupQuotaName The GroupQuota name. The name should be unique for the provided context\n * tenantId/MgId.\n * @param options The options parameters.\n */\n async beginDelete(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotasDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GroupQuotasDeleteResponse>,\n GroupQuotasDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GroupQuotasDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { managementGroupId, groupQuotaName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n GroupQuotasDeleteResponse,\n OperationState<GroupQuotasDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the GroupQuotas for the name passed. All the remaining shareQuota in the GroupQuotas will be\n * lost.\n * @param managementGroupId Management Group Id.\n * @param groupQuotaName The GroupQuota name. The name should be unique for the provided context\n * tenantId/MgId.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotasDeleteOptionalParams,\n ): Promise<GroupQuotasDeleteResponse> {\n const poller = await this.beginDelete(\n managementGroupId,\n groupQuotaName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists GroupQuotas for the scope passed. It will return the GroupQuotas QuotaEntity properties\n * only.The details on group quota can be access from the group quota APIs.\n * @param managementGroupId Management Group Id.\n * @param options The options parameters.\n */\n private _list(\n managementGroupId: string,\n options?: GroupQuotasListOptionalParams,\n ): Promise<GroupQuotasListResponse> {\n return this.client.sendOperationRequest(\n { managementGroupId, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param managementGroupId Management Group Id.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n managementGroupId: string,\n nextLink: string,\n options?: GroupQuotasListNextOptionalParams,\n ): Promise<GroupQuotasListNextResponse> {\n return this.client.sendOperationRequest(\n { managementGroupId, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotasEntity,\n },\n 201: {\n bodyMapper: Mappers.GroupQuotasEntity,\n },\n 202: {\n bodyMapper: Mappers.GroupQuotasEntity,\n },\n 204: {\n bodyMapper: Mappers.GroupQuotasEntity,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.groupQuotaPutRequestBody,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.groupQuotaName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotasEntity,\n },\n 201: {\n bodyMapper: Mappers.GroupQuotasEntity,\n },\n 202: {\n bodyMapper: Mappers.GroupQuotasEntity,\n },\n 204: {\n bodyMapper: Mappers.GroupQuotasEntity,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.groupQuotasPatchRequestBody,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.groupQuotaName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotasEntity,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.groupQuotaName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.GroupQuotasDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.GroupQuotasDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.GroupQuotasDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.GroupQuotasDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.groupQuotaName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.managementGroupId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing Quota operations. */
|
|
17
16
|
export class QuotaImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class Quota class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -42,52 +42,35 @@ export class QuotaImpl {
|
|
|
42
42
|
return this;
|
|
43
43
|
},
|
|
44
44
|
byPage: (settings) => {
|
|
45
|
-
if (settings
|
|
45
|
+
if (settings?.maxPageSize) {
|
|
46
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
47
47
|
}
|
|
48
48
|
return this.listPagingPage(scope, options, settings);
|
|
49
49
|
},
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
listPagingPage(scope, options, settings) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
});
|
|
52
|
+
async *listPagingPage(scope, options, settings) {
|
|
53
|
+
let result;
|
|
54
|
+
let continuationToken = settings?.continuationToken;
|
|
55
|
+
if (!continuationToken) {
|
|
56
|
+
result = await this._list(scope, options);
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
setContinuationToken(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
62
|
+
while (continuationToken) {
|
|
63
|
+
result = await this._listNext(scope, continuationToken, options);
|
|
64
|
+
continuationToken = result.nextLink;
|
|
65
|
+
let page = result.value || [];
|
|
66
|
+
setContinuationToken(page, continuationToken);
|
|
67
|
+
yield page;
|
|
68
|
+
}
|
|
71
69
|
}
|
|
72
|
-
listPagingAll(scope, options) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(scope, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
77
|
-
_c = _f.value;
|
|
78
|
-
_d = false;
|
|
79
|
-
const page = _c;
|
|
80
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
84
|
-
finally {
|
|
85
|
-
try {
|
|
86
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
87
|
-
}
|
|
88
|
-
finally { if (e_1) throw e_1.error; }
|
|
89
|
-
}
|
|
90
|
-
});
|
|
70
|
+
async *listPagingAll(scope, options) {
|
|
71
|
+
for await (const page of this.listPagingPage(scope, options)) {
|
|
72
|
+
yield* page;
|
|
73
|
+
}
|
|
91
74
|
}
|
|
92
75
|
/**
|
|
93
76
|
* Get the quota limit of a resource. The response can be used to determine the remaining quota to
|
|
@@ -131,14 +114,19 @@ export class QuotaImpl {
|
|
|
131
114
|
return this.client.sendOperationRequest(args, spec);
|
|
132
115
|
};
|
|
133
116
|
const sendOperationFn = async (args, spec) => {
|
|
134
|
-
var _a;
|
|
135
117
|
let currentRawResponse = undefined;
|
|
136
|
-
const providedCallback =
|
|
118
|
+
const providedCallback = args.options?.onResponse;
|
|
137
119
|
const callback = (rawResponse, flatResponse) => {
|
|
138
120
|
currentRawResponse = rawResponse;
|
|
139
|
-
providedCallback
|
|
121
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
122
|
+
};
|
|
123
|
+
const updatedArgs = {
|
|
124
|
+
...args,
|
|
125
|
+
options: {
|
|
126
|
+
...args.options,
|
|
127
|
+
onResponse: callback,
|
|
128
|
+
},
|
|
140
129
|
};
|
|
141
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
142
130
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
143
131
|
return {
|
|
144
132
|
flatResponse,
|
|
@@ -155,8 +143,8 @@ export class QuotaImpl {
|
|
|
155
143
|
spec: createOrUpdateOperationSpec,
|
|
156
144
|
});
|
|
157
145
|
const poller = await createHttpPoller(lro, {
|
|
158
|
-
restoreFrom: options
|
|
159
|
-
intervalInMs: options
|
|
146
|
+
restoreFrom: options?.resumeFrom,
|
|
147
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
160
148
|
resourceLocationConfig: "original-uri",
|
|
161
149
|
});
|
|
162
150
|
await poller.poll();
|
|
@@ -210,14 +198,19 @@ export class QuotaImpl {
|
|
|
210
198
|
return this.client.sendOperationRequest(args, spec);
|
|
211
199
|
};
|
|
212
200
|
const sendOperationFn = async (args, spec) => {
|
|
213
|
-
var _a;
|
|
214
201
|
let currentRawResponse = undefined;
|
|
215
|
-
const providedCallback =
|
|
202
|
+
const providedCallback = args.options?.onResponse;
|
|
216
203
|
const callback = (rawResponse, flatResponse) => {
|
|
217
204
|
currentRawResponse = rawResponse;
|
|
218
|
-
providedCallback
|
|
205
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
206
|
+
};
|
|
207
|
+
const updatedArgs = {
|
|
208
|
+
...args,
|
|
209
|
+
options: {
|
|
210
|
+
...args.options,
|
|
211
|
+
onResponse: callback,
|
|
212
|
+
},
|
|
219
213
|
};
|
|
220
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
221
214
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
222
215
|
return {
|
|
223
216
|
flatResponse,
|
|
@@ -234,8 +227,8 @@ export class QuotaImpl {
|
|
|
234
227
|
spec: updateOperationSpec,
|
|
235
228
|
});
|
|
236
229
|
const poller = await createHttpPoller(lro, {
|
|
237
|
-
restoreFrom: options
|
|
238
|
-
intervalInMs: options
|
|
230
|
+
restoreFrom: options?.resumeFrom,
|
|
231
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
239
232
|
resourceLocationConfig: "original-uri",
|
|
240
233
|
});
|
|
241
234
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quota.js","sourceRoot":"","sources":["../../../src/operations/quota.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAe9C,4CAA4C;AAC5C,yCAAyC;AACzC,MAAM,OAAO,SAAS;IAGpB;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACI,IAAI,CACT,KAAa,EACb,OAAiC;QAEjC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAChD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,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,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,KAAK,CAAC;IAC5E,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,2CAA2C;IACjD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;YAC/B,aAAa,EAAE,OAAO,CAAC,gBAAgB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC;IACnD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;YAC/B,aAAa,EAAE,OAAO,CAAC,oBAAoB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC;IACxE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Quota } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureQuotaExtensionAPI } from \"../azureQuotaExtensionAPI.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n CurrentQuotaLimitBase,\n QuotaListNextOptionalParams,\n QuotaListOptionalParams,\n QuotaListResponse,\n QuotaGetOptionalParams,\n QuotaGetResponse,\n QuotaCreateOrUpdateOptionalParams,\n QuotaCreateOrUpdateResponse,\n QuotaUpdateOptionalParams,\n QuotaUpdateResponse,\n QuotaListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Quota operations. */\nexport class QuotaImpl implements Quota {\n private readonly client: AzureQuotaExtensionAPI;\n\n /**\n * Initialize a new instance of the class Quota class.\n * @param client Reference to the service client\n */\n constructor(client: AzureQuotaExtensionAPI) {\n this.client = client;\n }\n\n /**\n * Get a list of current quota limits of all resources for the specified scope. The response from this\n * GET operation can be leveraged to submit requests to update a quota.\n * @param scope The target Azure resource URI. For example,\n * `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`.\n * This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added\n * after `/quotas`, then it's the target Azure resource URI in the GET operation for the specific\n * resource.\n * @param options The options parameters.\n */\n public list(\n scope: string,\n options?: QuotaListOptionalParams,\n ): PagedAsyncIterableIterator<CurrentQuotaLimitBase> {\n const iter = this.listPagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(scope, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n scope: string,\n options?: QuotaListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CurrentQuotaLimitBase[]> {\n let result: QuotaListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n scope: string,\n options?: QuotaListOptionalParams,\n ): AsyncIterableIterator<CurrentQuotaLimitBase> {\n for await (const page of this.listPagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Get the quota limit of a resource. The response can be used to determine the remaining quota to\n * calculate a new quota limit that can be submitted with a PUT request.\n * @param resourceName Resource name for a given resource provider. For example:\n * - SKU name for Microsoft.Compute\n * - SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * For Microsoft.Network PublicIPAddresses.\n * @param scope The target Azure resource URI. For example,\n * `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`.\n * This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added\n * after `/quotas`, then it's the target Azure resource URI in the GET operation for the specific\n * resource.\n * @param options The options parameters.\n */\n get(\n resourceName: string,\n scope: string,\n options?: QuotaGetOptionalParams,\n ): Promise<QuotaGetResponse> {\n return this.client.sendOperationRequest(\n { resourceName, scope, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update the quota limit for the specified resource with the requested value. To update the\n * quota, follow these steps:\n * 1. Use the GET operation for quotas and usages to determine how much quota remains for the specific\n * resource and to calculate the new quota limit. These steps are detailed in [this\n * example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n * 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the\n * detailed status of the request.\n * @param resourceName Resource name for a given resource provider. For example:\n * - SKU name for Microsoft.Compute\n * - SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * For Microsoft.Network PublicIPAddresses.\n * @param scope The target Azure resource URI. For example,\n * `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`.\n * This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added\n * after `/quotas`, then it's the target Azure resource URI in the GET operation for the specific\n * resource.\n * @param createQuotaRequest Quota request payload.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceName: string,\n scope: string,\n createQuotaRequest: CurrentQuotaLimitBase,\n options?: QuotaCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<QuotaCreateOrUpdateResponse>,\n QuotaCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<QuotaCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceName, scope, createQuotaRequest, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n QuotaCreateOrUpdateResponse,\n OperationState<QuotaCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"original-uri\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update the quota limit for the specified resource with the requested value. To update the\n * quota, follow these steps:\n * 1. Use the GET operation for quotas and usages to determine how much quota remains for the specific\n * resource and to calculate the new quota limit. These steps are detailed in [this\n * example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n * 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the\n * detailed status of the request.\n * @param resourceName Resource name for a given resource provider. For example:\n * - SKU name for Microsoft.Compute\n * - SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * For Microsoft.Network PublicIPAddresses.\n * @param scope The target Azure resource URI. For example,\n * `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`.\n * This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added\n * after `/quotas`, then it's the target Azure resource URI in the GET operation for the specific\n * resource.\n * @param createQuotaRequest Quota request payload.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceName: string,\n scope: string,\n createQuotaRequest: CurrentQuotaLimitBase,\n options?: QuotaCreateOrUpdateOptionalParams,\n ): Promise<QuotaCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceName,\n scope,\n createQuotaRequest,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update the quota limit for a specific resource to the specified value:\n * 1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific\n * resource and to calculate the new quota limit. These steps are detailed in [this\n * example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n * 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the\n * detailed status of the request.\n * @param resourceName Resource name for a given resource provider. For example:\n * - SKU name for Microsoft.Compute\n * - SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * For Microsoft.Network PublicIPAddresses.\n * @param scope The target Azure resource URI. For example,\n * `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`.\n * This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added\n * after `/quotas`, then it's the target Azure resource URI in the GET operation for the specific\n * resource.\n * @param createQuotaRequest Quota requests payload.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceName: string,\n scope: string,\n createQuotaRequest: CurrentQuotaLimitBase,\n options?: QuotaUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<QuotaUpdateResponse>, QuotaUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<QuotaUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceName, scope, createQuotaRequest, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n QuotaUpdateResponse,\n OperationState<QuotaUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"original-uri\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update the quota limit for a specific resource to the specified value:\n * 1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific\n * resource and to calculate the new quota limit. These steps are detailed in [this\n * example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n * 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the\n * detailed status of the request.\n * @param resourceName Resource name for a given resource provider. For example:\n * - SKU name for Microsoft.Compute\n * - SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * For Microsoft.Network PublicIPAddresses.\n * @param scope The target Azure resource URI. For example,\n * `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`.\n * This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added\n * after `/quotas`, then it's the target Azure resource URI in the GET operation for the specific\n * resource.\n * @param createQuotaRequest Quota requests payload.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceName: string,\n scope: string,\n createQuotaRequest: CurrentQuotaLimitBase,\n options?: QuotaUpdateOptionalParams,\n ): Promise<QuotaUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceName,\n scope,\n createQuotaRequest,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get a list of current quota limits of all resources for the specified scope. The response from this\n * GET operation can be leveraged to submit requests to update a quota.\n * @param scope The target Azure resource URI. For example,\n * `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`.\n * This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added\n * after `/quotas`, then it's the target Azure resource URI in the GET operation for the specific\n * resource.\n * @param options The options parameters.\n */\n private _list(\n scope: string,\n options?: QuotaListOptionalParams,\n ): Promise<QuotaListResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param scope The target Azure resource URI. For example,\n * `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`.\n * This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added\n * after `/quotas`, then it's the target Azure resource URI in the GET operation for the specific\n * resource.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n scope: string,\n nextLink: string,\n options?: QuotaListNextOptionalParams,\n ): Promise<QuotaListNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Quota/quotas/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n headersMapper: Mappers.QuotaGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ExceptionResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.resourceName, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Quota/quotas/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n },\n 201: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n },\n 202: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n },\n 204: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n },\n default: {\n bodyMapper: Mappers.ExceptionResponse,\n },\n },\n requestBody: Parameters.createQuotaRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.resourceName, Parameters.scope],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Quota/quotas/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n },\n 201: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n },\n 202: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n },\n 204: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n },\n default: {\n bodyMapper: Mappers.ExceptionResponse,\n },\n },\n requestBody: Parameters.createQuotaRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.resourceName, Parameters.scope],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Quota/quotas\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaLimits,\n headersMapper: Mappers.QuotaListHeaders,\n },\n default: {\n bodyMapper: Mappers.ExceptionResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaLimits,\n headersMapper: Mappers.QuotaListNextHeaders,\n },\n default: {\n bodyMapper: Mappers.ExceptionResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"quota.js","sourceRoot":"","sources":["../../../src/operations/quota.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,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AAO,CAAC,oBAAoB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC;IACxE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Quota } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureQuotaExtensionAPI } from \"../azureQuotaExtensionAPI.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n CurrentQuotaLimitBase,\n QuotaListNextOptionalParams,\n QuotaListOptionalParams,\n QuotaListResponse,\n QuotaGetOptionalParams,\n QuotaGetResponse,\n QuotaCreateOrUpdateOptionalParams,\n QuotaCreateOrUpdateResponse,\n QuotaUpdateOptionalParams,\n QuotaUpdateResponse,\n QuotaListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Quota operations. */\nexport class QuotaImpl implements Quota {\n private readonly client: AzureQuotaExtensionAPI;\n\n /**\n * Initialize a new instance of the class Quota class.\n * @param client Reference to the service client\n */\n constructor(client: AzureQuotaExtensionAPI) {\n this.client = client;\n }\n\n /**\n * Get a list of current quota limits of all resources for the specified scope. The response from this\n * GET operation can be leveraged to submit requests to update a quota.\n * @param scope The target Azure resource URI. For example,\n * `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`.\n * This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added\n * after `/quotas`, then it's the target Azure resource URI in the GET operation for the specific\n * resource.\n * @param options The options parameters.\n */\n public list(\n scope: string,\n options?: QuotaListOptionalParams,\n ): PagedAsyncIterableIterator<CurrentQuotaLimitBase> {\n const iter = this.listPagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(scope, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n scope: string,\n options?: QuotaListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CurrentQuotaLimitBase[]> {\n let result: QuotaListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n scope: string,\n options?: QuotaListOptionalParams,\n ): AsyncIterableIterator<CurrentQuotaLimitBase> {\n for await (const page of this.listPagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Get the quota limit of a resource. The response can be used to determine the remaining quota to\n * calculate a new quota limit that can be submitted with a PUT request.\n * @param resourceName Resource name for a given resource provider. For example:\n * - SKU name for Microsoft.Compute\n * - SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * For Microsoft.Network PublicIPAddresses.\n * @param scope The target Azure resource URI. For example,\n * `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`.\n * This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added\n * after `/quotas`, then it's the target Azure resource URI in the GET operation for the specific\n * resource.\n * @param options The options parameters.\n */\n get(\n resourceName: string,\n scope: string,\n options?: QuotaGetOptionalParams,\n ): Promise<QuotaGetResponse> {\n return this.client.sendOperationRequest(\n { resourceName, scope, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update the quota limit for the specified resource with the requested value. To update the\n * quota, follow these steps:\n * 1. Use the GET operation for quotas and usages to determine how much quota remains for the specific\n * resource and to calculate the new quota limit. These steps are detailed in [this\n * example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n * 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the\n * detailed status of the request.\n * @param resourceName Resource name for a given resource provider. For example:\n * - SKU name for Microsoft.Compute\n * - SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * For Microsoft.Network PublicIPAddresses.\n * @param scope The target Azure resource URI. For example,\n * `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`.\n * This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added\n * after `/quotas`, then it's the target Azure resource URI in the GET operation for the specific\n * resource.\n * @param createQuotaRequest Quota request payload.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceName: string,\n scope: string,\n createQuotaRequest: CurrentQuotaLimitBase,\n options?: QuotaCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<QuotaCreateOrUpdateResponse>,\n QuotaCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<QuotaCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceName, scope, createQuotaRequest, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n QuotaCreateOrUpdateResponse,\n OperationState<QuotaCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"original-uri\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update the quota limit for the specified resource with the requested value. To update the\n * quota, follow these steps:\n * 1. Use the GET operation for quotas and usages to determine how much quota remains for the specific\n * resource and to calculate the new quota limit. These steps are detailed in [this\n * example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n * 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the\n * detailed status of the request.\n * @param resourceName Resource name for a given resource provider. For example:\n * - SKU name for Microsoft.Compute\n * - SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * For Microsoft.Network PublicIPAddresses.\n * @param scope The target Azure resource URI. For example,\n * `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`.\n * This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added\n * after `/quotas`, then it's the target Azure resource URI in the GET operation for the specific\n * resource.\n * @param createQuotaRequest Quota request payload.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceName: string,\n scope: string,\n createQuotaRequest: CurrentQuotaLimitBase,\n options?: QuotaCreateOrUpdateOptionalParams,\n ): Promise<QuotaCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceName,\n scope,\n createQuotaRequest,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update the quota limit for a specific resource to the specified value:\n * 1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific\n * resource and to calculate the new quota limit. These steps are detailed in [this\n * example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n * 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the\n * detailed status of the request.\n * @param resourceName Resource name for a given resource provider. For example:\n * - SKU name for Microsoft.Compute\n * - SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * For Microsoft.Network PublicIPAddresses.\n * @param scope The target Azure resource URI. For example,\n * `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`.\n * This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added\n * after `/quotas`, then it's the target Azure resource URI in the GET operation for the specific\n * resource.\n * @param createQuotaRequest Quota requests payload.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceName: string,\n scope: string,\n createQuotaRequest: CurrentQuotaLimitBase,\n options?: QuotaUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<QuotaUpdateResponse>, QuotaUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<QuotaUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceName, scope, createQuotaRequest, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n QuotaUpdateResponse,\n OperationState<QuotaUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"original-uri\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update the quota limit for a specific resource to the specified value:\n * 1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific\n * resource and to calculate the new quota limit. These steps are detailed in [this\n * example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n * 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the\n * detailed status of the request.\n * @param resourceName Resource name for a given resource provider. For example:\n * - SKU name for Microsoft.Compute\n * - SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices\n * For Microsoft.Network PublicIPAddresses.\n * @param scope The target Azure resource URI. For example,\n * `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`.\n * This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added\n * after `/quotas`, then it's the target Azure resource URI in the GET operation for the specific\n * resource.\n * @param createQuotaRequest Quota requests payload.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceName: string,\n scope: string,\n createQuotaRequest: CurrentQuotaLimitBase,\n options?: QuotaUpdateOptionalParams,\n ): Promise<QuotaUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceName,\n scope,\n createQuotaRequest,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get a list of current quota limits of all resources for the specified scope. The response from this\n * GET operation can be leveraged to submit requests to update a quota.\n * @param scope The target Azure resource URI. For example,\n * `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`.\n * This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added\n * after `/quotas`, then it's the target Azure resource URI in the GET operation for the specific\n * resource.\n * @param options The options parameters.\n */\n private _list(\n scope: string,\n options?: QuotaListOptionalParams,\n ): Promise<QuotaListResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param scope The target Azure resource URI. For example,\n * `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`.\n * This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added\n * after `/quotas`, then it's the target Azure resource URI in the GET operation for the specific\n * resource.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n scope: string,\n nextLink: string,\n options?: QuotaListNextOptionalParams,\n ): Promise<QuotaListNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Quota/quotas/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n headersMapper: Mappers.QuotaGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ExceptionResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.resourceName, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Quota/quotas/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n },\n 201: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n },\n 202: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n },\n 204: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n },\n default: {\n bodyMapper: Mappers.ExceptionResponse,\n },\n },\n requestBody: Parameters.createQuotaRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.resourceName, Parameters.scope],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Quota/quotas/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n },\n 201: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n },\n 202: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n },\n 204: {\n bodyMapper: Mappers.CurrentQuotaLimitBase,\n },\n default: {\n bodyMapper: Mappers.ExceptionResponse,\n },\n },\n requestBody: Parameters.createQuotaRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.resourceName, Parameters.scope],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Quota/quotas\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaLimits,\n headersMapper: Mappers.QuotaListHeaders,\n },\n default: {\n bodyMapper: Mappers.ExceptionResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaLimits,\n headersMapper: Mappers.QuotaListNextHeaders,\n },\n default: {\n bodyMapper: Mappers.ExceptionResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing QuotaOperation operations. */
|
|
15
14
|
export class QuotaOperationImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class QuotaOperation class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -34,52 +34,35 @@ export class QuotaOperationImpl {
|
|
|
34
34
|
return this;
|
|
35
35
|
},
|
|
36
36
|
byPage: (settings) => {
|
|
37
|
-
if (settings
|
|
37
|
+
if (settings?.maxPageSize) {
|
|
38
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
39
|
}
|
|
40
40
|
return this.listPagingPage(options, settings);
|
|
41
41
|
},
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
listPagingPage(options, settings) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
});
|
|
44
|
+
async *listPagingPage(options, settings) {
|
|
45
|
+
let result;
|
|
46
|
+
let continuationToken = settings?.continuationToken;
|
|
47
|
+
if (!continuationToken) {
|
|
48
|
+
result = await this._list(options);
|
|
49
|
+
let page = result.value || [];
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
setContinuationToken(page, continuationToken);
|
|
52
|
+
yield page;
|
|
53
|
+
}
|
|
54
|
+
while (continuationToken) {
|
|
55
|
+
result = await this._listNext(continuationToken, options);
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
setContinuationToken(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
63
61
|
}
|
|
64
|
-
listPagingAll(options) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
69
|
-
_c = _f.value;
|
|
70
|
-
_d = false;
|
|
71
|
-
const page = _c;
|
|
72
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
76
|
-
finally {
|
|
77
|
-
try {
|
|
78
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
79
|
-
}
|
|
80
|
-
finally { if (e_1) throw e_1.error; }
|
|
81
|
-
}
|
|
82
|
-
});
|
|
62
|
+
async *listPagingAll(options) {
|
|
63
|
+
for await (const page of this.listPagingPage(options)) {
|
|
64
|
+
yield* page;
|
|
65
|
+
}
|
|
83
66
|
}
|
|
84
67
|
/**
|
|
85
68
|
* List all the operations supported by the Microsoft.Quota resource provider.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotaOperation.js","sourceRoot":"","sources":["../../../src/operations/quotaOperation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"quotaOperation.js","sourceRoot":"","sources":["../../../src/operations/quotaOperation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAAyB;IAEhD;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,OAA0C,EAC1C,QAAuB;QAEvB,IAAI,MAAkC,CAAC;QACvC,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC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,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { QuotaOperation } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureQuotaExtensionAPI } from \"../azureQuotaExtensionAPI.js\";\nimport {\n OperationResponse,\n QuotaOperationListNextOptionalParams,\n QuotaOperationListOptionalParams,\n QuotaOperationListResponse,\n QuotaOperationListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing QuotaOperation operations. */\nexport class QuotaOperationImpl implements QuotaOperation {\n private readonly client: AzureQuotaExtensionAPI;\n\n /**\n * Initialize a new instance of the class QuotaOperation class.\n * @param client Reference to the service client\n */\n constructor(client: AzureQuotaExtensionAPI) {\n this.client = client;\n }\n\n /**\n * List all the operations supported by the Microsoft.Quota resource provider.\n * @param options The options parameters.\n */\n public list(\n options?: QuotaOperationListOptionalParams,\n ): PagedAsyncIterableIterator<OperationResponse> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: QuotaOperationListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<OperationResponse[]> {\n let result: QuotaOperationListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: QuotaOperationListOptionalParams,\n ): AsyncIterableIterator<OperationResponse> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List all the operations supported by the Microsoft.Quota resource provider.\n * @param options The options parameters.\n */\n private _list(\n options?: QuotaOperationListOptionalParams,\n ): Promise<QuotaOperationListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: QuotaOperationListNextOptionalParams,\n ): Promise<QuotaOperationListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Quota/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList,\n },\n default: {\n bodyMapper: Mappers.ExceptionResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList,\n },\n default: {\n bodyMapper: Mappers.ExceptionResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|