@azure/arm-redisenterprisecache 4.0.0-alpha.20250618.1 → 4.0.0-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 (91) hide show
  1. package/dist/browser/lroImpl.js +7 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +96 -44
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/accessPolicyAssignmentOperations.js +45 -52
  6. package/dist/browser/operations/accessPolicyAssignmentOperations.js.map +1 -1
  7. package/dist/browser/operations/databases.js +133 -100
  8. package/dist/browser/operations/databases.js.map +1 -1
  9. package/dist/browser/operations/operations.js +23 -40
  10. package/dist/browser/operations/operations.js.map +1 -1
  11. package/dist/browser/operations/operationsStatus.js +1 -0
  12. package/dist/browser/operations/operationsStatus.js.map +1 -1
  13. package/dist/browser/operations/privateEndpointConnections.js +32 -39
  14. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  15. package/dist/browser/operations/privateLinkResources.js +10 -27
  16. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  17. package/dist/browser/operations/redisEnterprise.js +78 -97
  18. package/dist/browser/operations/redisEnterprise.js.map +1 -1
  19. package/dist/browser/pagingHelper.js +2 -4
  20. package/dist/browser/pagingHelper.js.map +1 -1
  21. package/dist/browser/redisEnterpriseManagementClient.js +20 -5
  22. package/dist/browser/redisEnterpriseManagementClient.js.map +1 -1
  23. package/dist/commonjs/lroImpl.js +7 -3
  24. package/dist/commonjs/lroImpl.js.map +1 -1
  25. package/dist/commonjs/models/mappers.js +96 -44
  26. package/dist/commonjs/models/mappers.js.map +1 -1
  27. package/dist/commonjs/operations/accessPolicyAssignmentOperations.js +45 -51
  28. package/dist/commonjs/operations/accessPolicyAssignmentOperations.js.map +1 -1
  29. package/dist/commonjs/operations/databases.js +133 -99
  30. package/dist/commonjs/operations/databases.js.map +1 -1
  31. package/dist/commonjs/operations/operations.js +23 -39
  32. package/dist/commonjs/operations/operations.js.map +1 -1
  33. package/dist/commonjs/operations/operationsStatus.js +1 -0
  34. package/dist/commonjs/operations/operationsStatus.js.map +1 -1
  35. package/dist/commonjs/operations/privateEndpointConnections.js +32 -38
  36. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  37. package/dist/commonjs/operations/privateLinkResources.js +10 -26
  38. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  39. package/dist/commonjs/operations/redisEnterprise.js +78 -96
  40. package/dist/commonjs/operations/redisEnterprise.js.map +1 -1
  41. package/dist/commonjs/pagingHelper.js +2 -4
  42. package/dist/commonjs/pagingHelper.js.map +1 -1
  43. package/dist/commonjs/redisEnterpriseManagementClient.js +20 -5
  44. package/dist/commonjs/redisEnterpriseManagementClient.js.map +1 -1
  45. package/dist/commonjs/tsdoc-metadata.json +11 -11
  46. package/dist/esm/lroImpl.js +7 -3
  47. package/dist/esm/lroImpl.js.map +1 -1
  48. package/dist/esm/models/mappers.js +96 -44
  49. package/dist/esm/models/mappers.js.map +1 -1
  50. package/dist/esm/operations/accessPolicyAssignmentOperations.js +45 -52
  51. package/dist/esm/operations/accessPolicyAssignmentOperations.js.map +1 -1
  52. package/dist/esm/operations/databases.js +133 -100
  53. package/dist/esm/operations/databases.js.map +1 -1
  54. package/dist/esm/operations/operations.js +23 -40
  55. package/dist/esm/operations/operations.js.map +1 -1
  56. package/dist/esm/operations/operationsStatus.js +1 -0
  57. package/dist/esm/operations/operationsStatus.js.map +1 -1
  58. package/dist/esm/operations/privateEndpointConnections.js +32 -39
  59. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  60. package/dist/esm/operations/privateLinkResources.js +10 -27
  61. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  62. package/dist/esm/operations/redisEnterprise.js +78 -97
  63. package/dist/esm/operations/redisEnterprise.js.map +1 -1
  64. package/dist/esm/pagingHelper.js +2 -4
  65. package/dist/esm/pagingHelper.js.map +1 -1
  66. package/dist/esm/redisEnterpriseManagementClient.js +20 -5
  67. package/dist/esm/redisEnterpriseManagementClient.js.map +1 -1
  68. package/dist/react-native/lroImpl.js +7 -3
  69. package/dist/react-native/lroImpl.js.map +1 -1
  70. package/dist/react-native/models/mappers.js +96 -44
  71. package/dist/react-native/models/mappers.js.map +1 -1
  72. package/dist/react-native/operations/accessPolicyAssignmentOperations.js +45 -52
  73. package/dist/react-native/operations/accessPolicyAssignmentOperations.js.map +1 -1
  74. package/dist/react-native/operations/databases.js +133 -100
  75. package/dist/react-native/operations/databases.js.map +1 -1
  76. package/dist/react-native/operations/operations.js +23 -40
  77. package/dist/react-native/operations/operations.js.map +1 -1
  78. package/dist/react-native/operations/operationsStatus.js +1 -0
  79. package/dist/react-native/operations/operationsStatus.js.map +1 -1
  80. package/dist/react-native/operations/privateEndpointConnections.js +32 -39
  81. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  82. package/dist/react-native/operations/privateLinkResources.js +10 -27
  83. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  84. package/dist/react-native/operations/redisEnterprise.js +78 -97
  85. package/dist/react-native/operations/redisEnterprise.js.map +1 -1
  86. package/dist/react-native/pagingHelper.js +2 -4
  87. package/dist/react-native/pagingHelper.js.map +1 -1
  88. package/dist/react-native/redisEnterpriseManagementClient.js +20 -5
  89. package/dist/react-native/redisEnterpriseManagementClient.js.map +1 -1
  90. package/package.json +2 -2
  91. /package/review/{arm-redisenterprisecache.api.md → arm-redisenterprisecache-node.api.md} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"accessPolicyAssignmentOperations.js","sourceRoot":"","sources":["../../../src/operations/accessPolicyAssignmentOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAe9C,4CAA4C;AAC5C,oEAAoE;AACpE,MAAa,oCAAoC;IAK/C;;;OAGG;IACH,YA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C,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,6KAA6K;IACnL,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,YAAY;KACxB;IACD,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,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,YAAY;KACxB;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 { AccessPolicyAssignmentOperations } 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 { RedisEnterpriseManagementClient } from \"../redisEnterpriseManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n AccessPolicyAssignment,\n AccessPolicyAssignmentListNextOptionalParams,\n AccessPolicyAssignmentListOptionalParams,\n AccessPolicyAssignmentListResponse,\n AccessPolicyAssignmentCreateUpdateOptionalParams,\n AccessPolicyAssignmentCreateUpdateResponse,\n AccessPolicyAssignmentGetOptionalParams,\n AccessPolicyAssignmentGetResponse,\n AccessPolicyAssignmentDeleteOptionalParams,\n AccessPolicyAssignmentDeleteResponse,\n AccessPolicyAssignmentListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AccessPolicyAssignmentOperations operations. */\nexport class AccessPolicyAssignmentOperationsImpl\n implements AccessPolicyAssignmentOperations\n{\n private readonly client: RedisEnterpriseManagementClient;\n\n /**\n * Initialize a new instance of the class AccessPolicyAssignmentOperations class.\n * @param client Reference to the service client\n */\n constructor(client: RedisEnterpriseManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all access policy assignments..\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: AccessPolicyAssignmentListOptionalParams,\n ): PagedAsyncIterableIterator<AccessPolicyAssignment> {\n const iter = this.listPagingAll(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: AccessPolicyAssignmentListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AccessPolicyAssignment[]> {\n let result: AccessPolicyAssignmentListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n clusterName,\n databaseName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: AccessPolicyAssignmentListOptionalParams,\n ): AsyncIterableIterator<AccessPolicyAssignment> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates/Updates a particular access policy assignment for a database\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy\n * assignment.\n * @param parameters Parameters supplied to the create access policy assignment for database.\n * @param options The options parameters.\n */\n async beginCreateUpdate(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n accessPolicyAssignmentName: string,\n parameters: AccessPolicyAssignment,\n options?: AccessPolicyAssignmentCreateUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AccessPolicyAssignmentCreateUpdateResponse>,\n AccessPolicyAssignmentCreateUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AccessPolicyAssignmentCreateUpdateResponse> => {\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: {\n resourceGroupName,\n clusterName,\n databaseName,\n accessPolicyAssignmentName,\n parameters,\n options,\n },\n spec: createUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n AccessPolicyAssignmentCreateUpdateResponse,\n OperationState<AccessPolicyAssignmentCreateUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"original-uri\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates/Updates a particular access policy assignment for a database\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy\n * assignment.\n * @param parameters Parameters supplied to the create access policy assignment for database.\n * @param options The options parameters.\n */\n async beginCreateUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n accessPolicyAssignmentName: string,\n parameters: AccessPolicyAssignment,\n options?: AccessPolicyAssignmentCreateUpdateOptionalParams,\n ): Promise<AccessPolicyAssignmentCreateUpdateResponse> {\n const poller = await this.beginCreateUpdate(\n resourceGroupName,\n clusterName,\n databaseName,\n accessPolicyAssignmentName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets information about access policy assignment for database.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy\n * assignment.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n accessPolicyAssignmentName: string,\n options?: AccessPolicyAssignmentGetOptionalParams,\n ): Promise<AccessPolicyAssignmentGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n databaseName,\n accessPolicyAssignmentName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes a single access policy assignment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy\n * assignment.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n accessPolicyAssignmentName: string,\n options?: AccessPolicyAssignmentDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AccessPolicyAssignmentDeleteResponse>,\n AccessPolicyAssignmentDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AccessPolicyAssignmentDeleteResponse> => {\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: {\n resourceGroupName,\n clusterName,\n databaseName,\n accessPolicyAssignmentName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n AccessPolicyAssignmentDeleteResponse,\n OperationState<AccessPolicyAssignmentDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a single access policy assignment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy\n * assignment.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n accessPolicyAssignmentName: string,\n options?: AccessPolicyAssignmentDeleteOptionalParams,\n ): Promise<AccessPolicyAssignmentDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n databaseName,\n accessPolicyAssignmentName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets all access policy assignments..\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: AccessPolicyAssignmentListOptionalParams,\n ): Promise<AccessPolicyAssignmentListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, databaseName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\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 resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n nextLink: string,\n options?: AccessPolicyAssignmentListNextOptionalParams,\n ): Promise<AccessPolicyAssignmentListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, databaseName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessPolicyAssignment,\n },\n 201: {\n bodyMapper: Mappers.AccessPolicyAssignment,\n },\n 202: {\n bodyMapper: Mappers.AccessPolicyAssignment,\n },\n 204: {\n bodyMapper: Mappers.AccessPolicyAssignment,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.databaseName,\n Parameters.accessPolicyAssignmentName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessPolicyAssignment,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.databaseName,\n Parameters.accessPolicyAssignmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.AccessPolicyAssignmentDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.AccessPolicyAssignmentDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.AccessPolicyAssignmentDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.AccessPolicyAssignmentDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.databaseName,\n Parameters.accessPolicyAssignmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessPolicyAssignmentList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.databaseName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessPolicyAssignmentList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.databaseName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"accessPolicyAssignmentOperations.js","sourceRoot":"","sources":["../../../src/operations/accessPolicyAssignmentOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAe9C,4CAA4C;AAC5C,oEAAoE;AACpE,MAAa,oCAAoC;IAG9B,MAAM,CAAkC;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AAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,YAAY;KACxB;IACD,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,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,YAAY;KACxB;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 { AccessPolicyAssignmentOperations } 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 { RedisEnterpriseManagementClient } from \"../redisEnterpriseManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n AccessPolicyAssignment,\n AccessPolicyAssignmentListNextOptionalParams,\n AccessPolicyAssignmentListOptionalParams,\n AccessPolicyAssignmentListResponse,\n AccessPolicyAssignmentCreateUpdateOptionalParams,\n AccessPolicyAssignmentCreateUpdateResponse,\n AccessPolicyAssignmentGetOptionalParams,\n AccessPolicyAssignmentGetResponse,\n AccessPolicyAssignmentDeleteOptionalParams,\n AccessPolicyAssignmentDeleteResponse,\n AccessPolicyAssignmentListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AccessPolicyAssignmentOperations operations. */\nexport class AccessPolicyAssignmentOperationsImpl\n implements AccessPolicyAssignmentOperations\n{\n private readonly client: RedisEnterpriseManagementClient;\n\n /**\n * Initialize a new instance of the class AccessPolicyAssignmentOperations class.\n * @param client Reference to the service client\n */\n constructor(client: RedisEnterpriseManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all access policy assignments..\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: AccessPolicyAssignmentListOptionalParams,\n ): PagedAsyncIterableIterator<AccessPolicyAssignment> {\n const iter = this.listPagingAll(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: AccessPolicyAssignmentListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AccessPolicyAssignment[]> {\n let result: AccessPolicyAssignmentListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n clusterName,\n databaseName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: AccessPolicyAssignmentListOptionalParams,\n ): AsyncIterableIterator<AccessPolicyAssignment> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates/Updates a particular access policy assignment for a database\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy\n * assignment.\n * @param parameters Parameters supplied to the create access policy assignment for database.\n * @param options The options parameters.\n */\n async beginCreateUpdate(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n accessPolicyAssignmentName: string,\n parameters: AccessPolicyAssignment,\n options?: AccessPolicyAssignmentCreateUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AccessPolicyAssignmentCreateUpdateResponse>,\n AccessPolicyAssignmentCreateUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AccessPolicyAssignmentCreateUpdateResponse> => {\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: {\n resourceGroupName,\n clusterName,\n databaseName,\n accessPolicyAssignmentName,\n parameters,\n options,\n },\n spec: createUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n AccessPolicyAssignmentCreateUpdateResponse,\n OperationState<AccessPolicyAssignmentCreateUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"original-uri\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates/Updates a particular access policy assignment for a database\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy\n * assignment.\n * @param parameters Parameters supplied to the create access policy assignment for database.\n * @param options The options parameters.\n */\n async beginCreateUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n accessPolicyAssignmentName: string,\n parameters: AccessPolicyAssignment,\n options?: AccessPolicyAssignmentCreateUpdateOptionalParams,\n ): Promise<AccessPolicyAssignmentCreateUpdateResponse> {\n const poller = await this.beginCreateUpdate(\n resourceGroupName,\n clusterName,\n databaseName,\n accessPolicyAssignmentName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets information about access policy assignment for database.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy\n * assignment.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n accessPolicyAssignmentName: string,\n options?: AccessPolicyAssignmentGetOptionalParams,\n ): Promise<AccessPolicyAssignmentGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n databaseName,\n accessPolicyAssignmentName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes a single access policy assignment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy\n * assignment.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n accessPolicyAssignmentName: string,\n options?: AccessPolicyAssignmentDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AccessPolicyAssignmentDeleteResponse>,\n AccessPolicyAssignmentDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AccessPolicyAssignmentDeleteResponse> => {\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: {\n resourceGroupName,\n clusterName,\n databaseName,\n accessPolicyAssignmentName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n AccessPolicyAssignmentDeleteResponse,\n OperationState<AccessPolicyAssignmentDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a single access policy assignment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy\n * assignment.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n accessPolicyAssignmentName: string,\n options?: AccessPolicyAssignmentDeleteOptionalParams,\n ): Promise<AccessPolicyAssignmentDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n databaseName,\n accessPolicyAssignmentName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets all access policy assignments..\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: AccessPolicyAssignmentListOptionalParams,\n ): Promise<AccessPolicyAssignmentListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, databaseName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param databaseName The name of the Redis Enterprise database.\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 resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n nextLink: string,\n options?: AccessPolicyAssignmentListNextOptionalParams,\n ): Promise<AccessPolicyAssignmentListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, databaseName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessPolicyAssignment,\n },\n 201: {\n bodyMapper: Mappers.AccessPolicyAssignment,\n },\n 202: {\n bodyMapper: Mappers.AccessPolicyAssignment,\n },\n 204: {\n bodyMapper: Mappers.AccessPolicyAssignment,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.databaseName,\n Parameters.accessPolicyAssignmentName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessPolicyAssignment,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.databaseName,\n Parameters.accessPolicyAssignmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.AccessPolicyAssignmentDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.AccessPolicyAssignmentDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.AccessPolicyAssignmentDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.AccessPolicyAssignmentDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.databaseName,\n Parameters.accessPolicyAssignmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessPolicyAssignmentList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.databaseName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessPolicyAssignmentList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.databaseName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing Databases operations. */
20
20
  class DatabasesImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class Databases class.
23
24
  * @param client Reference to the service client
@@ -43,52 +44,35 @@ class DatabasesImpl {
43
44
  return this;
44
45
  },
45
46
  byPage: (settings) => {
46
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
47
+ if (settings?.maxPageSize) {
47
48
  throw new Error("maxPageSize is not supported by this operation.");
48
49
  }
49
50
  return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
50
51
  },
51
52
  };
