@azure/arm-quota 1.1.1-alpha.20250619.1 → 1.1.1-alpha.20250718.2
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.api.md → arm-quota-node.api.md} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groupQuotaSubscriptionRequests.js","sourceRoot":"","sources":["../../../src/operations/groupQuotaSubscriptionRequests.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;AAYtD,4CAA4C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GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uCAAuC;SAC5D;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,cAAc;QACzB,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 { GroupQuotaSubscriptionRequests } 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 GroupQuotaSubscriptionRequestStatus,\n GroupQuotaSubscriptionRequestsListNextOptionalParams,\n GroupQuotaSubscriptionRequestsListOptionalParams,\n GroupQuotaSubscriptionRequestsListResponse,\n GroupQuotaSubscriptionRequestsGetOptionalParams,\n GroupQuotaSubscriptionRequestsGetResponse,\n GroupQuotaSubscriptionRequestsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing GroupQuotaSubscriptionRequests operations. */\nexport class GroupQuotaSubscriptionRequestsImpl\n implements GroupQuotaSubscriptionRequests\n{\n private readonly client: AzureQuotaExtensionAPI;\n\n /**\n * Initialize a new instance of the class GroupQuotaSubscriptionRequests class.\n * @param client Reference to the service client\n */\n constructor(client: AzureQuotaExtensionAPI) {\n this.client = client;\n }\n\n /**\n * List API to check the status of a subscriptionId requests by requestId. Request history is\n * maintained for 1 year.\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 public list(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotaSubscriptionRequestsListOptionalParams,\n ): PagedAsyncIterableIterator<GroupQuotaSubscriptionRequestStatus> {\n const iter = this.listPagingAll(managementGroupId, groupQuotaName, 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(\n managementGroupId,\n groupQuotaName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotaSubscriptionRequestsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<GroupQuotaSubscriptionRequestStatus[]> {\n let result: GroupQuotaSubscriptionRequestsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(managementGroupId, groupQuotaName, 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 groupQuotaName,\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 groupQuotaName: string,\n options?: GroupQuotaSubscriptionRequestsListOptionalParams,\n ): AsyncIterableIterator<GroupQuotaSubscriptionRequestStatus> {\n for await (const page of this.listPagingPage(\n managementGroupId,\n groupQuotaName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List API to check the status of a subscriptionId requests by requestId. Request history is\n * maintained for 1 year.\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 private _list(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotaSubscriptionRequestsListOptionalParams,\n ): Promise<GroupQuotaSubscriptionRequestsListResponse> {\n return this.client.sendOperationRequest(\n { managementGroupId, groupQuotaName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get API to check the status of a subscriptionIds request by requestId. Use the polling API -\n * OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in\n * seconds to check the intermediate status. This API provides the finals status with the request\n * details and status.\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 requestId Request Id.\n * @param options The options parameters.\n */\n get(\n managementGroupId: string,\n groupQuotaName: string,\n requestId: string,\n options?: GroupQuotaSubscriptionRequestsGetOptionalParams,\n ): Promise<GroupQuotaSubscriptionRequestsGetResponse> {\n return this.client.sendOperationRequest(\n { managementGroupId, groupQuotaName, requestId, options },\n getOperationSpec,\n );\n }\n\n /**\n * ListNext\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 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 groupQuotaName: string,\n nextLink: string,\n options?: GroupQuotaSubscriptionRequestsListNextOptionalParams,\n ): Promise<GroupQuotaSubscriptionRequestsListNextResponse> {\n return this.client.sendOperationRequest(\n { managementGroupId, groupQuotaName, 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.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptionRequests\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaSubscriptionRequestStatusList,\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 getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptionRequests/{requestId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaSubscriptionRequestStatus,\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 Parameters.requestId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaSubscriptionRequestStatusList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.groupQuotaName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"groupQuotaSubscriptionRequests.js","sourceRoot":"","sources":["../../../src/operations/groupQuotaSubscriptionRequests.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;AAYtD,4CAA4C;AAC5C,kEAAkE;AAClE,MAAM,OAAO,kCAAkC;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ACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,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 { GroupQuotaSubscriptionRequests } 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 GroupQuotaSubscriptionRequestStatus,\n GroupQuotaSubscriptionRequestsListNextOptionalParams,\n GroupQuotaSubscriptionRequestsListOptionalParams,\n GroupQuotaSubscriptionRequestsListResponse,\n GroupQuotaSubscriptionRequestsGetOptionalParams,\n GroupQuotaSubscriptionRequestsGetResponse,\n GroupQuotaSubscriptionRequestsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing GroupQuotaSubscriptionRequests operations. */\nexport class GroupQuotaSubscriptionRequestsImpl\n implements GroupQuotaSubscriptionRequests\n{\n private readonly client: AzureQuotaExtensionAPI;\n\n /**\n * Initialize a new instance of the class GroupQuotaSubscriptionRequests class.\n * @param client Reference to the service client\n */\n constructor(client: AzureQuotaExtensionAPI) {\n this.client = client;\n }\n\n /**\n * List API to check the status of a subscriptionId requests by requestId. Request history is\n * maintained for 1 year.\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 public list(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotaSubscriptionRequestsListOptionalParams,\n ): PagedAsyncIterableIterator<GroupQuotaSubscriptionRequestStatus> {\n const iter = this.listPagingAll(managementGroupId, groupQuotaName, 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(\n managementGroupId,\n groupQuotaName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotaSubscriptionRequestsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<GroupQuotaSubscriptionRequestStatus[]> {\n let result: GroupQuotaSubscriptionRequestsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(managementGroupId, groupQuotaName, 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 groupQuotaName,\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 groupQuotaName: string,\n options?: GroupQuotaSubscriptionRequestsListOptionalParams,\n ): AsyncIterableIterator<GroupQuotaSubscriptionRequestStatus> {\n for await (const page of this.listPagingPage(\n managementGroupId,\n groupQuotaName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List API to check the status of a subscriptionId requests by requestId. Request history is\n * maintained for 1 year.\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 private _list(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotaSubscriptionRequestsListOptionalParams,\n ): Promise<GroupQuotaSubscriptionRequestsListResponse> {\n return this.client.sendOperationRequest(\n { managementGroupId, groupQuotaName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get API to check the status of a subscriptionIds request by requestId. Use the polling API -\n * OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in\n * seconds to check the intermediate status. This API provides the finals status with the request\n * details and status.\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 requestId Request Id.\n * @param options The options parameters.\n */\n get(\n managementGroupId: string,\n groupQuotaName: string,\n requestId: string,\n options?: GroupQuotaSubscriptionRequestsGetOptionalParams,\n ): Promise<GroupQuotaSubscriptionRequestsGetResponse> {\n return this.client.sendOperationRequest(\n { managementGroupId, groupQuotaName, requestId, options },\n getOperationSpec,\n );\n }\n\n /**\n * ListNext\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 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 groupQuotaName: string,\n nextLink: string,\n options?: GroupQuotaSubscriptionRequestsListNextOptionalParams,\n ): Promise<GroupQuotaSubscriptionRequestsListNextResponse> {\n return this.client.sendOperationRequest(\n { managementGroupId, groupQuotaName, 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.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptionRequests\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaSubscriptionRequestStatusList,\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 getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptionRequests/{requestId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaSubscriptionRequestStatus,\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 Parameters.requestId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaSubscriptionRequestStatusList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.groupQuotaName,\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 GroupQuotaSubscriptions operations. */
|
|
17
16
|
export class GroupQuotaSubscriptionsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class GroupQuotaSubscriptions class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -39,52 +39,35 @@ export class GroupQuotaSubscriptionsImpl {
|
|
|
39
39
|
return this;
|
|
40
40
|
},
|
|
41
41
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
43
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
44
|
}
|
|
45
45
|
return this.listPagingPage(managementGroupId, groupQuotaName, options, settings);
|
|
46
46
|
},
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
listPagingPage(managementGroupId, groupQuotaName, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
49
|
+
async *listPagingPage(managementGroupId, groupQuotaName, options, settings) {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings?.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = await this._list(managementGroupId, groupQuotaName, options);
|
|
54
|
+
let page = result.value || [];
|
|
55
|
+
continuationToken = result.nextLink;
|
|
56
|
+
setContinuationToken(page, continuationToken);
|
|
57
|
+
yield page;
|
|
58
|
+
}
|
|
59
|
+
while (continuationToken) {
|
|
60
|
+
result = await this._listNext(managementGroupId, groupQuotaName, continuationToken, options);
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
setContinuationToken(page, continuationToken);
|
|
64
|
+
yield page;
|
|
65
|
+
}
|
|
68
66
|
}
|
|
69
|
-
listPagingAll(managementGroupId, groupQuotaName, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(managementGroupId, groupQuotaName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
67
|
+
async *listPagingAll(managementGroupId, groupQuotaName, options) {
|
|
68
|
+
for await (const page of this.listPagingPage(managementGroupId, groupQuotaName, options)) {
|
|
69
|
+
yield* page;
|
|
70
|
+
}
|
|
88
71
|
}
|
|
89
72
|
/**
|
|
90
73
|
* Adds a subscription to GroupQuotas. The subscriptions will be validated based on the
|
|
@@ -101,14 +84,19 @@ export class GroupQuotaSubscriptionsImpl {
|
|
|
101
84
|
return this.client.sendOperationRequest(args, spec);
|
|
102
85
|
};
|
|
103
86
|
const sendOperationFn = async (args, spec) => {
|
|
104
|
-
var _a;
|
|
105
87
|
let currentRawResponse = undefined;
|
|
106
|
-
const providedCallback =
|
|
88
|
+
const providedCallback = args.options?.onResponse;
|
|
107
89
|
const callback = (rawResponse, flatResponse) => {
|
|
108
90
|
currentRawResponse = rawResponse;
|
|
109
|
-
providedCallback
|
|
91
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
92
|
+
};
|
|
93
|
+
const updatedArgs = {
|
|
94
|
+
...args,
|
|
95
|
+
options: {
|
|
96
|
+
...args.options,
|
|
97
|
+
onResponse: callback,
|
|
98
|
+
},
|
|
110
99
|
};
|
|
111
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
112
100
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
113
101
|
return {
|
|
114
102
|
flatResponse,
|
|
@@ -125,8 +113,8 @@ export class GroupQuotaSubscriptionsImpl {
|
|
|
125
113
|
spec: createOrUpdateOperationSpec,
|
|
126
114
|
});
|
|
127
115
|
const poller = await createHttpPoller(lro, {
|
|
128
|
-
restoreFrom: options
|
|
129
|
-
intervalInMs: options
|
|
116
|
+
restoreFrom: options?.resumeFrom,
|
|
117
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
130
118
|
resourceLocationConfig: "location",
|
|
131
119
|
});
|
|
132
120
|
await poller.poll();
|
|
@@ -160,14 +148,19 @@ export class GroupQuotaSubscriptionsImpl {
|
|
|
160
148
|
return this.client.sendOperationRequest(args, spec);
|
|
161
149
|
};
|
|
162
150
|
const sendOperationFn = async (args, spec) => {
|
|
163
|
-
var _a;
|
|
164
151
|
let currentRawResponse = undefined;
|
|
165
|
-
const providedCallback =
|
|
152
|
+
const providedCallback = args.options?.onResponse;
|
|
166
153
|
const callback = (rawResponse, flatResponse) => {
|
|
167
154
|
currentRawResponse = rawResponse;
|
|
168
|
-
providedCallback
|
|
155
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
156
|
+
};
|
|
157
|
+
const updatedArgs = {
|
|
158
|
+
...args,
|
|
159
|
+
options: {
|
|
160
|
+
...args.options,
|
|
161
|
+
onResponse: callback,
|
|
162
|
+
},
|
|
169
163
|
};
|
|
170
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
171
164
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
172
165
|
return {
|
|
173
166
|
flatResponse,
|
|
@@ -184,8 +177,8 @@ export class GroupQuotaSubscriptionsImpl {
|
|
|
184
177
|
spec: updateOperationSpec,
|
|
185
178
|
});
|
|
186
179
|
const poller = await createHttpPoller(lro, {
|
|
187
|
-
restoreFrom: options
|
|
188
|
-
intervalInMs: options
|
|
180
|
+
restoreFrom: options?.resumeFrom,
|
|
181
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
189
182
|
resourceLocationConfig: "location",
|
|
190
183
|
});
|
|
191
184
|
await poller.poll();
|
|
@@ -217,14 +210,19 @@ export class GroupQuotaSubscriptionsImpl {
|
|
|
217
210
|
return this.client.sendOperationRequest(args, spec);
|
|
218
211
|
};
|
|
219
212
|
const sendOperationFn = async (args, spec) => {
|
|
220
|
-
var _a;
|
|
221
213
|
let currentRawResponse = undefined;
|
|
222
|
-
const providedCallback =
|
|
214
|
+
const providedCallback = args.options?.onResponse;
|
|
223
215
|
const callback = (rawResponse, flatResponse) => {
|
|
224
216
|
currentRawResponse = rawResponse;
|
|
225
|
-
providedCallback
|
|
217
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
218
|
+
};
|
|
219
|
+
const updatedArgs = {
|
|
220
|
+
...args,
|
|
221
|
+
options: {
|
|
222
|
+
...args.options,
|
|
223
|
+
onResponse: callback,
|
|
224
|
+
},
|
|
226
225
|
};
|
|
227
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
228
226
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
229
227
|
return {
|
|
230
228
|
flatResponse,
|
|
@@ -241,8 +239,8 @@ export class GroupQuotaSubscriptionsImpl {
|
|
|
241
239
|
spec: deleteOperationSpec,
|
|
242
240
|
});
|
|
243
241
|
const poller = await createHttpPoller(lro, {
|
|
244
|
-
restoreFrom: options
|
|
245
|
-
intervalInMs: options
|
|
242
|
+
restoreFrom: options?.resumeFrom,
|
|
243
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
246
244
|
resourceLocationConfig: "location",
|
|
247
245
|
});
|
|
248
246
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groupQuotaSubscriptions.js","sourceRoot":"","sources":["../../../src/operations/groupQuotaSubscriptions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OA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,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;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,cAAc;QACzB,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 { GroupQuotaSubscriptions } 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 GroupQuotaSubscriptionId,\n GroupQuotaSubscriptionsListNextOptionalParams,\n GroupQuotaSubscriptionsListOptionalParams,\n GroupQuotaSubscriptionsListResponse,\n GroupQuotaSubscriptionsCreateOrUpdateOptionalParams,\n GroupQuotaSubscriptionsCreateOrUpdateResponse,\n GroupQuotaSubscriptionsUpdateOptionalParams,\n GroupQuotaSubscriptionsUpdateResponse,\n GroupQuotaSubscriptionsDeleteOptionalParams,\n GroupQuotaSubscriptionsDeleteResponse,\n GroupQuotaSubscriptionsGetOptionalParams,\n GroupQuotaSubscriptionsGetResponse,\n GroupQuotaSubscriptionsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing GroupQuotaSubscriptions operations. */\nexport class GroupQuotaSubscriptionsImpl implements GroupQuotaSubscriptions {\n private readonly client: AzureQuotaExtensionAPI;\n\n /**\n * Initialize a new instance of the class GroupQuotaSubscriptions class.\n * @param client Reference to the service client\n */\n constructor(client: AzureQuotaExtensionAPI) {\n this.client = client;\n }\n\n /**\n * Returns a list of the subscriptionIds associated with the GroupQuotas.\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 public list(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotaSubscriptionsListOptionalParams,\n ): PagedAsyncIterableIterator<GroupQuotaSubscriptionId> {\n const iter = this.listPagingAll(managementGroupId, groupQuotaName, 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(\n managementGroupId,\n groupQuotaName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotaSubscriptionsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<GroupQuotaSubscriptionId[]> {\n let result: GroupQuotaSubscriptionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(managementGroupId, groupQuotaName, 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 groupQuotaName,\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 groupQuotaName: string,\n options?: GroupQuotaSubscriptionsListOptionalParams,\n ): AsyncIterableIterator<GroupQuotaSubscriptionId> {\n for await (const page of this.listPagingPage(\n managementGroupId,\n groupQuotaName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Adds a subscription to GroupQuotas. The subscriptions will be validated based on the\n * additionalAttributes defined in the GroupQuota. The additionalAttributes works as filter for the\n * subscriptions, which can be included in the GroupQuotas. The request's TenantId is validated against\n * the subscription's TenantId.\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?: GroupQuotaSubscriptionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GroupQuotaSubscriptionsCreateOrUpdateResponse>,\n GroupQuotaSubscriptionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GroupQuotaSubscriptionsCreateOrUpdateResponse> => {\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 GroupQuotaSubscriptionsCreateOrUpdateResponse,\n OperationState<GroupQuotaSubscriptionsCreateOrUpdateResponse>\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 * Adds a subscription to GroupQuotas. The subscriptions will be validated based on the\n * additionalAttributes defined in the GroupQuota. The additionalAttributes works as filter for the\n * subscriptions, which can be included in the GroupQuotas. The request's TenantId is validated against\n * the subscription's TenantId.\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?: GroupQuotaSubscriptionsCreateOrUpdateOptionalParams,\n ): Promise<GroupQuotaSubscriptionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n managementGroupId,\n groupQuotaName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates the GroupQuotas with the subscription to add to the subscriptions list. The subscriptions\n * will be validated if additionalAttributes are defined in the GroupQuota. The request's TenantId is\n * validated against the subscription's TenantId.\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?: GroupQuotaSubscriptionsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GroupQuotaSubscriptionsUpdateResponse>,\n GroupQuotaSubscriptionsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GroupQuotaSubscriptionsUpdateResponse> => {\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 GroupQuotaSubscriptionsUpdateResponse,\n OperationState<GroupQuotaSubscriptionsUpdateResponse>\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 with the subscription to add to the subscriptions list. The subscriptions\n * will be validated if additionalAttributes are defined in the GroupQuota. The request's TenantId is\n * validated against the subscription's TenantId.\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?: GroupQuotaSubscriptionsUpdateOptionalParams,\n ): Promise<GroupQuotaSubscriptionsUpdateResponse> {\n const poller = await this.beginUpdate(\n managementGroupId,\n groupQuotaName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Removes the subscription from GroupQuotas. The request's TenantId is validated against the\n * subscription's TenantId.\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?: GroupQuotaSubscriptionsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GroupQuotaSubscriptionsDeleteResponse>,\n GroupQuotaSubscriptionsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GroupQuotaSubscriptionsDeleteResponse> => {\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 GroupQuotaSubscriptionsDeleteResponse,\n OperationState<GroupQuotaSubscriptionsDeleteResponse>\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 * Removes the subscription from GroupQuotas. The request's TenantId is validated against the\n * subscription's TenantId.\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?: GroupQuotaSubscriptionsDeleteOptionalParams,\n ): Promise<GroupQuotaSubscriptionsDeleteResponse> {\n const poller = await this.beginDelete(\n managementGroupId,\n groupQuotaName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Returns the subscriptionIds along with its provisioning state for being associated with the\n * GroupQuota. If the subscription is not a member of GroupQuota, it will return 404, else 200.\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?: GroupQuotaSubscriptionsGetOptionalParams,\n ): Promise<GroupQuotaSubscriptionsGetResponse> {\n return this.client.sendOperationRequest(\n { managementGroupId, groupQuotaName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Returns a list of the subscriptionIds associated with the GroupQuotas.\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 private _list(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotaSubscriptionsListOptionalParams,\n ): Promise<GroupQuotaSubscriptionsListResponse> {\n return this.client.sendOperationRequest(\n { managementGroupId, groupQuotaName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\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 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 groupQuotaName: string,\n nextLink: string,\n options?: GroupQuotaSubscriptionsListNextOptionalParams,\n ): Promise<GroupQuotaSubscriptionsListNextResponse> {\n return this.client.sendOperationRequest(\n { managementGroupId, groupQuotaName, 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}/subscriptions/{subscriptionId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaSubscriptionId,\n },\n 201: {\n bodyMapper: Mappers.GroupQuotaSubscriptionId,\n },\n 202: {\n bodyMapper: Mappers.GroupQuotaSubscriptionId,\n },\n 204: {\n bodyMapper: Mappers.GroupQuotaSubscriptionId,\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 Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions/{subscriptionId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaSubscriptionId,\n },\n 201: {\n bodyMapper: Mappers.GroupQuotaSubscriptionId,\n },\n 202: {\n bodyMapper: Mappers.GroupQuotaSubscriptionId,\n },\n 204: {\n bodyMapper: Mappers.GroupQuotaSubscriptionId,\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 Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions/{subscriptionId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.GroupQuotaSubscriptionsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.GroupQuotaSubscriptionsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.GroupQuotaSubscriptionsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.GroupQuotaSubscriptionsDeleteHeaders,\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 Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions/{subscriptionId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaSubscriptionId,\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 Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaSubscriptionIdList,\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 listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaSubscriptionIdList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.groupQuotaName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"groupQuotaSubscriptions.js","sourceRoot":"","sources":["../../../src/operations/groupQuotaSubscriptions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAA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,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 { GroupQuotaSubscriptions } 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 GroupQuotaSubscriptionId,\n GroupQuotaSubscriptionsListNextOptionalParams,\n GroupQuotaSubscriptionsListOptionalParams,\n GroupQuotaSubscriptionsListResponse,\n GroupQuotaSubscriptionsCreateOrUpdateOptionalParams,\n GroupQuotaSubscriptionsCreateOrUpdateResponse,\n GroupQuotaSubscriptionsUpdateOptionalParams,\n GroupQuotaSubscriptionsUpdateResponse,\n GroupQuotaSubscriptionsDeleteOptionalParams,\n GroupQuotaSubscriptionsDeleteResponse,\n GroupQuotaSubscriptionsGetOptionalParams,\n GroupQuotaSubscriptionsGetResponse,\n GroupQuotaSubscriptionsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing GroupQuotaSubscriptions operations. */\nexport class GroupQuotaSubscriptionsImpl implements GroupQuotaSubscriptions {\n private readonly client: AzureQuotaExtensionAPI;\n\n /**\n * Initialize a new instance of the class GroupQuotaSubscriptions class.\n * @param client Reference to the service client\n */\n constructor(client: AzureQuotaExtensionAPI) {\n this.client = client;\n }\n\n /**\n * Returns a list of the subscriptionIds associated with the GroupQuotas.\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 public list(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotaSubscriptionsListOptionalParams,\n ): PagedAsyncIterableIterator<GroupQuotaSubscriptionId> {\n const iter = this.listPagingAll(managementGroupId, groupQuotaName, 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(\n managementGroupId,\n groupQuotaName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotaSubscriptionsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<GroupQuotaSubscriptionId[]> {\n let result: GroupQuotaSubscriptionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(managementGroupId, groupQuotaName, 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 groupQuotaName,\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 groupQuotaName: string,\n options?: GroupQuotaSubscriptionsListOptionalParams,\n ): AsyncIterableIterator<GroupQuotaSubscriptionId> {\n for await (const page of this.listPagingPage(\n managementGroupId,\n groupQuotaName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Adds a subscription to GroupQuotas. The subscriptions will be validated based on the\n * additionalAttributes defined in the GroupQuota. The additionalAttributes works as filter for the\n * subscriptions, which can be included in the GroupQuotas. The request's TenantId is validated against\n * the subscription's TenantId.\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?: GroupQuotaSubscriptionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GroupQuotaSubscriptionsCreateOrUpdateResponse>,\n GroupQuotaSubscriptionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GroupQuotaSubscriptionsCreateOrUpdateResponse> => {\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 GroupQuotaSubscriptionsCreateOrUpdateResponse,\n OperationState<GroupQuotaSubscriptionsCreateOrUpdateResponse>\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 * Adds a subscription to GroupQuotas. The subscriptions will be validated based on the\n * additionalAttributes defined in the GroupQuota. The additionalAttributes works as filter for the\n * subscriptions, which can be included in the GroupQuotas. The request's TenantId is validated against\n * the subscription's TenantId.\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?: GroupQuotaSubscriptionsCreateOrUpdateOptionalParams,\n ): Promise<GroupQuotaSubscriptionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n managementGroupId,\n groupQuotaName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates the GroupQuotas with the subscription to add to the subscriptions list. The subscriptions\n * will be validated if additionalAttributes are defined in the GroupQuota. The request's TenantId is\n * validated against the subscription's TenantId.\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?: GroupQuotaSubscriptionsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GroupQuotaSubscriptionsUpdateResponse>,\n GroupQuotaSubscriptionsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GroupQuotaSubscriptionsUpdateResponse> => {\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 GroupQuotaSubscriptionsUpdateResponse,\n OperationState<GroupQuotaSubscriptionsUpdateResponse>\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 with the subscription to add to the subscriptions list. The subscriptions\n * will be validated if additionalAttributes are defined in the GroupQuota. The request's TenantId is\n * validated against the subscription's TenantId.\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?: GroupQuotaSubscriptionsUpdateOptionalParams,\n ): Promise<GroupQuotaSubscriptionsUpdateResponse> {\n const poller = await this.beginUpdate(\n managementGroupId,\n groupQuotaName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Removes the subscription from GroupQuotas. The request's TenantId is validated against the\n * subscription's TenantId.\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?: GroupQuotaSubscriptionsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<GroupQuotaSubscriptionsDeleteResponse>,\n GroupQuotaSubscriptionsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<GroupQuotaSubscriptionsDeleteResponse> => {\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 GroupQuotaSubscriptionsDeleteResponse,\n OperationState<GroupQuotaSubscriptionsDeleteResponse>\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 * Removes the subscription from GroupQuotas. The request's TenantId is validated against the\n * subscription's TenantId.\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?: GroupQuotaSubscriptionsDeleteOptionalParams,\n ): Promise<GroupQuotaSubscriptionsDeleteResponse> {\n const poller = await this.beginDelete(\n managementGroupId,\n groupQuotaName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Returns the subscriptionIds along with its provisioning state for being associated with the\n * GroupQuota. If the subscription is not a member of GroupQuota, it will return 404, else 200.\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?: GroupQuotaSubscriptionsGetOptionalParams,\n ): Promise<GroupQuotaSubscriptionsGetResponse> {\n return this.client.sendOperationRequest(\n { managementGroupId, groupQuotaName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Returns a list of the subscriptionIds associated with the GroupQuotas.\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 private _list(\n managementGroupId: string,\n groupQuotaName: string,\n options?: GroupQuotaSubscriptionsListOptionalParams,\n ): Promise<GroupQuotaSubscriptionsListResponse> {\n return this.client.sendOperationRequest(\n { managementGroupId, groupQuotaName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\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 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 groupQuotaName: string,\n nextLink: string,\n options?: GroupQuotaSubscriptionsListNextOptionalParams,\n ): Promise<GroupQuotaSubscriptionsListNextResponse> {\n return this.client.sendOperationRequest(\n { managementGroupId, groupQuotaName, 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}/subscriptions/{subscriptionId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaSubscriptionId,\n },\n 201: {\n bodyMapper: Mappers.GroupQuotaSubscriptionId,\n },\n 202: {\n bodyMapper: Mappers.GroupQuotaSubscriptionId,\n },\n 204: {\n bodyMapper: Mappers.GroupQuotaSubscriptionId,\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 Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions/{subscriptionId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaSubscriptionId,\n },\n 201: {\n bodyMapper: Mappers.GroupQuotaSubscriptionId,\n },\n 202: {\n bodyMapper: Mappers.GroupQuotaSubscriptionId,\n },\n 204: {\n bodyMapper: Mappers.GroupQuotaSubscriptionId,\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 Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions/{subscriptionId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.GroupQuotaSubscriptionsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.GroupQuotaSubscriptionsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.GroupQuotaSubscriptionsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.GroupQuotaSubscriptionsDeleteHeaders,\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 Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions/{subscriptionId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaSubscriptionId,\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 Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaSubscriptionIdList,\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 listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupQuotaSubscriptionIdList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.groupQuotaName,\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 GroupQuotas operations. */
|
|
17
16
|
export class GroupQuotasImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class GroupQuotas class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -38,52 +38,35 @@ export class GroupQuotasImpl {
|
|
|
38
38
|
return this;
|
|
39
39
|
},
|
|
40
40
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
43
|
}
|
|
44
44
|
return this.listPagingPage(managementGroupId, options, settings);
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
listPagingPage(managementGroupId, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
48
|
+
async *listPagingPage(managementGroupId, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._list(managementGroupId, options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
setContinuationToken(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listNext(managementGroupId, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
67
65
|
}
|
|
68
|
-
listPagingAll(managementGroupId, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(managementGroupId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
66
|
+
async *listPagingAll(managementGroupId, options) {
|
|
67
|
+
for await (const page of this.listPagingPage(managementGroupId, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
87
70
|
}
|
|
88
71
|
/**
|
|
89
72
|
* Creates a new GroupQuota for the name passed. A RequestId will be returned by the Service. The
|
|
@@ -102,14 +85,19 @@ export class GroupQuotasImpl {
|
|
|
102
85
|
return this.client.sendOperationRequest(args, spec);
|
|
103
86
|
};
|
|
104
87
|
const sendOperationFn = async (args, spec) => {
|
|
105
|
-
var _a;
|
|
106
88
|
let currentRawResponse = undefined;
|
|
107
|
-
const providedCallback =
|
|
89
|
+
const providedCallback = args.options?.onResponse;
|
|
108
90
|
const callback = (rawResponse, flatResponse) => {
|
|
109
91
|
currentRawResponse = rawResponse;
|
|
110
|
-
providedCallback
|
|
92
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
93
|
+
};
|
|
94
|
+
const updatedArgs = {
|
|
95
|
+
...args,
|
|
96
|
+
options: {
|
|
97
|
+
...args.options,
|
|
98
|
+
onResponse: callback,
|
|
99
|
+
},
|
|
111
100
|
};
|
|
112
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
113
101
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
114
102
|
return {
|
|
115
103
|
flatResponse,
|
|
@@ -126,8 +114,8 @@ export class GroupQuotasImpl {
|
|
|
126
114
|
spec: createOrUpdateOperationSpec,
|
|
127
115
|
});
|
|
128
116
|
const poller = await createHttpPoller(lro, {
|
|
129
|
-
restoreFrom: options
|
|
130
|
-
intervalInMs: options
|
|
117
|
+
restoreFrom: options?.resumeFrom,
|
|
118
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
131
119
|
resourceLocationConfig: "location",
|
|
132
120
|
});
|
|
133
121
|
await poller.poll();
|
|
@@ -169,14 +157,19 @@ export class GroupQuotasImpl {
|
|
|
169
157
|
return this.client.sendOperationRequest(args, spec);
|
|
170
158
|
};
|
|
171
159
|
const sendOperationFn = async (args, spec) => {
|
|
172
|
-
var _a;
|
|
173
160
|
let currentRawResponse = undefined;
|
|
174
|
-
const providedCallback =
|
|
161
|
+
const providedCallback = args.options?.onResponse;
|
|
175
162
|
const callback = (rawResponse, flatResponse) => {
|
|
176
163
|
currentRawResponse = rawResponse;
|
|
177
|
-
providedCallback
|
|
164
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
165
|
+
};
|
|
166
|
+
const updatedArgs = {
|
|
167
|
+
...args,
|
|
168
|
+
options: {
|
|
169
|
+
...args.options,
|
|
170
|
+
onResponse: callback,
|
|
171
|
+
},
|
|
178
172
|
};
|
|
179
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
180
173
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
181
174
|
return {
|
|
182
175
|
flatResponse,
|
|
@@ -193,8 +186,8 @@ export class GroupQuotasImpl {
|
|
|
193
186
|
spec: updateOperationSpec,
|
|
194
187
|
});
|
|
195
188
|
const poller = await createHttpPoller(lro, {
|
|
196
|
-
restoreFrom: options
|
|
197
|
-
intervalInMs: options
|
|
189
|
+
restoreFrom: options?.resumeFrom,
|
|
190
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
198
191
|
resourceLocationConfig: "location",
|
|
199
192
|
});
|
|
200
193
|
await poller.poll();
|
|
@@ -243,14 +236,19 @@ export class GroupQuotasImpl {
|
|
|
243
236
|
return this.client.sendOperationRequest(args, spec);
|
|
244
237
|
};
|
|
245
238
|
const sendOperationFn = async (args, spec) => {
|
|
246
|
-
var _a;
|
|
247
239
|
let currentRawResponse = undefined;
|
|
248
|
-
const providedCallback =
|
|
240
|
+
const providedCallback = args.options?.onResponse;
|
|
249
241
|
const callback = (rawResponse, flatResponse) => {
|
|
250
242
|
currentRawResponse = rawResponse;
|
|
251
|
-
providedCallback
|
|
243
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
244
|
+
};
|
|
245
|
+
const updatedArgs = {
|
|
246
|
+
...args,
|
|
247
|
+
options: {
|
|
248
|
+
...args.options,
|
|
249
|
+
onResponse: callback,
|
|
250
|
+
},
|
|
252
251
|
};
|
|
253
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
254
252
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
255
253
|
return {
|
|
256
254
|
flatResponse,
|
|
@@ -267,8 +265,8 @@ export class GroupQuotasImpl {
|
|
|
267
265
|
spec: deleteOperationSpec,
|
|
268
266
|
});
|
|
269
267
|
const poller = await createHttpPoller(lro, {
|
|
270
|
-
restoreFrom: options
|
|
271
|
-
intervalInMs: options
|
|
268
|
+
restoreFrom: options?.resumeFrom,
|
|
269
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
272
270
|
resourceLocationConfig: "location",
|
|
273
271
|
});
|
|
274
272
|
await poller.poll();
|