@azure/arm-redisenterprisecache 4.0.0-alpha.20250619.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,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU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ACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,0BAA0B;KACtC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,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,OAAO,EAAE,oBAA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AAU,CAAC,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"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing Databases operations. */
17
16
  export class DatabasesImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class Databases class.
20
20
  * @param client Reference to the service client
@@ -40,52 +40,35 @@ export class DatabasesImpl {
40
40
  return this;
41
41
  },
42
42
  byPage: (settings) => {
43
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
+ if (settings?.maxPageSize) {
44
44
  throw new Error("maxPageSize is not supported by this operation.");
45
45
  }
46
46
  return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
47
47
  },
48
48
  };
49
49
  }
50
- listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
51
- return __asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
52
- let result;
53
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
54
- if (!continuationToken) {
55
- result = yield __await(this._listByCluster(resourceGroupName, clusterName, options));
56
- let page = result.value || [];
57
- continuationToken = result.nextLink;
58
- setContinuationToken(page, continuationToken);
59
- yield yield __await(page);
60
- }
61
- while (continuationToken) {
62
- result = yield __await(this._listByClusterNext(resourceGroupName, clusterName, continuationToken, options));
63
- continuationToken = result.nextLink;
64
- let page = result.value || [];
65
- setContinuationToken(page, continuationToken);
66
- yield yield __await(page);
67
- }
68
- });
50
+ async *listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
51
+ let result;
52
+ let continuationToken = settings?.continuationToken;
53
+ if (!continuationToken) {
54
+ result = await this._listByCluster(resourceGroupName, clusterName, options);
55
+ let page = result.value || [];
56
+ continuationToken = result.nextLink;
57
+ setContinuationToken(page, continuationToken);
58
+ yield page;
59
+ }
60
+ while (continuationToken) {
61
+ result = await this._listByClusterNext(resourceGroupName, clusterName, continuationToken, options);
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ setContinuationToken(page, continuationToken);
65
+ yield page;
66
+ }
69
67
  }