52
53
  }
53
- listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
54
- return tslib_1.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
55
- let result;
56
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
57
- if (!continuationToken) {
58
- result = yield tslib_1.__await(this._listByCluster(resourceGroupName, clusterName, options));
59
- let page = result.value || [];
60
- continuationToken = result.nextLink;
61
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
62
- yield yield tslib_1.__await(page);
63
- }
64
- while (continuationToken) {
65
- result = yield tslib_1.__await(this._listByClusterNext(resourceGroupName, clusterName, continuationToken, options));
66
- continuationToken = result.nextLink;
67
- let page = result.value || [];
68
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
69
- yield yield tslib_1.__await(page);
70
- }
71
- });
54
+ async *listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
55
+ let result;
56
+ let continuationToken = settings?.continuationToken;
57
+ if (!continuationToken) {
58
+ result = await this._listByCluster(resourceGroupName, clusterName, options);
59
+ let page = result.value || [];
60
+ continuationToken = result.nextLink;
61
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
62
+ yield page;
63
+ }
64
+ while (continuationToken) {
65
+ result = await this._listByClusterNext(resourceGroupName, clusterName, continuationToken, options);
66
+ continuationToken = result.nextLink;
67
+ let page = result.value || [];
68
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
69
+ yield page;
70
+ }
72
71
  }
