@azure/arm-resources-profile-2020-09-01-hybrid 2.1.1-alpha.20250718.1 → 2.1.1-alpha.20250721.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/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +29 -13
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/deploymentOperations.js +111 -196
- package/dist/browser/operations/deploymentOperations.js.map +1 -1
- package/dist/browser/operations/deployments.js +320 -310
- package/dist/browser/operations/deployments.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/providers.js +45 -79
- package/dist/browser/operations/providers.js.map +1 -1
- package/dist/browser/operations/resourceGroups.js +45 -52
- package/dist/browser/operations/resourceGroups.js.map +1 -1
- package/dist/browser/operations/resources.js +133 -127
- package/dist/browser/operations/resources.js.map +1 -1
- package/dist/browser/operations/tagsOperations.js +23 -40
- package/dist/browser/operations/tagsOperations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/resourceManagementClient.js +20 -5
- package/dist/browser/resourceManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +29 -13
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/deploymentOperations.js +111 -195
- package/dist/commonjs/operations/deploymentOperations.js.map +1 -1
- package/dist/commonjs/operations/deployments.js +320 -309
- package/dist/commonjs/operations/deployments.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/providers.js +45 -78
- package/dist/commonjs/operations/providers.js.map +1 -1
- package/dist/commonjs/operations/resourceGroups.js +45 -51
- package/dist/commonjs/operations/resourceGroups.js.map +1 -1
- package/dist/commonjs/operations/resources.js +133 -126
- package/dist/commonjs/operations/resources.js.map +1 -1
- package/dist/commonjs/operations/tagsOperations.js +23 -39
- package/dist/commonjs/operations/tagsOperations.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/resourceManagementClient.js +20 -5
- package/dist/commonjs/resourceManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +29 -13
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/deploymentOperations.js +111 -196
- package/dist/esm/operations/deploymentOperations.js.map +1 -1
- package/dist/esm/operations/deployments.js +320 -310
- package/dist/esm/operations/deployments.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/providers.js +45 -79
- package/dist/esm/operations/providers.js.map +1 -1
- package/dist/esm/operations/resourceGroups.js +45 -52
- package/dist/esm/operations/resourceGroups.js.map +1 -1
- package/dist/esm/operations/resources.js +133 -127
- package/dist/esm/operations/resources.js.map +1 -1
- package/dist/esm/operations/tagsOperations.js +23 -40
- package/dist/esm/operations/tagsOperations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/resourceManagementClient.js +20 -5
- package/dist/esm/resourceManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +29 -13
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/deploymentOperations.js +111 -196
- package/dist/react-native/operations/deploymentOperations.js.map +1 -1
- package/dist/react-native/operations/deployments.js +320 -310
- package/dist/react-native/operations/deployments.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/providers.js +45 -79
- package/dist/react-native/operations/providers.js.map +1 -1
- package/dist/react-native/operations/resourceGroups.js +45 -52
- package/dist/react-native/operations/resourceGroups.js.map +1 -1
- package/dist/react-native/operations/resources.js +133 -127
- package/dist/react-native/operations/resources.js.map +1 -1
- package/dist/react-native/operations/tagsOperations.js +23 -40
- package/dist/react-native/operations/tagsOperations.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/resourceManagementClient.js +20 -5
- package/dist/react-native/resourceManagementClient.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-resources-profile-2020-09-01-hybrid-node.api.md +1593 -1593
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourceGroups.js","sourceRoot":"","sources":["../../../src/operations/resourceGroups.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAsBxC,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAAgC;QAC1C,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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,i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ACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,gDAAgD;IACtD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC;IAC3E,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,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,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;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 { ResourceGroups } 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 { ResourceManagementClient } from \"../resourceManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n ResourceGroup,\n ResourceGroupsListNextOptionalParams,\n ResourceGroupsListOptionalParams,\n ResourceGroupsListResponse,\n ResourceGroupsCheckExistenceOptionalParams,\n ResourceGroupsCheckExistenceResponse,\n ResourceGroupsCreateOrUpdateOptionalParams,\n ResourceGroupsCreateOrUpdateResponse,\n ResourceGroupsDeleteOptionalParams,\n ResourceGroupsGetOptionalParams,\n ResourceGroupsGetResponse,\n ResourceGroupPatchable,\n ResourceGroupsUpdateOptionalParams,\n ResourceGroupsUpdateResponse,\n ExportTemplateRequest,\n ResourceGroupsExportTemplateOptionalParams,\n ResourceGroupsExportTemplateResponse,\n ResourceGroupsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ResourceGroups operations. */\nexport class ResourceGroupsImpl implements ResourceGroups {\n private readonly client: ResourceManagementClient;\n\n /**\n * Initialize a new instance of the class ResourceGroups class.\n * @param client Reference to the service client\n */\n constructor(client: ResourceManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all the resource groups for a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: ResourceGroupsListOptionalParams\n ): PagedAsyncIterableIterator<ResourceGroup> {\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?: ResourceGroupsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ResourceGroup[]> {\n let result: ResourceGroupsListResponse;\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?: ResourceGroupsListOptionalParams\n ): AsyncIterableIterator<ResourceGroup> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Checks whether a resource group exists.\n * @param resourceGroupName The name of the resource group to check. The name is case insensitive.\n * @param options The options parameters.\n */\n checkExistence(\n resourceGroupName: string,\n options?: ResourceGroupsCheckExistenceOptionalParams\n ): Promise<ResourceGroupsCheckExistenceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n checkExistenceOperationSpec\n );\n }\n\n /**\n * Creates or updates a resource group.\n * @param resourceGroupName The name of the resource group to create or update. Can include\n * alphanumeric, underscore, parentheses, hyphen, period (except at end), and Unicode characters that\n * match the allowed characters.\n * @param parameters Parameters supplied to the create or update a resource group.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n parameters: ResourceGroup,\n options?: ResourceGroupsCreateOrUpdateOptionalParams\n ): Promise<ResourceGroupsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * When you delete a resource group, all of its resources are also deleted. Deleting a resource group\n * deletes all of its template deployments and currently stored operations.\n * @param resourceGroupName The name of the resource group to delete. The name is case insensitive.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n options?: ResourceGroupsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = 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 = new LroImpl(\n sendOperation,\n { resourceGroupName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * When you delete a resource group, all of its resources are also deleted. Deleting a resource group\n * deletes all of its template deployments and currently stored operations.\n * @param resourceGroupName The name of the resource group to delete. The name is case insensitive.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n options?: ResourceGroupsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(resourceGroupName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a resource group.\n * @param resourceGroupName The name of the resource group to get. The name is case insensitive.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n options?: ResourceGroupsGetOptionalParams\n ): Promise<ResourceGroupsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n getOperationSpec\n );\n }\n\n /**\n * Resource groups can be updated through a simple PATCH operation to a group address. The format of\n * the request is the same as that for creating a resource group. If a field is unspecified, the\n * current value is retained.\n * @param resourceGroupName The name of the resource group to update. The name is case insensitive.\n * @param parameters Parameters supplied to update a resource group.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n parameters: ResourceGroupPatchable,\n options?: ResourceGroupsUpdateOptionalParams\n ): Promise<ResourceGroupsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, parameters, options },\n updateOperationSpec\n );\n }\n\n /**\n * Captures the specified resource group as a template.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param parameters Parameters for exporting the template.\n * @param options The options parameters.\n */\n async beginExportTemplate(\n resourceGroupName: string,\n parameters: ExportTemplateRequest,\n options?: ResourceGroupsExportTemplateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ResourceGroupsExportTemplateResponse>,\n ResourceGroupsExportTemplateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ResourceGroupsExportTemplateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = 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 = new LroImpl(\n sendOperation,\n { resourceGroupName, parameters, options },\n exportTemplateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Captures the specified resource group as a template.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param parameters Parameters for exporting the template.\n * @param options The options parameters.\n */\n async beginExportTemplateAndWait(\n resourceGroupName: string,\n parameters: ExportTemplateRequest,\n options?: ResourceGroupsExportTemplateOptionalParams\n ): Promise<ResourceGroupsExportTemplateResponse> {\n const poller = await this.beginExportTemplate(\n resourceGroupName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets all the resource groups for a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: ResourceGroupsListOptionalParams\n ): Promise<ResourceGroupsListResponse> {\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?: ResourceGroupsListNextOptionalParams\n ): Promise<ResourceGroupsListNextResponse> {\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 checkExistenceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"HEAD\",\n responses: {\n 204: {},\n 404: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroup\n },\n 201: {\n bodyMapper: Mappers.ResourceGroup\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroup\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroup\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters7,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst exportTemplateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroupExportResult\n },\n 201: {\n bodyMapper: Mappers.ResourceGroupExportResult\n },\n 202: {\n bodyMapper: Mappers.ResourceGroupExportResult\n },\n 204: {\n bodyMapper: Mappers.ResourceGroupExportResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters8,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName1\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroupListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroupListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"resourceGroups.js","sourceRoot":"","sources":["../../../src/operations/resourceGroups.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAsBxC,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IACZ,MAAM,CAA2B;IAElD;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA0C;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) 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 { ResourceGroups } 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 { ResourceManagementClient } from \"../resourceManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n ResourceGroup,\n ResourceGroupsListNextOptionalParams,\n ResourceGroupsListOptionalParams,\n ResourceGroupsListResponse,\n ResourceGroupsCheckExistenceOptionalParams,\n ResourceGroupsCheckExistenceResponse,\n ResourceGroupsCreateOrUpdateOptionalParams,\n ResourceGroupsCreateOrUpdateResponse,\n ResourceGroupsDeleteOptionalParams,\n ResourceGroupsGetOptionalParams,\n ResourceGroupsGetResponse,\n ResourceGroupPatchable,\n ResourceGroupsUpdateOptionalParams,\n ResourceGroupsUpdateResponse,\n ExportTemplateRequest,\n ResourceGroupsExportTemplateOptionalParams,\n ResourceGroupsExportTemplateResponse,\n ResourceGroupsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ResourceGroups operations. */\nexport class ResourceGroupsImpl implements ResourceGroups {\n private readonly client: ResourceManagementClient;\n\n /**\n * Initialize a new instance of the class ResourceGroups class.\n * @param client Reference to the service client\n */\n constructor(client: ResourceManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all the resource groups for a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: ResourceGroupsListOptionalParams\n ): PagedAsyncIterableIterator<ResourceGroup> {\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?: ResourceGroupsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ResourceGroup[]> {\n let result: ResourceGroupsListResponse;\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?: ResourceGroupsListOptionalParams\n ): AsyncIterableIterator<ResourceGroup> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Checks whether a resource group exists.\n * @param resourceGroupName The name of the resource group to check. The name is case insensitive.\n * @param options The options parameters.\n */\n checkExistence(\n resourceGroupName: string,\n options?: ResourceGroupsCheckExistenceOptionalParams\n ): Promise<ResourceGroupsCheckExistenceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n checkExistenceOperationSpec\n );\n }\n\n /**\n * Creates or updates a resource group.\n * @param resourceGroupName The name of the resource group to create or update. Can include\n * alphanumeric, underscore, parentheses, hyphen, period (except at end), and Unicode characters that\n * match the allowed characters.\n * @param parameters Parameters supplied to the create or update a resource group.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n parameters: ResourceGroup,\n options?: ResourceGroupsCreateOrUpdateOptionalParams\n ): Promise<ResourceGroupsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * When you delete a resource group, all of its resources are also deleted. Deleting a resource group\n * deletes all of its template deployments and currently stored operations.\n * @param resourceGroupName The name of the resource group to delete. The name is case insensitive.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n options?: ResourceGroupsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = 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 = new LroImpl(\n sendOperation,\n { resourceGroupName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * When you delete a resource group, all of its resources are also deleted. Deleting a resource group\n * deletes all of its template deployments and currently stored operations.\n * @param resourceGroupName The name of the resource group to delete. The name is case insensitive.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n options?: ResourceGroupsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(resourceGroupName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a resource group.\n * @param resourceGroupName The name of the resource group to get. The name is case insensitive.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n options?: ResourceGroupsGetOptionalParams\n ): Promise<ResourceGroupsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n getOperationSpec\n );\n }\n\n /**\n * Resource groups can be updated through a simple PATCH operation to a group address. The format of\n * the request is the same as that for creating a resource group. If a field is unspecified, the\n * current value is retained.\n * @param resourceGroupName The name of the resource group to update. The name is case insensitive.\n * @param parameters Parameters supplied to update a resource group.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n parameters: ResourceGroupPatchable,\n options?: ResourceGroupsUpdateOptionalParams\n ): Promise<ResourceGroupsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, parameters, options },\n updateOperationSpec\n );\n }\n\n /**\n * Captures the specified resource group as a template.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param parameters Parameters for exporting the template.\n * @param options The options parameters.\n */\n async beginExportTemplate(\n resourceGroupName: string,\n parameters: ExportTemplateRequest,\n options?: ResourceGroupsExportTemplateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ResourceGroupsExportTemplateResponse>,\n ResourceGroupsExportTemplateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ResourceGroupsExportTemplateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = 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 = new LroImpl(\n sendOperation,\n { resourceGroupName, parameters, options },\n exportTemplateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Captures the specified resource group as a template.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param parameters Parameters for exporting the template.\n * @param options The options parameters.\n */\n async beginExportTemplateAndWait(\n resourceGroupName: string,\n parameters: ExportTemplateRequest,\n options?: ResourceGroupsExportTemplateOptionalParams\n ): Promise<ResourceGroupsExportTemplateResponse> {\n const poller = await this.beginExportTemplate(\n resourceGroupName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets all the resource groups for a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: ResourceGroupsListOptionalParams\n ): Promise<ResourceGroupsListResponse> {\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?: ResourceGroupsListNextOptionalParams\n ): Promise<ResourceGroupsListNextResponse> {\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 checkExistenceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"HEAD\",\n responses: {\n 204: {},\n 404: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroup\n },\n 201: {\n bodyMapper: Mappers.ResourceGroup\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroup\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroup\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters7,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst exportTemplateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroupExportResult\n },\n 201: {\n bodyMapper: Mappers.ResourceGroupExportResult\n },\n 202: {\n bodyMapper: Mappers.ResourceGroupExportResult\n },\n 204: {\n bodyMapper: Mappers.ResourceGroupExportResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters8,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName1\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroupListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroupListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing Resources operations. */
|
|
20
20
|
class ResourcesImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class Resources class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -40,52 +41,35 @@ class ResourcesImpl {
|
|
|
40
41
|
return this;
|
|
41
42
|
},
|
|
42
43
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
44
|
+
if (settings?.maxPageSize) {
|
|
44
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
46
|
}
|
|
46
47
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
51
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
56
|
+
let page = result.value || [];
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
while (continuationToken) {
|
|
62
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
63
|
+
continuationToken = result.nextLink;
|
|
64
|
+
let page = result.value || [];
|
|
65
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
66
|
+
yield page;
|
|
67
|
+
}
|
|
69
68
|
}
|
|
70
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
75
|
-
_c = _f.value;
|
|
76
|
-
_d = false;
|
|
77
|
-
const page = _c;
|
|
78
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_1) throw e_1.error; }
|
|
87
|
-
}
|
|
88
|
-
});
|
|
69
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
70
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
89
73
|
}
|
|
90
74
|
/**
|
|
91
75
|
* Get all the resources in a subscription.
|
|
@@ -101,52 +85,35 @@ class ResourcesImpl {
|
|
|
101
85
|
return this;
|
|
102
86
|
},
|
|
103
87
|
byPage: (settings) => {
|
|
104
|
-
if (settings
|
|
88
|
+
if (settings?.maxPageSize) {
|
|
105
89
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
106
90
|
}
|
|
107
91
|
return this.listPagingPage(options, settings);
|
|
108
92
|
}
|
|
109
93
|
};
|
|
110
94
|
}
|
|
111
|
-
listPagingPage(options, settings) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
});
|
|
95
|
+
async *listPagingPage(options, settings) {
|
|
96
|
+
let result;
|
|
97
|
+
let continuationToken = settings?.continuationToken;
|
|
98
|
+
if (!continuationToken) {
|
|
99
|
+
result = await this._list(options);
|
|
100
|
+
let page = result.value || [];
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
103
|
+
yield page;
|
|
104
|
+
}
|
|
105
|
+
while (continuationToken) {
|
|
106
|
+
result = await this._listNext(continuationToken, options);
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
110
|
+
yield page;
|
|
111
|
+
}
|
|
130
112
|
}
|
|
131
|
-
listPagingAll(options) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
136
|
-
_c = _f.value;
|
|
137
|
-
_d = false;
|
|
138
|
-
const page = _c;
|
|
139
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
143
|
-
finally {
|
|
144
|
-
try {
|
|
145
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
146
|
-
}
|
|
147
|
-
finally { if (e_2) throw e_2.error; }
|
|
148
|
-
}
|
|
149
|
-
});
|
|
113
|
+
async *listPagingAll(options) {
|
|
114
|
+
for await (const page of this.listPagingPage(options)) {
|
|
115
|
+
yield* page;
|
|
116
|
+
}
|
|
150
117
|
}
|
|
151
118
|
/**
|
|
152
119
|
* Get all the resources for a resource group.
|
|
@@ -170,14 +137,19 @@ class ResourcesImpl {
|
|
|
170
137
|
return this.client.sendOperationRequest(args, spec);
|
|
171
138
|
};
|
|
172
139
|
const sendOperation = async (args, spec) => {
|
|
173
|
-
var _a;
|
|
174
140
|
let currentRawResponse = undefined;
|
|
175
|
-
const providedCallback =
|
|
141
|
+
const providedCallback = args.options?.onResponse;
|
|
176
142
|
const callback = (rawResponse, flatResponse) => {
|
|
177
143
|
currentRawResponse = rawResponse;
|
|
178
|
-
providedCallback
|
|
144
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
145
|
+
};
|
|
146
|
+
const updatedArgs = {
|
|
147
|
+
...args,
|
|
148
|
+
options: {
|
|
149
|
+
...args.options,
|
|
150
|
+
onResponse: callback
|
|
151
|
+
}
|
|
179
152
|
};
|
|
180
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
181
153
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
182
154
|
return {
|
|
183
155
|
flatResponse,
|
|
@@ -190,8 +162,8 @@ class ResourcesImpl {
|
|
|
190
162
|
};
|
|
191
163
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { sourceResourceGroupName, parameters, options }, moveResourcesOperationSpec);
|
|
192
164
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
193
|
-
resumeFrom: options
|
|
194
|
-
intervalInMs: options
|
|
165
|
+
resumeFrom: options?.resumeFrom,
|
|
166
|
+
intervalInMs: options?.updateIntervalInMs
|
|
195
167
|
});
|
|
196
168
|
await poller.poll();
|
|
197
169
|
return poller;
|
|
@@ -225,14 +197,19 @@ class ResourcesImpl {
|
|
|
225
197
|
return this.client.sendOperationRequest(args, spec);
|
|
226
198
|
};
|
|
227
199
|
const sendOperation = async (args, spec) => {
|
|
228
|
-
var _a;
|
|
229
200
|
let currentRawResponse = undefined;
|
|
230
|
-
const providedCallback =
|
|
201
|
+
const providedCallback = args.options?.onResponse;
|
|
231
202
|
const callback = (rawResponse, flatResponse) => {
|
|
232
203
|
currentRawResponse = rawResponse;
|
|
233
|
-
providedCallback
|
|
204
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
205
|
+
};
|
|
206
|
+
const updatedArgs = {
|
|
207
|
+
...args,
|
|
208
|
+
options: {
|
|
209
|
+
...args.options,
|
|
210
|
+
onResponse: callback
|
|
211
|
+
}
|
|
234
212
|
};
|
|
235
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
236
213
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
237
214
|
return {
|
|
238
215
|
flatResponse,
|
|
@@ -245,8 +222,8 @@ class ResourcesImpl {
|
|
|
245
222
|
};
|
|
246
223
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { sourceResourceGroupName, parameters, options }, validateMoveResourcesOperationSpec);
|
|
247
224
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
248
|
-
resumeFrom: options
|
|
249
|
-
intervalInMs: options
|
|
225
|
+
resumeFrom: options?.resumeFrom,
|
|
226
|
+
intervalInMs: options?.updateIntervalInMs
|
|
250
227
|
});
|
|
251
228
|
await poller.poll();
|
|
252
229
|
return poller;
|
|
@@ -311,14 +288,19 @@ class ResourcesImpl {
|
|
|
311
288
|
return this.client.sendOperationRequest(args, spec);
|
|
312
289
|
};
|
|
313
290
|
const sendOperation = async (args, spec) => {
|
|
314
|
-
var _a;
|
|
315
291
|
let currentRawResponse = undefined;
|
|
316
|
-
const providedCallback =
|
|
292
|
+
const providedCallback = args.options?.onResponse;
|
|
317
293
|
const callback = (rawResponse, flatResponse) => {
|
|
318
294
|
currentRawResponse = rawResponse;
|
|
319
|
-
providedCallback
|
|
295
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
296
|
+
};
|
|
297
|
+
const updatedArgs = {
|
|
298
|
+
...args,
|
|
299
|
+
options: {
|
|
300
|
+
...args.options,
|
|
301
|
+
onResponse: callback
|
|
302
|
+
}
|
|
320
303
|
};
|
|
321
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
322
304
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
323
305
|
return {
|
|
324
306
|
flatResponse,
|
|
@@ -339,8 +321,8 @@ class ResourcesImpl {
|
|
|
339
321
|
options
|
|
340
322
|
}, deleteOperationSpec);
|
|
341
323
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
342
|
-
resumeFrom: options
|
|
343
|
-
intervalInMs: options
|
|
324
|
+
resumeFrom: options?.resumeFrom,
|
|
325
|
+
intervalInMs: options?.updateIntervalInMs
|
|
344
326
|
});
|
|
345
327
|
await poller.poll();
|
|
346
328
|
return poller;
|
|
@@ -377,14 +359,19 @@ class ResourcesImpl {
|
|
|
377
359
|
return this.client.sendOperationRequest(args, spec);
|
|
378
360
|
};
|
|
379
361
|
const sendOperation = async (args, spec) => {
|
|
380
|
-
var _a;
|
|
381
362
|
let currentRawResponse = undefined;
|
|
382
|
-
const providedCallback =
|
|
363
|
+
const providedCallback = args.options?.onResponse;
|
|
383
364
|
const callback = (rawResponse, flatResponse) => {
|
|
384
365
|
currentRawResponse = rawResponse;
|
|
385
|
-
providedCallback
|
|
366
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
367
|
+
};
|
|
368
|
+
const updatedArgs = {
|
|
369
|
+
...args,
|
|
370
|
+
options: {
|
|
371
|
+
...args.options,
|
|
372
|
+
onResponse: callback
|
|
373
|
+
}
|
|
386
374
|
};
|
|
387
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
388
375
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
389
376
|
return {
|
|
390
377
|
flatResponse,
|
|
@@ -406,8 +393,8 @@ class ResourcesImpl {
|
|
|
406
393
|
options
|
|
407
394
|
}, createOrUpdateOperationSpec);
|
|
408
395
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
409
|
-
resumeFrom: options
|
|
410
|
-
intervalInMs: options
|
|
396
|
+
resumeFrom: options?.resumeFrom,
|
|
397
|
+
intervalInMs: options?.updateIntervalInMs
|
|
411
398
|
});
|
|
412
399
|
await poller.poll();
|
|
413
400
|
return poller;
|
|
@@ -445,14 +432,19 @@ class ResourcesImpl {
|
|
|
445
432
|
return this.client.sendOperationRequest(args, spec);
|
|
446
433
|
};
|
|
447
434
|
const sendOperation = async (args, spec) => {
|
|
448
|
-
var _a;
|
|
449
435
|
let currentRawResponse = undefined;
|
|
450
|
-
const providedCallback =
|
|
436
|
+
const providedCallback = args.options?.onResponse;
|
|
451
437
|
const callback = (rawResponse, flatResponse) => {
|
|
452
438
|
currentRawResponse = rawResponse;
|
|
453
|
-
providedCallback
|
|
439
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
440
|
+
};
|
|
441
|
+
const updatedArgs = {
|
|
442
|
+
...args,
|
|
443
|
+
options: {
|
|
444
|
+
...args.options,
|
|
445
|
+
onResponse: callback
|
|
446
|
+
}
|
|
454
447
|
};
|
|
455
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
456
448
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
457
449
|
return {
|
|
458
450
|
flatResponse,
|
|
@@ -474,8 +466,8 @@ class ResourcesImpl {
|
|
|
474
466
|
options
|
|
475
467
|
}, updateOperationSpec);
|
|
476
468
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
477
|
-
resumeFrom: options
|
|
478
|
-
intervalInMs: options
|
|
469
|
+
resumeFrom: options?.resumeFrom,
|
|
470
|
+
intervalInMs: options?.updateIntervalInMs
|
|
479
471
|
});
|
|
480
472
|
await poller.poll();
|
|
481
473
|
return poller;
|
|
@@ -542,14 +534,19 @@ class ResourcesImpl {
|
|
|
542
534
|
return this.client.sendOperationRequest(args, spec);
|
|
543
535
|
};
|
|
544
536
|
const sendOperation = async (args, spec) => {
|
|
545
|
-
var _a;
|
|
546
537
|
let currentRawResponse = undefined;
|
|
547
|
-
const providedCallback =
|
|
538
|
+
const providedCallback = args.options?.onResponse;
|
|
548
539
|
const callback = (rawResponse, flatResponse) => {
|
|
549
540
|
currentRawResponse = rawResponse;
|
|
550
|
-
providedCallback
|
|
541
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
542
|
+
};
|
|
543
|
+
const updatedArgs = {
|
|
544
|
+
...args,
|
|
545
|
+
options: {
|
|
546
|
+
...args.options,
|
|
547
|
+
onResponse: callback
|
|
548
|
+
}
|
|
551
549
|
};
|
|
552
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
553
550
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
554
551
|
return {
|
|
555
552
|
flatResponse,
|
|
@@ -562,8 +559,8 @@ class ResourcesImpl {
|
|
|
562
559
|
};
|
|
563
560
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceId, apiVersion, options }, deleteByIdOperationSpec);
|
|
564
561
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
565
|
-
resumeFrom: options
|
|
566
|
-
intervalInMs: options
|
|
562
|
+
resumeFrom: options?.resumeFrom,
|
|
563
|
+
intervalInMs: options?.updateIntervalInMs
|
|
567
564
|
});
|
|
568
565
|
await poller.poll();
|
|
569
566
|
return poller;
|
|
@@ -594,14 +591,19 @@ class ResourcesImpl {
|
|
|
594
591
|
return this.client.sendOperationRequest(args, spec);
|
|
595
592
|
};
|
|
596
593
|
const sendOperation = async (args, spec) => {
|
|
597
|
-
var _a;
|
|
598
594
|
let currentRawResponse = undefined;
|
|
599
|
-
const providedCallback =
|
|
595
|
+
const providedCallback = args.options?.onResponse;
|
|
600
596
|
const callback = (rawResponse, flatResponse) => {
|
|
601
597
|
currentRawResponse = rawResponse;
|
|
602
|
-
providedCallback
|
|
598
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
599
|
+
};
|
|
600
|
+
const updatedArgs = {
|
|
601
|
+
...args,
|
|
602
|
+
options: {
|
|
603
|
+
...args.options,
|
|
604
|
+
onResponse: callback
|
|
605
|
+
}
|
|
603
606
|
};
|
|
604
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
605
607
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
606
608
|
return {
|
|
607
609
|
flatResponse,
|
|
@@ -614,8 +616,8 @@ class ResourcesImpl {
|
|
|
614
616
|
};
|
|
615
617
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceId, apiVersion, parameters, options }, createOrUpdateByIdOperationSpec);
|
|
616
618
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
617
|
-
resumeFrom: options
|
|
618
|
-
intervalInMs: options
|
|
619
|
+
resumeFrom: options?.resumeFrom,
|
|
620
|
+
intervalInMs: options?.updateIntervalInMs
|
|
619
621
|
});
|
|
620
622
|
await poller.poll();
|
|
621
623
|
return poller;
|
|
@@ -647,14 +649,19 @@ class ResourcesImpl {
|
|
|
647
649
|
return this.client.sendOperationRequest(args, spec);
|
|
648
650
|
};
|
|
649
651
|
const sendOperation = async (args, spec) => {
|
|
650
|
-
var _a;
|
|
651
652
|
let currentRawResponse = undefined;
|
|
652
|
-
const providedCallback =
|
|
653
|
+
const providedCallback = args.options?.onResponse;
|
|
653
654
|
const callback = (rawResponse, flatResponse) => {
|
|
654
655
|
currentRawResponse = rawResponse;
|
|
655
|
-
providedCallback
|
|
656
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
657
|
+
};
|
|
658
|
+
const updatedArgs = {
|
|
659
|
+
...args,
|
|
660
|
+
options: {
|
|
661
|
+
...args.options,
|
|
662
|
+
onResponse: callback
|
|
663
|
+
}
|
|
656
664
|
};
|
|
657
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
658
665
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
659
666
|
return {
|
|
660
667
|
flatResponse,
|
|
@@ -667,8 +674,8 @@ class ResourcesImpl {
|
|
|
667
674
|
};
|
|
668
675
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceId, apiVersion, parameters, options }, updateByIdOperationSpec);
|
|
669
676
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
670
|
-
resumeFrom: options
|
|
671
|
-
intervalInMs: options
|
|
677
|
+
resumeFrom: options?.resumeFrom,
|
|
678
|
+
intervalInMs: options?.updateIntervalInMs
|
|
672
679
|
});
|
|
673
680
|
await poller.poll();
|
|
674
681
|
return poller;
|