@azure/arm-redisenterprisecache 3.1.0-beta.2 → 4.0.0-alpha.20250422.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/CHANGELOG.md +131 -0
- package/LICENSE +3 -3
- package/README.md +24 -18
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.d.ts +99 -9
- package/dist/browser/models/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.js +12 -0
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/models/mappers.js +134 -3
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +5 -5
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/accessPolicyAssignmentOperations.d.ts +27 -11
- package/dist/browser/operations/accessPolicyAssignmentOperations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/accessPolicyAssignmentOperations.js +114 -106
- package/dist/browser/operations/accessPolicyAssignmentOperations.js.map +1 -0
- package/dist/browser/operations/databases.d.ts +283 -0
- package/dist/browser/operations/databases.d.ts.map +1 -0
- package/dist/browser/operations/databases.js +1152 -0
- package/dist/browser/operations/databases.js.map +1 -0
- package/dist/browser/operations/index.d.ts +8 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +15 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operationsStatus.d.ts +3 -3
- package/dist/browser/operations/operationsStatus.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operationsStatus.js +2 -2
- package/dist/browser/operations/operationsStatus.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.d.ts +24 -10
- package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.js +107 -101
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/privateLinkResources.d.ts +9 -5
- package/dist/browser/operations/privateLinkResources.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/privateLinkResources.js +8 -4
- package/dist/browser/operations/privateLinkResources.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/redisEnterprise.d.ts +33 -10
- package/dist/browser/operations/redisEnterprise.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/redisEnterprise.js +169 -135
- package/dist/browser/operations/redisEnterprise.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/accessPolicyAssignmentOperations.d.ts +19 -7
- package/dist/browser/operationsInterfaces/accessPolicyAssignmentOperations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/accessPolicyAssignmentOperations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/databases.d.ts +72 -28
- package/dist/browser/operationsInterfaces/databases.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/databases.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +8 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +15 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operationsStatus.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operationsStatus.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operationsStatus.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.d.ts +19 -7
- package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/privateLinkResources.d.ts +4 -2
- package/dist/browser/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/redisEnterprise.d.ts +31 -8
- package/dist/browser/operationsInterfaces/redisEnterprise.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/redisEnterprise.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/{dist-esm/src → dist/browser}/redisEnterpriseManagementClient.d.ts +2 -2
- package/dist/browser/redisEnterpriseManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/redisEnterpriseManagementClient.js +17 -20
- package/dist/browser/redisEnterpriseManagementClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +11 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +24 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/{types/arm-redisenterprisecache.d.ts → dist/commonjs/models/index.d.ts} +1624 -2165
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +367 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +65 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +1788 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +27 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +217 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/accessPolicyAssignmentOperations.d.ts +110 -0
- package/dist/commonjs/operations/accessPolicyAssignmentOperations.d.ts.map +1 -0
- package/dist/commonjs/operations/accessPolicyAssignmentOperations.js +415 -0
- package/dist/commonjs/operations/accessPolicyAssignmentOperations.js.map +1 -0
- package/dist/commonjs/operations/databases.d.ts +283 -0
- package/dist/commonjs/operations/databases.d.ts.map +1 -0
- package/dist/commonjs/operations/databases.js +1156 -0
- package/dist/commonjs/operations/databases.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +8 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +18 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +32 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +137 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/operationsStatus.d.ts +20 -0
- package/dist/commonjs/operations/operationsStatus.d.ts.map +1 -0
- package/dist/commonjs/operations/operationsStatus.js +58 -0
- package/dist/commonjs/operations/operationsStatus.js.map +1 -0
- package/dist/commonjs/operations/privateEndpointConnections.d.ts +94 -0
- package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist/commonjs/operations/privateEndpointConnections.js +345 -0
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -0
- package/dist/commonjs/operations/privateLinkResources.d.ts +34 -0
- package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -0
- package/dist/commonjs/operations/privateLinkResources.js +113 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -0
- package/dist/commonjs/operations/redisEnterprise.d.ts +130 -0
- package/dist/commonjs/operations/redisEnterprise.d.ts.map +1 -0
- package/dist/commonjs/operations/redisEnterprise.js +584 -0
- package/dist/commonjs/operations/redisEnterprise.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/accessPolicyAssignmentOperations.d.ts +79 -0
- package/dist/commonjs/operationsInterfaces/accessPolicyAssignmentOperations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/accessPolicyAssignmentOperations.js +10 -0
- package/dist/commonjs/operationsInterfaces/accessPolicyAssignmentOperations.js.map +1 -0
- package/{dist-esm/src/operations → dist/commonjs/operationsInterfaces}/databases.d.ts +74 -55
- package/dist/commonjs/operationsInterfaces/databases.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/databases.js +10 -0
- package/dist/commonjs/operationsInterfaces/databases.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +8 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +18 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operationsStatus.d.ts +12 -0
- package/dist/commonjs/operationsInterfaces/operationsStatus.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operationsStatus.js +10 -0
- package/dist/commonjs/operationsInterfaces/operationsStatus.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts +75 -0
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +10 -0
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts +15 -0
- package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateLinkResources.js +10 -0
- package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/redisEnterprise.d.ts +94 -0
- package/dist/commonjs/operationsInterfaces/redisEnterprise.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/redisEnterprise.js +10 -0
- package/dist/commonjs/operationsInterfaces/redisEnterprise.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/commonjs/redisEnterpriseManagementClient.d.ts +26 -0
- package/dist/commonjs/redisEnterpriseManagementClient.d.ts.map +1 -0
- package/dist/commonjs/redisEnterpriseManagementClient.js +109 -0
- package/dist/commonjs/redisEnterpriseManagementClient.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +11 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +21 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +1624 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +364 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +65 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +1784 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +27 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +214 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/accessPolicyAssignmentOperations.d.ts +110 -0
- package/dist/esm/operations/accessPolicyAssignmentOperations.d.ts.map +1 -0
- package/dist/esm/operations/accessPolicyAssignmentOperations.js +411 -0
- package/dist/esm/operations/accessPolicyAssignmentOperations.js.map +1 -0
- package/dist/esm/operations/databases.d.ts +283 -0
- package/dist/esm/operations/databases.d.ts.map +1 -0
- package/dist/esm/operations/databases.js +1152 -0
- package/dist/esm/operations/databases.js.map +1 -0
- package/dist/esm/operations/index.d.ts +8 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +15 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +32 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +133 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/operationsStatus.d.ts +20 -0
- package/dist/esm/operations/operationsStatus.d.ts.map +1 -0
- package/dist/esm/operations/operationsStatus.js +53 -0
- package/dist/esm/operations/operationsStatus.js.map +1 -0
- package/dist/esm/operations/privateEndpointConnections.d.ts +94 -0
- package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist/esm/operations/privateEndpointConnections.js +341 -0
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -0
- package/dist/esm/operations/privateLinkResources.d.ts +34 -0
- package/dist/esm/operations/privateLinkResources.d.ts.map +1 -0
- package/dist/esm/operations/privateLinkResources.js +109 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -0
- package/dist/esm/operations/redisEnterprise.d.ts +130 -0
- package/dist/esm/operations/redisEnterprise.d.ts.map +1 -0
- package/dist/esm/operations/redisEnterprise.js +580 -0
- package/dist/esm/operations/redisEnterprise.js.map +1 -0
- package/dist/esm/operationsInterfaces/accessPolicyAssignmentOperations.d.ts +79 -0
- package/dist/esm/operationsInterfaces/accessPolicyAssignmentOperations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/accessPolicyAssignmentOperations.js +9 -0
- package/dist/esm/operationsInterfaces/accessPolicyAssignmentOperations.js.map +1 -0
- package/dist/esm/operationsInterfaces/databases.d.ts +254 -0
- package/dist/esm/operationsInterfaces/databases.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/databases.js +9 -0
- package/dist/esm/operationsInterfaces/databases.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +8 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +15 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/operationsStatus.d.ts +12 -0
- package/dist/esm/operationsInterfaces/operationsStatus.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operationsStatus.js +9 -0
- package/dist/esm/operationsInterfaces/operationsStatus.js.map +1 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +75 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.d.ts +15 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist/esm/operationsInterfaces/redisEnterprise.d.ts +94 -0
- package/dist/esm/operationsInterfaces/redisEnterprise.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/redisEnterprise.js +9 -0
- package/dist/esm/operationsInterfaces/redisEnterprise.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/esm/redisEnterpriseManagementClient.d.ts +26 -0
- package/dist/esm/redisEnterpriseManagementClient.d.ts.map +1 -0
- package/dist/esm/redisEnterpriseManagementClient.js +104 -0
- package/dist/esm/redisEnterpriseManagementClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +11 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +21 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +1624 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +364 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +65 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +1784 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +27 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +214 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/accessPolicyAssignmentOperations.d.ts +110 -0
- package/dist/react-native/operations/accessPolicyAssignmentOperations.d.ts.map +1 -0
- package/dist/react-native/operations/accessPolicyAssignmentOperations.js +411 -0
- package/dist/react-native/operations/accessPolicyAssignmentOperations.js.map +1 -0
- package/dist/react-native/operations/databases.d.ts +283 -0
- package/dist/react-native/operations/databases.d.ts.map +1 -0
- package/dist/react-native/operations/databases.js +1152 -0
- package/dist/react-native/operations/databases.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +8 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +15 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +32 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +133 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/operationsStatus.d.ts +20 -0
- package/dist/react-native/operations/operationsStatus.d.ts.map +1 -0
- package/dist/react-native/operations/operationsStatus.js +53 -0
- package/dist/react-native/operations/operationsStatus.js.map +1 -0
- package/dist/react-native/operations/privateEndpointConnections.d.ts +94 -0
- package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist/react-native/operations/privateEndpointConnections.js +341 -0
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -0
- package/dist/react-native/operations/privateLinkResources.d.ts +34 -0
- package/dist/react-native/operations/privateLinkResources.d.ts.map +1 -0
- package/dist/react-native/operations/privateLinkResources.js +109 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -0
- package/dist/react-native/operations/redisEnterprise.d.ts +130 -0
- package/dist/react-native/operations/redisEnterprise.d.ts.map +1 -0
- package/dist/react-native/operations/redisEnterprise.js +580 -0
- package/dist/react-native/operations/redisEnterprise.js.map +1 -0
- package/dist/react-native/operationsInterfaces/accessPolicyAssignmentOperations.d.ts +79 -0
- package/dist/react-native/operationsInterfaces/accessPolicyAssignmentOperations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/accessPolicyAssignmentOperations.js +9 -0
- package/dist/react-native/operationsInterfaces/accessPolicyAssignmentOperations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/databases.d.ts +254 -0
- package/dist/react-native/operationsInterfaces/databases.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/databases.js +9 -0
- package/dist/react-native/operationsInterfaces/databases.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +8 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +15 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operationsStatus.d.ts +12 -0
- package/dist/react-native/operationsInterfaces/operationsStatus.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operationsStatus.js +9 -0
- package/dist/react-native/operationsInterfaces/operationsStatus.js.map +1 -0
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts +75 -0
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts +15 -0
- package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist/react-native/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist/react-native/operationsInterfaces/redisEnterprise.d.ts +94 -0
- package/dist/react-native/operationsInterfaces/redisEnterprise.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/redisEnterprise.js +9 -0
- package/dist/react-native/operationsInterfaces/redisEnterprise.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/dist/react-native/redisEnterpriseManagementClient.d.ts +26 -0
- package/dist/react-native/redisEnterpriseManagementClient.d.ts.map +1 -0
- package/dist/react-native/redisEnterpriseManagementClient.js +104 -0
- package/dist/react-native/redisEnterpriseManagementClient.js.map +1 -0
- package/package.json +71 -46
- package/review/arm-redisenterprisecache.api.md +55 -4
- package/LICENSE.txt +0 -21
- package/dist/index.js +0 -5153
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/accessPolicyAssignmentCreateUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/accessPolicyAssignmentCreateUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/accessPolicyAssignmentCreateUpdateSample.js +0 -45
- package/dist-esm/samples-dev/accessPolicyAssignmentCreateUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/accessPolicyAssignmentDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/accessPolicyAssignmentDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/accessPolicyAssignmentDeleteSample.js +0 -41
- package/dist-esm/samples-dev/accessPolicyAssignmentDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/accessPolicyAssignmentGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/accessPolicyAssignmentGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/accessPolicyAssignmentGetSample.js +0 -41
- package/dist-esm/samples-dev/accessPolicyAssignmentGetSample.js.map +0 -1
- package/dist-esm/samples-dev/accessPolicyAssignmentListSample.d.ts +0 -2
- package/dist-esm/samples-dev/accessPolicyAssignmentListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/accessPolicyAssignmentListSample.js +0 -56
- package/dist-esm/samples-dev/accessPolicyAssignmentListSample.js.map +0 -1
- package/dist-esm/samples-dev/databasesCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/databasesCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/databasesCreateSample.js +0 -92
- package/dist-esm/samples-dev/databasesCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/databasesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/databasesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/databasesDeleteSample.js +0 -40
- package/dist-esm/samples-dev/databasesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/databasesExportSample.d.ts +0 -2
- package/dist-esm/samples-dev/databasesExportSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/databasesExportSample.js +0 -43
- package/dist-esm/samples-dev/databasesExportSample.js.map +0 -1
- package/dist-esm/samples-dev/databasesFlushSample.d.ts +0 -2
- package/dist-esm/samples-dev/databasesFlushSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/databasesFlushSample.js +0 -45
- package/dist-esm/samples-dev/databasesFlushSample.js.map +0 -1
- package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.js +0 -51
- package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/databasesForceUnlinkSample.d.ts +0 -2
- package/dist-esm/samples-dev/databasesForceUnlinkSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/databasesForceUnlinkSample.js +0 -45
- package/dist-esm/samples-dev/databasesForceUnlinkSample.js.map +0 -1
- package/dist-esm/samples-dev/databasesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/databasesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/databasesGetSample.js +0 -40
- package/dist-esm/samples-dev/databasesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/databasesImportSample.d.ts +0 -2
- package/dist-esm/samples-dev/databasesImportSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/databasesImportSample.js +0 -46
- package/dist-esm/samples-dev/databasesImportSample.js.map +0 -1
- package/dist-esm/samples-dev/databasesListByClusterSample.d.ts +0 -2
- package/dist-esm/samples-dev/databasesListByClusterSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/databasesListByClusterSample.js +0 -55
- package/dist-esm/samples-dev/databasesListByClusterSample.js.map +0 -1
- package/dist-esm/samples-dev/databasesListKeysSample.d.ts +0 -2
- package/dist-esm/samples-dev/databasesListKeysSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/databasesListKeysSample.js +0 -40
- package/dist-esm/samples-dev/databasesListKeysSample.js.map +0 -1
- package/dist-esm/samples-dev/databasesRegenerateKeySample.d.ts +0 -2
- package/dist-esm/samples-dev/databasesRegenerateKeySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/databasesRegenerateKeySample.js +0 -41
- package/dist-esm/samples-dev/databasesRegenerateKeySample.js.map +0 -1
- package/dist-esm/samples-dev/databasesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/databasesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/databasesUpdateSample.js +0 -46
- package/dist-esm/samples-dev/databasesUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.d.ts +0 -2
- package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.js +0 -40
- package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -53
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsStatusGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsStatusGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsStatusGetSample.js +0 -39
- package/dist-esm/samples-dev/operationsStatusGetSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +0 -40
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +0 -40
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +0 -55
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +0 -46
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +0 -55
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseCreateSample.js +0 -61
- package/dist-esm/samples-dev/redisEnterpriseCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js +0 -39
- package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseGetSample.js +0 -39
- package/dist-esm/samples-dev/redisEnterpriseGetSample.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js +0 -54
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseListSample.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseListSample.js +0 -53
- package/dist-esm/samples-dev/redisEnterpriseListSample.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js +0 -44
- package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.d.ts.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/accessPolicyAssignmentOperations.d.ts.map +0 -1
- package/dist-esm/src/operations/accessPolicyAssignmentOperations.js.map +0 -1
- package/dist-esm/src/operations/databases.d.ts.map +0 -1
- package/dist-esm/src/operations/databases.js +0 -1150
- package/dist-esm/src/operations/databases.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -8
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -15
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/operationsStatus.d.ts.map +0 -1
- package/dist-esm/src/operations/operationsStatus.js.map +0 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +0 -1
- package/dist-esm/src/operations/privateEndpointConnections.js.map +0 -1
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +0 -1
- package/dist-esm/src/operations/privateLinkResources.js.map +0 -1
- package/dist-esm/src/operations/redisEnterprise.d.ts.map +0 -1
- package/dist-esm/src/operations/redisEnterprise.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/accessPolicyAssignmentOperations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/accessPolicyAssignmentOperations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/databases.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/databases.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -8
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -15
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operationsStatus.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/redisEnterprise.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/redisEnterprise.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/src/redisEnterpriseManagementClient.d.ts.map +0 -1
- package/dist-esm/src/redisEnterpriseManagementClient.js.map +0 -1
- package/dist-esm/test/redisenterprisecache_test.spec.d.ts +0 -4
- package/dist-esm/test/redisenterprisecache_test.spec.d.ts.map +0 -1
- package/dist-esm/test/redisenterprisecache_test.spec.js +0 -74
- package/dist-esm/test/redisenterprisecache_test.spec.js.map +0 -1
- package/src/lroImpl.ts +0 -42
- package/src/models/index.ts +0 -1720
- package/src/models/mappers.ts +0 -1773
- package/src/models/parameters.ts +0 -257
- package/src/operations/accessPolicyAssignmentOperations.ts +0 -569
- package/src/operations/databases.ts +0 -1603
- package/src/operations/index.ts +0 -15
- package/src/operations/operations.ts +0 -149
- package/src/operations/operationsStatus.ts +0 -71
- package/src/operations/privateEndpointConnections.ts +0 -451
- package/src/operations/privateLinkResources.ts +0 -136
- package/src/operations/redisEnterprise.ts +0 -708
- package/src/operationsInterfaces/accessPolicyAssignmentOperations.ts +0 -132
- package/src/operationsInterfaces/databases.ts +0 -403
- package/src/operationsInterfaces/index.ts +0 -15
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/operationsStatus.ts +0 -27
- package/src/operationsInterfaces/privateEndpointConnections.ts +0 -116
- package/src/operationsInterfaces/privateLinkResources.ts +0 -29
- package/src/operationsInterfaces/redisEnterprise.ts +0 -139
- package/src/pagingHelper.ts +0 -39
- package/src/redisEnterpriseManagementClient.ts +0 -170
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/accessPolicyAssignmentOperations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/databases.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operationsStatus.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateLinkResources.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/redisEnterprise.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.RedisEnterpriseImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const pagingHelper_js_1 = require("../pagingHelper.js");
|
|
13
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
14
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
15
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
16
|
+
const core_lro_1 = require("@azure/core-lro");
|
|
17
|
+
const lroImpl_js_1 = require("../lroImpl.js");
|
|
18
|
+
/// <reference lib="esnext.asynciterable" />
|
|
19
|
+
/** Class containing RedisEnterprise operations. */
|
|
20
|
+
class RedisEnterpriseImpl {
|
|
21
|
+
/**
|
|
22
|
+
* Initialize a new instance of the class RedisEnterprise class.
|
|
23
|
+
* @param client Reference to the service client
|
|
24
|
+
*/
|
|
25
|
+
constructor(client) {
|
|
26
|
+
this.client = client;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Lists all Redis Enterprise clusters in a resource group.
|
|
30
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
31
|
+
* @param options The options parameters.
|
|
32
|
+
*/
|
|
33
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
34
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
35
|
+
return {
|
|
36
|
+
next() {
|
|
37
|
+
return iter.next();
|
|
38
|
+
},
|
|
39
|
+
[Symbol.asyncIterator]() {
|
|
40
|
+
return this;
|
|
41
|
+
},
|
|
42
|
+
byPage: (settings) => {
|
|
43
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
44
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
|
+
}
|
|
46
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
51
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = yield tslib_1.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
56
|
+
let page = result.value || [];
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
59
|
+
yield yield tslib_1.__await(page);
|
|
60
|
+
}
|
|
61
|
+
while (continuationToken) {
|
|
62
|
+
result = yield tslib_1.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
63
|
+
continuationToken = result.nextLink;
|
|
64
|
+
let page = result.value || [];
|
|
65
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
66
|
+
yield yield tslib_1.__await(page);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
71
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
72
|
+
var _a, e_1, _b, _c;
|
|
73
|
+
try {
|
|
74
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
75
|
+
_c = _f.value;
|
|
76
|
+
_d = false;
|
|
77
|
+
const page = _c;
|
|
78
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
+
finally {
|
|
83
|
+
try {
|
|
84
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
85
|
+
}
|
|
86
|
+
finally { if (e_1) throw e_1.error; }
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Lists all Redis Enterprise clusters in the specified subscription.
|
|
92
|
+
* @param options The options parameters.
|
|
93
|
+
*/
|
|
94
|
+
list(options) {
|
|
95
|
+
const iter = this.listPagingAll(options);
|
|
96
|
+
return {
|
|
97
|
+
next() {
|
|
98
|
+
return iter.next();
|
|
99
|
+
},
|
|
100
|
+
[Symbol.asyncIterator]() {
|
|
101
|
+
return this;
|
|
102
|
+
},
|
|
103
|
+
byPage: (settings) => {
|
|
104
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
105
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
106
|
+
}
|
|
107
|
+
return this.listPagingPage(options, settings);
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
listPagingPage(options, settings) {
|
|
112
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
113
|
+
let result;
|
|
114
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
115
|
+
if (!continuationToken) {
|
|
116
|
+
result = yield tslib_1.__await(this._list(options));
|
|
117
|
+
let page = result.value || [];
|
|
118
|
+
continuationToken = result.nextLink;
|
|
119
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
120
|
+
yield yield tslib_1.__await(page);
|
|
121
|
+
}
|
|
122
|
+
while (continuationToken) {
|
|
123
|
+
result = yield tslib_1.__await(this._listNext(continuationToken, options));
|
|
124
|
+
continuationToken = result.nextLink;
|
|
125
|
+
let page = result.value || [];
|
|
126
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
127
|
+
yield yield tslib_1.__await(page);
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
listPagingAll(options) {
|
|
132
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
133
|
+
var _a, e_2, _b, _c;
|
|
134
|
+
try {
|
|
135
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
136
|
+
_c = _f.value;
|
|
137
|
+
_d = false;
|
|
138
|
+
const page = _c;
|
|
139
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
143
|
+
finally {
|
|
144
|
+
try {
|
|
145
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
146
|
+
}
|
|
147
|
+
finally { if (e_2) throw e_2.error; }
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster
|
|
153
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
154
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
155
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
156
|
+
* consecutive hyphens
|
|
157
|
+
* @param parameters Parameters supplied to the Create Redis Enterprise operation.
|
|
158
|
+
* @param options The options parameters.
|
|
159
|
+
*/
|
|
160
|
+
async beginCreate(resourceGroupName, clusterName, parameters, options) {
|
|
161
|
+
const directSendOperation = async (args, spec) => {
|
|
162
|
+
return this.client.sendOperationRequest(args, spec);
|
|
163
|
+
};
|
|
164
|
+
const sendOperationFn = async (args, spec) => {
|
|
165
|
+
var _a;
|
|
166
|
+
let currentRawResponse = undefined;
|
|
167
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
168
|
+
const callback = (rawResponse, flatResponse) => {
|
|
169
|
+
currentRawResponse = rawResponse;
|
|
170
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
171
|
+
};
|
|
172
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
173
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
174
|
+
return {
|
|
175
|
+
flatResponse,
|
|
176
|
+
rawResponse: {
|
|
177
|
+
statusCode: currentRawResponse.status,
|
|
178
|
+
body: currentRawResponse.parsedBody,
|
|
179
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
180
|
+
},
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
const lro = (0, lroImpl_js_1.createLroSpec)({
|
|
184
|
+
sendOperationFn,
|
|
185
|
+
args: { resourceGroupName, clusterName, parameters, options },
|
|
186
|
+
spec: createOperationSpec,
|
|
187
|
+
});
|
|
188
|
+
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
189
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
190
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
191
|
+
resourceLocationConfig: "original-uri",
|
|
192
|
+
});
|
|
193
|
+
await poller.poll();
|
|
194
|
+
return poller;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster
|
|
198
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
199
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
200
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
201
|
+
* consecutive hyphens
|
|
202
|
+
* @param parameters Parameters supplied to the Create Redis Enterprise operation.
|
|
203
|
+
* @param options The options parameters.
|
|
204
|
+
*/
|
|
205
|
+
async beginCreateAndWait(resourceGroupName, clusterName, parameters, options) {
|
|
206
|
+
const poller = await this.beginCreate(resourceGroupName, clusterName, parameters, options);
|
|
207
|
+
return poller.pollUntilDone();
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Updates an existing Redis Enterprise cluster
|
|
211
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
212
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
213
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
214
|
+
* consecutive hyphens
|
|
215
|
+
* @param parameters Parameters supplied to the Update Redis Enterprise operation.
|
|
216
|
+
* @param options The options parameters.
|
|
217
|
+
*/
|
|
218
|
+
async beginUpdate(resourceGroupName, clusterName, parameters, options) {
|
|
219
|
+
const directSendOperation = async (args, spec) => {
|
|
220
|
+
return this.client.sendOperationRequest(args, spec);
|
|
221
|
+
};
|
|
222
|
+
const sendOperationFn = async (args, spec) => {
|
|
223
|
+
var _a;
|
|
224
|
+
let currentRawResponse = undefined;
|
|
225
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
226
|
+
const callback = (rawResponse, flatResponse) => {
|
|
227
|
+
currentRawResponse = rawResponse;
|
|
228
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
229
|
+
};
|
|
230
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
231
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
232
|
+
return {
|
|
233
|
+
flatResponse,
|
|
234
|
+
rawResponse: {
|
|
235
|
+
statusCode: currentRawResponse.status,
|
|
236
|
+
body: currentRawResponse.parsedBody,
|
|
237
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
238
|
+
},
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
const lro = (0, lroImpl_js_1.createLroSpec)({
|
|
242
|
+
sendOperationFn,
|
|
243
|
+
args: { resourceGroupName, clusterName, parameters, options },
|
|
244
|
+
spec: updateOperationSpec,
|
|
245
|
+
});
|
|
246
|
+
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
247
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
248
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
249
|
+
resourceLocationConfig: "azure-async-operation",
|
|
250
|
+
});
|
|
251
|
+
await poller.poll();
|
|
252
|
+
return poller;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Updates an existing Redis Enterprise cluster
|
|
256
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
257
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
258
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
259
|
+
* consecutive hyphens
|
|
260
|
+
* @param parameters Parameters supplied to the Update Redis Enterprise operation.
|
|
261
|
+
* @param options The options parameters.
|
|
262
|
+
*/
|
|
263
|
+
async beginUpdateAndWait(resourceGroupName, clusterName, parameters, options) {
|
|
264
|
+
const poller = await this.beginUpdate(resourceGroupName, clusterName, parameters, options);
|
|
265
|
+
return poller.pollUntilDone();
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Deletes a Redis Enterprise cache cluster.
|
|
269
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
270
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
271
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
272
|
+
* consecutive hyphens
|
|
273
|
+
* @param options The options parameters.
|
|
274
|
+
*/
|
|
275
|
+
async beginDelete(resourceGroupName, clusterName, options) {
|
|
276
|
+
const directSendOperation = async (args, spec) => {
|
|
277
|
+
return this.client.sendOperationRequest(args, spec);
|
|
278
|
+
};
|
|
279
|
+
const sendOperationFn = async (args, spec) => {
|
|
280
|
+
var _a;
|
|
281
|
+
let currentRawResponse = undefined;
|
|
282
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
283
|
+
const callback = (rawResponse, flatResponse) => {
|
|
284
|
+
currentRawResponse = rawResponse;
|
|
285
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
286
|
+
};
|
|
287
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
288
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
289
|
+
return {
|
|
290
|
+
flatResponse,
|
|
291
|
+
rawResponse: {
|
|
292
|
+
statusCode: currentRawResponse.status,
|
|
293
|
+
body: currentRawResponse.parsedBody,
|
|
294
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
295
|
+
},
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
const lro = (0, lroImpl_js_1.createLroSpec)({
|
|
299
|
+
sendOperationFn,
|
|
300
|
+
args: { resourceGroupName, clusterName, options },
|
|
301
|
+
spec: deleteOperationSpec,
|
|
302
|
+
});
|
|
303
|
+
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
304
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
305
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
306
|
+
resourceLocationConfig: "azure-async-operation",
|
|
307
|
+
});
|
|
308
|
+
await poller.poll();
|
|
309
|
+
return poller;
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Deletes a Redis Enterprise cache cluster.
|
|
313
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
314
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
315
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
316
|
+
* consecutive hyphens
|
|
317
|
+
* @param options The options parameters.
|
|
318
|
+
*/
|
|
319
|
+
async beginDeleteAndWait(resourceGroupName, clusterName, options) {
|
|
320
|
+
const poller = await this.beginDelete(resourceGroupName, clusterName, options);
|
|
321
|
+
return poller.pollUntilDone();
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Gets information about a Redis Enterprise cluster
|
|
325
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
326
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
327
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
328
|
+
* consecutive hyphens
|
|
329
|
+
* @param options The options parameters.
|
|
330
|
+
*/
|
|
331
|
+
get(resourceGroupName, clusterName, options) {
|
|
332
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, getOperationSpec);
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Lists all Redis Enterprise clusters in a resource group.
|
|
336
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
337
|
+
* @param options The options parameters.
|
|
338
|
+
*/
|
|
339
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
340
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Lists all Redis Enterprise clusters in the specified subscription.
|
|
344
|
+
* @param options The options parameters.
|
|
345
|
+
*/
|
|
346
|
+
_list(options) {
|
|
347
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Lists the available SKUs for scaling the Redis Enterprise cluster.
|
|
351
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
352
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
353
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
354
|
+
* consecutive hyphens
|
|
355
|
+
* @param options The options parameters.
|
|
356
|
+
*/
|
|
357
|
+
listSkusForScaling(resourceGroupName, clusterName, options) {
|
|
358
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listSkusForScalingOperationSpec);
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* ListByResourceGroupNext
|
|
362
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
363
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
364
|
+
* @param options The options parameters.
|
|
365
|
+
*/
|
|
366
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
367
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* ListNext
|
|
371
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
372
|
+
* @param options The options parameters.
|
|
373
|
+
*/
|
|
374
|
+
_listNext(nextLink, options) {
|
|
375
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
exports.RedisEnterpriseImpl = RedisEnterpriseImpl;
|
|
379
|
+
// Operation Specifications
|
|
380
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
381
|
+
const createOperationSpec = {
|
|
382
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
|
|
383
|
+
httpMethod: "PUT",
|
|
384
|
+
responses: {
|
|
385
|
+
200: {
|
|
386
|
+
bodyMapper: Mappers.Cluster,
|
|
387
|
+
},
|
|
388
|
+
201: {
|
|
389
|
+
bodyMapper: Mappers.Cluster,
|
|
390
|
+
},
|
|
391
|
+
202: {
|
|
392
|
+
bodyMapper: Mappers.Cluster,
|
|
393
|
+
},
|
|
394
|
+
204: {
|
|
395
|
+
bodyMapper: Mappers.Cluster,
|
|
396
|
+
},
|
|
397
|
+
default: {
|
|
398
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
399
|
+
},
|
|
400
|
+
},
|
|
401
|
+
requestBody: Parameters.parameters,
|
|
402
|
+
queryParameters: [Parameters.apiVersion],
|
|
403
|
+
urlParameters: [
|
|
404
|
+
Parameters.$host,
|
|
405
|
+
Parameters.subscriptionId,
|
|
406
|
+
Parameters.resourceGroupName,
|
|
407
|
+
Parameters.clusterName,
|
|
408
|
+
],
|
|
409
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
410
|
+
mediaType: "json",
|
|
411
|
+
serializer,
|
|
412
|
+
};
|
|
413
|
+
const updateOperationSpec = {
|
|
414
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
|
|
415
|
+
httpMethod: "PATCH",
|
|
416
|
+
responses: {
|
|
417
|
+
200: {
|
|
418
|
+
bodyMapper: Mappers.Cluster,
|
|
419
|
+
},
|
|
420
|
+
201: {
|
|
421
|
+
bodyMapper: Mappers.Cluster,
|
|
422
|
+
},
|
|
423
|
+
202: {
|
|
424
|
+
bodyMapper: Mappers.Cluster,
|
|
425
|
+
},
|
|
426
|
+
204: {
|
|
427
|
+
bodyMapper: Mappers.Cluster,
|
|
428
|
+
},
|
|
429
|
+
default: {
|
|
430
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
431
|
+
},
|
|
432
|
+
},
|
|
433
|
+
requestBody: Parameters.parameters1,
|
|
434
|
+
queryParameters: [Parameters.apiVersion],
|
|
435
|
+
urlParameters: [
|
|
436
|
+
Parameters.$host,
|
|
437
|
+
Parameters.subscriptionId,
|
|
438
|
+
Parameters.resourceGroupName,
|
|
439
|
+
Parameters.clusterName,
|
|
440
|
+
],
|
|
441
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
442
|
+
mediaType: "json",
|
|
443
|
+
serializer,
|
|
444
|
+
};
|
|
445
|
+
const deleteOperationSpec = {
|
|
446
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
|
|
447
|
+
httpMethod: "DELETE",
|
|
448
|
+
responses: {
|
|
449
|
+
200: {},
|
|
450
|
+
201: {},
|
|
451
|
+
202: {},
|
|
452
|
+
204: {},
|
|
453
|
+
default: {
|
|
454
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
455
|
+
},
|
|
456
|
+
},
|
|
457
|
+
queryParameters: [Parameters.apiVersion],
|
|
458
|
+
urlParameters: [
|
|
459
|
+
Parameters.$host,
|
|
460
|
+
Parameters.subscriptionId,
|
|
461
|
+
Parameters.resourceGroupName,
|
|
462
|
+
Parameters.clusterName,
|
|
463
|
+
],
|
|
464
|
+
headerParameters: [Parameters.accept],
|
|
465
|
+
serializer,
|
|
466
|
+
};
|
|
467
|
+
const getOperationSpec = {
|
|
468
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
|
|
469
|
+
httpMethod: "GET",
|
|
470
|
+
responses: {
|
|
471
|
+
200: {
|
|
472
|
+
bodyMapper: Mappers.Cluster,
|
|
473
|
+
},
|
|
474
|
+
default: {
|
|
475
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
476
|
+
},
|
|
477
|
+
},
|
|
478
|
+
queryParameters: [Parameters.apiVersion],
|
|
479
|
+
urlParameters: [
|
|
480
|
+
Parameters.$host,
|
|
481
|
+
Parameters.subscriptionId,
|
|
482
|
+
Parameters.resourceGroupName,
|
|
483
|
+
Parameters.clusterName,
|
|
484
|
+
],
|
|
485
|
+
headerParameters: [Parameters.accept],
|
|
486
|
+
serializer,
|
|
487
|
+
};
|
|
488
|
+
const listByResourceGroupOperationSpec = {
|
|
489
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise",
|
|
490
|
+
httpMethod: "GET",
|
|
491
|
+
responses: {
|
|
492
|
+
200: {
|
|
493
|
+
bodyMapper: Mappers.ClusterList,
|
|
494
|
+
},
|
|
495
|
+
default: {
|
|
496
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
497
|
+
},
|
|
498
|
+
},
|
|
499
|
+
queryParameters: [Parameters.apiVersion],
|
|
500
|
+
urlParameters: [
|
|
501
|
+
Parameters.$host,
|
|
502
|
+
Parameters.subscriptionId,
|
|
503
|
+
Parameters.resourceGroupName,
|
|
504
|
+
],
|
|
505
|
+
headerParameters: [Parameters.accept],
|
|
506
|
+
serializer,
|
|
507
|
+
};
|
|
508
|
+
const listOperationSpec = {
|
|
509
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/redisEnterprise",
|
|
510
|
+
httpMethod: "GET",
|
|
511
|
+
responses: {
|
|
512
|
+
200: {
|
|
513
|
+
bodyMapper: Mappers.ClusterList,
|
|
514
|
+
},
|
|
515
|
+
default: {
|
|
516
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
517
|
+
},
|
|
518
|
+
},
|
|
519
|
+
queryParameters: [Parameters.apiVersion],
|
|
520
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
521
|
+
headerParameters: [Parameters.accept],
|
|
522
|
+
serializer,
|
|
523
|
+
};
|
|
524
|
+
const listSkusForScalingOperationSpec = {
|
|
525
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/listSkusForScaling",
|
|
526
|
+
httpMethod: "POST",
|
|
527
|
+
responses: {
|
|
528
|
+
200: {
|
|
529
|
+
bodyMapper: Mappers.SkuDetailsList,
|
|
530
|
+
},
|
|
531
|
+
default: {
|
|
532
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
533
|
+
},
|
|
534
|
+
},
|
|
535
|
+
queryParameters: [Parameters.apiVersion],
|
|
536
|
+
urlParameters: [
|
|
537
|
+
Parameters.$host,
|
|
538
|
+
Parameters.subscriptionId,
|
|
539
|
+
Parameters.resourceGroupName,
|
|
540
|
+
Parameters.clusterName,
|
|
541
|
+
],
|
|
542
|
+
headerParameters: [Parameters.accept],
|
|
543
|
+
serializer,
|
|
544
|
+
};
|
|
545
|
+
const listByResourceGroupNextOperationSpec = {
|
|
546
|
+
path: "{nextLink}",
|
|
547
|
+
httpMethod: "GET",
|
|
548
|
+
responses: {
|
|
549
|
+
200: {
|
|
550
|
+
bodyMapper: Mappers.ClusterList,
|
|
551
|
+
},
|
|
552
|
+
default: {
|
|
553
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
554
|
+
},
|
|
555
|
+
},
|
|
556
|
+
urlParameters: [
|
|
557
|
+
Parameters.$host,
|
|
558
|
+
Parameters.nextLink,
|
|
559
|
+
Parameters.subscriptionId,
|
|
560
|
+
Parameters.resourceGroupName,
|
|
561
|
+
],
|
|
562
|
+
headerParameters: [Parameters.accept],
|
|
563
|
+
serializer,
|
|
564
|
+
};
|
|
565
|
+
const listNextOperationSpec = {
|
|
566
|
+
path: "{nextLink}",
|
|
567
|
+
httpMethod: "GET",
|
|
568
|
+
responses: {
|
|
569
|
+
200: {
|
|
570
|
+
bodyMapper: Mappers.ClusterList,
|
|
571
|
+
},
|
|
572
|
+
default: {
|
|
573
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
574
|
+
},
|
|
575
|
+
},
|
|
576
|
+
urlParameters: [
|
|
577
|
+
Parameters.$host,
|
|
578
|
+
Parameters.nextLink,
|
|
579
|
+
Parameters.subscriptionId,
|
|
580
|
+
],
|
|
581
|
+
headerParameters: [Parameters.accept],
|
|
582
|
+
serializer,
|
|
583
|
+
};
|
|
584
|
+
//# sourceMappingURL=redisEnterprise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redisEnterprise.js","sourceRoot":"","sources":["../../../src/operations/redisEnterprise.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAuB9C,4CAA4C;AAC5C,mDAAmD;AACnD,MAAa,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAA0D;QAE1D,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,u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C;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { RedisEnterprise } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { RedisEnterpriseManagementClient } from \"../redisEnterpriseManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Cluster,\n RedisEnterpriseListByResourceGroupNextOptionalParams,\n RedisEnterpriseListByResourceGroupOptionalParams,\n RedisEnterpriseListByResourceGroupResponse,\n RedisEnterpriseListNextOptionalParams,\n RedisEnterpriseListOptionalParams,\n RedisEnterpriseListResponse,\n RedisEnterpriseCreateOptionalParams,\n RedisEnterpriseCreateResponse,\n ClusterUpdate,\n RedisEnterpriseUpdateOptionalParams,\n RedisEnterpriseUpdateResponse,\n RedisEnterpriseDeleteOptionalParams,\n RedisEnterpriseGetOptionalParams,\n RedisEnterpriseGetResponse,\n RedisEnterpriseListSkusForScalingOptionalParams,\n RedisEnterpriseListSkusForScalingResponse,\n RedisEnterpriseListByResourceGroupNextResponse,\n RedisEnterpriseListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RedisEnterprise operations. */\nexport class RedisEnterpriseImpl implements RedisEnterprise {\n private readonly client: RedisEnterpriseManagementClient;\n\n /**\n * Initialize a new instance of the class RedisEnterprise class.\n * @param client Reference to the service client\n */\n constructor(client: RedisEnterpriseManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all Redis Enterprise clusters in a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: RedisEnterpriseListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<Cluster> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: RedisEnterpriseListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Cluster[]> {\n let result: RedisEnterpriseListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: RedisEnterpriseListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<Cluster> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all Redis Enterprise clusters in the specified subscription.\n * @param options The options parameters.\n */\n public list(\n options?: RedisEnterpriseListOptionalParams,\n ): PagedAsyncIterableIterator<Cluster> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: RedisEnterpriseListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Cluster[]> {\n let result: RedisEnterpriseListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: RedisEnterpriseListOptionalParams,\n ): AsyncIterableIterator<Cluster> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param parameters Parameters supplied to the Create Redis Enterprise operation.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n clusterName: string,\n parameters: Cluster,\n options?: RedisEnterpriseCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<RedisEnterpriseCreateResponse>,\n RedisEnterpriseCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RedisEnterpriseCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, clusterName, parameters, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n RedisEnterpriseCreateResponse,\n OperationState<RedisEnterpriseCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"original-uri\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param parameters Parameters supplied to the Create Redis Enterprise operation.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n clusterName: string,\n parameters: Cluster,\n options?: RedisEnterpriseCreateOptionalParams,\n ): Promise<RedisEnterpriseCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n clusterName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an existing Redis Enterprise cluster\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param parameters Parameters supplied to the Update Redis Enterprise operation.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n clusterName: string,\n parameters: ClusterUpdate,\n options?: RedisEnterpriseUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<RedisEnterpriseUpdateResponse>,\n RedisEnterpriseUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RedisEnterpriseUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, clusterName, parameters, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n RedisEnterpriseUpdateResponse,\n OperationState<RedisEnterpriseUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates an existing Redis Enterprise cluster\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param parameters Parameters supplied to the Update Redis Enterprise operation.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n parameters: ClusterUpdate,\n options?: RedisEnterpriseUpdateOptionalParams,\n ): Promise<RedisEnterpriseUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n clusterName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a Redis Enterprise cache cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, clusterName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a Redis Enterprise cache cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets information about a Redis Enterprise cluster\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseGetOptionalParams,\n ): Promise<RedisEnterpriseGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Lists all Redis Enterprise clusters in a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: RedisEnterpriseListByResourceGroupOptionalParams,\n ): Promise<RedisEnterpriseListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Lists all Redis Enterprise clusters in the specified subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: RedisEnterpriseListOptionalParams,\n ): Promise<RedisEnterpriseListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Lists the available SKUs for scaling the Redis Enterprise cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.\n * Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor\n * consecutive hyphens\n * @param options The options parameters.\n */\n listSkusForScaling(\n resourceGroupName: string,\n clusterName: string,\n options?: RedisEnterpriseListSkusForScalingOptionalParams,\n ): Promise<RedisEnterpriseListSkusForScalingResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n listSkusForScalingOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: RedisEnterpriseListByResourceGroupNextOptionalParams,\n ): Promise<RedisEnterpriseListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: RedisEnterpriseListNextOptionalParams,\n ): Promise<RedisEnterpriseListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Cluster,\n },\n 201: {\n bodyMapper: Mappers.Cluster,\n },\n 202: {\n bodyMapper: Mappers.Cluster,\n },\n 204: {\n bodyMapper: Mappers.Cluster,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Cluster,\n },\n 201: {\n bodyMapper: Mappers.Cluster,\n },\n 202: {\n bodyMapper: Mappers.Cluster,\n },\n 204: {\n bodyMapper: Mappers.Cluster,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Cluster,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Cache/redisEnterprise\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listSkusForScalingOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/listSkusForScaling\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SkuDetailsList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ClusterList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|