70
- listByClusterPagingAll(resourceGroupName, clusterName, options) {
71
- return __asyncGenerator(this, arguments, function* listByClusterPagingAll_1() {
72
- var _a, e_1, _b, _c;
73
- try {
74
- for (var _d = true, _e = __asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
75
- _c = _f.value;
76
- _d = false;
77
- const page = _c;
78
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
79
- }
80
- }
81
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
82
- finally {
83
- try {
84
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
85
- }
86
- finally { if (e_1) throw e_1.error; }
87
- }
88
- });
68
+ async *listByClusterPagingAll(resourceGroupName, clusterName, options) {
69
+ for await (const page of this.listByClusterPagingPage(resourceGroupName, clusterName, options)) {
70
+ yield* page;
71
+ }
89
72
  }
90
73
  /**
91
74
  * Gets all databases in the specified Redis Enterprise cluster.
@@ -113,14 +96,19 @@ export class DatabasesImpl {
113
96
  return this.client.sendOperationRequest(args, spec);
114
97
  };
115
98
  const sendOperationFn = async (args, spec) => {
116
- var _a;
117
99
  let currentRawResponse = undefined;
118
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
100
+ const providedCallback = args.options?.onResponse;
119
101
  const callback = (rawResponse, flatResponse) => {
120
102
  currentRawResponse = rawResponse;
121
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
103
+ providedCallback?.(rawResponse, flatResponse);
104
+ };
105
+ const updatedArgs = {
106
+ ...args,
107
+ options: {
108
+ ...args.options,
109
+ onResponse: callback,
110
+ },
122
111
  };
123
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
124
112
  const flatResponse = await directSendOperation(updatedArgs, spec);
125
113
  return {
126
114
  flatResponse,
@@ -143,8 +131,8 @@ export class DatabasesImpl {
143
131
  spec: createOperationSpec,
144
132
  });
145
133
  const poller = await createHttpPoller(lro, {
146
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
147
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
134
+ restoreFrom: options?.resumeFrom,
135
+ intervalInMs: options?.updateIntervalInMs,
148
136
  resourceLocationConfig: "original-uri",
149
137
  });
150
138
  await poller.poll();
@@ -179,14 +167,19 @@ export class DatabasesImpl {
179
167
  return this.client.sendOperationRequest(args, spec);
180
168
  };
181
169
  const sendOperationFn = async (args, spec) => {
182
- var _a;
183
170
  let currentRawResponse = undefined;
184
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
171
+ const providedCallback = args.options?.onResponse;
185
172
  const callback = (rawResponse, flatResponse) => {
186
173
  currentRawResponse = rawResponse;
187
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
174
+ providedCallback?.(rawResponse, flatResponse);
175
+ };
176
+ const updatedArgs = {
177
+ ...args,
178
+ options: {
179
+ ...args.options,
180
+ onResponse: callback,
181
+ },
188
182
  };
189
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
190
183
  const flatResponse = await directSendOperation(updatedArgs, spec);
191
184
  return {
192
185
  flatResponse,
@@ -209,8 +202,8 @@ export class DatabasesImpl {
209
202
  spec: updateOperationSpec,
210
203
  });
211
204
  const poller = await createHttpPoller(lro, {
212
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
213
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
205
+ restoreFrom: options?.resumeFrom,
206
+ intervalInMs: options?.updateIntervalInMs,
214
207
  resourceLocationConfig: "azure-async-operation",
215
208
  });
216
209
  await poller.poll();
@@ -256,14 +249,19 @@ export class DatabasesImpl {
256
249
  return this.client.sendOperationRequest(args, spec);
257
250
  };
258
251
  const sendOperationFn = async (args, spec) => {
259
- var _a;
260
252
  let currentRawResponse = undefined;
261
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
253
+ const providedCallback = args.options?.onResponse;
262
254
  const callback = (rawResponse, flatResponse) => {
263
255
  currentRawResponse = rawResponse;
264
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
256
+ providedCallback?.(rawResponse, flatResponse);
257
+ };
258
+ const updatedArgs = {
259
+ ...args,
260
+ options: {
261
+ ...args.options,
262
+ onResponse: callback,
263
+ },
265
264
  };
266
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
267
265
  const flatResponse = await directSendOperation(updatedArgs, spec);
268
266
  return {
269
267
  flatResponse,
@@ -280,8 +278,8 @@ export class DatabasesImpl {
280
278
  spec: deleteOperationSpec,
281
279
  });
282
280
  const poller = await createHttpPoller(lro, {
283
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
284
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
281
+ restoreFrom: options?.resumeFrom,
282
+ intervalInMs: options?.updateIntervalInMs,
285
283
  resourceLocationConfig: "azure-async-operation",
286
284
  });
287
285
  await poller.poll();
@@ -327,14 +325,19 @@ export class DatabasesImpl {
327
325
  return this.client.sendOperationRequest(args, spec);
328
326
  };
329
327
  const sendOperationFn = async (args, spec) => {
330
- var _a;
331
328
  let currentRawResponse = undefined;
332
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
329
+ const providedCallback = args.options?.onResponse;
333
330
  const callback = (rawResponse, flatResponse) => {
334
331
  currentRawResponse = rawResponse;
335
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
332
+ providedCallback?.(rawResponse, flatResponse);
333
+ };
334
+ const updatedArgs = {
335
+ ...args,
336
+ options: {
337
+ ...args.options,
338
+ onResponse: callback,
339
+ },
336
340
  };
337
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
338
341
  const flatResponse = await directSendOperation(updatedArgs, spec);
339
342
  return {
340
343
  flatResponse,
@@ -357,8 +360,8 @@ export class DatabasesImpl {
357
360
  spec: regenerateKeyOperationSpec,
358
361
  });
359
362
  const poller = await createHttpPoller(lro, {
360
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
361
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
363
+ restoreFrom: options?.resumeFrom,
364
+ intervalInMs: options?.updateIntervalInMs,
362
365
  resourceLocationConfig: "azure-async-operation",
363
366
  });
364
367
  await poller.poll();
@@ -393,14 +396,19 @@ export class DatabasesImpl {
393
396
  return this.client.sendOperationRequest(args, spec);
394
397
  };
395
398
  const sendOperationFn = async (args, spec) => {
396
- var _a;
397
399
  let currentRawResponse = undefined;
398
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
400
+ const providedCallback = args.options?.onResponse;
399
401
  const callback = (rawResponse, flatResponse) => {
400
402
  currentRawResponse = rawResponse;
401
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
403
+ providedCallback?.(rawResponse, flatResponse);
404
+ };
405
+ const updatedArgs = {
406
+ ...args,
407
+ options: {
408
+ ...args.options,
409
+ onResponse: callback,
410
+ },
402
411
  };
403
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
404
412
  const flatResponse = await directSendOperation(updatedArgs, spec);
405
413
  return {
406
414
  flatResponse,
@@ -423,8 +431,8 @@ export class DatabasesImpl {
423
431
  spec: importOperationSpec,
424
432
  });
425
433
  const poller = await createHttpPoller(lro, {
426
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
427
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
434
+ restoreFrom: options?.resumeFrom,
435
+ intervalInMs: options?.updateIntervalInMs,
428
436
  resourceLocationConfig: "azure-async-operation",
429
437
  });
430
438
  await poller.poll();
@@ -459,14 +467,19 @@ export class DatabasesImpl {
459
467
  return this.client.sendOperationRequest(args, spec);
460
468
  };
461
469
  const sendOperationFn = async (args, spec) => {
462
- var _a;
463
470
  let currentRawResponse = undefined;
464
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
471
+ const providedCallback = args.options?.onResponse;
465
472
  const callback = (rawResponse, flatResponse) => {
466
473
  currentRawResponse = rawResponse;
467
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
474
+ providedCallback?.(rawResponse, flatResponse);
475
+ };
476
+ const updatedArgs = {
477
+ ...args,
478
+ options: {
479
+ ...args.options,
480
+ onResponse: callback,
481
+ },
468
482
  };
469
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
470
483
  const flatResponse = await directSendOperation(updatedArgs, spec);
471
484
  return {
472
485
  flatResponse,
@@ -489,8 +502,8 @@ export class DatabasesImpl {
489
502
  spec: exportOperationSpec,
490
503
  });
491
504
  const poller = await createHttpPoller(lro, {
492
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
493
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
505
+ restoreFrom: options?.resumeFrom,
506
+ intervalInMs: options?.updateIntervalInMs,
494
507
  resourceLocationConfig: "azure-async-operation",
495
508
  });
496
509
  await poller.poll();
@@ -525,14 +538,19 @@ export class DatabasesImpl {
525
538
  return this.client.sendOperationRequest(args, spec);
526
539
  };
527
540
  const sendOperationFn = async (args, spec) => {
528
- var _a;
529
541
  let currentRawResponse = undefined;
530
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
542
+ const providedCallback = args.options?.onResponse;
531
543
  const callback = (rawResponse, flatResponse) => {
532
544
  currentRawResponse = rawResponse;
533
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
545
+ providedCallback?.(rawResponse, flatResponse);
546
+ };
547
+ const updatedArgs = {
548
+ ...args,
549
+ options: {
550
+ ...args.options,
551
+ onResponse: callback,
552
+ },
534
553
  };
535
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
536
554
  const flatResponse = await directSendOperation(updatedArgs, spec);
537
555
  return {
538
556
  flatResponse,
@@ -555,8 +573,8 @@ export class DatabasesImpl {
555
573
  spec: forceUnlinkOperationSpec,
556
574
  });
557
575
  const poller = await createHttpPoller(lro, {
558
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
559
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
576
+ restoreFrom: options?.resumeFrom,
577
+ intervalInMs: options?.updateIntervalInMs,
560
578
  resourceLocationConfig: "azure-async-operation",
561
579
  });
562
580
  await poller.poll();
@@ -593,14 +611,19 @@ export class DatabasesImpl {
593
611
  return this.client.sendOperationRequest(args, spec);
594
612
  };
595
613
  const sendOperationFn = async (args, spec) => {
596
- var _a;
597
614
  let currentRawResponse = undefined;
598
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
615
+ const providedCallback = args.options?.onResponse;
599
616
  const callback = (rawResponse, flatResponse) => {
600
617
  currentRawResponse = rawResponse;
601
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
618
+ providedCallback?.(rawResponse, flatResponse);
619
+ };
620
+ const updatedArgs = {
621
+ ...args,
622
+ options: {
623
+ ...args.options,
624
+ onResponse: callback,
625
+ },
602
626
  };
603
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
604
627
  const flatResponse = await directSendOperation(updatedArgs, spec);
605
628
  return {
606
629
  flatResponse,
@@ -623,8 +646,8 @@ export class DatabasesImpl {
623
646
  spec: forceLinkToReplicationGroupOperationSpec,
624
647
  });
625
648
  const poller = await createHttpPoller(lro, {
626
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
627
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
649
+ restoreFrom: options?.resumeFrom,
650
+ intervalInMs: options?.updateIntervalInMs,
628
651
  resourceLocationConfig: "azure-async-operation",
629
652
  });
630
653
  await poller.poll();
@@ -660,14 +683,19 @@ export class DatabasesImpl {
660
683
  return this.client.sendOperationRequest(args, spec);
661
684
  };
662
685
  const sendOperationFn = async (args, spec) => {
663
- var _a;
664
686
  let currentRawResponse = undefined;
665
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
687
+ const providedCallback = args.options?.onResponse;
666
688
  const callback = (rawResponse, flatResponse) => {
667
689
  currentRawResponse = rawResponse;
668
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
690
+ providedCallback?.(rawResponse, flatResponse);
691
+ };
692
+ const updatedArgs = {
693
+ ...args,
694
+ options: {
695
+ ...args.options,
696
+ onResponse: callback,
697
+ },
669
698
  };
670
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
671
699
  const flatResponse = await directSendOperation(updatedArgs, spec);
672
700
  return {
673
701
  flatResponse,
@@ -684,8 +712,8 @@ export class DatabasesImpl {
684
712
  spec: flushOperationSpec,
685
713
  });
686
714
  const poller = await createHttpPoller(lro, {
687
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
688
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
715
+ restoreFrom: options?.resumeFrom,
716
+ intervalInMs: options?.updateIntervalInMs,
689
717
  resourceLocationConfig: "location",
690
718
  });
691
719
  await poller.poll();
@@ -718,14 +746,19 @@ export class DatabasesImpl {
718
746
  return this.client.sendOperationRequest(args, spec);
719
747
  };
720
748
  const sendOperationFn = async (args, spec) => {
721
- var _a;
722
749
  let currentRawResponse = undefined;
723
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
750
+ const providedCallback = args.options?.onResponse;
724
751
  const callback = (rawResponse, flatResponse) => {
725
752
  currentRawResponse = rawResponse;
726
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
753
+ providedCallback?.(rawResponse, flatResponse);
754
+ };
755
+ const updatedArgs = {
756
+ ...args,
757
+ options: {
758
+ ...args.options,
759
+ onResponse: callback,
760
+ },
727
761
  };
728
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
729
762
  const flatResponse = await directSendOperation(updatedArgs, spec);
730
763
  return {
731
764
  flatResponse,
@@ -742,8 +775,8 @@ export class DatabasesImpl {
742
775
  spec: upgradeDBRedisVersionOperationSpec,
743
776
  });
744
777
  const poller = await createHttpPoller(lro, {
745
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
746
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
778
+ restoreFrom: options?.resumeFrom,
779
+ intervalInMs: options?.updateIntervalInMs,
747
780
  resourceLocationConfig: "location",
748
781
  });
749
782
  await poller.poll();