@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,345 @@
|
|
|
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.PrivateEndpointConnectionsImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
13
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
14
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
|
+
const core_lro_1 = require("@azure/core-lro");
|
|
16
|
+
const lroImpl_js_1 = require("../lroImpl.js");
|
|
17
|
+
/// <reference lib="esnext.asynciterable" />
|
|
18
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
19
|
+
class PrivateEndpointConnectionsImpl {
|
|
20
|
+
/**
|
|
21
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
22
|
+
* @param client Reference to the service client
|
|
23
|
+
*/
|
|
24
|
+
constructor(client) {
|
|
25
|
+
this.client = client;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Lists all the private endpoint connections associated with the Redis Enterprise cluster.
|
|
29
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
30
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
31
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
32
|
+
* consecutive hyphens
|
|
33
|
+
* @param options The options parameters.
|
|
34
|
+
*/
|
|
35
|
+
list(resourceGroupName, clusterName, options) {
|
|
36
|
+
const iter = this.listPagingAll(resourceGroupName, clusterName, options);
|
|
37
|
+
return {
|
|
38
|
+
next() {
|
|
39
|
+
return iter.next();
|
|
40
|
+
},
|
|
41
|
+
[Symbol.asyncIterator]() {
|
|
42
|
+
return this;
|
|
43
|
+
},
|
|
44
|
+
byPage: (settings) => {
|
|
45
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
46
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
47
|
+
}
|
|
48
|
+
return this.listPagingPage(resourceGroupName, clusterName, options, settings);
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
listPagingPage(resourceGroupName, clusterName, options, _settings) {
|
|
53
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
54
|
+
let result;
|
|
55
|
+
result = yield tslib_1.__await(this._list(resourceGroupName, clusterName, options));
|
|
56
|
+
yield yield tslib_1.__await(result.value || []);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
listPagingAll(resourceGroupName, clusterName, options) {
|
|
60
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
61
|
+
var _a, e_1, _b, _c;
|
|
62
|
+
try {
|
|
63
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
64
|
+
_c = _f.value;
|
|
65
|
+
_d = false;
|
|
66
|
+
const page = _c;
|
|
67
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
71
|
+
finally {
|
|
72
|
+
try {
|
|
73
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
74
|
+
}
|
|
75
|
+
finally { if (e_1) throw e_1.error; }
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Lists all the private endpoint connections associated with the Redis Enterprise cluster.
|
|
81
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
82
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
83
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
84
|
+
* consecutive hyphens
|
|
85
|
+
* @param options The options parameters.
|
|
86
|
+
*/
|
|
87
|
+
_list(resourceGroupName, clusterName, options) {
|
|
88
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listOperationSpec);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Gets the specified private endpoint connection associated with the Redis Enterprise cluster.
|
|
92
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
93
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
94
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
95
|
+
* consecutive hyphens
|
|
96
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
97
|
+
* Azure resource
|
|
98
|
+
* @param options The options parameters.
|
|
99
|
+
*/
|
|
100
|
+
get(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
|
|
101
|
+
return this.client.sendOperationRequest({
|
|
102
|
+
resourceGroupName,
|
|
103
|
+
clusterName,
|
|
104
|
+
privateEndpointConnectionName,
|
|
105
|
+
options,
|
|
106
|
+
}, getOperationSpec);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Updates the state of the specified private endpoint connection associated with the Redis Enterprise
|
|
110
|
+
* cluster.
|
|
111
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
112
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
113
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
114
|
+
* consecutive hyphens
|
|
115
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
116
|
+
* Azure resource
|
|
117
|
+
* @param properties The private endpoint connection properties.
|
|
118
|
+
* @param options The options parameters.
|
|
119
|
+
*/
|
|
120
|
+
async beginPut(resourceGroupName, clusterName, privateEndpointConnectionName, properties, options) {
|
|
121
|
+
const directSendOperation = async (args, spec) => {
|
|
122
|
+
return this.client.sendOperationRequest(args, spec);
|
|
123
|
+
};
|
|
124
|
+
const sendOperationFn = async (args, spec) => {
|
|
125
|
+
var _a;
|
|
126
|
+
let currentRawResponse = undefined;
|
|
127
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
128
|
+
const callback = (rawResponse, flatResponse) => {
|
|
129
|
+
currentRawResponse = rawResponse;
|
|
130
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
131
|
+
};
|
|
132
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
133
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
134
|
+
return {
|
|
135
|
+
flatResponse,
|
|
136
|
+
rawResponse: {
|
|
137
|
+
statusCode: currentRawResponse.status,
|
|
138
|
+
body: currentRawResponse.parsedBody,
|
|
139
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
140
|
+
},
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
const lro = (0, lroImpl_js_1.createLroSpec)({
|
|
144
|
+
sendOperationFn,
|
|
145
|
+
args: {
|
|
146
|
+
resourceGroupName,
|
|
147
|
+
clusterName,
|
|
148
|
+
privateEndpointConnectionName,
|
|
149
|
+
properties,
|
|
150
|
+
options,
|
|
151
|
+
},
|
|
152
|
+
spec: putOperationSpec,
|
|
153
|
+
});
|
|
154
|
+
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
155
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
156
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
157
|
+
});
|
|
158
|
+
await poller.poll();
|
|
159
|
+
return poller;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Updates the state of the specified private endpoint connection associated with the Redis Enterprise
|
|
163
|
+
* cluster.
|
|
164
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
165
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
166
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
167
|
+
* consecutive hyphens
|
|
168
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
169
|
+
* Azure resource
|
|
170
|
+
* @param properties The private endpoint connection properties.
|
|
171
|
+
* @param options The options parameters.
|
|
172
|
+
*/
|
|
173
|
+
async beginPutAndWait(resourceGroupName, clusterName, privateEndpointConnectionName, properties, options) {
|
|
174
|
+
const poller = await this.beginPut(resourceGroupName, clusterName, privateEndpointConnectionName, properties, options);
|
|
175
|
+
return poller.pollUntilDone();
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Deletes the specified private endpoint connection associated with the Redis Enterprise cluster.
|
|
179
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
180
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
181
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
182
|
+
* consecutive hyphens
|
|
183
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
184
|
+
* Azure resource
|
|
185
|
+
* @param options The options parameters.
|
|
186
|
+
*/
|
|
187
|
+
async beginDelete(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
|
|
188
|
+
const directSendOperation = async (args, spec) => {
|
|
189
|
+
return this.client.sendOperationRequest(args, spec);
|
|
190
|
+
};
|
|
191
|
+
const sendOperationFn = async (args, spec) => {
|
|
192
|
+
var _a;
|
|
193
|
+
let currentRawResponse = undefined;
|
|
194
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
195
|
+
const callback = (rawResponse, flatResponse) => {
|
|
196
|
+
currentRawResponse = rawResponse;
|
|
197
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
198
|
+
};
|
|
199
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
200
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
201
|
+
return {
|
|
202
|
+
flatResponse,
|
|
203
|
+
rawResponse: {
|
|
204
|
+
statusCode: currentRawResponse.status,
|
|
205
|
+
body: currentRawResponse.parsedBody,
|
|
206
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
207
|
+
},
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
const lro = (0, lroImpl_js_1.createLroSpec)({
|
|
211
|
+
sendOperationFn,
|
|
212
|
+
args: {
|
|
213
|
+
resourceGroupName,
|
|
214
|
+
clusterName,
|
|
215
|
+
privateEndpointConnectionName,
|
|
216
|
+
options,
|
|
217
|
+
},
|
|
218
|
+
spec: deleteOperationSpec,
|
|
219
|
+
});
|
|
220
|
+
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
221
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
222
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
223
|
+
resourceLocationConfig: "location",
|
|
224
|
+
});
|
|
225
|
+
await poller.poll();
|
|
226
|
+
return poller;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Deletes the specified private endpoint connection associated with the Redis Enterprise cluster.
|
|
230
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
231
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
232
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
233
|
+
* consecutive hyphens
|
|
234
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
235
|
+
* Azure resource
|
|
236
|
+
* @param options The options parameters.
|
|
237
|
+
*/
|
|
238
|
+
async beginDeleteAndWait(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
|
|
239
|
+
const poller = await this.beginDelete(resourceGroupName, clusterName, privateEndpointConnectionName, options);
|
|
240
|
+
return poller.pollUntilDone();
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
exports.PrivateEndpointConnectionsImpl = PrivateEndpointConnectionsImpl;
|
|
244
|
+
// Operation Specifications
|
|
245
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
246
|
+
const listOperationSpec = {
|
|
247
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections",
|
|
248
|
+
httpMethod: "GET",
|
|
249
|
+
responses: {
|
|
250
|
+
200: {
|
|
251
|
+
bodyMapper: Mappers.PrivateEndpointConnectionListResult,
|
|
252
|
+
},
|
|
253
|
+
default: {
|
|
254
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
queryParameters: [Parameters.apiVersion],
|
|
258
|
+
urlParameters: [
|
|
259
|
+
Parameters.$host,
|
|
260
|
+
Parameters.subscriptionId,
|
|
261
|
+
Parameters.resourceGroupName,
|
|
262
|
+
Parameters.clusterName,
|
|
263
|
+
],
|
|
264
|
+
headerParameters: [Parameters.accept],
|
|
265
|
+
serializer,
|
|
266
|
+
};
|
|
267
|
+
const getOperationSpec = {
|
|
268
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
269
|
+
httpMethod: "GET",
|
|
270
|
+
responses: {
|
|
271
|
+
200: {
|
|
272
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
273
|
+
},
|
|
274
|
+
default: {
|
|
275
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
queryParameters: [Parameters.apiVersion],
|
|
279
|
+
urlParameters: [
|
|
280
|
+
Parameters.$host,
|
|
281
|
+
Parameters.subscriptionId,
|
|
282
|
+
Parameters.resourceGroupName,
|
|
283
|
+
Parameters.clusterName,
|
|
284
|
+
Parameters.privateEndpointConnectionName,
|
|
285
|
+
],
|
|
286
|
+
headerParameters: [Parameters.accept],
|
|
287
|
+
serializer,
|
|
288
|
+
};
|
|
289
|
+
const putOperationSpec = {
|
|
290
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
291
|
+
httpMethod: "PUT",
|
|
292
|
+
responses: {
|
|
293
|
+
200: {
|
|
294
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
295
|
+
},
|
|
296
|
+
201: {
|
|
297
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
298
|
+
},
|
|
299
|
+
202: {
|
|
300
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
301
|
+
},
|
|
302
|
+
204: {
|
|
303
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
304
|
+
},
|
|
305
|
+
default: {
|
|
306
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
307
|
+
},
|
|
308
|
+
},
|
|
309
|
+
requestBody: Parameters.properties,
|
|
310
|
+
queryParameters: [Parameters.apiVersion],
|
|
311
|
+
urlParameters: [
|
|
312
|
+
Parameters.$host,
|
|
313
|
+
Parameters.subscriptionId,
|
|
314
|
+
Parameters.resourceGroupName,
|
|
315
|
+
Parameters.clusterName,
|
|
316
|
+
Parameters.privateEndpointConnectionName,
|
|
317
|
+
],
|
|
318
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
319
|
+
mediaType: "json",
|
|
320
|
+
serializer,
|
|
321
|
+
};
|
|
322
|
+
const deleteOperationSpec = {
|
|
323
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
324
|
+
httpMethod: "DELETE",
|
|
325
|
+
responses: {
|
|
326
|
+
200: {},
|
|
327
|
+
201: {},
|
|
328
|
+
202: {},
|
|
329
|
+
204: {},
|
|
330
|
+
default: {
|
|
331
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
332
|
+
},
|
|
333
|
+
},
|
|
334
|
+
queryParameters: [Parameters.apiVersion],
|
|
335
|
+
urlParameters: [
|
|
336
|
+
Parameters.$host,
|
|
337
|
+
Parameters.subscriptionId,
|
|
338
|
+
Parameters.resourceGroupName,
|
|
339
|
+
Parameters.clusterName,
|
|
340
|
+
Parameters.privateEndpointConnectionName,
|
|
341
|
+
],
|
|
342
|
+
headerParameters: [Parameters.accept],
|
|
343
|
+
serializer,
|
|
344
|
+
};
|
|
345
|
+
//# sourceMappingURL=privateEndpointConnections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAY9C,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAa,8BAA8B;IAKzC;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAsD;QAEtD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,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,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,WAAmB,EACnB,OAAsD,EACtD,SAAwB;;YAExB,IAAI,MAA8C,CAAC;YACnD,MAAM,GAAG,sBAAM,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAA,CAAC;YACnE,4BAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;QAC3B,CAAC;KAAA;IAEc,aAAa,CAC1B,iB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AC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,uLAAuL;IAC7L,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,6BAA6B;KACzC;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 { PrivateEndpointConnections } 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 PrivateEndpointConnection,\n PrivateEndpointConnectionsListOptionalParams,\n PrivateEndpointConnectionsListResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnectionsPutOptionalParams,\n PrivateEndpointConnectionsPutResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections\n{\n private readonly client: RedisEnterpriseManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: RedisEnterpriseManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the private endpoint connections associated with 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 public list(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateEndpointConnectionsListOptionalParams,\n ): PagedAsyncIterableIterator<PrivateEndpointConnection> {\n const iter = this.listPagingAll(resourceGroupName, clusterName, 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(\n resourceGroupName,\n clusterName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateEndpointConnectionsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<PrivateEndpointConnection[]> {\n let result: PrivateEndpointConnectionsListResponse;\n result = await this._list(resourceGroupName, clusterName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateEndpointConnectionsListOptionalParams,\n ): AsyncIterableIterator<PrivateEndpointConnection> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n clusterName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all the private endpoint connections associated with 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 private _list(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateEndpointConnectionsListOptionalParams,\n ): Promise<PrivateEndpointConnectionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n privateEndpointConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Updates the state of the specified private endpoint connection associated with the Redis Enterprise\n * 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 privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginPut(\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsPutOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionsPutResponse>,\n PrivateEndpointConnectionsPutResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateEndpointConnectionsPutResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n privateEndpointConnectionName,\n properties,\n options,\n },\n spec: putOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionsPutResponse,\n OperationState<PrivateEndpointConnectionsPutResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the state of the specified private endpoint connection associated with the Redis Enterprise\n * 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 privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginPutAndWait(\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsPutOptionalParams,\n ): Promise<PrivateEndpointConnectionsPutResponse> {\n const poller = await this.beginPut(\n resourceGroupName,\n clusterName,\n privateEndpointConnectionName,\n properties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\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: {\n resourceGroupName,\n clusterName,\n privateEndpointConnectionName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n privateEndpointConnectionName,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult,\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 getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst putOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.privateEndpointConnectionName,\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}/privateEndpointConnections/{privateEndpointConnectionName}\",\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 Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { PrivateLinkResources } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { RedisEnterpriseManagementClient } from "../redisEnterpriseManagementClient.js";
|
|
4
|
+
import { PrivateLinkResource, PrivateLinkResourcesListByClusterOptionalParams } from "../models/index.js";
|
|
5
|
+
/** Class containing PrivateLinkResources operations. */
|
|
6
|
+
export declare class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: RedisEnterpriseManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Gets the private link resources that need to be created for a Redis Enterprise cluster.
|
|
15
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
16
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
17
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
18
|
+
* consecutive hyphens
|
|
19
|
+
* @param options The options parameters.
|
|
20
|
+
*/
|
|
21
|
+
listByCluster(resourceGroupName: string, clusterName: string, options?: PrivateLinkResourcesListByClusterOptionalParams): PagedAsyncIterableIterator<PrivateLinkResource>;
|
|
22
|
+
private listByClusterPagingPage;
|
|
23
|
+
private listByClusterPagingAll;
|
|
24
|
+
/**
|
|
25
|
+
* Gets the private link resources that need to be created for a Redis Enterprise cluster.
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
28
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
29
|
+
* consecutive hyphens
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
private _listByCluster;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=privateLinkResources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAIxE,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EACL,mBAAmB,EACnB,+CAA+C,EAEhD,MAAM,oBAAoB,CAAC;AAG5B,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkC;IAEzD;;;OAGG;gBACS,MAAM,EAAE,+BAA+B;IAInD;;;;;;;OAOG;IACI,aAAa,CAClB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,+CAA+C,GACxD,0BAA0B,CAAC,mBAAmB,CAAC;YA2BnC,uBAAuB;YAWvB,sBAAsB;IAcrC;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc;CAUvB"}
|
|
@@ -0,0 +1,113 @@
|
|
|
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.PrivateLinkResourcesImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
13
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
14
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Class containing PrivateLinkResources operations. */
|
|
17
|
+
class PrivateLinkResourcesImpl {
|
|
18
|
+
/**
|
|
19
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
20
|
+
* @param client Reference to the service client
|
|
21
|
+
*/
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.client = client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Gets the private link resources that need to be created for a Redis Enterprise cluster.
|
|
27
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
28
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
29
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
30
|
+
* consecutive hyphens
|
|
31
|
+
* @param options The options parameters.
|
|
32
|
+
*/
|
|
33
|
+
listByCluster(resourceGroupName, clusterName, options) {
|
|
34
|
+
const iter = this.listByClusterPagingAll(resourceGroupName, clusterName, 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.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
listByClusterPagingPage(resourceGroupName, clusterName, options, _settings) {
|
|
51
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
|
|
52
|
+
let result;
|
|
53
|
+
result = yield tslib_1.__await(this._listByCluster(resourceGroupName, clusterName, options));
|
|
54
|
+
yield yield tslib_1.__await(result.value || []);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
listByClusterPagingAll(resourceGroupName, clusterName, options) {
|
|
58
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listByClusterPagingAll_1() {
|
|
59
|
+
var _a, e_1, _b, _c;
|
|
60
|
+
try {
|
|
61
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
62
|
+
_c = _f.value;
|
|
63
|
+
_d = false;
|
|
64
|
+
const page = _c;
|
|
65
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
69
|
+
finally {
|
|
70
|
+
try {
|
|
71
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
72
|
+
}
|
|
73
|
+
finally { if (e_1) throw e_1.error; }
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Gets the private link resources that need to be created for a Redis Enterprise cluster.
|
|
79
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
80
|
+
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long.
|
|
81
|
+
* Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor
|
|
82
|
+
* consecutive hyphens
|
|
83
|
+
* @param options The options parameters.
|
|
84
|
+
*/
|
|
85
|
+
_listByCluster(resourceGroupName, clusterName, options) {
|
|
86
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listByClusterOperationSpec);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.PrivateLinkResourcesImpl = PrivateLinkResourcesImpl;
|
|
90
|
+
// Operation Specifications
|
|
91
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
92
|
+
const listByClusterOperationSpec = {
|
|
93
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateLinkResources",
|
|
94
|
+
httpMethod: "GET",
|
|
95
|
+
responses: {
|
|
96
|
+
200: {
|
|
97
|
+
bodyMapper: Mappers.PrivateLinkResourceListResult,
|
|
98
|
+
},
|
|
99
|
+
default: {
|
|
100
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
queryParameters: [Parameters.apiVersion],
|
|
104
|
+
urlParameters: [
|
|
105
|
+
Parameters.$host,
|
|
106
|
+
Parameters.subscriptionId,
|
|
107
|
+
Parameters.resourceGroupName,
|
|
108
|
+
Parameters.clusterName,
|
|
109
|
+
],
|
|
110
|
+
headerParameters: [Parameters.accept],
|
|
111
|
+
serializer,
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=privateLinkResources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAa,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,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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0B,GAA6B;IAC3D,IAAI,EAAE,iJAAiJ;IACvJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;KACvB;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 { PrivateLinkResources } 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 PrivateLinkResource,\n PrivateLinkResourcesListByClusterOptionalParams,\n PrivateLinkResourcesListByClusterResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateLinkResources operations. */\nexport class PrivateLinkResourcesImpl implements PrivateLinkResources {\n private readonly client: RedisEnterpriseManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: RedisEnterpriseManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the private link resources that need to be created for 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 public listByCluster(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateLinkResourcesListByClusterOptionalParams,\n ): PagedAsyncIterableIterator<PrivateLinkResource> {\n const iter = this.listByClusterPagingAll(\n resourceGroupName,\n clusterName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByClusterPagingPage(\n resourceGroupName,\n clusterName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByClusterPagingPage(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateLinkResourcesListByClusterOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<PrivateLinkResource[]> {\n let result: PrivateLinkResourcesListByClusterResponse;\n result = await this._listByCluster(resourceGroupName, clusterName, options);\n yield result.value || [];\n }\n\n private async *listByClusterPagingAll(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateLinkResourcesListByClusterOptionalParams,\n ): AsyncIterableIterator<PrivateLinkResource> {\n for await (const page of this.listByClusterPagingPage(\n resourceGroupName,\n clusterName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the private link resources that need to be created for 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 private _listByCluster(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateLinkResourcesListByClusterOptionalParams,\n ): Promise<PrivateLinkResourcesListByClusterResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n listByClusterOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByClusterOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourceListResult,\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};\n"]}
|