@azure/arm-resources 6.1.0 → 7.0.0-alpha.20250724.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/CHANGELOG.md +17 -0
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +12 -1202
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +0 -76
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +0 -42
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +254 -1752
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +14 -21
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +46 -98
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/index.d.ts +0 -2
- package/dist/browser/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +0 -2
- package/dist/browser/operations/index.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/providerResourceTypes.js +2 -1
- package/dist/browser/operations/providerResourceTypes.js.map +1 -1
- package/dist/browser/operations/providers.js +50 -84
- package/dist/browser/operations/providers.js.map +1 -1
- package/dist/browser/operations/resourceGroups.js +48 -55
- package/dist/browser/operations/resourceGroups.js.map +1 -1
- package/dist/browser/operations/resources.js +146 -140
- package/dist/browser/operations/resources.js.map +1 -1
- package/dist/browser/operations/tagsOperations.js +58 -60
- package/dist/browser/operations/tagsOperations.js.map +1 -1
- package/dist/browser/operationsInterfaces/index.d.ts +0 -2
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +0 -2
- package/dist/browser/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/resourceManagementClient.d.ts +1 -3
- package/dist/browser/resourceManagementClient.d.ts.map +1 -1
- package/dist/browser/resourceManagementClient.js +22 -10
- package/dist/browser/resourceManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +12 -1202
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +1 -77
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +0 -42
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +256 -1754
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts +14 -21
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +46 -98
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/index.d.ts +0 -2
- package/dist/commonjs/operations/index.d.ts.map +1 -1
- package/dist/commonjs/operations/index.js +0 -2
- package/dist/commonjs/operations/index.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/providerResourceTypes.js +2 -1
- package/dist/commonjs/operations/providerResourceTypes.js.map +1 -1
- package/dist/commonjs/operations/providers.js +50 -83
- package/dist/commonjs/operations/providers.js.map +1 -1
- package/dist/commonjs/operations/resourceGroups.js +48 -54
- package/dist/commonjs/operations/resourceGroups.js.map +1 -1
- package/dist/commonjs/operations/resources.js +146 -139
- package/dist/commonjs/operations/resources.js.map +1 -1
- package/dist/commonjs/operations/tagsOperations.js +58 -59
- package/dist/commonjs/operations/tagsOperations.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +0 -2
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.js +0 -2
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/resourceManagementClient.d.ts +1 -3
- package/dist/commonjs/resourceManagementClient.d.ts.map +1 -1
- package/dist/commonjs/resourceManagementClient.js +21 -9
- package/dist/commonjs/resourceManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +12 -1202
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +0 -76
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +0 -42
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +254 -1752
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts +14 -21
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +46 -98
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/index.d.ts +0 -2
- package/dist/esm/operations/index.d.ts.map +1 -1
- package/dist/esm/operations/index.js +0 -2
- package/dist/esm/operations/index.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/providerResourceTypes.js +2 -1
- package/dist/esm/operations/providerResourceTypes.js.map +1 -1
- package/dist/esm/operations/providers.js +50 -84
- package/dist/esm/operations/providers.js.map +1 -1
- package/dist/esm/operations/resourceGroups.js +48 -55
- package/dist/esm/operations/resourceGroups.js.map +1 -1
- package/dist/esm/operations/resources.js +146 -140
- package/dist/esm/operations/resources.js.map +1 -1
- package/dist/esm/operations/tagsOperations.js +58 -60
- package/dist/esm/operations/tagsOperations.js.map +1 -1
- package/dist/esm/operationsInterfaces/index.d.ts +0 -2
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/index.js +0 -2
- package/dist/esm/operationsInterfaces/index.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/resourceManagementClient.d.ts +1 -3
- package/dist/esm/resourceManagementClient.d.ts.map +1 -1
- package/dist/esm/resourceManagementClient.js +22 -10
- package/dist/esm/resourceManagementClient.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/index.d.ts +12 -1202
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +0 -76
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +0 -42
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +254 -1752
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +14 -21
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +46 -98
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/index.d.ts +0 -2
- package/dist/react-native/operations/index.d.ts.map +1 -1
- package/dist/react-native/operations/index.js +0 -2
- package/dist/react-native/operations/index.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/providerResourceTypes.js +2 -1
- package/dist/react-native/operations/providerResourceTypes.js.map +1 -1
- package/dist/react-native/operations/providers.js +50 -84
- package/dist/react-native/operations/providers.js.map +1 -1
- package/dist/react-native/operations/resourceGroups.js +48 -55
- package/dist/react-native/operations/resourceGroups.js.map +1 -1
- package/dist/react-native/operations/resources.js +146 -140
- package/dist/react-native/operations/resources.js.map +1 -1
- package/dist/react-native/operations/tagsOperations.js +58 -60
- package/dist/react-native/operations/tagsOperations.js.map +1 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +0 -2
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/index.js +0 -2
- package/dist/react-native/operationsInterfaces/index.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.d.ts +1 -3
- package/dist/react-native/resourceManagementClient.d.ts.map +1 -1
- package/dist/react-native/resourceManagementClient.js +22 -10
- package/dist/react-native/resourceManagementClient.js.map +1 -1
- package/package.json +8 -8
- package/review/arm-resources-node.api.md +942 -0
- package/dist/browser/operations/deploymentOperations.d.ts +0 -168
- package/dist/browser/operations/deploymentOperations.d.ts.map +0 -1
- package/dist/browser/operations/deploymentOperations.js +0 -782
- package/dist/browser/operations/deploymentOperations.js.map +0 -1
- package/dist/browser/operations/deployments.d.ts +0 -628
- package/dist/browser/operations/deployments.d.ts.map +0 -1
- package/dist/browser/operations/deployments.js +0 -2766
- package/dist/browser/operations/deployments.js.map +0 -1
- package/dist/browser/operationsInterfaces/deploymentOperations.d.ts +0 -77
- package/dist/browser/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/deploymentOperations.js +0 -9
- package/dist/browser/operationsInterfaces/deploymentOperations.js.map +0 -1
- package/dist/browser/operationsInterfaces/deployments.d.ts +0 -545
- package/dist/browser/operationsInterfaces/deployments.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/deployments.js +0 -9
- package/dist/browser/operationsInterfaces/deployments.js.map +0 -1
- package/dist/commonjs/operations/deploymentOperations.d.ts +0 -168
- package/dist/commonjs/operations/deploymentOperations.d.ts.map +0 -1
- package/dist/commonjs/operations/deploymentOperations.js +0 -786
- package/dist/commonjs/operations/deploymentOperations.js.map +0 -1
- package/dist/commonjs/operations/deployments.d.ts +0 -628
- package/dist/commonjs/operations/deployments.d.ts.map +0 -1
- package/dist/commonjs/operations/deployments.js +0 -2770
- package/dist/commonjs/operations/deployments.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/deploymentOperations.d.ts +0 -77
- package/dist/commonjs/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/deploymentOperations.js +0 -10
- package/dist/commonjs/operationsInterfaces/deploymentOperations.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/deployments.d.ts +0 -545
- package/dist/commonjs/operationsInterfaces/deployments.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/deployments.js +0 -10
- package/dist/commonjs/operationsInterfaces/deployments.js.map +0 -1
- package/dist/esm/operations/deploymentOperations.d.ts +0 -168
- package/dist/esm/operations/deploymentOperations.d.ts.map +0 -1
- package/dist/esm/operations/deploymentOperations.js +0 -782
- package/dist/esm/operations/deploymentOperations.js.map +0 -1
- package/dist/esm/operations/deployments.d.ts +0 -628
- package/dist/esm/operations/deployments.d.ts.map +0 -1
- package/dist/esm/operations/deployments.js +0 -2766
- package/dist/esm/operations/deployments.js.map +0 -1
- package/dist/esm/operationsInterfaces/deploymentOperations.d.ts +0 -77
- package/dist/esm/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/deploymentOperations.js +0 -9
- package/dist/esm/operationsInterfaces/deploymentOperations.js.map +0 -1
- package/dist/esm/operationsInterfaces/deployments.d.ts +0 -545
- package/dist/esm/operationsInterfaces/deployments.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/deployments.js +0 -9
- package/dist/esm/operationsInterfaces/deployments.js.map +0 -1
- package/dist/react-native/operations/deploymentOperations.d.ts +0 -168
- package/dist/react-native/operations/deploymentOperations.d.ts.map +0 -1
- package/dist/react-native/operations/deploymentOperations.js +0 -782
- package/dist/react-native/operations/deploymentOperations.js.map +0 -1
- package/dist/react-native/operations/deployments.d.ts +0 -628
- package/dist/react-native/operations/deployments.d.ts.map +0 -1
- package/dist/react-native/operations/deployments.js +0 -2766
- package/dist/react-native/operations/deployments.js.map +0 -1
- package/dist/react-native/operationsInterfaces/deploymentOperations.d.ts +0 -77
- package/dist/react-native/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/deploymentOperations.js +0 -9
- package/dist/react-native/operationsInterfaces/deploymentOperations.js.map +0 -1
- package/dist/react-native/operationsInterfaces/deployments.d.ts +0 -545
- package/dist/react-native/operationsInterfaces/deployments.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/deployments.js +0 -9
- package/dist/react-native/operationsInterfaces/deployments.js.map +0 -1
- package/review/arm-resources.api.md +0 -1935
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tagsOperations.js","sourceRoot":"","sources":["../../../src/operations/tagsOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAwB9C,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,OAAgC;QAEhC,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,iDAAiD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AE;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 { TagsOperations } 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 {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n TagDetails,\n TagsListNextOptionalParams,\n TagsListOptionalParams,\n TagsListResponse,\n TagsDeleteValueOptionalParams,\n TagsCreateOrUpdateValueOptionalParams,\n TagsCreateOrUpdateValueResponse,\n TagsCreateOrUpdateOptionalParams,\n TagsCreateOrUpdateResponse,\n TagsDeleteOptionalParams,\n TagsResource,\n TagsCreateOrUpdateAtScopeOptionalParams,\n TagsCreateOrUpdateAtScopeResponse,\n TagsPatchResource,\n TagsUpdateAtScopeOptionalParams,\n TagsUpdateAtScopeResponse,\n TagsGetAtScopeOptionalParams,\n TagsGetAtScopeResponse,\n TagsDeleteAtScopeOptionalParams,\n TagsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TagsOperations operations. */\nexport class TagsOperationsImpl implements TagsOperations {\n private readonly client: ResourceManagementClient;\n\n /**\n * Initialize a new instance of the class TagsOperations class.\n * @param client Reference to the service client\n */\n constructor(client: ResourceManagementClient) {\n this.client = client;\n }\n\n /**\n * This operation performs a union of predefined tags, resource tags, resource group tags and\n * subscription tags, and returns a summary of usage for each tag name and value under the given\n * subscription. In case of a large number of tags, this operation may return a previously cached\n * result.\n * @param options The options parameters.\n */\n public list(\n options?: TagsListOptionalParams,\n ): PagedAsyncIterableIterator<TagDetails> {\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?: TagsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<TagDetails[]> {\n let result: TagsListResponse;\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?: TagsListOptionalParams,\n ): AsyncIterableIterator<TagDetails> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * This operation allows deleting a value from the list of predefined values for an existing predefined\n * tag name. The value being deleted must not be in use as a tag value for the given tag name for any\n * resource.\n * @param tagName The name of the tag.\n * @param tagValue The value of the tag to delete.\n * @param options The options parameters.\n */\n deleteValue(\n tagName: string,\n tagValue: string,\n options?: TagsDeleteValueOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { tagName, tagValue, options },\n deleteValueOperationSpec,\n );\n }\n\n /**\n * This operation allows adding a value to the list of predefined values for an existing predefined tag\n * name. A tag value can have a maximum of 256 characters.\n * @param tagName The name of the tag.\n * @param tagValue The value of the tag to create.\n * @param options The options parameters.\n */\n createOrUpdateValue(\n tagName: string,\n tagValue: string,\n options?: TagsCreateOrUpdateValueOptionalParams,\n ): Promise<TagsCreateOrUpdateValueResponse> {\n return this.client.sendOperationRequest(\n { tagName, tagValue, options },\n createOrUpdateValueOperationSpec,\n );\n }\n\n /**\n * This operation allows adding a name to the list of predefined tag names for the given subscription.\n * A tag name can have a maximum of 512 characters and is case-insensitive. Tag names cannot have the\n * following prefixes which are reserved for Azure use: 'microsoft', 'azure', 'windows'.\n * @param tagName The name of the tag to create.\n * @param options The options parameters.\n */\n createOrUpdate(\n tagName: string,\n options?: TagsCreateOrUpdateOptionalParams,\n ): Promise<TagsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { tagName, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * This operation allows deleting a name from the list of predefined tag names for the given\n * subscription. The name being deleted must not be in use as a tag name for any resource. All\n * predefined values for the given name must have already been deleted.\n * @param tagName The name of the tag.\n * @param options The options parameters.\n */\n delete(tagName: string, options?: TagsDeleteOptionalParams): Promise<void> {\n return this.client.sendOperationRequest(\n { tagName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * This operation performs a union of predefined tags, resource tags, resource group tags and\n * subscription tags, and returns a summary of usage for each tag name and value under the given\n * subscription. In case of a large number of tags, this operation may return a previously cached\n * result.\n * @param options The options parameters.\n */\n private _list(options?: TagsListOptionalParams): Promise<TagsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * This operation allows adding or replacing the entire set of tags on the specified resource or\n * subscription. The specified entity can have a maximum of 50 tags.\n * @param scope The resource scope.\n * @param parameters Wrapper resource for tags API requests and responses.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAtScope(\n scope: string,\n parameters: TagsResource,\n options?: TagsCreateOrUpdateAtScopeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TagsCreateOrUpdateAtScopeResponse>,\n TagsCreateOrUpdateAtScopeResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TagsCreateOrUpdateAtScopeResponse> => {\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: { scope, parameters, options },\n spec: createOrUpdateAtScopeOperationSpec,\n });\n const poller = await createHttpPoller<\n TagsCreateOrUpdateAtScopeResponse,\n OperationState<TagsCreateOrUpdateAtScopeResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * This operation allows adding or replacing the entire set of tags on the specified resource or\n * subscription. The specified entity can have a maximum of 50 tags.\n * @param scope The resource scope.\n * @param parameters Wrapper resource for tags API requests and responses.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAtScopeAndWait(\n scope: string,\n parameters: TagsResource,\n options?: TagsCreateOrUpdateAtScopeOptionalParams,\n ): Promise<TagsCreateOrUpdateAtScopeResponse> {\n const poller = await this.beginCreateOrUpdateAtScope(\n scope,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * This operation allows replacing, merging or selectively deleting tags on the specified resource or\n * subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The\n * 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows\n * adding tags with new names and updating the values of tags with existing names. The 'delete' option\n * allows selectively deleting tags based on given names or name/value pairs.\n * @param scope The resource scope.\n * @param parameters Wrapper resource for tags patch API request only.\n * @param options The options parameters.\n */\n async beginUpdateAtScope(\n scope: string,\n parameters: TagsPatchResource,\n options?: TagsUpdateAtScopeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TagsUpdateAtScopeResponse>,\n TagsUpdateAtScopeResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TagsUpdateAtScopeResponse> => {\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: { scope, parameters, options },\n spec: updateAtScopeOperationSpec,\n });\n const poller = await createHttpPoller<\n TagsUpdateAtScopeResponse,\n OperationState<TagsUpdateAtScopeResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * This operation allows replacing, merging or selectively deleting tags on the specified resource or\n * subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The\n * 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows\n * adding tags with new names and updating the values of tags with existing names. The 'delete' option\n * allows selectively deleting tags based on given names or name/value pairs.\n * @param scope The resource scope.\n * @param parameters Wrapper resource for tags patch API request only.\n * @param options The options parameters.\n */\n async beginUpdateAtScopeAndWait(\n scope: string,\n parameters: TagsPatchResource,\n options?: TagsUpdateAtScopeOptionalParams,\n ): Promise<TagsUpdateAtScopeResponse> {\n const poller = await this.beginUpdateAtScope(scope, parameters, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the entire set of tags on a resource or subscription.\n * @param scope The resource scope.\n * @param options The options parameters.\n */\n getAtScope(\n scope: string,\n options?: TagsGetAtScopeOptionalParams,\n ): Promise<TagsGetAtScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n getAtScopeOperationSpec,\n );\n }\n\n /**\n * Deletes the entire set of tags on a resource or subscription.\n * @param scope The resource scope.\n * @param options The options parameters.\n */\n async beginDeleteAtScope(\n scope: string,\n options?: TagsDeleteAtScopeOptionalParams,\n ): Promise<SimplePollerLike<OperationState<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 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: { scope, options },\n spec: deleteAtScopeOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the entire set of tags on a resource or subscription.\n * @param scope The resource scope.\n * @param options The options parameters.\n */\n async beginDeleteAtScopeAndWait(\n scope: string,\n options?: TagsDeleteAtScopeOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDeleteAtScope(scope, options);\n return poller.pollUntilDone();\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?: TagsListNextOptionalParams,\n ): Promise<TagsListNextResponse> {\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 deleteValueOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.tagName,\n Parameters.tagValue,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateValueOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagValue,\n },\n 201: {\n bodyMapper: Mappers.TagValue,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.tagName,\n Parameters.tagValue,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/tagNames/{tagName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagDetails,\n },\n 201: {\n bodyMapper: Mappers.TagDetails,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.tagName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/tagNames/{tagName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.tagName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/tagNames\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagsListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateAtScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Resources/tags/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagsResource,\n },\n 201: {\n bodyMapper: Mappers.TagsResource,\n },\n 202: {\n bodyMapper: Mappers.TagsResource,\n },\n 204: {\n bodyMapper: Mappers.TagsResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters9,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateAtScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Resources/tags/default\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagsResource,\n },\n 201: {\n bodyMapper: Mappers.TagsResource,\n },\n 202: {\n bodyMapper: Mappers.TagsResource,\n },\n 204: {\n bodyMapper: Mappers.TagsResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getAtScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Resources/tags/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagsResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteAtScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Resources/tags/default\",\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: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagsListResult,\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":"tagsOperations.js","sourceRoot":"","sources":["../../../src/operations/tagsOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MA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AO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC;IACnD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;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 { TagsOperations } 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 {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n TagDetails,\n TagsListNextOptionalParams,\n TagsListOptionalParams,\n TagsListResponse,\n TagsDeleteValueOptionalParams,\n TagsCreateOrUpdateValueOptionalParams,\n TagsCreateOrUpdateValueResponse,\n TagsCreateOrUpdateOptionalParams,\n TagsCreateOrUpdateResponse,\n TagsDeleteOptionalParams,\n TagsResource,\n TagsCreateOrUpdateAtScopeOptionalParams,\n TagsCreateOrUpdateAtScopeResponse,\n TagsPatchResource,\n TagsUpdateAtScopeOptionalParams,\n TagsUpdateAtScopeResponse,\n TagsGetAtScopeOptionalParams,\n TagsGetAtScopeResponse,\n TagsDeleteAtScopeOptionalParams,\n TagsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TagsOperations operations. */\nexport class TagsOperationsImpl implements TagsOperations {\n private readonly client: ResourceManagementClient;\n\n /**\n * Initialize a new instance of the class TagsOperations class.\n * @param client Reference to the service client\n */\n constructor(client: ResourceManagementClient) {\n this.client = client;\n }\n\n /**\n * This operation performs a union of predefined tags, resource tags, resource group tags and\n * subscription tags, and returns a summary of usage for each tag name and value under the given\n * subscription. In case of a large number of tags, this operation may return a previously cached\n * result.\n * @param options The options parameters.\n */\n public list(\n options?: TagsListOptionalParams,\n ): PagedAsyncIterableIterator<TagDetails> {\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?: TagsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<TagDetails[]> {\n let result: TagsListResponse;\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?: TagsListOptionalParams,\n ): AsyncIterableIterator<TagDetails> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * This operation allows deleting a value from the list of predefined values for an existing predefined\n * tag name. The value being deleted must not be in use as a tag value for the given tag name for any\n * resource.\n * @param tagName The name of the tag.\n * @param tagValue The value of the tag to delete.\n * @param options The options parameters.\n */\n deleteValue(\n tagName: string,\n tagValue: string,\n options?: TagsDeleteValueOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { tagName, tagValue, options },\n deleteValueOperationSpec,\n );\n }\n\n /**\n * This operation allows adding a value to the list of predefined values for an existing predefined tag\n * name. A tag value can have a maximum of 256 characters.\n * @param tagName The name of the tag.\n * @param tagValue The value of the tag to create.\n * @param options The options parameters.\n */\n createOrUpdateValue(\n tagName: string,\n tagValue: string,\n options?: TagsCreateOrUpdateValueOptionalParams,\n ): Promise<TagsCreateOrUpdateValueResponse> {\n return this.client.sendOperationRequest(\n { tagName, tagValue, options },\n createOrUpdateValueOperationSpec,\n );\n }\n\n /**\n * This operation allows adding a name to the list of predefined tag names for the given subscription.\n * A tag name can have a maximum of 512 characters and is case-insensitive. Tag names cannot have the\n * following prefixes which are reserved for Azure use: 'microsoft', 'azure', 'windows'.\n * @param tagName The name of the tag to create.\n * @param options The options parameters.\n */\n createOrUpdate(\n tagName: string,\n options?: TagsCreateOrUpdateOptionalParams,\n ): Promise<TagsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { tagName, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * This operation allows deleting a name from the list of predefined tag names for the given\n * subscription. The name being deleted must not be in use as a tag name for any resource. All\n * predefined values for the given name must have already been deleted.\n * @param tagName The name of the tag.\n * @param options The options parameters.\n */\n delete(tagName: string, options?: TagsDeleteOptionalParams): Promise<void> {\n return this.client.sendOperationRequest(\n { tagName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * This operation performs a union of predefined tags, resource tags, resource group tags and\n * subscription tags, and returns a summary of usage for each tag name and value under the given\n * subscription. In case of a large number of tags, this operation may return a previously cached\n * result.\n * @param options The options parameters.\n */\n private _list(options?: TagsListOptionalParams): Promise<TagsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * This operation allows adding or replacing the entire set of tags on the specified resource or\n * subscription. The specified entity can have a maximum of 50 tags.\n * @param scope The resource scope.\n * @param parameters Wrapper resource for tags API requests and responses.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAtScope(\n scope: string,\n parameters: TagsResource,\n options?: TagsCreateOrUpdateAtScopeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TagsCreateOrUpdateAtScopeResponse>,\n TagsCreateOrUpdateAtScopeResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TagsCreateOrUpdateAtScopeResponse> => {\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: { scope, parameters, options },\n spec: createOrUpdateAtScopeOperationSpec,\n });\n const poller = await createHttpPoller<\n TagsCreateOrUpdateAtScopeResponse,\n OperationState<TagsCreateOrUpdateAtScopeResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * This operation allows adding or replacing the entire set of tags on the specified resource or\n * subscription. The specified entity can have a maximum of 50 tags.\n * @param scope The resource scope.\n * @param parameters Wrapper resource for tags API requests and responses.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAtScopeAndWait(\n scope: string,\n parameters: TagsResource,\n options?: TagsCreateOrUpdateAtScopeOptionalParams,\n ): Promise<TagsCreateOrUpdateAtScopeResponse> {\n const poller = await this.beginCreateOrUpdateAtScope(\n scope,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * This operation allows replacing, merging or selectively deleting tags on the specified resource or\n * subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The\n * 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows\n * adding tags with new names and updating the values of tags with existing names. The 'delete' option\n * allows selectively deleting tags based on given names or name/value pairs.\n * @param scope The resource scope.\n * @param parameters Wrapper resource for tags patch API request only.\n * @param options The options parameters.\n */\n async beginUpdateAtScope(\n scope: string,\n parameters: TagsPatchResource,\n options?: TagsUpdateAtScopeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TagsUpdateAtScopeResponse>,\n TagsUpdateAtScopeResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TagsUpdateAtScopeResponse> => {\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: { scope, parameters, options },\n spec: updateAtScopeOperationSpec,\n });\n const poller = await createHttpPoller<\n TagsUpdateAtScopeResponse,\n OperationState<TagsUpdateAtScopeResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * This operation allows replacing, merging or selectively deleting tags on the specified resource or\n * subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The\n * 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows\n * adding tags with new names and updating the values of tags with existing names. The 'delete' option\n * allows selectively deleting tags based on given names or name/value pairs.\n * @param scope The resource scope.\n * @param parameters Wrapper resource for tags patch API request only.\n * @param options The options parameters.\n */\n async beginUpdateAtScopeAndWait(\n scope: string,\n parameters: TagsPatchResource,\n options?: TagsUpdateAtScopeOptionalParams,\n ): Promise<TagsUpdateAtScopeResponse> {\n const poller = await this.beginUpdateAtScope(scope, parameters, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the entire set of tags on a resource or subscription.\n * @param scope The resource scope.\n * @param options The options parameters.\n */\n getAtScope(\n scope: string,\n options?: TagsGetAtScopeOptionalParams,\n ): Promise<TagsGetAtScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n getAtScopeOperationSpec,\n );\n }\n\n /**\n * Deletes the entire set of tags on a resource or subscription.\n * @param scope The resource scope.\n * @param options The options parameters.\n */\n async beginDeleteAtScope(\n scope: string,\n options?: TagsDeleteAtScopeOptionalParams,\n ): Promise<SimplePollerLike<OperationState<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 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: { scope, options },\n spec: deleteAtScopeOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the entire set of tags on a resource or subscription.\n * @param scope The resource scope.\n * @param options The options parameters.\n */\n async beginDeleteAtScopeAndWait(\n scope: string,\n options?: TagsDeleteAtScopeOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDeleteAtScope(scope, options);\n return poller.pollUntilDone();\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?: TagsListNextOptionalParams,\n ): Promise<TagsListNextResponse> {\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 deleteValueOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.tagName,\n Parameters.tagValue,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateValueOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagValue,\n },\n 201: {\n bodyMapper: Mappers.TagValue,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.tagName,\n Parameters.tagValue,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/tagNames/{tagName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagDetails,\n },\n 201: {\n bodyMapper: Mappers.TagDetails,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.tagName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/tagNames/{tagName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.tagName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/tagNames\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagsListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateAtScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Resources/tags/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagsResource,\n },\n 201: {\n bodyMapper: Mappers.TagsResource,\n },\n 202: {\n bodyMapper: Mappers.TagsResource,\n },\n 204: {\n bodyMapper: Mappers.TagsResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateAtScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Resources/tags/default\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagsResource,\n },\n 201: {\n bodyMapper: Mappers.TagsResource,\n },\n 202: {\n bodyMapper: Mappers.TagsResource,\n },\n 204: {\n bodyMapper: Mappers.TagsResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getAtScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Resources/tags/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagsResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteAtScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Resources/tags/default\",\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: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagsListResult,\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,9 +1,7 @@
|
|
|
1
1
|
export * from "./operations.js";
|
|
2
|
-
export * from "./deployments.js";
|
|
3
2
|
export * from "./providers.js";
|
|
4
3
|
export * from "./providerResourceTypes.js";
|
|
5
4
|
export * from "./resources.js";
|
|
6
5
|
export * from "./resourceGroups.js";
|
|
7
6
|
export * from "./tagsOperations.js";
|
|
8
|
-
export * from "./deploymentOperations.js";
|
|
9
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC"}
|
|
@@ -6,11 +6,9 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
export * from "./operations.js";
|
|
9
|
-
export * from "./deployments.js";
|
|
10
9
|
export * from "./providers.js";
|
|
11
10
|
export * from "./providerResourceTypes.js";
|
|
12
11
|
export * from "./resources.js";
|
|
13
12
|
export * from "./resourceGroups.js";
|
|
14
13
|
export * from "./tagsOperations.js";
|
|
15
|
-
export * from "./deploymentOperations.js";
|
|
16
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,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\nexport * from \"./operations.js\";\nexport * from \"./providers.js\";\nexport * from \"./providerResourceTypes.js\";\nexport * from \"./resources.js\";\nexport * from \"./resourceGroups.js\";\nexport * from \"./tagsOperations.js\";\n"]}
|
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
|
14
14
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
15
|
*/
|
|
16
16
|
export function getContinuationToken(page) {
|
|
17
|
-
var _a;
|
|
18
17
|
if (typeof page !== "object" || page === null) {
|
|
19
18
|
return undefined;
|
|
20
19
|
}
|
|
21
|
-
return
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
22
21
|
}
|
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
|
24
|
-
var _a;
|
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
24
|
return;
|
|
27
25
|
}
|
|
28
|
-
const pageInfo =
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
|
30
28
|
pageMap.set(page, pageInfo);
|
|
31
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
2
|
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import { Operations,
|
|
3
|
+
import { Operations, Providers, ProviderResourceTypes, Resources, ResourceGroups, TagsOperations } from "./operationsInterfaces/index.js";
|
|
4
4
|
import { ResourceManagementClientOptionalParams } from "./models/index.js";
|
|
5
5
|
export declare class ResourceManagementClient extends coreClient.ServiceClient {
|
|
6
6
|
$host: string;
|
|
@@ -17,12 +17,10 @@ export declare class ResourceManagementClient extends coreClient.ServiceClient {
|
|
|
17
17
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
18
18
|
private addCustomApiVersionPolicy;
|
|
19
19
|
operations: Operations;
|
|
20
|
-
deployments: Deployments;
|
|
21
20
|
providers: Providers;
|
|
22
21
|
providerResourceTypes: ProviderResourceTypes;
|
|
23
22
|
resources: Resources;
|
|
24
23
|
resourceGroups: ResourceGroups;
|
|
25
24
|
tagsOperations: TagsOperations;
|
|
26
|
-
deploymentOperations: DeploymentOperations;
|
|
27
25
|
}
|
|
28
26
|
//# sourceMappingURL=resourceManagementClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourceManagementClient.d.ts","sourceRoot":"","sources":["../../src/resourceManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"resourceManagementClient.d.ts","sourceRoot":"","sources":["../../src/resourceManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAS7C,OAAO,EACL,UAAU,EACV,SAAS,EACT,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,cAAc,EACf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,sCAAsC,EAAE,MAAM,mBAAmB,CAAC;AAE3E,qBAAa,wBAAyB,SAAQ,UAAU,CAAC,aAAa;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,sCAAsC;gBAGhD,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,OAAO,CAAC,EAAE,sCAAsC;IA4FlD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,EAAE,cAAc,CAAC;IAC/B,cAAc,EAAE,cAAc,CAAC;CAChC"}
|
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as coreClient from "@azure/core-client";
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
|
-
import { OperationsImpl,
|
|
10
|
+
import { OperationsImpl, ProvidersImpl, ProviderResourceTypesImpl, ResourcesImpl, ResourceGroupsImpl, TagsOperationsImpl, } from "./operations/index.js";
|
|
11
11
|
export class ResourceManagementClient extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
apiVersion;
|
|
14
|
+
subscriptionId;
|
|
12
15
|
constructor(credentials, subscriptionIdOrOptions, options) {
|
|
13
|
-
var _a, _b, _c;
|
|
14
16
|
if (credentials === undefined) {
|
|
15
17
|
throw new Error("'credentials' cannot be null");
|
|
16
18
|
}
|
|
@@ -29,16 +31,21 @@ export class ResourceManagementClient extends coreClient.ServiceClient {
|
|
|
29
31
|
requestContentType: "application/json; charset=utf-8",
|
|
30
32
|
credential: credentials,
|
|
31
33
|
};
|
|
32
|
-
const packageDetails = `azsdk-js-arm-resources/
|
|
34
|
+
const packageDetails = `azsdk-js-arm-resources/7.0.0`;
|
|
33
35
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
34
36
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
35
37
|
: `${packageDetails}`;
|
|
36
|
-
const optionsWithDefaults =
|
|
38
|
+
const optionsWithDefaults = {
|
|
39
|
+
...defaults,
|
|
40
|
+
...options,
|
|
41
|
+
userAgentOptions: {
|
|
37
42
|
userAgentPrefix,
|
|
38
|
-
},
|
|
43
|
+
},
|
|
44
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
45
|
+
};
|
|
39
46
|
super(optionsWithDefaults);
|
|
40
47
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
41
|
-
if (
|
|
48
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
42
49
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
43
50
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
44
51
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -52,7 +59,8 @@ export class ResourceManagementClient extends coreClient.ServiceClient {
|
|
|
52
59
|
});
|
|
53
60
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
54
61
|
credential: credentials,
|
|
55
|
-
scopes:
|
|
62
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
63
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
56
64
|
challengeCallbacks: {
|
|
57
65
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
58
66
|
},
|
|
@@ -62,15 +70,13 @@ export class ResourceManagementClient extends coreClient.ServiceClient {
|
|
|
62
70
|
this.subscriptionId = subscriptionId;
|
|
63
71
|
// Assigning values to Constant parameters
|
|
64
72
|
this.$host = options.$host || "https://management.azure.com";
|
|
65
|
-
this.apiVersion = options.apiVersion || "2025-
|
|
73
|
+
this.apiVersion = options.apiVersion || "2025-04-01";
|
|
66
74
|
this.operations = new OperationsImpl(this);
|
|
67
|
-
this.deployments = new DeploymentsImpl(this);
|
|
68
75
|
this.providers = new ProvidersImpl(this);
|
|
69
76
|
this.providerResourceTypes = new ProviderResourceTypesImpl(this);
|
|
70
77
|
this.resources = new ResourcesImpl(this);
|
|
71
78
|
this.resourceGroups = new ResourceGroupsImpl(this);
|
|
72
79
|
this.tagsOperations = new TagsOperationsImpl(this);
|
|
73
|
-
this.deploymentOperations = new DeploymentOperationsImpl(this);
|
|
74
80
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
75
81
|
}
|
|
76
82
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
@@ -98,5 +104,11 @@ export class ResourceManagementClient extends coreClient.ServiceClient {
|
|
|
98
104
|
};
|
|
99
105
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
100
106
|
}
|
|
107
|
+
operations;
|
|
108
|
+
providers;
|
|
109
|
+
providerResourceTypes;
|
|
110
|
+
resources;
|
|
111
|
+
resourceGroups;
|
|
112
|
+
tagsOperations;
|
|
101
113
|
}
|
|
102
114
|
//# sourceMappingURL=resourceManagementClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourceManagementClient.js","sourceRoot":"","sources":["../../src/resourceManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,
|
|
1
|
+
{"version":3,"file":"resourceManagementClient.js","sourceRoot":"","sources":["../../src/resourceManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,aAAa,EACb,yBAAyB,EACzB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAW/B,MAAM,OAAO,wBAAyB,SAAQ,UAAU,CAAC,aAAa;IACpE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAU;IAiBxB,YACE,WAAqC,EACrC,uBAAyE,EACzE,OAAgD;QAEhD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD,cAAc,GAAG,uBAAuB,CAAC;QAC3C,CAAC;aAAM,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YACvD,OAAO,GAAG,uBAAuB,CAAC;QACpC,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,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AC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,SAAS,CAAY;IACrB,qBAAqB,CAAwB;IAC7C,SAAS,CAAY;IACrB,cAAc,CAAiB;IAC/B,cAAc,CAAiB;CAChC","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n ProvidersImpl,\n ProviderResourceTypesImpl,\n ResourcesImpl,\n ResourceGroupsImpl,\n TagsOperationsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Providers,\n ProviderResourceTypes,\n Resources,\n ResourceGroups,\n TagsOperations,\n} from \"./operationsInterfaces/index.js\";\nimport { ResourceManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class ResourceManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the ResourceManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Microsoft Azure subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ResourceManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: ResourceManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: ResourceManagementClientOptionalParams | string,\n options?: ResourceManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ResourceManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-resources/7.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-04-01\";\n this.operations = new OperationsImpl(this);\n this.providers = new ProvidersImpl(this);\n this.providerResourceTypes = new ProviderResourceTypesImpl(this);\n this.resources = new ResourcesImpl(this);\n this.resourceGroups = new ResourceGroupsImpl(this);\n this.tagsOperations = new TagsOperationsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n providers: Providers;\n providerResourceTypes: ProviderResourceTypes;\n resources: Resources;\n resourceGroups: ResourceGroups;\n tagsOperations: TagsOperations;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for ResourceManagementClient.",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "7.0.0-alpha.20250724.1",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
8
|
+
"node": ">=20.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@azure/core-lro": "^2.5.4",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"typescript": "~5.8.2",
|
|
34
34
|
"dotenv": "^16.0.0",
|
|
35
|
-
"@azure/dev-tool": "
|
|
36
|
-
"@azure/identity": "^4.
|
|
35
|
+
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
|
|
36
|
+
"@azure/identity": "^4.6.0",
|
|
37
37
|
"@azure/logger": "^1.1.4",
|
|
38
|
-
"@azure-tools/test-recorder": "
|
|
38
|
+
"@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
|
|
39
39
|
"@azure-tools/test-credential": "^2.0.0",
|
|
40
|
-
"@azure-tools/test-utils-vitest": "
|
|
41
|
-
"@types/node": "^
|
|
40
|
+
"@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
|
|
41
|
+
"@types/node": "^20.0.0",
|
|
42
42
|
"@vitest/browser": "^3.0.9",
|
|
43
43
|
"@vitest/coverage-istanbul": "^3.0.9",
|
|
44
44
|
"playwright": "^1.50.1",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"react-native"
|
|
99
99
|
],
|
|
100
100
|
"selfLink": false,
|
|
101
|
-
"project": "
|
|
101
|
+
"project": "../../../tsconfig.src.build.json"
|
|
102
102
|
},
|
|
103
103
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resources/arm-resources",
|
|
104
104
|
"//sampleConfiguration": {
|