73
- listByClusterPagingAll(resourceGroupName, clusterName, options) {
74
- return tslib_1.__asyncGenerator(this, arguments, function* listByClusterPagingAll_1() {
75
- var _a, e_1, _b, _c;
76
- try {
77
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
78
- _c = _f.value;
79
- _d = false;
80
- const page = _c;
81
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
82
- }
83
- }
84
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
85
- finally {
86
- try {
87
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
88
- }
89
- finally { if (e_1) throw e_1.error; }
90
- }
91
- });
72
+ async *listByClusterPagingAll(resourceGroupName, clusterName, options) {
73
+ for await (const page of this.listByClusterPagingPage(resourceGroupName, clusterName, options)) {
74
+ yield* page;
75
+ }
92
76
  }
93
77
  /**
94
78
  * Gets all databases in the specified Redis Enterprise cluster.
@@ -116,14 +100,19 @@ class DatabasesImpl {
116
100
  return this.client.sendOperationRequest(args, spec);
117
101
  };
118
102
  const sendOperationFn = async (args, spec) => {
119
- var _a;
120
103
  let currentRawResponse = undefined;
121
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
104
+ const providedCallback = args.options?.onResponse;
122
105
  const callback = (rawResponse, flatResponse) => {
123
106
  currentRawResponse = rawResponse;
124
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
107
+ providedCallback?.(rawResponse, flatResponse);
108
+ };
109
+ const updatedArgs = {
110
+ ...args,
111
+ options: {
112
+ ...args.options,
113
+ onResponse: callback,
114
+ },
125
115
  };
126
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
127
116
  const flatResponse = await directSendOperation(updatedArgs, spec);
128
117
  return {
129
118
  flatResponse,
@@ -146,8 +135,8 @@ class DatabasesImpl {
146
135
  spec: createOperationSpec,
147
136
  });
148
137
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
149
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
150
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
138
+ restoreFrom: options?.resumeFrom,
139
+ intervalInMs: options?.updateIntervalInMs,
151
140
  resourceLocationConfig: "original-uri",
152
141
  });
153
142
  await poller.poll();
@@ -182,14 +171,19 @@ class DatabasesImpl {
182
171
  return this.client.sendOperationRequest(args, spec);
183
172
  };
184
173
  const sendOperationFn = async (args, spec) => {
185
- var _a;
186
174
  let currentRawResponse = undefined;
187
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
175
+ const providedCallback = args.options?.onResponse;
188
176
  const callback = (rawResponse, flatResponse) => {
189
177
  currentRawResponse = rawResponse;
190
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
178
+ providedCallback?.(rawResponse, flatResponse);
179
+ };
180
+ const updatedArgs = {
181
+ ...args,
182
+ options: {
183
+ ...args.options,
184
+ onResponse: callback,
185
+ },
191
186
  };
192
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
193
187
  const flatResponse = await directSendOperation(updatedArgs, spec);
194
188
  return {
195
189
  flatResponse,
@@ -212,8 +206,8 @@ class DatabasesImpl {
212
206
  spec: updateOperationSpec,
213
207
  });
214
208
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
215
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
216
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
209
+ restoreFrom: options?.resumeFrom,
210
+ intervalInMs: options?.updateIntervalInMs,
217
211
  resourceLocationConfig: "azure-async-operation",
218
212
  });
219
213
  await poller.poll();
@@ -259,14 +253,19 @@ class DatabasesImpl {
259
253
  return this.client.sendOperationRequest(args, spec);
260
254
  };
261
255
  const sendOperationFn = async (args, spec) => {
262
- var _a;
263
256
  let currentRawResponse = undefined;
264
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
257
+ const providedCallback = args.options?.onResponse;
265
258
  const callback = (rawResponse, flatResponse) => {
266
259
  currentRawResponse = rawResponse;
267
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
260
+ providedCallback?.(rawResponse, flatResponse);
261
+ };
262
+ const updatedArgs = {
263
+ ...args,
264
+ options: {
265
+ ...args.options,
266
+ onResponse: callback,
267
+ },
268
268
  };
269
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
270
269
  const flatResponse = await directSendOperation(updatedArgs, spec);
271
270
  return {
272
271
  flatResponse,
@@ -283,8 +282,8 @@ class DatabasesImpl {
283
282
  spec: deleteOperationSpec,
284
283
  });
285
284
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
286
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
287
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
285
+ restoreFrom: options?.resumeFrom,
286
+ intervalInMs: options?.updateIntervalInMs,
288
287
  resourceLocationConfig: "azure-async-operation",
289
288
  });
290
289
  await poller.poll();
@@ -330,14 +329,19 @@ class DatabasesImpl {
330
329
  return this.client.sendOperationRequest(args, spec);
331
330
  };
332
331
  const sendOperationFn = async (args, spec) => {
333
- var _a;
334
332
  let currentRawResponse = undefined;
335
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
333
+ const providedCallback = args.options?.onResponse;
336
334
  const callback = (rawResponse, flatResponse) => {
337
335
  currentRawResponse = rawResponse;
338
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
336
+ providedCallback?.(rawResponse, flatResponse);
337
+ };
338
+ const updatedArgs = {
339
+ ...args,
340
+ options: {
341
+ ...args.options,
342
+ onResponse: callback,
343
+ },
339
344
  };
340
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
341
345
  const flatResponse = await directSendOperation(updatedArgs, spec);
342
346
  return {
343
347
  flatResponse,
@@ -360,8 +364,8 @@ class DatabasesImpl {
360
364
  spec: regenerateKeyOperationSpec,
361
365
  });
362
366
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
363
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
364
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
367
+ restoreFrom: options?.resumeFrom,
368
+ intervalInMs: options?.updateIntervalInMs,
365
369
  resourceLocationConfig: "azure-async-operation",
366
370
  });
367
371
  await poller.poll();
@@ -396,14 +400,19 @@ class DatabasesImpl {
396
400
  return this.client.sendOperationRequest(args, spec);
397
401
  };
398
402
  const sendOperationFn = async (args, spec) => {
399
- var _a;
400
403
  let currentRawResponse = undefined;
401
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
404
+ const providedCallback = args.options?.onResponse;
402
405
  const callback = (rawResponse, flatResponse) => {
403
406
  currentRawResponse = rawResponse;
404
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
407
+ providedCallback?.(rawResponse, flatResponse);
408
+ };
409
+ const updatedArgs = {
410
+ ...args,
411
+ options: {
412
+ ...args.options,
413
+ onResponse: callback,
414
+ },
405
415
  };
406
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
407
416
  const flatResponse = await directSendOperation(updatedArgs, spec);
408
417
  return {
409
418
  flatResponse,
@@ -426,8 +435,8 @@ class DatabasesImpl {
426
435
  spec: importOperationSpec,
427
436
  });
428
437
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
429
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
430
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
438
+ restoreFrom: options?.resumeFrom,
439
+ intervalInMs: options?.updateIntervalInMs,
431
440
  resourceLocationConfig: "azure-async-operation",
432
441
  });
433
442
  await poller.poll();
@@ -462,14 +471,19 @@ class DatabasesImpl {
462
471
  return this.client.sendOperationRequest(args, spec);
463
472
  };
464
473
  const sendOperationFn = async (args, spec) => {
465
- var _a;
466
474
  let currentRawResponse = undefined;
467
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
475
+ const providedCallback = args.options?.onResponse;
468
476
  const callback = (rawResponse, flatResponse) => {
469
477
  currentRawResponse = rawResponse;
470
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
478
+ providedCallback?.(rawResponse, flatResponse);
479
+ };
480
+ const updatedArgs = {
481
+ ...args,
482
+ options: {
483
+ ...args.options,
484
+ onResponse: callback,
485
+ },
471
486
  };
472
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
473
487
  const flatResponse = await directSendOperation(updatedArgs, spec);
474
488
  return {
475
489
  flatResponse,
@@ -492,8 +506,8 @@ class DatabasesImpl {
492
506
  spec: exportOperationSpec,
493
507
  });
494
508
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
495
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
496
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
509
+ restoreFrom: options?.resumeFrom,
510
+ intervalInMs: options?.updateIntervalInMs,
497
511
  resourceLocationConfig: "azure-async-operation",
498
512
  });
499
513
  await poller.poll();
@@ -528,14 +542,19 @@ class DatabasesImpl {
528
542
  return this.client.sendOperationRequest(args, spec);
529
543
  };
530
544
  const sendOperationFn = async (args, spec) => {
531
- var _a;
532
545
  let currentRawResponse = undefined;
533
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
546
+ const providedCallback = args.options?.onResponse;
534
547
  const callback = (rawResponse, flatResponse) => {
535
548
  currentRawResponse = rawResponse;
536
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
549
+ providedCallback?.(rawResponse, flatResponse);
550
+ };
551
+ const updatedArgs = {
552
+ ...args,
553
+ options: {
554
+ ...args.options,
555
+ onResponse: callback,
556
+ },
537
557
  };
538
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
539
558
  const flatResponse = await directSendOperation(updatedArgs, spec);
540
559
  return {
541
560
  flatResponse,
@@ -558,8 +577,8 @@ class DatabasesImpl {
558
577
  spec: forceUnlinkOperationSpec,
559
578
  });
560
579
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
561
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
562
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
580
+ restoreFrom: options?.resumeFrom,
581
+ intervalInMs: options?.updateIntervalInMs,
563
582
  resourceLocationConfig: "azure-async-operation",
564
583
  });
565
584
  await poller.poll();
@@ -596,14 +615,19 @@ class DatabasesImpl {
596
615
  return this.client.sendOperationRequest(args, spec);
597
616
  };
598
617
  const sendOperationFn = async (args, spec) => {
599
- var _a;
600
618
  let currentRawResponse = undefined;
601
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
619
+ const providedCallback = args.options?.onResponse;
602
620
  const callback = (rawResponse, flatResponse) => {
603
621
  currentRawResponse = rawResponse;
604
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
622
+ providedCallback?.(rawResponse, flatResponse);
623
+ };
624
+ const updatedArgs = {
625
+ ...args,
626
+ options: {
627
+ ...args.options,
628
+ onResponse: callback,
629
+ },
605
630
  };
606
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
607
631
  const flatResponse = await directSendOperation(updatedArgs, spec);
608
632
  return {
609
633
  flatResponse,
@@ -626,8 +650,8 @@ class DatabasesImpl {
626
650
  spec: forceLinkToReplicationGroupOperationSpec,
627
651
  });
628
652
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
629
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
630
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
653
+ restoreFrom: options?.resumeFrom,
654
+ intervalInMs: options?.updateIntervalInMs,
631
655
  resourceLocationConfig: "azure-async-operation",
632
656
  });
633
657
  await poller.poll();
@@ -663,14 +687,19 @@ class DatabasesImpl {
663
687
  return this.client.sendOperationRequest(args, spec);
664
688
  };
665
689
  const sendOperationFn = async (args, spec) => {
666
- var _a;
667
690
  let currentRawResponse = undefined;
668
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
691
+ const providedCallback = args.options?.onResponse;
669
692
  const callback = (rawResponse, flatResponse) => {
670
693
  currentRawResponse = rawResponse;
671
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
694
+ providedCallback?.(rawResponse, flatResponse);
695
+ };
696
+ const updatedArgs = {
697
+ ...args,
698
+ options: {
699
+ ...args.options,
700
+ onResponse: callback,
701
+ },
672
702
  };
673
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
674
703
  const flatResponse = await directSendOperation(updatedArgs, spec);
675
704
  return {
676
705
  flatResponse,
@@ -687,8 +716,8 @@ class DatabasesImpl {
687
716
  spec: flushOperationSpec,
688
717
  });
689
718
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
690
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
691
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
719
+ restoreFrom: options?.resumeFrom,
720
+ intervalInMs: options?.updateIntervalInMs,
692
721
  resourceLocationConfig: "location",
693
722
  });
694
723
  await poller.poll();
@@ -721,14 +750,19 @@ class DatabasesImpl {
721
750
  return this.client.sendOperationRequest(args, spec);
722
751
  };
723
752
  const sendOperationFn = async (args, spec) => {
724
- var _a;
725
753
  let currentRawResponse = undefined;
726
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
754
+ const providedCallback = args.options?.onResponse;
727
755
  const callback = (rawResponse, flatResponse) => {
728
756
  currentRawResponse = rawResponse;
729
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
757
+ providedCallback?.(rawResponse, flatResponse);
758
+ };
759
+ const updatedArgs = {
760
+ ...args,
761
+ options: {
762
+ ...args.options,
763
+ onResponse: callback,
764
+ },
730
765
  };
731
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
732
766
  const flatResponse = await directSendOperation(updatedArgs, spec);
733
767
  return {
734
768
  flatResponse,
@@ -745,8 +779,8 @@ class DatabasesImpl {
745
779
  spec: upgradeDBRedisVersionOperationSpec,
746
780
  });
747
781
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
748
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
749
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
782
+ restoreFrom: options?.resumeFrom,
783
+ intervalInMs: options?.updateIntervalInMs,
750
784
  resourceLocationConfig: "location",
751
785
  });
752
786
  await poller.poll();