@azure/arm-authorization-profile-2020-09-01-hybrid 2.1.1-alpha.20250619.1 → 2.1.1-alpha.20250718.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/browser/authorizationManagementClient.js +18 -5
  2. package/dist/browser/authorizationManagementClient.js.map +1 -1
  3. package/dist/browser/operations/globalAdministrator.js +1 -0
  4. package/dist/browser/operations/globalAdministrator.js.map +1 -1
  5. package/dist/browser/operations/permissions.js +45 -79
  6. package/dist/browser/operations/permissions.js.map +1 -1
  7. package/dist/browser/operations/providerOperationsMetadataOperations.js +23 -40
  8. package/dist/browser/operations/providerOperationsMetadataOperations.js.map +1 -1
  9. package/dist/browser/operations/roleAssignments.js +89 -157
  10. package/dist/browser/operations/roleAssignments.js.map +1 -1
  11. package/dist/browser/operations/roleDefinitions.js +23 -40
  12. package/dist/browser/operations/roleDefinitions.js.map +1 -1
  13. package/dist/browser/pagingHelper.js +2 -4
  14. package/dist/browser/pagingHelper.js.map +1 -1
  15. package/dist/commonjs/authorizationManagementClient.js +18 -5
  16. package/dist/commonjs/authorizationManagementClient.js.map +1 -1
  17. package/dist/commonjs/operations/globalAdministrator.js +1 -0
  18. package/dist/commonjs/operations/globalAdministrator.js.map +1 -1
  19. package/dist/commonjs/operations/permissions.js +45 -78
  20. package/dist/commonjs/operations/permissions.js.map +1 -1
  21. package/dist/commonjs/operations/providerOperationsMetadataOperations.js +23 -39
  22. package/dist/commonjs/operations/providerOperationsMetadataOperations.js.map +1 -1
  23. package/dist/commonjs/operations/roleAssignments.js +89 -156
  24. package/dist/commonjs/operations/roleAssignments.js.map +1 -1
  25. package/dist/commonjs/operations/roleDefinitions.js +23 -39
  26. package/dist/commonjs/operations/roleDefinitions.js.map +1 -1
  27. package/dist/commonjs/pagingHelper.js +2 -4
  28. package/dist/commonjs/pagingHelper.js.map +1 -1
  29. package/dist/commonjs/tsdoc-metadata.json +11 -11
  30. package/dist/esm/authorizationManagementClient.js +18 -5
  31. package/dist/esm/authorizationManagementClient.js.map +1 -1
  32. package/dist/esm/operations/globalAdministrator.js +1 -0
  33. package/dist/esm/operations/globalAdministrator.js.map +1 -1
  34. package/dist/esm/operations/permissions.js +45 -79
  35. package/dist/esm/operations/permissions.js.map +1 -1
  36. package/dist/esm/operations/providerOperationsMetadataOperations.js +23 -40
  37. package/dist/esm/operations/providerOperationsMetadataOperations.js.map +1 -1
  38. package/dist/esm/operations/roleAssignments.js +89 -157
  39. package/dist/esm/operations/roleAssignments.js.map +1 -1
  40. package/dist/esm/operations/roleDefinitions.js +23 -40
  41. package/dist/esm/operations/roleDefinitions.js.map +1 -1
  42. package/dist/esm/pagingHelper.js +2 -4
  43. package/dist/esm/pagingHelper.js.map +1 -1
  44. package/dist/react-native/authorizationManagementClient.js +18 -5
  45. package/dist/react-native/authorizationManagementClient.js.map +1 -1
  46. package/dist/react-native/operations/globalAdministrator.js +1 -0
  47. package/dist/react-native/operations/globalAdministrator.js.map +1 -1
  48. package/dist/react-native/operations/permissions.js +45 -79
  49. package/dist/react-native/operations/permissions.js.map +1 -1
  50. package/dist/react-native/operations/providerOperationsMetadataOperations.js +23 -40
  51. package/dist/react-native/operations/providerOperationsMetadataOperations.js.map +1 -1
  52. package/dist/react-native/operations/roleAssignments.js +89 -157
  53. package/dist/react-native/operations/roleAssignments.js.map +1 -1
  54. package/dist/react-native/operations/roleDefinitions.js +23 -40
  55. package/dist/react-native/operations/roleDefinitions.js.map +1 -1
  56. package/dist/react-native/pagingHelper.js +2 -4
  57. package/dist/react-native/pagingHelper.js.map +1 -1
  58. package/package.json +2 -2
  59. /package/review/{arm-authorization-profile-2020-09-01-hybrid.api.md → arm-authorization-profile-2020-09-01-hybrid-node.api.md} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"roleDefinitions.js","sourceRoot":"","sources":["../../../src/operations/roleDefinitions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,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,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;IAC3D,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,oBAAoB,GAA6B;IACrD,IAAI,EAAE,qBAAqB;IAC3B,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC;IAC/D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC;IACxE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { RoleDefinitions } 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 { AuthorizationManagementClient } from \"../authorizationManagementClient.js\";\nimport {\n RoleDefinition,\n RoleDefinitionsListNextOptionalParams,\n RoleDefinitionsListOptionalParams,\n RoleDefinitionsListResponse,\n RoleDefinitionsDeleteOptionalParams,\n RoleDefinitionsDeleteResponse,\n RoleDefinitionsGetOptionalParams,\n RoleDefinitionsGetResponse,\n RoleDefinitionsCreateOrUpdateOptionalParams,\n RoleDefinitionsCreateOrUpdateResponse,\n RoleDefinitionsGetByIdOptionalParams,\n RoleDefinitionsGetByIdResponse,\n RoleDefinitionsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RoleDefinitions operations. */\nexport class RoleDefinitionsImpl implements RoleDefinitions {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class RoleDefinitions class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Get all role definitions that are applicable at scope and above.\n * @param scope The scope of the role definition.\n * @param options The options parameters.\n */\n public list(\n scope: string,\n options?: RoleDefinitionsListOptionalParams\n ): PagedAsyncIterableIterator<RoleDefinition> {\n const iter = this.listPagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(scope, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n scope: string,\n options?: RoleDefinitionsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<RoleDefinition[]> {\n let result: RoleDefinitionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n scope: string,\n options?: RoleDefinitionsListOptionalParams\n ): AsyncIterableIterator<RoleDefinition> {\n for await (const page of this.listPagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Deletes a role definition.\n * @param scope The scope of the role definition.\n * @param roleDefinitionId The ID of the role definition to delete.\n * @param options The options parameters.\n */\n delete(\n scope: string,\n roleDefinitionId: string,\n options?: RoleDefinitionsDeleteOptionalParams\n ): Promise<RoleDefinitionsDeleteResponse> {\n return this.client.sendOperationRequest(\n { scope, roleDefinitionId, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Get role definition by name (GUID).\n * @param scope The scope of the role definition.\n * @param roleDefinitionId The ID of the role definition.\n * @param options The options parameters.\n */\n get(\n scope: string,\n roleDefinitionId: string,\n options?: RoleDefinitionsGetOptionalParams\n ): Promise<RoleDefinitionsGetResponse> {\n return this.client.sendOperationRequest(\n { scope, roleDefinitionId, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates a role definition.\n * @param scope The scope of the role definition.\n * @param roleDefinitionId The ID of the role definition.\n * @param roleDefinition The values for the role definition.\n * @param options The options parameters.\n */\n createOrUpdate(\n scope: string,\n roleDefinitionId: string,\n roleDefinition: RoleDefinition,\n options?: RoleDefinitionsCreateOrUpdateOptionalParams\n ): Promise<RoleDefinitionsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { scope, roleDefinitionId, roleDefinition, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Get all role definitions that are applicable at scope and above.\n * @param scope The scope of the role definition.\n * @param options The options parameters.\n */\n private _list(\n scope: string,\n options?: RoleDefinitionsListOptionalParams\n ): Promise<RoleDefinitionsListResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listOperationSpec\n );\n }\n\n /**\n * Gets a role definition by ID.\n * @param roleDefinitionId The fully qualified role definition ID. Use the format,\n * /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for\n * subscription level role definitions, or\n * /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for tenant level role\n * definitions.\n * @param options The options parameters.\n */\n getById(\n roleDefinitionId: string,\n options?: RoleDefinitionsGetByIdOptionalParams\n ): Promise<RoleDefinitionsGetByIdResponse> {\n return this.client.sendOperationRequest(\n { roleDefinitionId, options },\n getByIdOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param scope The scope of the role definition.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n scope: string,\n nextLink: string,\n options?: RoleDefinitionsListNextOptionalParams\n ): Promise<RoleDefinitionsListNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleDefinition\n },\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.roleDefinitionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleDefinition\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.roleDefinitionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n bodyMapper: Mappers.RoleDefinition\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.roleDefinition,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.roleDefinitionId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Authorization/roleDefinitions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleDefinitionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/{roleDefinitionId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleDefinition\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.roleDefinitionId1],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleDefinitionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"roleDefinitions.js","sourceRoot":"","sources":["../../../src/operations/roleDefinitions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;IAC3D,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,oBAAoB,GAA6B;IACrD,IAAI,EAAE,qBAAqB;IAC3B,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC;IAC/D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC;IACxE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { RoleDefinitions } 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 { AuthorizationManagementClient } from \"../authorizationManagementClient.js\";\nimport {\n RoleDefinition,\n RoleDefinitionsListNextOptionalParams,\n RoleDefinitionsListOptionalParams,\n RoleDefinitionsListResponse,\n RoleDefinitionsDeleteOptionalParams,\n RoleDefinitionsDeleteResponse,\n RoleDefinitionsGetOptionalParams,\n RoleDefinitionsGetResponse,\n RoleDefinitionsCreateOrUpdateOptionalParams,\n RoleDefinitionsCreateOrUpdateResponse,\n RoleDefinitionsGetByIdOptionalParams,\n RoleDefinitionsGetByIdResponse,\n RoleDefinitionsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RoleDefinitions operations. */\nexport class RoleDefinitionsImpl implements RoleDefinitions {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class RoleDefinitions class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Get all role definitions that are applicable at scope and above.\n * @param scope The scope of the role definition.\n * @param options The options parameters.\n */\n public list(\n scope: string,\n options?: RoleDefinitionsListOptionalParams\n ): PagedAsyncIterableIterator<RoleDefinition> {\n const iter = this.listPagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(scope, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n scope: string,\n options?: RoleDefinitionsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<RoleDefinition[]> {\n let result: RoleDefinitionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n scope: string,\n options?: RoleDefinitionsListOptionalParams\n ): AsyncIterableIterator<RoleDefinition> {\n for await (const page of this.listPagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Deletes a role definition.\n * @param scope The scope of the role definition.\n * @param roleDefinitionId The ID of the role definition to delete.\n * @param options The options parameters.\n */\n delete(\n scope: string,\n roleDefinitionId: string,\n options?: RoleDefinitionsDeleteOptionalParams\n ): Promise<RoleDefinitionsDeleteResponse> {\n return this.client.sendOperationRequest(\n { scope, roleDefinitionId, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Get role definition by name (GUID).\n * @param scope The scope of the role definition.\n * @param roleDefinitionId The ID of the role definition.\n * @param options The options parameters.\n */\n get(\n scope: string,\n roleDefinitionId: string,\n options?: RoleDefinitionsGetOptionalParams\n ): Promise<RoleDefinitionsGetResponse> {\n return this.client.sendOperationRequest(\n { scope, roleDefinitionId, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates a role definition.\n * @param scope The scope of the role definition.\n * @param roleDefinitionId The ID of the role definition.\n * @param roleDefinition The values for the role definition.\n * @param options The options parameters.\n */\n createOrUpdate(\n scope: string,\n roleDefinitionId: string,\n roleDefinition: RoleDefinition,\n options?: RoleDefinitionsCreateOrUpdateOptionalParams\n ): Promise<RoleDefinitionsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { scope, roleDefinitionId, roleDefinition, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Get all role definitions that are applicable at scope and above.\n * @param scope The scope of the role definition.\n * @param options The options parameters.\n */\n private _list(\n scope: string,\n options?: RoleDefinitionsListOptionalParams\n ): Promise<RoleDefinitionsListResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listOperationSpec\n );\n }\n\n /**\n * Gets a role definition by ID.\n * @param roleDefinitionId The fully qualified role definition ID. Use the format,\n * /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for\n * subscription level role definitions, or\n * /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for tenant level role\n * definitions.\n * @param options The options parameters.\n */\n getById(\n roleDefinitionId: string,\n options?: RoleDefinitionsGetByIdOptionalParams\n ): Promise<RoleDefinitionsGetByIdResponse> {\n return this.client.sendOperationRequest(\n { roleDefinitionId, options },\n getByIdOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param scope The scope of the role definition.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n scope: string,\n nextLink: string,\n options?: RoleDefinitionsListNextOptionalParams\n ): Promise<RoleDefinitionsListNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleDefinition\n },\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.roleDefinitionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleDefinition\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.roleDefinitionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n bodyMapper: Mappers.RoleDefinition\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.roleDefinition,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.roleDefinitionId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Authorization/roleDefinitions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleDefinitionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/{roleDefinitionId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleDefinition\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.roleDefinitionId1],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleDefinitionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\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 (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
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 = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
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;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,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,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,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
+ {"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"]}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for AuthorizationManagementClient.",
6
- "version": "2.1.1-alpha.20250619.1",
6
+ "version": "2.1.1-alpha.20250718.2",
7
7
  "engines": {
8
8
  "node": ">=20.0.0"
9
9
  },
@@ -90,7 +90,7 @@
90
90
  },
91
91
  "type": "module",
92
92
  "tshy": {
93
- "project": "./tsconfig.src.json",
93
+ "project": "../../../tsconfig.src.build.json",
94
94
  "exports": {
95
95
  "./package.json": "./package.json",
96
96
  ".": "./src/index.ts"