@azure/arm-redisenterprisecache 5.0.0-beta.1 → 5.0.0-beta.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.
- package/dist/browser/api/accessPolicyAssignment/operations.d.ts +6 -6
- package/dist/browser/api/accessPolicyAssignment/operations.js +14 -6
- package/dist/browser/api/accessPolicyAssignment/operations.js.map +1 -1
- package/dist/browser/api/accessPolicyAssignment/options.d.ts +1 -1
- package/dist/browser/api/accessPolicyAssignment/options.js.map +1 -1
- package/dist/browser/api/databases/operations.d.ts +6 -6
- package/dist/browser/api/databases/operations.js +41 -15
- package/dist/browser/api/databases/operations.js.map +1 -1
- package/dist/browser/api/databases/options.d.ts +2 -2
- package/dist/browser/api/databases/options.js.map +1 -1
- package/dist/browser/api/migration/operations.d.ts +6 -6
- package/dist/browser/api/migration/operations.js +14 -6
- package/dist/browser/api/migration/operations.js.map +1 -1
- package/dist/browser/api/migration/options.d.ts +1 -1
- package/dist/browser/api/migration/options.js.map +1 -1
- package/dist/browser/api/migrations/operations.d.ts +4 -4
- package/dist/browser/api/migrations/operations.js +4 -2
- package/dist/browser/api/migrations/operations.js.map +1 -1
- package/dist/browser/api/migrations/options.d.ts +1 -1
- package/dist/browser/api/migrations/options.js.map +1 -1
- package/dist/browser/api/operations/operations.d.ts +5 -5
- package/dist/browser/api/operations/operations.js +5 -3
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/operations/options.d.ts +1 -1
- package/dist/browser/api/operations/options.js.map +1 -1
- package/dist/browser/api/operationsStatus/operations.d.ts +4 -4
- package/dist/browser/api/operationsStatus/operations.js +5 -3
- package/dist/browser/api/operationsStatus/operations.js.map +1 -1
- package/dist/browser/api/operationsStatus/options.d.ts +1 -1
- package/dist/browser/api/operationsStatus/options.js.map +1 -1
- package/dist/browser/api/privateEndpointConnections/operations.d.ts +6 -6
- package/dist/browser/api/privateEndpointConnections/operations.js +14 -6
- package/dist/browser/api/privateEndpointConnections/operations.js.map +1 -1
- package/dist/browser/api/privateEndpointConnections/options.d.ts +1 -1
- package/dist/browser/api/privateEndpointConnections/options.js.map +1 -1
- package/dist/browser/api/privateLinkResources/operations.d.ts +5 -5
- package/dist/browser/api/privateLinkResources/operations.js +5 -3
- package/dist/browser/api/privateLinkResources/operations.js.map +1 -1
- package/dist/browser/api/privateLinkResources/options.d.ts +1 -1
- package/dist/browser/api/privateLinkResources/options.js.map +1 -1
- package/dist/browser/api/redisEnterprise/operations.d.ts +6 -6
- package/dist/browser/api/redisEnterprise/operations.js +23 -9
- package/dist/browser/api/redisEnterprise/operations.js.map +1 -1
- package/dist/browser/api/redisEnterprise/options.d.ts +1 -1
- package/dist/browser/api/redisEnterprise/options.js.map +1 -1
- package/dist/browser/api/redisEnterpriseManagementContext.d.ts +3 -3
- package/dist/browser/api/redisEnterpriseManagementContext.js +1 -1
- package/dist/browser/api/redisEnterpriseManagementContext.js.map +1 -1
- package/dist/browser/classic/accessPolicyAssignment/index.d.ts +6 -6
- package/dist/browser/classic/accessPolicyAssignment/index.js.map +1 -1
- package/dist/browser/classic/databases/index.d.ts +6 -6
- package/dist/browser/classic/databases/index.js.map +1 -1
- package/dist/browser/classic/migration/index.d.ts +6 -6
- package/dist/browser/classic/migration/index.js.map +1 -1
- package/dist/browser/classic/migrations/index.d.ts +3 -3
- package/dist/browser/classic/migrations/index.js.map +1 -1
- package/dist/browser/classic/operations/index.d.ts +4 -4
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/classic/operationsStatus/index.d.ts +3 -3
- package/dist/browser/classic/operationsStatus/index.js.map +1 -1
- package/dist/browser/classic/privateEndpointConnections/index.d.ts +6 -6
- package/dist/browser/classic/privateEndpointConnections/index.js.map +1 -1
- package/dist/browser/classic/privateLinkResources/index.d.ts +4 -4
- package/dist/browser/classic/privateLinkResources/index.js.map +1 -1
- package/dist/browser/classic/redisEnterprise/index.d.ts +6 -6
- package/dist/browser/classic/redisEnterprise/index.js.map +1 -1
- package/dist/browser/index.d.ts +3 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/redisEnterpriseManagementClient.d.ts +12 -12
- package/dist/browser/redisEnterpriseManagementClient.js +6 -6
- package/dist/browser/redisEnterpriseManagementClient.js.map +1 -1
- package/dist/browser/restorePollerHelpers.d.ts +4 -4
- package/dist/browser/restorePollerHelpers.js +1 -1
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.d.ts +1 -1
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts +3 -3
- package/dist/browser/static-helpers/pollingHelpers.js +1 -1
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/simplePollerHelpers.d.ts +2 -2
- package/dist/browser/static-helpers/simplePollerHelpers.js.map +1 -1
- package/dist/commonjs/api/accessPolicyAssignment/operations.d.ts +6 -6
- package/dist/commonjs/api/accessPolicyAssignment/operations.js +12 -4
- package/dist/commonjs/api/accessPolicyAssignment/operations.js.map +2 -2
- package/dist/commonjs/api/accessPolicyAssignment/options.d.ts +1 -1
- package/dist/commonjs/api/accessPolicyAssignment/options.js.map +1 -1
- package/dist/commonjs/api/databases/operations.d.ts +6 -6
- package/dist/commonjs/api/databases/operations.js +39 -13
- package/dist/commonjs/api/databases/operations.js.map +2 -2
- package/dist/commonjs/api/databases/options.d.ts +2 -2
- package/dist/commonjs/api/databases/options.js.map +1 -1
- package/dist/commonjs/api/migration/operations.d.ts +6 -6
- package/dist/commonjs/api/migration/operations.js +12 -4
- package/dist/commonjs/api/migration/operations.js.map +2 -2
- package/dist/commonjs/api/migration/options.d.ts +1 -1
- package/dist/commonjs/api/migration/options.js.map +1 -1
- package/dist/commonjs/api/migrations/operations.d.ts +4 -4
- package/dist/commonjs/api/migrations/operations.js +3 -1
- package/dist/commonjs/api/migrations/operations.js.map +2 -2
- package/dist/commonjs/api/migrations/options.d.ts +1 -1
- package/dist/commonjs/api/migrations/options.js.map +1 -1
- package/dist/commonjs/api/operations/operations.d.ts +5 -5
- package/dist/commonjs/api/operations/operations.js +3 -1
- package/dist/commonjs/api/operations/operations.js.map +2 -2
- package/dist/commonjs/api/operations/options.d.ts +1 -1
- package/dist/commonjs/api/operations/options.js.map +1 -1
- package/dist/commonjs/api/operationsStatus/operations.d.ts +4 -4
- package/dist/commonjs/api/operationsStatus/operations.js +3 -1
- package/dist/commonjs/api/operationsStatus/operations.js.map +2 -2
- package/dist/commonjs/api/operationsStatus/options.d.ts +1 -1
- package/dist/commonjs/api/operationsStatus/options.js.map +1 -1
- package/dist/commonjs/api/privateEndpointConnections/operations.d.ts +6 -6
- package/dist/commonjs/api/privateEndpointConnections/operations.js +12 -4
- package/dist/commonjs/api/privateEndpointConnections/operations.js.map +2 -2
- package/dist/commonjs/api/privateEndpointConnections/options.d.ts +1 -1
- package/dist/commonjs/api/privateEndpointConnections/options.js.map +1 -1
- package/dist/commonjs/api/privateLinkResources/operations.d.ts +5 -5
- package/dist/commonjs/api/privateLinkResources/operations.js +3 -1
- package/dist/commonjs/api/privateLinkResources/operations.js.map +2 -2
- package/dist/commonjs/api/privateLinkResources/options.d.ts +1 -1
- package/dist/commonjs/api/privateLinkResources/options.js.map +1 -1
- package/dist/commonjs/api/redisEnterprise/operations.d.ts +6 -6
- package/dist/commonjs/api/redisEnterprise/operations.js +21 -7
- package/dist/commonjs/api/redisEnterprise/operations.js.map +2 -2
- package/dist/commonjs/api/redisEnterprise/options.d.ts +1 -1
- package/dist/commonjs/api/redisEnterprise/options.js.map +1 -1
- package/dist/commonjs/api/redisEnterpriseManagementContext.d.ts +3 -3
- package/dist/commonjs/api/redisEnterpriseManagementContext.js +1 -1
- package/dist/commonjs/api/redisEnterpriseManagementContext.js.map +2 -2
- package/dist/commonjs/classic/accessPolicyAssignment/index.d.ts +6 -6
- package/dist/commonjs/classic/accessPolicyAssignment/index.js.map +2 -2
- package/dist/commonjs/classic/databases/index.d.ts +6 -6
- package/dist/commonjs/classic/databases/index.js.map +2 -2
- package/dist/commonjs/classic/migration/index.d.ts +6 -6
- package/dist/commonjs/classic/migration/index.js.map +2 -2
- package/dist/commonjs/classic/migrations/index.d.ts +3 -3
- package/dist/commonjs/classic/migrations/index.js.map +2 -2
- package/dist/commonjs/classic/operations/index.d.ts +4 -4
- package/dist/commonjs/classic/operations/index.js.map +1 -1
- package/dist/commonjs/classic/operationsStatus/index.d.ts +3 -3
- package/dist/commonjs/classic/operationsStatus/index.js.map +1 -1
- package/dist/commonjs/classic/privateEndpointConnections/index.d.ts +6 -6
- package/dist/commonjs/classic/privateEndpointConnections/index.js.map +2 -2
- package/dist/commonjs/classic/privateLinkResources/index.d.ts +4 -4
- package/dist/commonjs/classic/privateLinkResources/index.js.map +1 -1
- package/dist/commonjs/classic/redisEnterprise/index.d.ts +6 -6
- package/dist/commonjs/classic/redisEnterprise/index.js.map +2 -2
- package/dist/commonjs/index.d.ts +3 -2
- package/dist/commonjs/index.js.map +2 -2
- package/dist/commonjs/redisEnterpriseManagementClient.d.ts +12 -12
- package/dist/commonjs/redisEnterpriseManagementClient.js.map +2 -2
- package/dist/commonjs/restorePollerHelpers.d.ts +4 -4
- package/dist/commonjs/restorePollerHelpers.js.map +2 -2
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +2 -2
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +3 -3
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +2 -2
- package/dist/commonjs/static-helpers/simplePollerHelpers.d.ts +2 -2
- package/dist/commonjs/static-helpers/simplePollerHelpers.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/accessPolicyAssignment/operations.d.ts +6 -6
- package/dist/esm/api/accessPolicyAssignment/operations.js +14 -6
- package/dist/esm/api/accessPolicyAssignment/operations.js.map +1 -1
- package/dist/esm/api/accessPolicyAssignment/options.d.ts +1 -1
- package/dist/esm/api/accessPolicyAssignment/options.js.map +1 -1
- package/dist/esm/api/databases/operations.d.ts +6 -6
- package/dist/esm/api/databases/operations.js +41 -15
- package/dist/esm/api/databases/operations.js.map +1 -1
- package/dist/esm/api/databases/options.d.ts +2 -2
- package/dist/esm/api/databases/options.js.map +1 -1
- package/dist/esm/api/migration/operations.d.ts +6 -6
- package/dist/esm/api/migration/operations.js +14 -6
- package/dist/esm/api/migration/operations.js.map +1 -1
- package/dist/esm/api/migration/options.d.ts +1 -1
- package/dist/esm/api/migration/options.js.map +1 -1
- package/dist/esm/api/migrations/operations.d.ts +4 -4
- package/dist/esm/api/migrations/operations.js +4 -2
- package/dist/esm/api/migrations/operations.js.map +1 -1
- package/dist/esm/api/migrations/options.d.ts +1 -1
- package/dist/esm/api/migrations/options.js.map +1 -1
- package/dist/esm/api/operations/operations.d.ts +5 -5
- package/dist/esm/api/operations/operations.js +5 -3
- package/dist/esm/api/operations/operations.js.map +1 -1
- package/dist/esm/api/operations/options.d.ts +1 -1
- package/dist/esm/api/operations/options.js.map +1 -1
- package/dist/esm/api/operationsStatus/operations.d.ts +4 -4
- package/dist/esm/api/operationsStatus/operations.js +5 -3
- package/dist/esm/api/operationsStatus/operations.js.map +1 -1
- package/dist/esm/api/operationsStatus/options.d.ts +1 -1
- package/dist/esm/api/operationsStatus/options.js.map +1 -1
- package/dist/esm/api/privateEndpointConnections/operations.d.ts +6 -6
- package/dist/esm/api/privateEndpointConnections/operations.js +14 -6
- package/dist/esm/api/privateEndpointConnections/operations.js.map +1 -1
- package/dist/esm/api/privateEndpointConnections/options.d.ts +1 -1
- package/dist/esm/api/privateEndpointConnections/options.js.map +1 -1
- package/dist/esm/api/privateLinkResources/operations.d.ts +5 -5
- package/dist/esm/api/privateLinkResources/operations.js +5 -3
- package/dist/esm/api/privateLinkResources/operations.js.map +1 -1
- package/dist/esm/api/privateLinkResources/options.d.ts +1 -1
- package/dist/esm/api/privateLinkResources/options.js.map +1 -1
- package/dist/esm/api/redisEnterprise/operations.d.ts +6 -6
- package/dist/esm/api/redisEnterprise/operations.js +23 -9
- package/dist/esm/api/redisEnterprise/operations.js.map +1 -1
- package/dist/esm/api/redisEnterprise/options.d.ts +1 -1
- package/dist/esm/api/redisEnterprise/options.js.map +1 -1
- package/dist/esm/api/redisEnterpriseManagementContext.d.ts +3 -3
- package/dist/esm/api/redisEnterpriseManagementContext.js +1 -1
- package/dist/esm/api/redisEnterpriseManagementContext.js.map +1 -1
- package/dist/esm/classic/accessPolicyAssignment/index.d.ts +6 -6
- package/dist/esm/classic/accessPolicyAssignment/index.js.map +1 -1
- package/dist/esm/classic/databases/index.d.ts +6 -6
- package/dist/esm/classic/databases/index.js.map +1 -1
- package/dist/esm/classic/migration/index.d.ts +6 -6
- package/dist/esm/classic/migration/index.js.map +1 -1
- package/dist/esm/classic/migrations/index.d.ts +3 -3
- package/dist/esm/classic/migrations/index.js.map +1 -1
- package/dist/esm/classic/operations/index.d.ts +4 -4
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/classic/operationsStatus/index.d.ts +3 -3
- package/dist/esm/classic/operationsStatus/index.js.map +1 -1
- package/dist/esm/classic/privateEndpointConnections/index.d.ts +6 -6
- package/dist/esm/classic/privateEndpointConnections/index.js.map +1 -1
- package/dist/esm/classic/privateLinkResources/index.d.ts +4 -4
- package/dist/esm/classic/privateLinkResources/index.js.map +1 -1
- package/dist/esm/classic/redisEnterprise/index.d.ts +6 -6
- package/dist/esm/classic/redisEnterprise/index.js.map +1 -1
- package/dist/esm/index.d.ts +3 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/redisEnterpriseManagementClient.d.ts +12 -12
- package/dist/esm/redisEnterpriseManagementClient.js +6 -6
- package/dist/esm/redisEnterpriseManagementClient.js.map +1 -1
- package/dist/esm/restorePollerHelpers.d.ts +4 -4
- package/dist/esm/restorePollerHelpers.js +1 -1
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pagingHelpers.d.ts +1 -1
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts +3 -3
- package/dist/esm/static-helpers/pollingHelpers.js +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/simplePollerHelpers.d.ts +2 -2
- package/dist/esm/static-helpers/simplePollerHelpers.js.map +1 -1
- package/package.json +9 -9
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { RedisEnterpriseManagementContext } from "../../api/redisEnterpriseManagementContext.js";
|
|
2
|
-
import { MigrationCancelOptionalParams, MigrationListOptionalParams, MigrationStartOptionalParams, MigrationGetOptionalParams } from "../../api/migration/options.js";
|
|
3
|
-
import { Migration } from "../../models/models.js";
|
|
4
|
-
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
-
import { SimplePollerLike } from "../../static-helpers/simplePollerHelpers.js";
|
|
6
|
-
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
1
|
+
import type { RedisEnterpriseManagementContext } from "../../api/redisEnterpriseManagementContext.js";
|
|
2
|
+
import type { MigrationCancelOptionalParams, MigrationListOptionalParams, MigrationStartOptionalParams, MigrationGetOptionalParams } from "../../api/migration/options.js";
|
|
3
|
+
import type { Migration } from "../../models/models.js";
|
|
4
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import type { SimplePollerLike } from "../../static-helpers/simplePollerHelpers.js";
|
|
6
|
+
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
7
7
|
/** Interface representing a Migration operations. */
|
|
8
8
|
export interface MigrationOperations {
|
|
9
9
|
/** Cancel or rollback the migration operation in a Redis Enterprise cluster. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/migration/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,MAAM,EAA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AAC;QACxE,UAAU,EAAE,KAAK,EACf,iBAAyB,EACzB,WAAmB,EACnB,UAAqB,EACrB,OAAsC,EACtC,EAAE;YACF,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;YACnF,MAAM,MAAM,CAAC,SAAS,EAAE,CAAC;YACzB,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC;QACD,iBAAiB,EAAE,KAAK,EACtB,iBAAyB,EACzB,WAAmB,EACnB,UAAqB,EACrB,OAAsC,EACtC,EAAE;YACF,OAAO,MAAM,KAAK,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QACnF,CAAC;QACD,GAAG,EAAE,CAAC,iBAAyB,EAAE,WAAmB,EAAE,OAAoC,EAAE,EAAE,CAC5F,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC;KACxD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,OAAyC;IAEzC,OAAO;QACL,GAAG,aAAa,CAAC,OAAO,CAAC;KAC1B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RedisEnterpriseManagementContext } from \"../../api/redisEnterpriseManagementContext.js\";\nimport { cancel, list, start, get } from \"../../api/migration/operations.js\";\nimport type {\n MigrationCancelOptionalParams,\n MigrationListOptionalParams,\n MigrationStartOptionalParams,\n MigrationGetOptionalParams,\n} from \"../../api/migration/options.js\";\nimport type { Migration } from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport type { SimplePollerLike } from \"../../static-helpers/simplePollerHelpers.js\";\nimport { getSimplePoller } from \"../../static-helpers/simplePollerHelpers.js\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a Migration operations. */\nexport interface MigrationOperations {\n /** Cancel or rollback the migration operation in a Redis Enterprise cluster. */\n cancel: (\n resourceGroupName: string,\n clusterName: string,\n options?: MigrationCancelOptionalParams,\n ) => PollerLike<OperationState<void>, void>;\n /** @deprecated use cancel instead */\n beginCancel: (\n resourceGroupName: string,\n clusterName: string,\n options?: MigrationCancelOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<void>, void>>;\n /** @deprecated use cancel instead */\n beginCancelAndWait: (\n resourceGroupName: string,\n clusterName: string,\n options?: MigrationCancelOptionalParams,\n ) => Promise<void>;\n /** Gets information about all migrations attempts in a Redis Enterprise cluster. */\n list: (\n resourceGroupName: string,\n clusterName: string,\n options?: MigrationListOptionalParams,\n ) => PagedAsyncIterableIterator<Migration>;\n /** Starts a new migration */\n start: (\n resourceGroupName: string,\n clusterName: string,\n parameters: Migration,\n options?: MigrationStartOptionalParams,\n ) => PollerLike<OperationState<Migration>, Migration>;\n /** @deprecated use start instead */\n beginStart: (\n resourceGroupName: string,\n clusterName: string,\n parameters: Migration,\n options?: MigrationStartOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<Migration>, Migration>>;\n /** @deprecated use start instead */\n beginStartAndWait: (\n resourceGroupName: string,\n clusterName: string,\n parameters: Migration,\n options?: MigrationStartOptionalParams,\n ) => Promise<Migration>;\n /** Gets information about a migration in a Redis Enterprise cluster. */\n get: (\n resourceGroupName: string,\n clusterName: string,\n options?: MigrationGetOptionalParams,\n ) => Promise<Migration>;\n}\n\nfunction _getMigration(context: RedisEnterpriseManagementContext) {\n return {\n cancel: (\n resourceGroupName: string,\n clusterName: string,\n options?: MigrationCancelOptionalParams,\n ) => cancel(context, resourceGroupName, clusterName, options),\n beginCancel: async (\n resourceGroupName: string,\n clusterName: string,\n options?: MigrationCancelOptionalParams,\n ) => {\n const poller = cancel(context, resourceGroupName, clusterName, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginCancelAndWait: async (\n resourceGroupName: string,\n clusterName: string,\n options?: MigrationCancelOptionalParams,\n ) => {\n return await cancel(context, resourceGroupName, clusterName, options);\n },\n list: (resourceGroupName: string, clusterName: string, options?: MigrationListOptionalParams) =>\n list(context, resourceGroupName, clusterName, options),\n start: (\n resourceGroupName: string,\n clusterName: string,\n parameters: Migration,\n options?: MigrationStartOptionalParams,\n ) => start(context, resourceGroupName, clusterName, parameters, options),\n beginStart: async (\n resourceGroupName: string,\n clusterName: string,\n parameters: Migration,\n options?: MigrationStartOptionalParams,\n ) => {\n const poller = start(context, resourceGroupName, clusterName, parameters, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginStartAndWait: async (\n resourceGroupName: string,\n clusterName: string,\n parameters: Migration,\n options?: MigrationStartOptionalParams,\n ) => {\n return await start(context, resourceGroupName, clusterName, parameters, options);\n },\n get: (resourceGroupName: string, clusterName: string, options?: MigrationGetOptionalParams) =>\n get(context, resourceGroupName, clusterName, options),\n };\n}\n\nexport function _getMigrationOperations(\n context: RedisEnterpriseManagementContext,\n): MigrationOperations {\n return {\n ..._getMigration(context),\n };\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RedisEnterpriseManagementContext } from "../../api/redisEnterpriseManagementContext.js";
|
|
2
|
-
import { MigrationsValidateOptionalParams } from "../../api/migrations/options.js";
|
|
3
|
-
import { MigrationValidationRequest, MigrationValidationResponse } from "../../models/models.js";
|
|
1
|
+
import type { RedisEnterpriseManagementContext } from "../../api/redisEnterpriseManagementContext.js";
|
|
2
|
+
import type { MigrationsValidateOptionalParams } from "../../api/migrations/options.js";
|
|
3
|
+
import type { MigrationValidationRequest, MigrationValidationResponse } from "../../models/models.js";
|
|
4
4
|
/** Interface representing a Migrations operations. */
|
|
5
5
|
export interface MigrationsOperations {
|
|
6
6
|
/** Validates if a source Azure Cache for Redis resource can be migrated to a target Azure Managed Redis resource. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/migrations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/migrations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAkB9D,SAAS,cAAc,CAAC,OAAyC;IAC/D,OAAO;QACL,QAAQ,EAAE,CACR,iBAAyB,EACzB,WAAmB,EACnB,IAAgC,EAChC,OAA0C,EAC1C,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,CAAC;KACtE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,OAAyC;IAEzC,OAAO;QACL,GAAG,cAAc,CAAC,OAAO,CAAC;KAC3B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RedisEnterpriseManagementContext } from \"../../api/redisEnterpriseManagementContext.js\";\nimport { validate } from \"../../api/migrations/operations.js\";\nimport type { MigrationsValidateOptionalParams } from \"../../api/migrations/options.js\";\nimport type {\n MigrationValidationRequest,\n MigrationValidationResponse,\n} from \"../../models/models.js\";\n\n/** Interface representing a Migrations operations. */\nexport interface MigrationsOperations {\n /** Validates if a source Azure Cache for Redis resource can be migrated to a target Azure Managed Redis resource. */\n validate: (\n resourceGroupName: string,\n clusterName: string,\n body: MigrationValidationRequest,\n options?: MigrationsValidateOptionalParams,\n ) => Promise<MigrationValidationResponse>;\n}\n\nfunction _getMigrations(context: RedisEnterpriseManagementContext) {\n return {\n validate: (\n resourceGroupName: string,\n clusterName: string,\n body: MigrationValidationRequest,\n options?: MigrationsValidateOptionalParams,\n ) => validate(context, resourceGroupName, clusterName, body, options),\n };\n}\n\nexport function _getMigrationsOperations(\n context: RedisEnterpriseManagementContext,\n): MigrationsOperations {\n return {\n ..._getMigrations(context),\n };\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { RedisEnterpriseManagementContext } from "../../api/redisEnterpriseManagementContext.js";
|
|
2
|
-
import { OperationsListOptionalParams } from "../../api/operations/options.js";
|
|
3
|
-
import { Operation } from "../../models/models.js";
|
|
4
|
-
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
1
|
+
import type { RedisEnterpriseManagementContext } from "../../api/redisEnterpriseManagementContext.js";
|
|
2
|
+
import type { OperationsListOptionalParams } from "../../api/operations/options.js";
|
|
3
|
+
import type { Operation } from "../../models/models.js";
|
|
4
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
5
|
/** Interface representing a Operations operations. */
|
|
6
6
|
export interface OperationsOperations {
|
|
7
7
|
/** Lists all of the available REST API operations of the Microsoft.Cache provider. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAW1D,SAAS,cAAc,CAAC,OAAyC;IAC/D,OAAO;QACL,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;KACzE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,OAAyC;IAEzC,OAAO;QACL,GAAG,cAAc,CAAC,OAAO,CAAC;KAC3B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { RedisEnterpriseManagementContext } from \"../../api/redisEnterpriseManagementContext.js\";\nimport { list } from \"../../api/operations/operations.js\";\nimport { OperationsListOptionalParams } from \"../../api/operations/options.js\";\nimport { Operation } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a Operations operations. */\nexport interface OperationsOperations {\n /** Lists all of the available REST API operations of the Microsoft.Cache provider. */\n list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator<Operation>;\n}\n\nfunction _getOperations(context: RedisEnterpriseManagementContext) {\n return {\n list: (options?: OperationsListOptionalParams) => list(context, options),\n };\n}\n\nexport function _getOperationsOperations(\n context: RedisEnterpriseManagementContext,\n): OperationsOperations {\n return {\n ..._getOperations(context),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAW1D,SAAS,cAAc,CAAC,OAAyC;IAC/D,OAAO;QACL,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;KACzE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,OAAyC;IAEzC,OAAO;QACL,GAAG,cAAc,CAAC,OAAO,CAAC;KAC3B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RedisEnterpriseManagementContext } from \"../../api/redisEnterpriseManagementContext.js\";\nimport { list } from \"../../api/operations/operations.js\";\nimport type { OperationsListOptionalParams } from \"../../api/operations/options.js\";\nimport type { Operation } from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a Operations operations. */\nexport interface OperationsOperations {\n /** Lists all of the available REST API operations of the Microsoft.Cache provider. */\n list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator<Operation>;\n}\n\nfunction _getOperations(context: RedisEnterpriseManagementContext) {\n return {\n list: (options?: OperationsListOptionalParams) => list(context, options),\n };\n}\n\nexport function _getOperationsOperations(\n context: RedisEnterpriseManagementContext,\n): OperationsOperations {\n return {\n ..._getOperations(context),\n };\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RedisEnterpriseManagementContext } from "../../api/redisEnterpriseManagementContext.js";
|
|
2
|
-
import { OperationsStatusGetOptionalParams } from "../../api/operationsStatus/options.js";
|
|
3
|
-
import { OperationStatus } from "../../models/models.js";
|
|
1
|
+
import type { RedisEnterpriseManagementContext } from "../../api/redisEnterpriseManagementContext.js";
|
|
2
|
+
import type { OperationsStatusGetOptionalParams } from "../../api/operationsStatus/options.js";
|
|
3
|
+
import type { OperationStatus } from "../../models/models.js";
|
|
4
4
|
/** Interface representing a OperationsStatus operations. */
|
|
5
5
|
export interface OperationsStatusOperations {
|
|
6
6
|
/** Gets the status of operation. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/operationsStatus/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,GAAG,EAAE,MAAM,0CAA0C,CAAC;AAc/D,SAAS,oBAAoB,CAAC,OAAyC;IACrE,OAAO;QACL,GAAG,EAAE,CAAC,QAAgB,EAAE,WAAmB,EAAE,OAA2C,EAAE,EAAE,CAC1F,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,CAAC;KAC/C,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC5C,OAAyC;IAEzC,OAAO;QACL,GAAG,oBAAoB,CAAC,OAAO,CAAC;KACjC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { RedisEnterpriseManagementContext } from \"../../api/redisEnterpriseManagementContext.js\";\nimport { get } from \"../../api/operationsStatus/operations.js\";\nimport { OperationsStatusGetOptionalParams } from \"../../api/operationsStatus/options.js\";\nimport { OperationStatus } from \"../../models/models.js\";\n\n/** Interface representing a OperationsStatus operations. */\nexport interface OperationsStatusOperations {\n /** Gets the status of operation. */\n get: (\n location: string,\n operationId: string,\n options?: OperationsStatusGetOptionalParams,\n ) => Promise<OperationStatus>;\n}\n\nfunction _getOperationsStatus(context: RedisEnterpriseManagementContext) {\n return {\n get: (location: string, operationId: string, options?: OperationsStatusGetOptionalParams) =>\n get(context, location, operationId, options),\n };\n}\n\nexport function _getOperationsStatusOperations(\n context: RedisEnterpriseManagementContext,\n): OperationsStatusOperations {\n return {\n ..._getOperationsStatus(context),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/operationsStatus/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,GAAG,EAAE,MAAM,0CAA0C,CAAC;AAc/D,SAAS,oBAAoB,CAAC,OAAyC;IACrE,OAAO;QACL,GAAG,EAAE,CAAC,QAAgB,EAAE,WAAmB,EAAE,OAA2C,EAAE,EAAE,CAC1F,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,CAAC;KAC/C,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC5C,OAAyC;IAEzC,OAAO;QACL,GAAG,oBAAoB,CAAC,OAAO,CAAC;KACjC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RedisEnterpriseManagementContext } from \"../../api/redisEnterpriseManagementContext.js\";\nimport { get } from \"../../api/operationsStatus/operations.js\";\nimport type { OperationsStatusGetOptionalParams } from \"../../api/operationsStatus/options.js\";\nimport type { OperationStatus } from \"../../models/models.js\";\n\n/** Interface representing a OperationsStatus operations. */\nexport interface OperationsStatusOperations {\n /** Gets the status of operation. */\n get: (\n location: string,\n operationId: string,\n options?: OperationsStatusGetOptionalParams,\n ) => Promise<OperationStatus>;\n}\n\nfunction _getOperationsStatus(context: RedisEnterpriseManagementContext) {\n return {\n get: (location: string, operationId: string, options?: OperationsStatusGetOptionalParams) =>\n get(context, location, operationId, options),\n };\n}\n\nexport function _getOperationsStatusOperations(\n context: RedisEnterpriseManagementContext,\n): OperationsStatusOperations {\n return {\n ..._getOperationsStatus(context),\n };\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { RedisEnterpriseManagementContext } from "../../api/redisEnterpriseManagementContext.js";
|
|
2
|
-
import { PrivateEndpointConnectionsListOptionalParams, PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsPutOptionalParams, PrivateEndpointConnectionsGetOptionalParams } from "../../api/privateEndpointConnections/options.js";
|
|
3
|
-
import { PrivateEndpointConnection } from "../../models/models.js";
|
|
4
|
-
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
-
import { SimplePollerLike } from "../../static-helpers/simplePollerHelpers.js";
|
|
6
|
-
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
1
|
+
import type { RedisEnterpriseManagementContext } from "../../api/redisEnterpriseManagementContext.js";
|
|
2
|
+
import type { PrivateEndpointConnectionsListOptionalParams, PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsPutOptionalParams, PrivateEndpointConnectionsGetOptionalParams } from "../../api/privateEndpointConnections/options.js";
|
|
3
|
+
import type { PrivateEndpointConnection } from "../../models/models.js";
|
|
4
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import type { SimplePollerLike } from "../../static-helpers/simplePollerHelpers.js";
|
|
6
|
+
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
7
7
|
/** Interface representing a PrivateEndpointConnections operations. */
|
|
8
8
|
export interface PrivateEndpointConnectionsOperations {
|
|
9
9
|
/** Lists all the private endpoint connections associated with the Redis Enterprise cluster. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/privateEndpointConnections/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/privateEndpointConnections/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,oDAAoD,CAAC;AAU7F,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAmE9E,SAAS,8BAA8B,CAAC,OAAyC;IAC/E,OAAO;QACL,IAAI,EAAE,CACJ,iBAAyB,EACzB,WAAmB,EACnB,OAAsD,EACtD,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC;QAC3D,MAAM,EAAE,CACN,iBAAyB,EACzB,WAAmB,EACnB,6BAAqC,EACrC,OAAwD,EACxD,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,6BAA6B,EAAE,OAAO,CAAC;QAC7F,WAAW,EAAE,KAAK,EAChB,iBAAyB,EACzB,WAAmB,EACnB,6BAAqC,EACrC,OAAwD,EACxD,EAAE;YACF,MAAM,MAAM,GAAG,OAAO,CACpB,OAAO,EACP,iBAAiB,EACjB,WAAW,EACX,6BAA6B,EAC7B,OAAO,CACR,CAAC;YACF,MAAM,MAAM,CAAC,SAAS,EAAE,CAAC;YACzB,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC;QACD,kBAAkB,EAAE,KAAK,EACvB,iBAAyB,EACzB,WAAmB,EACnB,6BAAqC,EACrC,OAAwD,EACxD,EAAE;YACF,OAAO,MAAM,OAAO,CAClB,OAAO,EACP,iBAAiB,EACjB,WAAW,EACX,6BAA6B,EAC7B,OAAO,CACR,CAAC;QACJ,CAAC;QACD,GAAG,EAAE,CACH,iBAAyB,EACzB,WAAmB,EACnB,6BAAqC,EACrC,UAAqC,EACrC,OAAqD,EACrD,EAAE,CACF,GAAG,CACD,OAAO,EACP,iBAAiB,EACjB,WAAW,EACX,6BAA6B,EAC7B,UAAU,EACV,OAAO,CACR;QACH,QAAQ,EAAE,KAAK,EACb,iBAAyB,EACzB,WAAmB,EACnB,6BAAqC,EACrC,UAAqC,EACrC,OAAqD,EACrD,EAAE;YACF,MAAM,MAAM,GAAG,GAAG,CAChB,OAAO,EACP,iBAAiB,EACjB,WAAW,EACX,6BAA6B,EAC7B,UAAU,EACV,OAAO,CACR,CAAC;YACF,MAAM,MAAM,CAAC,SAAS,EAAE,CAAC;YACzB,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC;QACD,eAAe,EAAE,KAAK,EACpB,iBAAyB,EACzB,WAAmB,EACnB,6BAAqC,EACrC,UAAqC,EACrC,OAAqD,EACrD,EAAE;YACF,OAAO,MAAM,GAAG,CACd,OAAO,EACP,iBAAiB,EACjB,WAAW,EACX,6BAA6B,EAC7B,UAAU,EACV,OAAO,CACR,CAAC;QACJ,CAAC;QACD,GAAG,EAAE,CACH,iBAAyB,EACzB,WAAmB,EACnB,6BAAqC,EACrC,OAAqD,EACrD,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,6BAA6B,EAAE,OAAO,CAAC;KAC1F,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wCAAwC,CACtD,OAAyC;IAEzC,OAAO;QACL,GAAG,8BAA8B,CAAC,OAAO,CAAC;KAC3C,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RedisEnterpriseManagementContext } from \"../../api/redisEnterpriseManagementContext.js\";\nimport { list, $delete, put, get } from \"../../api/privateEndpointConnections/operations.js\";\nimport type {\n PrivateEndpointConnectionsListOptionalParams,\n PrivateEndpointConnectionsDeleteOptionalParams,\n PrivateEndpointConnectionsPutOptionalParams,\n PrivateEndpointConnectionsGetOptionalParams,\n} from \"../../api/privateEndpointConnections/options.js\";\nimport type { PrivateEndpointConnection } from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport type { SimplePollerLike } from \"../../static-helpers/simplePollerHelpers.js\";\nimport { getSimplePoller } from \"../../static-helpers/simplePollerHelpers.js\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a PrivateEndpointConnections operations. */\nexport interface PrivateEndpointConnectionsOperations {\n /** Lists all the private endpoint connections associated with the Redis Enterprise cluster. */\n list: (\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateEndpointConnectionsListOptionalParams,\n ) => PagedAsyncIterableIterator<PrivateEndpointConnection>;\n /** Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. */\n delete: (\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ) => PollerLike<OperationState<void>, void>;\n /** @deprecated use delete instead */\n beginDelete: (\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<void>, void>>;\n /** @deprecated use delete instead */\n beginDeleteAndWait: (\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ) => Promise<void>;\n /** Updates the state of the specified private endpoint connection associated with the Redis Enterprise cluster. */\n put: (\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsPutOptionalParams,\n ) => PollerLike<OperationState<PrivateEndpointConnection>, PrivateEndpointConnection>;\n /** @deprecated use put instead */\n beginPut: (\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsPutOptionalParams,\n ) => Promise<\n SimplePollerLike<OperationState<PrivateEndpointConnection>, PrivateEndpointConnection>\n >;\n /** @deprecated use put instead */\n beginPutAndWait: (\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsPutOptionalParams,\n ) => Promise<PrivateEndpointConnection>;\n /** Gets the specified private endpoint connection associated with the Redis Enterprise cluster. */\n get: (\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ) => Promise<PrivateEndpointConnection>;\n}\n\nfunction _getPrivateEndpointConnections(context: RedisEnterpriseManagementContext) {\n return {\n list: (\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateEndpointConnectionsListOptionalParams,\n ) => list(context, resourceGroupName, clusterName, options),\n delete: (\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ) => $delete(context, resourceGroupName, clusterName, privateEndpointConnectionName, options),\n beginDelete: async (\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ) => {\n const poller = $delete(\n context,\n resourceGroupName,\n clusterName,\n privateEndpointConnectionName,\n options,\n );\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginDeleteAndWait: async (\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ) => {\n return await $delete(\n context,\n resourceGroupName,\n clusterName,\n privateEndpointConnectionName,\n options,\n );\n },\n put: (\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsPutOptionalParams,\n ) =>\n put(\n context,\n resourceGroupName,\n clusterName,\n privateEndpointConnectionName,\n properties,\n options,\n ),\n beginPut: async (\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsPutOptionalParams,\n ) => {\n const poller = put(\n context,\n resourceGroupName,\n clusterName,\n privateEndpointConnectionName,\n properties,\n options,\n );\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginPutAndWait: async (\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsPutOptionalParams,\n ) => {\n return await put(\n context,\n resourceGroupName,\n clusterName,\n privateEndpointConnectionName,\n properties,\n options,\n );\n },\n get: (\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ) => get(context, resourceGroupName, clusterName, privateEndpointConnectionName, options),\n };\n}\n\nexport function _getPrivateEndpointConnectionsOperations(\n context: RedisEnterpriseManagementContext,\n): PrivateEndpointConnectionsOperations {\n return {\n ..._getPrivateEndpointConnections(context),\n };\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { RedisEnterpriseManagementContext } from "../../api/redisEnterpriseManagementContext.js";
|
|
2
|
-
import { PrivateLinkResourcesListByClusterOptionalParams } from "../../api/privateLinkResources/options.js";
|
|
3
|
-
import { PrivateLinkResource } from "../../models/models.js";
|
|
4
|
-
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
1
|
+
import type { RedisEnterpriseManagementContext } from "../../api/redisEnterpriseManagementContext.js";
|
|
2
|
+
import type { PrivateLinkResourcesListByClusterOptionalParams } from "../../api/privateLinkResources/options.js";
|
|
3
|
+
import type { PrivateLinkResource } from "../../models/models.js";
|
|
4
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
5
|
/** Interface representing a PrivateLinkResources operations. */
|
|
6
6
|
export interface PrivateLinkResourcesOperations {
|
|
7
7
|
/** Gets the private link resources that need to be created for a Redis Enterprise cluster. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/privateLinkResources/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAe7E,SAAS,wBAAwB,CAAC,OAAyC;IACzE,OAAO;QACL,aAAa,EAAE,CACb,iBAAyB,EACzB,WAAmB,EACnB,OAAyD,EACzD,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC;KACrE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,OAAyC;IAEzC,OAAO;QACL,GAAG,wBAAwB,CAAC,OAAO,CAAC;KACrC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { RedisEnterpriseManagementContext } from \"../../api/redisEnterpriseManagementContext.js\";\nimport { listByCluster } from \"../../api/privateLinkResources/operations.js\";\nimport { PrivateLinkResourcesListByClusterOptionalParams } from \"../../api/privateLinkResources/options.js\";\nimport { PrivateLinkResource } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a PrivateLinkResources operations. */\nexport interface PrivateLinkResourcesOperations {\n /** Gets the private link resources that need to be created for a Redis Enterprise cluster. */\n listByCluster: (\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateLinkResourcesListByClusterOptionalParams,\n ) => PagedAsyncIterableIterator<PrivateLinkResource>;\n}\n\nfunction _getPrivateLinkResources(context: RedisEnterpriseManagementContext) {\n return {\n listByCluster: (\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateLinkResourcesListByClusterOptionalParams,\n ) => listByCluster(context, resourceGroupName, clusterName, options),\n };\n}\n\nexport function _getPrivateLinkResourcesOperations(\n context: RedisEnterpriseManagementContext,\n): PrivateLinkResourcesOperations {\n return {\n ..._getPrivateLinkResources(context),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/privateLinkResources/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAe7E,SAAS,wBAAwB,CAAC,OAAyC;IACzE,OAAO;QACL,aAAa,EAAE,CACb,iBAAyB,EACzB,WAAmB,EACnB,OAAyD,EACzD,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC;KACrE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,OAAyC;IAEzC,OAAO;QACL,GAAG,wBAAwB,CAAC,OAAO,CAAC;KACrC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RedisEnterpriseManagementContext } from \"../../api/redisEnterpriseManagementContext.js\";\nimport { listByCluster } from \"../../api/privateLinkResources/operations.js\";\nimport type { PrivateLinkResourcesListByClusterOptionalParams } from \"../../api/privateLinkResources/options.js\";\nimport type { PrivateLinkResource } from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a PrivateLinkResources operations. */\nexport interface PrivateLinkResourcesOperations {\n /** Gets the private link resources that need to be created for a Redis Enterprise cluster. */\n listByCluster: (\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateLinkResourcesListByClusterOptionalParams,\n ) => PagedAsyncIterableIterator<PrivateLinkResource>;\n}\n\nfunction _getPrivateLinkResources(context: RedisEnterpriseManagementContext) {\n return {\n listByCluster: (\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateLinkResourcesListByClusterOptionalParams,\n ) => listByCluster(context, resourceGroupName, clusterName, options),\n };\n}\n\nexport function _getPrivateLinkResourcesOperations(\n context: RedisEnterpriseManagementContext,\n): PrivateLinkResourcesOperations {\n return {\n ..._getPrivateLinkResources(context),\n };\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { RedisEnterpriseManagementContext } from "../../api/redisEnterpriseManagementContext.js";
|
|
2
|
-
import { RedisEnterpriseListSkusForScalingOptionalParams, RedisEnterpriseListOptionalParams, RedisEnterpriseListByResourceGroupOptionalParams, RedisEnterpriseDeleteOptionalParams, RedisEnterpriseUpdateOptionalParams, RedisEnterpriseCreateOptionalParams, RedisEnterpriseGetOptionalParams } from "../../api/redisEnterprise/options.js";
|
|
3
|
-
import { Cluster, ClusterUpdate, SkuDetailsList } from "../../models/models.js";
|
|
4
|
-
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
-
import { SimplePollerLike } from "../../static-helpers/simplePollerHelpers.js";
|
|
6
|
-
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
1
|
+
import type { RedisEnterpriseManagementContext } from "../../api/redisEnterpriseManagementContext.js";
|
|
2
|
+
import type { RedisEnterpriseListSkusForScalingOptionalParams, RedisEnterpriseListOptionalParams, RedisEnterpriseListByResourceGroupOptionalParams, RedisEnterpriseDeleteOptionalParams, RedisEnterpriseUpdateOptionalParams, RedisEnterpriseCreateOptionalParams, RedisEnterpriseGetOptionalParams } from "../../api/redisEnterprise/options.js";
|
|
3
|
+
import type { Cluster, ClusterUpdate, SkuDetailsList } from "../../models/models.js";
|
|
4
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import type { SimplePollerLike } from "../../static-helpers/simplePollerHelpers.js";
|
|
6
|
+
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
7
7
|
/** Interface representing a RedisEnterprise operations. */
|
|
8
8
|
export interface RedisEnterpriseOperations {
|
|
9
9
|
/** Lists the available SKUs for scaling the Redis Enterprise cluster. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":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F,OAAO,MAAM,MAAM,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QACpF,CAAC;QACD,GAAG,EAAE,CACH,iBAAyB,EACzB,WAAmB,EACnB,OAA0C,EAC1C,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC;KAC3D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,OAAyC;IAEzC,OAAO;QACL,GAAG,mBAAmB,CAAC,OAAO,CAAC;KAChC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { RedisEnterpriseManagementContext } from \"../../api/redisEnterpriseManagementContext.js\";\nimport {\n listSkusForScaling,\n list,\n listByResourceGroup,\n $delete,\n update,\n create,\n get,\n} from \"../../api/redisEnterprise/operations.js\";\nimport {\n RedisEnterpriseListSkusForScalingOptionalParams,\n RedisEnterpriseListOptionalParams,\n RedisEnterpriseListByResourceGroupOptionalParams,\n RedisEnterpriseDeleteOptionalParams,\n RedisEnterpriseUpdateOptionalParams,\n RedisEnterpriseCreateOptionalParams,\n RedisEnterpriseGetOptionalParams,\n} from \"../../api/redisEnterprise/options.js\";\nimport { Cluster, ClusterUpdate, SkuDetailsList } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { SimplePollerLike, getSimplePoller } from \"../../static-helpers/simplePollerHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a RedisEnterprise operations. */\nexport interface RedisEnterpriseOperations {\n /** Lists the available SKUs for scaling the Redis Enterprise cluster. */\n listSkusForScaling: (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseListSkusForScalingOptionalParams,\n ) => Promise<SkuDetailsList>;\n /** Lists all Redis Enterprise clusters in the specified subscription. */\n list: (options?: RedisEnterpriseListOptionalParams) => PagedAsyncIterableIterator<Cluster>;\n /** Lists all Redis Enterprise clusters in a resource group. */\n listByResourceGroup: (\n resourceGroupName: string,\n options?: RedisEnterpriseListByResourceGroupOptionalParams,\n ) => PagedAsyncIterableIterator<Cluster>;\n /** Deletes a Redis Enterprise cache cluster. */\n delete: (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseDeleteOptionalParams,\n ) => PollerLike<OperationState<void>, void>;\n /** @deprecated use delete instead */\n beginDelete: (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseDeleteOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<void>, void>>;\n /** @deprecated use delete instead */\n beginDeleteAndWait: (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseDeleteOptionalParams,\n ) => Promise<void>;\n /** Updates an existing Redis Enterprise cluster */\n update: (\n resourceGroupName: string,\n clusterName: string,\n parameters: ClusterUpdate,\n options?: RedisEnterpriseUpdateOptionalParams,\n ) => PollerLike<OperationState<Cluster>, Cluster>;\n /** @deprecated use update instead */\n beginUpdate: (\n resourceGroupName: string,\n clusterName: string,\n parameters: ClusterUpdate,\n options?: RedisEnterpriseUpdateOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<Cluster>, Cluster>>;\n /** @deprecated use update instead */\n beginUpdateAndWait: (\n resourceGroupName: string,\n clusterName: string,\n parameters: ClusterUpdate,\n options?: RedisEnterpriseUpdateOptionalParams,\n ) => Promise<Cluster>;\n /** Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster */\n create: (\n resourceGroupName: string,\n clusterName: string,\n parameters: Cluster,\n options?: RedisEnterpriseCreateOptionalParams,\n ) => PollerLike<OperationState<Cluster>, Cluster>;\n /** @deprecated use create instead */\n beginCreate: (\n resourceGroupName: string,\n clusterName: string,\n parameters: Cluster,\n options?: RedisEnterpriseCreateOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<Cluster>, Cluster>>;\n /** @deprecated use create instead */\n beginCreateAndWait: (\n resourceGroupName: string,\n clusterName: string,\n parameters: Cluster,\n options?: RedisEnterpriseCreateOptionalParams,\n ) => Promise<Cluster>;\n /** Gets information about a Redis Enterprise cluster */\n get: (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseGetOptionalParams,\n ) => Promise<Cluster>;\n}\n\nfunction _getRedisEnterprise(context: RedisEnterpriseManagementContext) {\n return {\n listSkusForScaling: (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseListSkusForScalingOptionalParams,\n ) => listSkusForScaling(context, resourceGroupName, clusterName, options),\n list: (options?: RedisEnterpriseListOptionalParams) => list(context, options),\n listByResourceGroup: (\n resourceGroupName: string,\n options?: RedisEnterpriseListByResourceGroupOptionalParams,\n ) => listByResourceGroup(context, resourceGroupName, options),\n delete: (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseDeleteOptionalParams,\n ) => $delete(context, resourceGroupName, clusterName, options),\n beginDelete: async (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseDeleteOptionalParams,\n ) => {\n const poller = $delete(context, resourceGroupName, clusterName, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginDeleteAndWait: async (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseDeleteOptionalParams,\n ) => {\n return await $delete(context, resourceGroupName, clusterName, options);\n },\n update: (\n resourceGroupName: string,\n clusterName: string,\n parameters: ClusterUpdate,\n options?: RedisEnterpriseUpdateOptionalParams,\n ) => update(context, resourceGroupName, clusterName, parameters, options),\n beginUpdate: async (\n resourceGroupName: string,\n clusterName: string,\n parameters: ClusterUpdate,\n options?: RedisEnterpriseUpdateOptionalParams,\n ) => {\n const poller = update(context, resourceGroupName, clusterName, parameters, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginUpdateAndWait: async (\n resourceGroupName: string,\n clusterName: string,\n parameters: ClusterUpdate,\n options?: RedisEnterpriseUpdateOptionalParams,\n ) => {\n return await update(context, resourceGroupName, clusterName, parameters, options);\n },\n create: (\n resourceGroupName: string,\n clusterName: string,\n parameters: Cluster,\n options?: RedisEnterpriseCreateOptionalParams,\n ) => create(context, resourceGroupName, clusterName, parameters, options),\n beginCreate: async (\n resourceGroupName: string,\n clusterName: string,\n parameters: Cluster,\n options?: RedisEnterpriseCreateOptionalParams,\n ) => {\n const poller = create(context, resourceGroupName, clusterName, parameters, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginCreateAndWait: async (\n resourceGroupName: string,\n clusterName: string,\n parameters: Cluster,\n options?: RedisEnterpriseCreateOptionalParams,\n ) => {\n return await create(context, resourceGroupName, clusterName, parameters, options);\n },\n get: (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseGetOptionalParams,\n ) => get(context, resourceGroupName, clusterName, options),\n };\n}\n\nexport function _getRedisEnterpriseOperations(\n context: RedisEnterpriseManagementContext,\n): RedisEnterpriseOperations {\n return {\n ..._getRedisEnterprise(context),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/redisEnterprise/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,kBAAkB,EAClB,IAAI,EACJ,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,MAAM,EACN,GAAG,GACJ,MAAM,yCAAyC,CAAC;AAajD,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAsF9E,SAAS,mBAAmB,CAAC,OAAyC;IACpE,OAAO;QACL,kBAAkB,EAAE,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAyD,EACzD,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC;QACzE,IAAI,EAAE,CAAC,OAA2C,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;QAC7E,mBAAmB,EAAE,CACnB,iBAAyB,EACzB,OAA0D,EAC1D,EAAE,CAAC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iB,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QACpF,CAAC;QACD,MAAM,EAAE,CACN,iBAAyB,EACzB,WAAmB,EACnB,UAAmB,EACnB,OAA6C,EAC7C,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC;QACzE,WAAW,EAAE,KAAK,EAChB,iBAAyB,EACzB,WAAmB,EACnB,UAAmB,EACnB,OAA6C,EAC7C,EAAE;YACF,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;YACpF,MAAM,MAAM,CAAC,SAAS,EAAE,CAAC;YACzB,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC;QACD,kBAAkB,EAAE,KAAK,EACvB,iBAAyB,EACzB,WAAmB,EACnB,UAAmB,EACnB,OAA6C,EAC7C,EAAE;YACF,OAAO,MAAM,MAAM,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QACpF,CAAC;QACD,GAAG,EAAE,CACH,iBAAyB,EACzB,WAAmB,EACnB,OAA0C,EAC1C,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC;KAC3D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,OAAyC;IAEzC,OAAO;QACL,GAAG,mBAAmB,CAAC,OAAO,CAAC;KAChC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RedisEnterpriseManagementContext } from \"../../api/redisEnterpriseManagementContext.js\";\nimport {\n listSkusForScaling,\n list,\n listByResourceGroup,\n $delete,\n update,\n create,\n get,\n} from \"../../api/redisEnterprise/operations.js\";\nimport type {\n RedisEnterpriseListSkusForScalingOptionalParams,\n RedisEnterpriseListOptionalParams,\n RedisEnterpriseListByResourceGroupOptionalParams,\n RedisEnterpriseDeleteOptionalParams,\n RedisEnterpriseUpdateOptionalParams,\n RedisEnterpriseCreateOptionalParams,\n RedisEnterpriseGetOptionalParams,\n} from \"../../api/redisEnterprise/options.js\";\nimport type { Cluster, ClusterUpdate, SkuDetailsList } from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport type { SimplePollerLike } from \"../../static-helpers/simplePollerHelpers.js\";\nimport { getSimplePoller } from \"../../static-helpers/simplePollerHelpers.js\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a RedisEnterprise operations. */\nexport interface RedisEnterpriseOperations {\n /** Lists the available SKUs for scaling the Redis Enterprise cluster. */\n listSkusForScaling: (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseListSkusForScalingOptionalParams,\n ) => Promise<SkuDetailsList>;\n /** Lists all Redis Enterprise clusters in the specified subscription. */\n list: (options?: RedisEnterpriseListOptionalParams) => PagedAsyncIterableIterator<Cluster>;\n /** Lists all Redis Enterprise clusters in a resource group. */\n listByResourceGroup: (\n resourceGroupName: string,\n options?: RedisEnterpriseListByResourceGroupOptionalParams,\n ) => PagedAsyncIterableIterator<Cluster>;\n /** Deletes a Redis Enterprise cache cluster. */\n delete: (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseDeleteOptionalParams,\n ) => PollerLike<OperationState<void>, void>;\n /** @deprecated use delete instead */\n beginDelete: (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseDeleteOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<void>, void>>;\n /** @deprecated use delete instead */\n beginDeleteAndWait: (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseDeleteOptionalParams,\n ) => Promise<void>;\n /** Updates an existing Redis Enterprise cluster */\n update: (\n resourceGroupName: string,\n clusterName: string,\n parameters: ClusterUpdate,\n options?: RedisEnterpriseUpdateOptionalParams,\n ) => PollerLike<OperationState<Cluster>, Cluster>;\n /** @deprecated use update instead */\n beginUpdate: (\n resourceGroupName: string,\n clusterName: string,\n parameters: ClusterUpdate,\n options?: RedisEnterpriseUpdateOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<Cluster>, Cluster>>;\n /** @deprecated use update instead */\n beginUpdateAndWait: (\n resourceGroupName: string,\n clusterName: string,\n parameters: ClusterUpdate,\n options?: RedisEnterpriseUpdateOptionalParams,\n ) => Promise<Cluster>;\n /** Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster */\n create: (\n resourceGroupName: string,\n clusterName: string,\n parameters: Cluster,\n options?: RedisEnterpriseCreateOptionalParams,\n ) => PollerLike<OperationState<Cluster>, Cluster>;\n /** @deprecated use create instead */\n beginCreate: (\n resourceGroupName: string,\n clusterName: string,\n parameters: Cluster,\n options?: RedisEnterpriseCreateOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<Cluster>, Cluster>>;\n /** @deprecated use create instead */\n beginCreateAndWait: (\n resourceGroupName: string,\n clusterName: string,\n parameters: Cluster,\n options?: RedisEnterpriseCreateOptionalParams,\n ) => Promise<Cluster>;\n /** Gets information about a Redis Enterprise cluster */\n get: (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseGetOptionalParams,\n ) => Promise<Cluster>;\n}\n\nfunction _getRedisEnterprise(context: RedisEnterpriseManagementContext) {\n return {\n listSkusForScaling: (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseListSkusForScalingOptionalParams,\n ) => listSkusForScaling(context, resourceGroupName, clusterName, options),\n list: (options?: RedisEnterpriseListOptionalParams) => list(context, options),\n listByResourceGroup: (\n resourceGroupName: string,\n options?: RedisEnterpriseListByResourceGroupOptionalParams,\n ) => listByResourceGroup(context, resourceGroupName, options),\n delete: (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseDeleteOptionalParams,\n ) => $delete(context, resourceGroupName, clusterName, options),\n beginDelete: async (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseDeleteOptionalParams,\n ) => {\n const poller = $delete(context, resourceGroupName, clusterName, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginDeleteAndWait: async (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseDeleteOptionalParams,\n ) => {\n return await $delete(context, resourceGroupName, clusterName, options);\n },\n update: (\n resourceGroupName: string,\n clusterName: string,\n parameters: ClusterUpdate,\n options?: RedisEnterpriseUpdateOptionalParams,\n ) => update(context, resourceGroupName, clusterName, parameters, options),\n beginUpdate: async (\n resourceGroupName: string,\n clusterName: string,\n parameters: ClusterUpdate,\n options?: RedisEnterpriseUpdateOptionalParams,\n ) => {\n const poller = update(context, resourceGroupName, clusterName, parameters, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginUpdateAndWait: async (\n resourceGroupName: string,\n clusterName: string,\n parameters: ClusterUpdate,\n options?: RedisEnterpriseUpdateOptionalParams,\n ) => {\n return await update(context, resourceGroupName, clusterName, parameters, options);\n },\n create: (\n resourceGroupName: string,\n clusterName: string,\n parameters: Cluster,\n options?: RedisEnterpriseCreateOptionalParams,\n ) => create(context, resourceGroupName, clusterName, parameters, options),\n beginCreate: async (\n resourceGroupName: string,\n clusterName: string,\n parameters: Cluster,\n options?: RedisEnterpriseCreateOptionalParams,\n ) => {\n const poller = create(context, resourceGroupName, clusterName, parameters, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginCreateAndWait: async (\n resourceGroupName: string,\n clusterName: string,\n parameters: Cluster,\n options?: RedisEnterpriseCreateOptionalParams,\n ) => {\n return await create(context, resourceGroupName, clusterName, parameters, options);\n },\n get: (\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseGetOptionalParams,\n ) => get(context, resourceGroupName, clusterName, options),\n };\n}\n\nexport function _getRedisEnterpriseOperations(\n context: RedisEnterpriseManagementContext,\n): RedisEnterpriseOperations {\n return {\n ..._getRedisEnterprise(context),\n };\n}\n"]}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { AzureSupportedClouds } from "./static-helpers/cloudSettingHelpers.js";
|
|
2
|
+
import { AzureClouds } from "./static-helpers/cloudSettingHelpers.js";
|
|
3
|
+
import type { PageSettings, ContinuablePage, PagedAsyncIterableIterator } from "./static-helpers/pagingHelpers.js";
|
|
3
4
|
export { RedisEnterpriseManagementClient } from "./redisEnterpriseManagementClient.js";
|
|
4
5
|
export type { SimplePollerLike } from "./static-helpers/simplePollerHelpers.js";
|
|
5
6
|
export type { RestorePollerOptions } from "./restorePollerHelpers.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAOtE,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAGvF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AA4F1D,OAAO,EACL,WAAW,EACX,eAAe,EACf,6BAA6B,EAC7B,aAAa,EACb,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,wBAAwB,EACxB,kBAAkB,EAClB,2CAA2C,EAC3C,+CAA+C,EAC/C,wBAAwB,EACxB,SAAS,EACT,YAAY,EACZ,+BAA+B,EAC/B,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,0BAA0B,EAC1B,yBAAyB,EACzB,mBAAmB,EACnB,eAAe,EACf,+BAA+B,EAC/B,aAAa,GACd,MAAM,mBAAmB,CAAC;AA4D3B,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AzureSupportedClouds } from \"./static-helpers/cloudSettingHelpers.js\";\nimport { AzureClouds } from \"./static-helpers/cloudSettingHelpers.js\";\nimport type {\n PageSettings,\n ContinuablePage,\n PagedAsyncIterableIterator,\n} from \"./static-helpers/pagingHelpers.js\";\n\nexport { RedisEnterpriseManagementClient } from \"./redisEnterpriseManagementClient.js\";\nexport type { SimplePollerLike } from \"./static-helpers/simplePollerHelpers.js\";\nexport type { RestorePollerOptions } from \"./restorePollerHelpers.js\";\nexport { restorePoller } from \"./restorePollerHelpers.js\";\nexport type {\n Operation,\n OperationDisplay,\n Origin,\n ActionType,\n ErrorResponse,\n ErrorDetail,\n ErrorAdditionalInfo,\n Database,\n DatabaseCreateProperties,\n AccessKeysAuthentication,\n DatabaseCommonProperties,\n Protocol,\n ProvisioningState,\n ResourceState,\n ClusteringPolicy,\n EvictionPolicy,\n Persistence,\n AofFrequency,\n RdbFrequency,\n Module,\n DatabaseCommonPropertiesGeoReplication,\n LinkedDatabase,\n LinkState,\n DeferUpgradeSetting,\n ProxyResource,\n Resource,\n SystemData,\n CreatedByType,\n DatabaseUpdate,\n DatabaseUpdateProperties,\n AccessKeys,\n RegenerateKeyParameters,\n AccessKeyType,\n ImportClusterParameters,\n ExportClusterParameters,\n ForceUnlinkParameters,\n ForceLinkParameters,\n ForceLinkParametersGeoReplication,\n FlushParameters,\n PrivateEndpointConnection,\n PrivateEndpointConnectionProperties,\n PrivateEndpoint,\n PrivateLinkServiceConnectionState,\n PrivateEndpointServiceConnectionStatus,\n PrivateEndpointConnectionProvisioningState,\n MigrationValidationRequest,\n MigrationValidationResponse,\n MigrationValidationError,\n MigrationValidationDisparity,\n MigrationValidationWarning,\n Cluster,\n ClusterCreateProperties,\n PublicNetworkAccess,\n Kind,\n Sku,\n SkuName,\n ManagedServiceIdentity,\n ManagedServiceIdentityType,\n UserAssignedIdentity,\n ClusterCommonProperties,\n HighAvailability,\n TlsVersion,\n ClusterCommonPropertiesEncryption,\n ClusterCommonPropertiesEncryptionCustomerManagedKeyEncryption,\n ClusterCommonPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity,\n CmkIdentityType,\n MaintenanceConfiguration,\n MaintenanceWindow,\n MaintenanceWindowType,\n MaintenanceWindowSchedule,\n MaintenanceDayOfWeek,\n RedundancyMode,\n TrackedResource,\n ClusterUpdate,\n ClusterUpdateProperties,\n SkuDetailsList,\n SkuDetails,\n PrivateLinkResource,\n PrivateLinkResourceProperties,\n AccessPolicyAssignment,\n AccessPolicyAssignmentProperties,\n AccessPolicyAssignmentPropertiesUser,\n Migration,\n MigrationProperties,\n MigrationPropertiesUnion,\n SourceType,\n MigrationProvisioningState,\n AzureCacheForRedisMigrationProperties,\n OperationStatus,\n} from \"./models/index.js\";\nexport {\n KnownOrigin,\n KnownActionType,\n KnownAccessKeysAuthentication,\n KnownProtocol,\n KnownProvisioningState,\n KnownResourceState,\n KnownClusteringPolicy,\n KnownEvictionPolicy,\n KnownAofFrequency,\n KnownRdbFrequency,\n KnownLinkState,\n KnownDeferUpgradeSetting,\n KnownCreatedByType,\n KnownPrivateEndpointServiceConnectionStatus,\n KnownPrivateEndpointConnectionProvisioningState,\n KnownPublicNetworkAccess,\n KnownKind,\n KnownSkuName,\n KnownManagedServiceIdentityType,\n KnownHighAvailability,\n KnownTlsVersion,\n KnownCmkIdentityType,\n KnownMaintenanceWindowType,\n KnownMaintenanceDayOfWeek,\n KnownRedundancyMode,\n KnownSourceType,\n KnownMigrationProvisioningState,\n KnownVersions,\n} from \"./models/index.js\";\nexport type { RedisEnterpriseManagementClientOptionalParams } from \"./api/index.js\";\nexport type {\n AccessPolicyAssignmentListOptionalParams,\n AccessPolicyAssignmentDeleteOptionalParams,\n AccessPolicyAssignmentCreateUpdateOptionalParams,\n AccessPolicyAssignmentGetOptionalParams,\n} from \"./api/accessPolicyAssignment/index.js\";\nexport type {\n DatabasesUpgradeDBRedisVersionOptionalParams,\n DatabasesFlushOptionalParams,\n DatabasesForceLinkToReplicationGroupOptionalParams,\n DatabasesForceUnlinkOptionalParams,\n DatabasesExportOptionalParams,\n DatabasesImportOptionalParams,\n DatabasesRegenerateKeyOptionalParams,\n DatabasesListKeysOptionalParams,\n DatabasesListByClusterOptionalParams,\n DatabasesDeleteOptionalParams,\n DatabasesUpdateOptionalParams,\n DatabasesCreateOptionalParams,\n DatabasesGetOptionalParams,\n} from \"./api/databases/index.js\";\nexport type {\n MigrationCancelOptionalParams,\n MigrationListOptionalParams,\n MigrationStartOptionalParams,\n MigrationGetOptionalParams,\n} from \"./api/migration/index.js\";\nexport type { MigrationsValidateOptionalParams } from \"./api/migrations/index.js\";\nexport type { OperationsListOptionalParams } from \"./api/operations/index.js\";\nexport type { OperationsStatusGetOptionalParams } from \"./api/operationsStatus/index.js\";\nexport type {\n PrivateEndpointConnectionsListOptionalParams,\n PrivateEndpointConnectionsDeleteOptionalParams,\n PrivateEndpointConnectionsPutOptionalParams,\n PrivateEndpointConnectionsGetOptionalParams,\n} from \"./api/privateEndpointConnections/index.js\";\nexport type { PrivateLinkResourcesListByClusterOptionalParams } from \"./api/privateLinkResources/index.js\";\nexport type {\n RedisEnterpriseListSkusForScalingOptionalParams,\n RedisEnterpriseListOptionalParams,\n RedisEnterpriseListByResourceGroupOptionalParams,\n RedisEnterpriseDeleteOptionalParams,\n RedisEnterpriseUpdateOptionalParams,\n RedisEnterpriseCreateOptionalParams,\n RedisEnterpriseGetOptionalParams,\n} from \"./api/redisEnterprise/index.js\";\nexport type {\n AccessPolicyAssignmentOperations,\n DatabasesOperations,\n MigrationOperations,\n MigrationsOperations,\n OperationsOperations,\n OperationsStatusOperations,\n PrivateEndpointConnectionsOperations,\n PrivateLinkResourcesOperations,\n RedisEnterpriseOperations,\n} from \"./classic/index.js\";\nexport type { PageSettings, ContinuablePage, PagedAsyncIterableIterator };\nexport { AzureClouds };\nexport type { AzureSupportedClouds };\nexport { RestError, isRestError } from \"@azure/core-rest-pipeline\";\n"]}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { RedisEnterpriseManagementClientOptionalParams } from "./api/index.js";
|
|
2
|
-
import { AccessPolicyAssignmentOperations } from "./classic/accessPolicyAssignment/index.js";
|
|
3
|
-
import { DatabasesOperations } from "./classic/databases/index.js";
|
|
4
|
-
import { MigrationOperations } from "./classic/migration/index.js";
|
|
5
|
-
import { MigrationsOperations } from "./classic/migrations/index.js";
|
|
6
|
-
import { OperationsOperations } from "./classic/operations/index.js";
|
|
7
|
-
import { OperationsStatusOperations } from "./classic/operationsStatus/index.js";
|
|
8
|
-
import { PrivateEndpointConnectionsOperations } from "./classic/privateEndpointConnections/index.js";
|
|
9
|
-
import { PrivateLinkResourcesOperations } from "./classic/privateLinkResources/index.js";
|
|
10
|
-
import { RedisEnterpriseOperations } from "./classic/redisEnterprise/index.js";
|
|
11
|
-
import { TokenCredential } from "@azure/core-auth";
|
|
12
|
-
import { Pipeline } from "@azure/core-rest-pipeline";
|
|
1
|
+
import type { RedisEnterpriseManagementClientOptionalParams } from "./api/index.js";
|
|
2
|
+
import type { AccessPolicyAssignmentOperations } from "./classic/accessPolicyAssignment/index.js";
|
|
3
|
+
import type { DatabasesOperations } from "./classic/databases/index.js";
|
|
4
|
+
import type { MigrationOperations } from "./classic/migration/index.js";
|
|
5
|
+
import type { MigrationsOperations } from "./classic/migrations/index.js";
|
|
6
|
+
import type { OperationsOperations } from "./classic/operations/index.js";
|
|
7
|
+
import type { OperationsStatusOperations } from "./classic/operationsStatus/index.js";
|
|
8
|
+
import type { PrivateEndpointConnectionsOperations } from "./classic/privateEndpointConnections/index.js";
|
|
9
|
+
import type { PrivateLinkResourcesOperations } from "./classic/privateLinkResources/index.js";
|
|
10
|
+
import type { RedisEnterpriseOperations } from "./classic/redisEnterprise/index.js";
|
|
11
|
+
import type { TokenCredential } from "@azure/core-auth";
|
|
12
|
+
import type { Pipeline } from "@azure/core-rest-pipeline";
|
|
13
13
|
export type { RedisEnterpriseManagementClientOptionalParams } from "./api/redisEnterpriseManagementContext.js";
|
|
14
14
|
export declare class RedisEnterpriseManagementClient {
|
|
15
15
|
private _client;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { createRedisEnterpriseManagement
|
|
4
|
-
import { _getAccessPolicyAssignmentOperations
|
|
3
|
+
import { createRedisEnterpriseManagement } from "./api/index.js";
|
|
4
|
+
import { _getAccessPolicyAssignmentOperations } from "./classic/accessPolicyAssignment/index.js";
|
|
5
5
|
import { _getDatabasesOperations } from "./classic/databases/index.js";
|
|
6
6
|
import { _getMigrationOperations } from "./classic/migration/index.js";
|
|
7
7
|
import { _getMigrationsOperations } from "./classic/migrations/index.js";
|
|
8
8
|
import { _getOperationsOperations } from "./classic/operations/index.js";
|
|
9
|
-
import { _getOperationsStatusOperations
|
|
10
|
-
import { _getPrivateEndpointConnectionsOperations
|
|
11
|
-
import { _getPrivateLinkResourcesOperations
|
|
12
|
-
import { _getRedisEnterpriseOperations
|
|
9
|
+
import { _getOperationsStatusOperations } from "./classic/operationsStatus/index.js";
|
|
10
|
+
import { _getPrivateEndpointConnectionsOperations } from "./classic/privateEndpointConnections/index.js";
|
|
11
|
+
import { _getPrivateLinkResourcesOperations } from "./classic/privateLinkResources/index.js";
|
|
12
|
+
import { _getRedisEnterpriseOperations } from "./classic/redisEnterprise/index.js";
|
|
13
13
|
export class RedisEnterpriseManagementClient {
|
|
14
14
|
_client;
|
|
15
15
|
/** The pipeline used by this client to make requests */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseManagementClient.js","sourceRoot":"","sources":["../../src/redisEnterpriseManagementClient.ts"],"names":[],"mappings":"AAAA,uCAAu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,gBAAgB,GAAG,8BAA8B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrE,IAAI,CAAC,SAAS,GAAG,uBAAuB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvD,IAAI,CAAC,sBAAsB,GAAG,oCAAoC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjF,IAAI,CAAC,oBAAoB,GAAG,kCAAkC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,IAAI,CAAC,eAAe,GAAG,6BAA6B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,IAAI,CAAC,UAAU,GAAG,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,IAAI,CAAC,0BAA0B,GAAG,wCAAwC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzF,IAAI,CAAC,SAAS,GAAG,uBAAuB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvD,IAAI,CAAC,UAAU,GAAG,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED,gDAAgD;IAChC,gBAAgB,CAA6B;IAC7D,yCAAyC;IACzB,SAAS,CAAsB;IAC/C,sDAAsD;IACtC,sBAAsB,CAAmC;IACzE,oDAAoD;IACpC,oBAAoB,CAAiC;IACrE,+CAA+C;IAC/B,eAAe,CAA4B;IAC3D,0CAA0C;IAC1B,UAAU,CAAuB;IACjD,0DAA0D;IAC1C,0BAA0B,CAAuC;IACjF,yCAAyC;IACzB,SAAS,CAAsB;IAC/C,0CAA0C;IAC1B,UAAU,CAAuB;CAClD","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n RedisEnterpriseManagementContext,\n RedisEnterpriseManagementClientOptionalParams,\n} from \"./api/index.js\";\nimport { createRedisEnterpriseManagement } from \"./api/index.js\";\nimport type { AccessPolicyAssignmentOperations } from \"./classic/accessPolicyAssignment/index.js\";\nimport { _getAccessPolicyAssignmentOperations } from \"./classic/accessPolicyAssignment/index.js\";\nimport type { DatabasesOperations } from \"./classic/databases/index.js\";\nimport { _getDatabasesOperations } from \"./classic/databases/index.js\";\nimport type { MigrationOperations } from \"./classic/migration/index.js\";\nimport { _getMigrationOperations } from \"./classic/migration/index.js\";\nimport type { MigrationsOperations } from \"./classic/migrations/index.js\";\nimport { _getMigrationsOperations } from \"./classic/migrations/index.js\";\nimport type { OperationsOperations } from \"./classic/operations/index.js\";\nimport { _getOperationsOperations } from \"./classic/operations/index.js\";\nimport type { OperationsStatusOperations } from \"./classic/operationsStatus/index.js\";\nimport { _getOperationsStatusOperations } from \"./classic/operationsStatus/index.js\";\nimport type { PrivateEndpointConnectionsOperations } from \"./classic/privateEndpointConnections/index.js\";\nimport { _getPrivateEndpointConnectionsOperations } from \"./classic/privateEndpointConnections/index.js\";\nimport type { PrivateLinkResourcesOperations } from \"./classic/privateLinkResources/index.js\";\nimport { _getPrivateLinkResourcesOperations } from \"./classic/privateLinkResources/index.js\";\nimport type { RedisEnterpriseOperations } from \"./classic/redisEnterprise/index.js\";\nimport { _getRedisEnterpriseOperations } from \"./classic/redisEnterprise/index.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { Pipeline } from \"@azure/core-rest-pipeline\";\n\nexport type { RedisEnterpriseManagementClientOptionalParams } from \"./api/redisEnterpriseManagementContext.js\";\n\nexport class RedisEnterpriseManagementClient {\n private _client: RedisEnterpriseManagementContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n /** REST API for managing Redis Enterprise resources in Azure. */\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options: RedisEnterpriseManagementClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createRedisEnterpriseManagement(credential, subscriptionId, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n this.operationsStatus = _getOperationsStatusOperations(this._client);\n this.migration = _getMigrationOperations(this._client);\n this.accessPolicyAssignment = _getAccessPolicyAssignmentOperations(this._client);\n this.privateLinkResources = _getPrivateLinkResourcesOperations(this._client);\n this.redisEnterprise = _getRedisEnterpriseOperations(this._client);\n this.migrations = _getMigrationsOperations(this._client);\n this.privateEndpointConnections = _getPrivateEndpointConnectionsOperations(this._client);\n this.databases = _getDatabasesOperations(this._client);\n this.operations = _getOperationsOperations(this._client);\n }\n\n /** The operation groups for operationsStatus */\n public readonly operationsStatus: OperationsStatusOperations;\n /** The operation groups for migration */\n public readonly migration: MigrationOperations;\n /** The operation groups for accessPolicyAssignment */\n public readonly accessPolicyAssignment: AccessPolicyAssignmentOperations;\n /** The operation groups for privateLinkResources */\n public readonly privateLinkResources: PrivateLinkResourcesOperations;\n /** The operation groups for redisEnterprise */\n public readonly redisEnterprise: RedisEnterpriseOperations;\n /** The operation groups for migrations */\n public readonly migrations: MigrationsOperations;\n /** The operation groups for privateEndpointConnections */\n public readonly privateEndpointConnections: PrivateEndpointConnectionsOperations;\n /** The operation groups for databases */\n public readonly databases: DatabasesOperations;\n /** The operation groups for operations */\n public readonly operations: OperationsOperations;\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { RedisEnterpriseManagementClient } from "./redisEnterpriseManagementClient.js";
|
|
2
|
-
import { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
3
|
-
import { AbortSignalLike } from "@azure/abort-controller";
|
|
4
|
-
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
1
|
+
import type { RedisEnterpriseManagementClient } from "./redisEnterpriseManagementClient.js";
|
|
2
|
+
import type { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
3
|
+
import type { AbortSignalLike } from "@azure/abort-controller";
|
|
4
|
+
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
5
5
|
export interface RestorePollerOptions<TResult, TResponse extends PathUncheckedResponse = PathUncheckedResponse> extends OperationOptions {
|
|
6
6
|
/** Delay to wait until next poll, in milliseconds. */
|
|
7
7
|
updateIntervalInMs?: number;
|
|
@@ -6,7 +6,7 @@ import { _$deleteDeserialize as _$deleteDeserializeRedisEnterprise, _updateDeser
|
|
|
6
6
|
import { _$deleteDeserialize as _$deleteDeserializePrivateEndpointConnections, _putDeserialize, } from "./api/privateEndpointConnections/operations.js";
|
|
7
7
|
import { _upgradeDBRedisVersionDeserialize, _flushDeserialize, _forceLinkToReplicationGroupDeserialize, _forceUnlinkDeserialize, _$exportDeserialize, _$importDeserialize, _regenerateKeyDeserialize, _$deleteDeserialize as _$deleteDeserializeDatabases, _updateDeserialize as _updateDeserializeDatabases, _createDeserialize as _createDeserializeDatabases, } from "./api/databases/operations.js";
|
|
8
8
|
import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
|
|
9
|
-
import { deserializeState
|
|
9
|
+
import { deserializeState } from "@azure/core-lro";
|
|
10
10
|
/**
|
|
11
11
|
* Creates a poller from the serialized state of another poller. This can be
|
|
12
12
|
* useful when you want to create pollers on a different host or a poller
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACtF,OAAO,EACL,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,mBAAmB,IAAI,kCAAkC,EACzD,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,mBAAmB,IAAI,6CAA6C,EACpE,eAAe,GAChB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,iCAAiC,EACjC,iBAAiB,EACjB,uCAAuC,EACvC,uBAAuB,EACvB,mB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AG,IAAI,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAC1E,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CACnB,CAAC;gBAEF,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC;AAED,SAAS,oBAAoB,CAAC,MAAc;IAC1C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,OAAO,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,SAAS,CAAC;AAC1D,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { RedisEnterpriseManagementClient } from \"./redisEnterpriseManagementClient.js\";\nimport { _cancelDeserialize, _startDeserialize } from \"./api/migration/operations.js\";\nimport {\n _$deleteDeserialize,\n _createUpdateDeserialize,\n} from \"./api/accessPolicyAssignment/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeRedisEnterprise,\n _updateDeserialize,\n _createDeserialize,\n} from \"./api/redisEnterprise/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializePrivateEndpointConnections,\n _putDeserialize,\n} from \"./api/privateEndpointConnections/operations.js\";\nimport {\n _upgradeDBRedisVersionDeserialize,\n _flushDeserialize,\n _forceLinkToReplicationGroupDeserialize,\n _forceUnlinkDeserialize,\n _$exportDeserialize,\n _$importDeserialize,\n _regenerateKeyDeserialize,\n _$deleteDeserialize as _$deleteDeserializeDatabases,\n _updateDeserialize as _updateDeserializeDatabases,\n _createDeserialize as _createDeserializeDatabases,\n} from \"./api/databases/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: RedisEnterpriseManagementClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n const apiVersion = getApiVersionFromUrl(initialRequestUrl);\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n apiVersion,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: (result: PathUncheckedResponse) => Promise<any>;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/migrations/default/cancel\":\n { deserializer: _cancelDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/migrations/default\":\n { deserializer: _startDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}\":\n { deserializer: _$deleteDeserialize, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}\":\n { deserializer: _createUpdateDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}\":\n { deserializer: _$deleteDeserializeRedisEnterprise, expectedStatuses: [\"200\", \"202\", \"204\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}\":\n { deserializer: _updateDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}\":\n { deserializer: _createDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n {\n deserializer: _$deleteDeserializePrivateEndpointConnections,\n expectedStatuses: [\"200\", \"202\", \"204\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n { deserializer: _putDeserialize, expectedStatuses: [\"201\", \"200\", \"202\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/upgradeDBRedisVersion\":\n { deserializer: _upgradeDBRedisVersionDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/flush\":\n { deserializer: _flushDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceLinkToReplicationGroup\":\n {\n deserializer: _forceLinkToReplicationGroupDeserialize,\n expectedStatuses: [\"202\", \"200\", \"201\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceUnlink\":\n { deserializer: _forceUnlinkDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export\":\n { deserializer: _$exportDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import\":\n { deserializer: _$importDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey\":\n { deserializer: _regenerateKeyDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}\":\n { deserializer: _$deleteDeserializeDatabases, expectedStatuses: [\"200\", \"202\", \"204\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}\":\n { deserializer: _updateDeserializeDatabases, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}\":\n { deserializer: _createDeserializeDatabases, expectedStatuses: [\"200\", \"201\", \"202\"] },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n\nfunction getApiVersionFromUrl(urlStr: string): string | undefined {\n const url = new URL(urlStr);\n return url.searchParams.get(\"api-version\") ?? undefined;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.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ACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC;AAED,SAAS,oBAAoB,CAAC,MAAc;IAC1C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,OAAO,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,SAAS,CAAC;AAC1D,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RedisEnterpriseManagementClient } from \"./redisEnterpriseManagementClient.js\";\nimport { _cancelDeserialize, _startDeserialize } from \"./api/migration/operations.js\";\nimport {\n _$deleteDeserialize,\n _createUpdateDeserialize,\n} from \"./api/accessPolicyAssignment/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeRedisEnterprise,\n _updateDeserialize,\n _createDeserialize,\n} from \"./api/redisEnterprise/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializePrivateEndpointConnections,\n _putDeserialize,\n} from \"./api/privateEndpointConnections/operations.js\";\nimport {\n _upgradeDBRedisVersionDeserialize,\n _flushDeserialize,\n _forceLinkToReplicationGroupDeserialize,\n _forceUnlinkDeserialize,\n _$exportDeserialize,\n _$importDeserialize,\n _regenerateKeyDeserialize,\n _$deleteDeserialize as _$deleteDeserializeDatabases,\n _updateDeserialize as _updateDeserializeDatabases,\n _createDeserialize as _createDeserializeDatabases,\n} from \"./api/databases/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport type { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { PollerLike, OperationState, ResourceLocationConfig } from \"@azure/core-lro\";\nimport { deserializeState } from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: RedisEnterpriseManagementClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n ResourceLocationConfig | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n const apiVersion = getApiVersionFromUrl(initialRequestUrl);\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n apiVersion,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: (result: PathUncheckedResponse) => Promise<any>;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/migrations/default/cancel\":\n { deserializer: _cancelDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/migrations/default\":\n { deserializer: _startDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}\":\n { deserializer: _$deleteDeserialize, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}\":\n { deserializer: _createUpdateDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}\":\n { deserializer: _$deleteDeserializeRedisEnterprise, expectedStatuses: [\"200\", \"202\", \"204\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}\":\n { deserializer: _updateDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}\":\n { deserializer: _createDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n {\n deserializer: _$deleteDeserializePrivateEndpointConnections,\n expectedStatuses: [\"200\", \"202\", \"204\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n { deserializer: _putDeserialize, expectedStatuses: [\"201\", \"200\", \"202\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/upgradeDBRedisVersion\":\n { deserializer: _upgradeDBRedisVersionDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/flush\":\n { deserializer: _flushDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceLinkToReplicationGroup\":\n {\n deserializer: _forceLinkToReplicationGroupDeserialize,\n expectedStatuses: [\"202\", \"200\", \"201\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceUnlink\":\n { deserializer: _forceUnlinkDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export\":\n { deserializer: _$exportDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import\":\n { deserializer: _$importDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey\":\n { deserializer: _regenerateKeyDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}\":\n { deserializer: _$deleteDeserializeDatabases, expectedStatuses: [\"200\", \"202\", \"204\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}\":\n { deserializer: _updateDeserializeDatabases, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}\":\n { deserializer: _createDeserializeDatabases, expectedStatuses: [\"200\", \"201\", \"202\"] },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n\nfunction getApiVersionFromUrl(urlStr: string): string | undefined {\n const url = new URL(urlStr);\n return url.searchParams.get(\"api-version\") ?? undefined;\n}\n"]}
|