@azure/arm-redisenterprisecache 3.1.0-beta.1 → 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 +243 -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 +517 -31
- package/dist/browser/models/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.js +146 -2
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.d.ts +21 -1
- package/dist/browser/models/mappers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +506 -5
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.d.ts +2 -0
- package/dist/browser/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +22 -5
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/accessPolicyAssignmentOperations.d.ts +110 -0
- package/dist/browser/operations/accessPolicyAssignmentOperations.d.ts.map +1 -0
- package/dist/browser/operations/accessPolicyAssignmentOperations.js +411 -0
- 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 +31 -17
- package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.js +114 -108
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/privateLinkResources.d.ts +11 -7
- package/dist/browser/operations/privateLinkResources.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/privateLinkResources.js +10 -6
- package/dist/browser/operations/privateLinkResources.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/redisEnterprise.d.ts +46 -23
- package/dist/browser/operations/redisEnterprise.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/redisEnterprise.js +182 -148
- package/dist/browser/operations/redisEnterprise.js.map +1 -0
- package/dist/browser/operationsInterfaces/accessPolicyAssignmentOperations.d.ts +79 -0
- package/dist/browser/operationsInterfaces/accessPolicyAssignmentOperations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/accessPolicyAssignmentOperations.js +9 -0
- package/dist/browser/operationsInterfaces/accessPolicyAssignmentOperations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/databases.d.ts +77 -33
- 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 +25 -13
- 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 +5 -3
- 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 +42 -19
- 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 +3 -2
- package/dist/browser/redisEnterpriseManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/redisEnterpriseManagementClient.js +19 -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 -1671
- 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 +79 -60
- 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 +81 -55
- package/review/arm-redisenterprisecache.api.md +294 -6
- package/LICENSE.txt +0 -21
- package/dist/index.js +0 -4221
- 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/databasesCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/databasesCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/databasesCreateSample.js +0 -88
- 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 -39
- 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 -42
- 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 -44
- 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 -44
- 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 -39
- 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 -45
- 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 -54
- 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 -39
- 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 -40
- 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 -44
- 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 -39
- 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 -38
- 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 -39
- 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 -39
- 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 -54
- 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 -45
- 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 -54
- 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 -60
- 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 -38
- 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 -38
- 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 -53
- 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 -52
- 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 -43
- 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.d.ts.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.d.ts.map +0 -1
- package/dist-esm/src/models/parameters.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 -7
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -14
- 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/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 -7
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -14
- 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 -70
- package/dist-esm/test/redisenterprisecache_test.spec.js.map +0 -1
- package/src/lroImpl.ts +0 -42
- package/src/models/index.ts +0 -1289
- package/src/models/mappers.ts +0 -1375
- package/src/models/parameters.ts +0 -237
- package/src/operations/databases.ts +0 -1603
- package/src/operations/index.ts +0 -14
- 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/databases.ts +0 -403
- package/src/operationsInterfaces/index.ts +0 -14
- 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 -165
- 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}/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
package/dist/index.js
DELETED
|
@@ -1,4221 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var tslib = require('tslib');
|
|
6
|
-
var coreClient = require('@azure/core-client');
|
|
7
|
-
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
|
-
var coreLro = require('@azure/core-lro');
|
|
9
|
-
|
|
10
|
-
function _interopNamespaceDefault(e) {
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n.default = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
|
28
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
|
29
|
-
|
|
30
|
-
/*
|
|
31
|
-
* Copyright (c) Microsoft Corporation.
|
|
32
|
-
* Licensed under the MIT License.
|
|
33
|
-
*
|
|
34
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
35
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
36
|
-
*/
|
|
37
|
-
const pageMap = new WeakMap();
|
|
38
|
-
/**
|
|
39
|
-
* Given the last `.value` produced by the `byPage` iterator,
|
|
40
|
-
* returns a continuation token that can be used to begin paging from
|
|
41
|
-
* that point later.
|
|
42
|
-
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
43
|
-
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
44
|
-
*/
|
|
45
|
-
function getContinuationToken(page) {
|
|
46
|
-
var _a;
|
|
47
|
-
if (typeof page !== "object" || page === null) {
|
|
48
|
-
return undefined;
|
|
49
|
-
}
|
|
50
|
-
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
51
|
-
}
|
|
52
|
-
function setContinuationToken(page, continuationToken) {
|
|
53
|
-
var _a;
|
|
54
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
58
|
-
pageInfo.continuationToken = continuationToken;
|
|
59
|
-
pageMap.set(page, pageInfo);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/*
|
|
63
|
-
* Copyright (c) Microsoft Corporation.
|
|
64
|
-
* Licensed under the MIT License.
|
|
65
|
-
*
|
|
66
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
67
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
68
|
-
*/
|
|
69
|
-
/** Known values of {@link Origin} that the service accepts. */
|
|
70
|
-
exports.KnownOrigin = void 0;
|
|
71
|
-
(function (KnownOrigin) {
|
|
72
|
-
/** User */
|
|
73
|
-
KnownOrigin["User"] = "user";
|
|
74
|
-
/** System */
|
|
75
|
-
KnownOrigin["System"] = "system";
|
|
76
|
-
/** UserSystem */
|
|
77
|
-
KnownOrigin["UserSystem"] = "user,system";
|
|
78
|
-
})(exports.KnownOrigin || (exports.KnownOrigin = {}));
|
|
79
|
-
/** Known values of {@link ActionType} that the service accepts. */
|
|
80
|
-
exports.KnownActionType = void 0;
|
|
81
|
-
(function (KnownActionType) {
|
|
82
|
-
/** Internal */
|
|
83
|
-
KnownActionType["Internal"] = "Internal";
|
|
84
|
-
})(exports.KnownActionType || (exports.KnownActionType = {}));
|
|
85
|
-
/** Known values of {@link SkuName} that the service accepts. */
|
|
86
|
-
exports.KnownSkuName = void 0;
|
|
87
|
-
(function (KnownSkuName) {
|
|
88
|
-
/** EnterpriseE5 */
|
|
89
|
-
KnownSkuName["EnterpriseE5"] = "Enterprise_E5";
|
|
90
|
-
/** EnterpriseE10 */
|
|
91
|
-
KnownSkuName["EnterpriseE10"] = "Enterprise_E10";
|
|
92
|
-
/** EnterpriseE20 */
|
|
93
|
-
KnownSkuName["EnterpriseE20"] = "Enterprise_E20";
|
|
94
|
-
/** EnterpriseE50 */
|
|
95
|
-
KnownSkuName["EnterpriseE50"] = "Enterprise_E50";
|
|
96
|
-
/** EnterpriseE100 */
|
|
97
|
-
KnownSkuName["EnterpriseE100"] = "Enterprise_E100";
|
|
98
|
-
/** EnterpriseFlashF300 */
|
|
99
|
-
KnownSkuName["EnterpriseFlashF300"] = "EnterpriseFlash_F300";
|
|
100
|
-
/** EnterpriseFlashF700 */
|
|
101
|
-
KnownSkuName["EnterpriseFlashF700"] = "EnterpriseFlash_F700";
|
|
102
|
-
/** EnterpriseFlashF1500 */
|
|
103
|
-
KnownSkuName["EnterpriseFlashF1500"] = "EnterpriseFlash_F1500";
|
|
104
|
-
})(exports.KnownSkuName || (exports.KnownSkuName = {}));
|
|
105
|
-
/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
|
|
106
|
-
exports.KnownManagedServiceIdentityType = void 0;
|
|
107
|
-
(function (KnownManagedServiceIdentityType) {
|
|
108
|
-
/** None */
|
|
109
|
-
KnownManagedServiceIdentityType["None"] = "None";
|
|
110
|
-
/** SystemAssigned */
|
|
111
|
-
KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
112
|
-
/** UserAssigned */
|
|
113
|
-
KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned";
|
|
114
|
-
/** SystemAssignedUserAssigned */
|
|
115
|
-
KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned, UserAssigned";
|
|
116
|
-
})(exports.KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = {}));
|
|
117
|
-
/** Known values of {@link TlsVersion} that the service accepts. */
|
|
118
|
-
exports.KnownTlsVersion = void 0;
|
|
119
|
-
(function (KnownTlsVersion) {
|
|
120
|
-
/** One0 */
|
|
121
|
-
KnownTlsVersion["One0"] = "1.0";
|
|
122
|
-
/** One1 */
|
|
123
|
-
KnownTlsVersion["One1"] = "1.1";
|
|
124
|
-
/** One2 */
|
|
125
|
-
KnownTlsVersion["One2"] = "1.2";
|
|
126
|
-
})(exports.KnownTlsVersion || (exports.KnownTlsVersion = {}));
|
|
127
|
-
/** Known values of {@link CmkIdentityType} that the service accepts. */
|
|
128
|
-
exports.KnownCmkIdentityType = void 0;
|
|
129
|
-
(function (KnownCmkIdentityType) {
|
|
130
|
-
/** SystemAssignedIdentity */
|
|
131
|
-
KnownCmkIdentityType["SystemAssignedIdentity"] = "systemAssignedIdentity";
|
|
132
|
-
/** UserAssignedIdentity */
|
|
133
|
-
KnownCmkIdentityType["UserAssignedIdentity"] = "userAssignedIdentity";
|
|
134
|
-
})(exports.KnownCmkIdentityType || (exports.KnownCmkIdentityType = {}));
|
|
135
|
-
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
136
|
-
exports.KnownProvisioningState = void 0;
|
|
137
|
-
(function (KnownProvisioningState) {
|
|
138
|
-
/** Succeeded */
|
|
139
|
-
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
140
|
-
/** Failed */
|
|
141
|
-
KnownProvisioningState["Failed"] = "Failed";
|
|
142
|
-
/** Canceled */
|
|
143
|
-
KnownProvisioningState["Canceled"] = "Canceled";
|
|
144
|
-
/** Creating */
|
|
145
|
-
KnownProvisioningState["Creating"] = "Creating";
|
|
146
|
-
/** Updating */
|
|
147
|
-
KnownProvisioningState["Updating"] = "Updating";
|
|
148
|
-
/** Deleting */
|
|
149
|
-
KnownProvisioningState["Deleting"] = "Deleting";
|
|
150
|
-
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
151
|
-
/** Known values of {@link ResourceState} that the service accepts. */
|
|
152
|
-
exports.KnownResourceState = void 0;
|
|
153
|
-
(function (KnownResourceState) {
|
|
154
|
-
/** Running */
|
|
155
|
-
KnownResourceState["Running"] = "Running";
|
|
156
|
-
/** Creating */
|
|
157
|
-
KnownResourceState["Creating"] = "Creating";
|
|
158
|
-
/** CreateFailed */
|
|
159
|
-
KnownResourceState["CreateFailed"] = "CreateFailed";
|
|
160
|
-
/** Updating */
|
|
161
|
-
KnownResourceState["Updating"] = "Updating";
|
|
162
|
-
/** UpdateFailed */
|
|
163
|
-
KnownResourceState["UpdateFailed"] = "UpdateFailed";
|
|
164
|
-
/** Deleting */
|
|
165
|
-
KnownResourceState["Deleting"] = "Deleting";
|
|
166
|
-
/** DeleteFailed */
|
|
167
|
-
KnownResourceState["DeleteFailed"] = "DeleteFailed";
|
|
168
|
-
/** Enabling */
|
|
169
|
-
KnownResourceState["Enabling"] = "Enabling";
|
|
170
|
-
/** EnableFailed */
|
|
171
|
-
KnownResourceState["EnableFailed"] = "EnableFailed";
|
|
172
|
-
/** Disabling */
|
|
173
|
-
KnownResourceState["Disabling"] = "Disabling";
|
|
174
|
-
/** DisableFailed */
|
|
175
|
-
KnownResourceState["DisableFailed"] = "DisableFailed";
|
|
176
|
-
/** Disabled */
|
|
177
|
-
KnownResourceState["Disabled"] = "Disabled";
|
|
178
|
-
/** Scaling */
|
|
179
|
-
KnownResourceState["Scaling"] = "Scaling";
|
|
180
|
-
/** ScalingFailed */
|
|
181
|
-
KnownResourceState["ScalingFailed"] = "ScalingFailed";
|
|
182
|
-
})(exports.KnownResourceState || (exports.KnownResourceState = {}));
|
|
183
|
-
/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
|
|
184
|
-
exports.KnownPrivateEndpointServiceConnectionStatus = void 0;
|
|
185
|
-
(function (KnownPrivateEndpointServiceConnectionStatus) {
|
|
186
|
-
/** Pending */
|
|
187
|
-
KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
|
|
188
|
-
/** Approved */
|
|
189
|
-
KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
|
|
190
|
-
/** Rejected */
|
|
191
|
-
KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
|
|
192
|
-
})(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
|
|
193
|
-
/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
|
|
194
|
-
exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
|
|
195
|
-
(function (KnownPrivateEndpointConnectionProvisioningState) {
|
|
196
|
-
/** Succeeded */
|
|
197
|
-
KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
|
|
198
|
-
/** Creating */
|
|
199
|
-
KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
|
|
200
|
-
/** Deleting */
|
|
201
|
-
KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
|
|
202
|
-
/** Failed */
|
|
203
|
-
KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
|
|
204
|
-
})(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
|
|
205
|
-
/** Known values of {@link Protocol} that the service accepts. */
|
|
206
|
-
exports.KnownProtocol = void 0;
|
|
207
|
-
(function (KnownProtocol) {
|
|
208
|
-
/** Encrypted */
|
|
209
|
-
KnownProtocol["Encrypted"] = "Encrypted";
|
|
210
|
-
/** Plaintext */
|
|
211
|
-
KnownProtocol["Plaintext"] = "Plaintext";
|
|
212
|
-
})(exports.KnownProtocol || (exports.KnownProtocol = {}));
|
|
213
|
-
/** Known values of {@link ClusteringPolicy} that the service accepts. */
|
|
214
|
-
exports.KnownClusteringPolicy = void 0;
|
|
215
|
-
(function (KnownClusteringPolicy) {
|
|
216
|
-
/** EnterpriseCluster */
|
|
217
|
-
KnownClusteringPolicy["EnterpriseCluster"] = "EnterpriseCluster";
|
|
218
|
-
/** OSSCluster */
|
|
219
|
-
KnownClusteringPolicy["OSSCluster"] = "OSSCluster";
|
|
220
|
-
})(exports.KnownClusteringPolicy || (exports.KnownClusteringPolicy = {}));
|
|
221
|
-
/** Known values of {@link EvictionPolicy} that the service accepts. */
|
|
222
|
-
exports.KnownEvictionPolicy = void 0;
|
|
223
|
-
(function (KnownEvictionPolicy) {
|
|
224
|
-
/** AllKeysLFU */
|
|
225
|
-
KnownEvictionPolicy["AllKeysLFU"] = "AllKeysLFU";
|
|
226
|
-
/** AllKeysLRU */
|
|
227
|
-
KnownEvictionPolicy["AllKeysLRU"] = "AllKeysLRU";
|
|
228
|
-
/** AllKeysRandom */
|
|
229
|
-
KnownEvictionPolicy["AllKeysRandom"] = "AllKeysRandom";
|
|
230
|
-
/** VolatileLRU */
|
|
231
|
-
KnownEvictionPolicy["VolatileLRU"] = "VolatileLRU";
|
|
232
|
-
/** VolatileLFU */
|
|
233
|
-
KnownEvictionPolicy["VolatileLFU"] = "VolatileLFU";
|
|
234
|
-
/** VolatileTTL */
|
|
235
|
-
KnownEvictionPolicy["VolatileTTL"] = "VolatileTTL";
|
|
236
|
-
/** VolatileRandom */
|
|
237
|
-
KnownEvictionPolicy["VolatileRandom"] = "VolatileRandom";
|
|
238
|
-
/** NoEviction */
|
|
239
|
-
KnownEvictionPolicy["NoEviction"] = "NoEviction";
|
|
240
|
-
})(exports.KnownEvictionPolicy || (exports.KnownEvictionPolicy = {}));
|
|
241
|
-
/** Known values of {@link AofFrequency} that the service accepts. */
|
|
242
|
-
exports.KnownAofFrequency = void 0;
|
|
243
|
-
(function (KnownAofFrequency) {
|
|
244
|
-
/** OneS */
|
|
245
|
-
KnownAofFrequency["OneS"] = "1s";
|
|
246
|
-
/** Always */
|
|
247
|
-
KnownAofFrequency["Always"] = "always";
|
|
248
|
-
})(exports.KnownAofFrequency || (exports.KnownAofFrequency = {}));
|
|
249
|
-
/** Known values of {@link RdbFrequency} that the service accepts. */
|
|
250
|
-
exports.KnownRdbFrequency = void 0;
|
|
251
|
-
(function (KnownRdbFrequency) {
|
|
252
|
-
/** OneH */
|
|
253
|
-
KnownRdbFrequency["OneH"] = "1h";
|
|
254
|
-
/** SixH */
|
|
255
|
-
KnownRdbFrequency["SixH"] = "6h";
|
|
256
|
-
/** TwelveH */
|
|
257
|
-
KnownRdbFrequency["TwelveH"] = "12h";
|
|
258
|
-
})(exports.KnownRdbFrequency || (exports.KnownRdbFrequency = {}));
|
|
259
|
-
/** Known values of {@link LinkState} that the service accepts. */
|
|
260
|
-
exports.KnownLinkState = void 0;
|
|
261
|
-
(function (KnownLinkState) {
|
|
262
|
-
/** Linked */
|
|
263
|
-
KnownLinkState["Linked"] = "Linked";
|
|
264
|
-
/** Linking */
|
|
265
|
-
KnownLinkState["Linking"] = "Linking";
|
|
266
|
-
/** Unlinking */
|
|
267
|
-
KnownLinkState["Unlinking"] = "Unlinking";
|
|
268
|
-
/** LinkFailed */
|
|
269
|
-
KnownLinkState["LinkFailed"] = "LinkFailed";
|
|
270
|
-
/** UnlinkFailed */
|
|
271
|
-
KnownLinkState["UnlinkFailed"] = "UnlinkFailed";
|
|
272
|
-
})(exports.KnownLinkState || (exports.KnownLinkState = {}));
|
|
273
|
-
/** Known values of {@link DeferUpgradeSetting} that the service accepts. */
|
|
274
|
-
exports.KnownDeferUpgradeSetting = void 0;
|
|
275
|
-
(function (KnownDeferUpgradeSetting) {
|
|
276
|
-
/** Deferred */
|
|
277
|
-
KnownDeferUpgradeSetting["Deferred"] = "Deferred";
|
|
278
|
-
/** NotDeferred */
|
|
279
|
-
KnownDeferUpgradeSetting["NotDeferred"] = "NotDeferred";
|
|
280
|
-
})(exports.KnownDeferUpgradeSetting || (exports.KnownDeferUpgradeSetting = {}));
|
|
281
|
-
|
|
282
|
-
/*
|
|
283
|
-
* Copyright (c) Microsoft Corporation.
|
|
284
|
-
* Licensed under the MIT License.
|
|
285
|
-
*
|
|
286
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
287
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
288
|
-
*/
|
|
289
|
-
const OperationListResult = {
|
|
290
|
-
type: {
|
|
291
|
-
name: "Composite",
|
|
292
|
-
className: "OperationListResult",
|
|
293
|
-
modelProperties: {
|
|
294
|
-
value: {
|
|
295
|
-
serializedName: "value",
|
|
296
|
-
readOnly: true,
|
|
297
|
-
type: {
|
|
298
|
-
name: "Sequence",
|
|
299
|
-
element: {
|
|
300
|
-
type: {
|
|
301
|
-
name: "Composite",
|
|
302
|
-
className: "Operation",
|
|
303
|
-
},
|
|
304
|
-
},
|
|
305
|
-
},
|
|
306
|
-
},
|
|
307
|
-
nextLink: {
|
|
308
|
-
serializedName: "nextLink",
|
|
309
|
-
readOnly: true,
|
|
310
|
-
type: {
|
|
311
|
-
name: "String",
|
|
312
|
-
},
|
|
313
|
-
},
|
|
314
|
-
},
|
|
315
|
-
},
|
|
316
|
-
};
|
|
317
|
-
const Operation = {
|
|
318
|
-
type: {
|
|
319
|
-
name: "Composite",
|
|
320
|
-
className: "Operation",
|
|
321
|
-
modelProperties: {
|
|
322
|
-
name: {
|
|
323
|
-
serializedName: "name",
|
|
324
|
-
readOnly: true,
|
|
325
|
-
type: {
|
|
326
|
-
name: "String",
|
|
327
|
-
},
|
|
328
|
-
},
|
|
329
|
-
isDataAction: {
|
|
330
|
-
serializedName: "isDataAction",
|
|
331
|
-
readOnly: true,
|
|
332
|
-
type: {
|
|
333
|
-
name: "Boolean",
|
|
334
|
-
},
|
|
335
|
-
},
|
|
336
|
-
display: {
|
|
337
|
-
serializedName: "display",
|
|
338
|
-
type: {
|
|
339
|
-
name: "Composite",
|
|
340
|
-
className: "OperationDisplay",
|
|
341
|
-
},
|
|
342
|
-
},
|
|
343
|
-
origin: {
|
|
344
|
-
serializedName: "origin",
|
|
345
|
-
readOnly: true,
|
|
346
|
-
type: {
|
|
347
|
-
name: "String",
|
|
348
|
-
},
|
|
349
|
-
},
|
|
350
|
-
actionType: {
|
|
351
|
-
serializedName: "actionType",
|
|
352
|
-
readOnly: true,
|
|
353
|
-
type: {
|
|
354
|
-
name: "String",
|
|
355
|
-
},
|
|
356
|
-
},
|
|
357
|
-
},
|
|
358
|
-
},
|
|
359
|
-
};
|
|
360
|
-
const OperationDisplay = {
|
|
361
|
-
type: {
|
|
362
|
-
name: "Composite",
|
|
363
|
-
className: "OperationDisplay",
|
|
364
|
-
modelProperties: {
|
|
365
|
-
provider: {
|
|
366
|
-
serializedName: "provider",
|
|
367
|
-
readOnly: true,
|
|
368
|
-
type: {
|
|
369
|
-
name: "String",
|
|
370
|
-
},
|
|
371
|
-
},
|
|
372
|
-
resource: {
|
|
373
|
-
serializedName: "resource",
|
|
374
|
-
readOnly: true,
|
|
375
|
-
type: {
|
|
376
|
-
name: "String",
|
|
377
|
-
},
|
|
378
|
-
},
|
|
379
|
-
operation: {
|
|
380
|
-
serializedName: "operation",
|
|
381
|
-
readOnly: true,
|
|
382
|
-
type: {
|
|
383
|
-
name: "String",
|
|
384
|
-
},
|
|
385
|
-
},
|
|
386
|
-
description: {
|
|
387
|
-
serializedName: "description",
|
|
388
|
-
readOnly: true,
|
|
389
|
-
type: {
|
|
390
|
-
name: "String",
|
|
391
|
-
},
|
|
392
|
-
},
|
|
393
|
-
},
|
|
394
|
-
},
|
|
395
|
-
};
|
|
396
|
-
const ErrorResponse = {
|
|
397
|
-
type: {
|
|
398
|
-
name: "Composite",
|
|
399
|
-
className: "ErrorResponse",
|
|
400
|
-
modelProperties: {
|
|
401
|
-
error: {
|
|
402
|
-
serializedName: "error",
|
|
403
|
-
type: {
|
|
404
|
-
name: "Composite",
|
|
405
|
-
className: "ErrorDetail",
|
|
406
|
-
},
|
|
407
|
-
},
|
|
408
|
-
},
|
|
409
|
-
},
|
|
410
|
-
};
|
|
411
|
-
const ErrorDetail = {
|
|
412
|
-
type: {
|
|
413
|
-
name: "Composite",
|
|
414
|
-
className: "ErrorDetail",
|
|
415
|
-
modelProperties: {
|
|
416
|
-
code: {
|
|
417
|
-
serializedName: "code",
|
|
418
|
-
readOnly: true,
|
|
419
|
-
type: {
|
|
420
|
-
name: "String",
|
|
421
|
-
},
|
|
422
|
-
},
|
|
423
|
-
message: {
|
|
424
|
-
serializedName: "message",
|
|
425
|
-
readOnly: true,
|
|
426
|
-
type: {
|
|
427
|
-
name: "String",
|
|
428
|
-
},
|
|
429
|
-
},
|
|
430
|
-
target: {
|
|
431
|
-
serializedName: "target",
|
|
432
|
-
readOnly: true,
|
|
433
|
-
type: {
|
|
434
|
-
name: "String",
|
|
435
|
-
},
|
|
436
|
-
},
|
|
437
|
-
details: {
|
|
438
|
-
serializedName: "details",
|
|
439
|
-
readOnly: true,
|
|
440
|
-
type: {
|
|
441
|
-
name: "Sequence",
|
|
442
|
-
element: {
|
|
443
|
-
type: {
|
|
444
|
-
name: "Composite",
|
|
445
|
-
className: "ErrorDetail",
|
|
446
|
-
},
|
|
447
|
-
},
|
|
448
|
-
},
|
|
449
|
-
},
|
|
450
|
-
additionalInfo: {
|
|
451
|
-
serializedName: "additionalInfo",
|
|
452
|
-
readOnly: true,
|
|
453
|
-
type: {
|
|
454
|
-
name: "Sequence",
|
|
455
|
-
element: {
|
|
456
|
-
type: {
|
|
457
|
-
name: "Composite",
|
|
458
|
-
className: "ErrorAdditionalInfo",
|
|
459
|
-
},
|
|
460
|
-
},
|
|
461
|
-
},
|
|
462
|
-
},
|
|
463
|
-
},
|
|
464
|
-
},
|
|
465
|
-
};
|
|
466
|
-
const ErrorAdditionalInfo = {
|
|
467
|
-
type: {
|
|
468
|
-
name: "Composite",
|
|
469
|
-
className: "ErrorAdditionalInfo",
|
|
470
|
-
modelProperties: {
|
|
471
|
-
type: {
|
|
472
|
-
serializedName: "type",
|
|
473
|
-
readOnly: true,
|
|
474
|
-
type: {
|
|
475
|
-
name: "String",
|
|
476
|
-
},
|
|
477
|
-
},
|
|
478
|
-
info: {
|
|
479
|
-
serializedName: "info",
|
|
480
|
-
readOnly: true,
|
|
481
|
-
type: {
|
|
482
|
-
name: "Dictionary",
|
|
483
|
-
value: { type: { name: "any" } },
|
|
484
|
-
},
|
|
485
|
-
},
|
|
486
|
-
},
|
|
487
|
-
},
|
|
488
|
-
};
|
|
489
|
-
const OperationStatus = {
|
|
490
|
-
type: {
|
|
491
|
-
name: "Composite",
|
|
492
|
-
className: "OperationStatus",
|
|
493
|
-
modelProperties: {
|
|
494
|
-
id: {
|
|
495
|
-
serializedName: "id",
|
|
496
|
-
type: {
|
|
497
|
-
name: "String",
|
|
498
|
-
},
|
|
499
|
-
},
|
|
500
|
-
name: {
|
|
501
|
-
serializedName: "name",
|
|
502
|
-
type: {
|
|
503
|
-
name: "String",
|
|
504
|
-
},
|
|
505
|
-
},
|
|
506
|
-
startTime: {
|
|
507
|
-
serializedName: "startTime",
|
|
508
|
-
type: {
|
|
509
|
-
name: "String",
|
|
510
|
-
},
|
|
511
|
-
},
|
|
512
|
-
endTime: {
|
|
513
|
-
serializedName: "endTime",
|
|
514
|
-
type: {
|
|
515
|
-
name: "String",
|
|
516
|
-
},
|
|
517
|
-
},
|
|
518
|
-
status: {
|
|
519
|
-
serializedName: "status",
|
|
520
|
-
type: {
|
|
521
|
-
name: "String",
|
|
522
|
-
},
|
|
523
|
-
},
|
|
524
|
-
error: {
|
|
525
|
-
serializedName: "error",
|
|
526
|
-
type: {
|
|
527
|
-
name: "Composite",
|
|
528
|
-
className: "ErrorResponse",
|
|
529
|
-
},
|
|
530
|
-
},
|
|
531
|
-
},
|
|
532
|
-
},
|
|
533
|
-
};
|
|
534
|
-
const Sku = {
|
|
535
|
-
type: {
|
|
536
|
-
name: "Composite",
|
|
537
|
-
className: "Sku",
|
|
538
|
-
modelProperties: {
|
|
539
|
-
name: {
|
|
540
|
-
serializedName: "name",
|
|
541
|
-
required: true,
|
|
542
|
-
type: {
|
|
543
|
-
name: "String",
|
|
544
|
-
},
|
|
545
|
-
},
|
|
546
|
-
capacity: {
|
|
547
|
-
serializedName: "capacity",
|
|
548
|
-
type: {
|
|
549
|
-
name: "Number",
|
|
550
|
-
},
|
|
551
|
-
},
|
|
552
|
-
},
|
|
553
|
-
},
|
|
554
|
-
};
|
|
555
|
-
const ManagedServiceIdentity = {
|
|
556
|
-
type: {
|
|
557
|
-
name: "Composite",
|
|
558
|
-
className: "ManagedServiceIdentity",
|
|
559
|
-
modelProperties: {
|
|
560
|
-
principalId: {
|
|
561
|
-
serializedName: "principalId",
|
|
562
|
-
readOnly: true,
|
|
563
|
-
type: {
|
|
564
|
-
name: "Uuid",
|
|
565
|
-
},
|
|
566
|
-
},
|
|
567
|
-
tenantId: {
|
|
568
|
-
serializedName: "tenantId",
|
|
569
|
-
readOnly: true,
|
|
570
|
-
type: {
|
|
571
|
-
name: "Uuid",
|
|
572
|
-
},
|
|
573
|
-
},
|
|
574
|
-
type: {
|
|
575
|
-
serializedName: "type",
|
|
576
|
-
required: true,
|
|
577
|
-
type: {
|
|
578
|
-
name: "String",
|
|
579
|
-
},
|
|
580
|
-
},
|
|
581
|
-
userAssignedIdentities: {
|
|
582
|
-
serializedName: "userAssignedIdentities",
|
|
583
|
-
type: {
|
|
584
|
-
name: "Dictionary",
|
|
585
|
-
value: {
|
|
586
|
-
type: { name: "Composite", className: "UserAssignedIdentity" },
|
|
587
|
-
},
|
|
588
|
-
},
|
|
589
|
-
},
|
|
590
|
-
},
|
|
591
|
-
},
|
|
592
|
-
};
|
|
593
|
-
const UserAssignedIdentity = {
|
|
594
|
-
type: {
|
|
595
|
-
name: "Composite",
|
|
596
|
-
className: "UserAssignedIdentity",
|
|
597
|
-
modelProperties: {
|
|
598
|
-
principalId: {
|
|
599
|
-
serializedName: "principalId",
|
|
600
|
-
readOnly: true,
|
|
601
|
-
type: {
|
|
602
|
-
name: "Uuid",
|
|
603
|
-
},
|
|
604
|
-
},
|
|
605
|
-
clientId: {
|
|
606
|
-
serializedName: "clientId",
|
|
607
|
-
readOnly: true,
|
|
608
|
-
type: {
|
|
609
|
-
name: "Uuid",
|
|
610
|
-
},
|
|
611
|
-
},
|
|
612
|
-
},
|
|
613
|
-
},
|
|
614
|
-
};
|
|
615
|
-
const ClusterPropertiesEncryption = {
|
|
616
|
-
type: {
|
|
617
|
-
name: "Composite",
|
|
618
|
-
className: "ClusterPropertiesEncryption",
|
|
619
|
-
modelProperties: {
|
|
620
|
-
customerManagedKeyEncryption: {
|
|
621
|
-
serializedName: "customerManagedKeyEncryption",
|
|
622
|
-
type: {
|
|
623
|
-
name: "Composite",
|
|
624
|
-
className: "ClusterPropertiesEncryptionCustomerManagedKeyEncryption",
|
|
625
|
-
},
|
|
626
|
-
},
|
|
627
|
-
},
|
|
628
|
-
},
|
|
629
|
-
};
|
|
630
|
-
const ClusterPropertiesEncryptionCustomerManagedKeyEncryption = {
|
|
631
|
-
type: {
|
|
632
|
-
name: "Composite",
|
|
633
|
-
className: "ClusterPropertiesEncryptionCustomerManagedKeyEncryption",
|
|
634
|
-
modelProperties: {
|
|
635
|
-
keyEncryptionKeyIdentity: {
|
|
636
|
-
serializedName: "keyEncryptionKeyIdentity",
|
|
637
|
-
type: {
|
|
638
|
-
name: "Composite",
|
|
639
|
-
className: "ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity",
|
|
640
|
-
},
|
|
641
|
-
},
|
|
642
|
-
keyEncryptionKeyUrl: {
|
|
643
|
-
serializedName: "keyEncryptionKeyUrl",
|
|
644
|
-
type: {
|
|
645
|
-
name: "String",
|
|
646
|
-
},
|
|
647
|
-
},
|
|
648
|
-
},
|
|
649
|
-
},
|
|
650
|
-
};
|
|
651
|
-
const ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity = {
|
|
652
|
-
type: {
|
|
653
|
-
name: "Composite",
|
|
654
|
-
className: "ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity",
|
|
655
|
-
modelProperties: {
|
|
656
|
-
userAssignedIdentityResourceId: {
|
|
657
|
-
serializedName: "userAssignedIdentityResourceId",
|
|
658
|
-
type: {
|
|
659
|
-
name: "String",
|
|
660
|
-
},
|
|
661
|
-
},
|
|
662
|
-
identityType: {
|
|
663
|
-
serializedName: "identityType",
|
|
664
|
-
type: {
|
|
665
|
-
name: "String",
|
|
666
|
-
},
|
|
667
|
-
},
|
|
668
|
-
},
|
|
669
|
-
},
|
|
670
|
-
};
|
|
671
|
-
const PrivateEndpoint = {
|
|
672
|
-
type: {
|
|
673
|
-
name: "Composite",
|
|
674
|
-
className: "PrivateEndpoint",
|
|
675
|
-
modelProperties: {
|
|
676
|
-
id: {
|
|
677
|
-
serializedName: "id",
|
|
678
|
-
readOnly: true,
|
|
679
|
-
type: {
|
|
680
|
-
name: "String",
|
|
681
|
-
},
|
|
682
|
-
},
|
|
683
|
-
},
|
|
684
|
-
},
|
|
685
|
-
};
|
|
686
|
-
const PrivateLinkServiceConnectionState = {
|
|
687
|
-
type: {
|
|
688
|
-
name: "Composite",
|
|
689
|
-
className: "PrivateLinkServiceConnectionState",
|
|
690
|
-
modelProperties: {
|
|
691
|
-
status: {
|
|
692
|
-
serializedName: "status",
|
|
693
|
-
type: {
|
|
694
|
-
name: "String",
|
|
695
|
-
},
|
|
696
|
-
},
|
|
697
|
-
description: {
|
|
698
|
-
serializedName: "description",
|
|
699
|
-
type: {
|
|
700
|
-
name: "String",
|
|
701
|
-
},
|
|
702
|
-
},
|
|
703
|
-
actionsRequired: {
|
|
704
|
-
serializedName: "actionsRequired",
|
|
705
|
-
type: {
|
|
706
|
-
name: "String",
|
|
707
|
-
},
|
|
708
|
-
},
|
|
709
|
-
},
|
|
710
|
-
},
|
|
711
|
-
};
|
|
712
|
-
const Resource = {
|
|
713
|
-
type: {
|
|
714
|
-
name: "Composite",
|
|
715
|
-
className: "Resource",
|
|
716
|
-
modelProperties: {
|
|
717
|
-
id: {
|
|
718
|
-
serializedName: "id",
|
|
719
|
-
readOnly: true,
|
|
720
|
-
type: {
|
|
721
|
-
name: "String",
|
|
722
|
-
},
|
|
723
|
-
},
|
|
724
|
-
name: {
|
|
725
|
-
serializedName: "name",
|
|
726
|
-
readOnly: true,
|
|
727
|
-
type: {
|
|
728
|
-
name: "String",
|
|
729
|
-
},
|
|
730
|
-
},
|
|
731
|
-
type: {
|
|
732
|
-
serializedName: "type",
|
|
733
|
-
readOnly: true,
|
|
734
|
-
type: {
|
|
735
|
-
name: "String",
|
|
736
|
-
},
|
|
737
|
-
},
|
|
738
|
-
},
|
|
739
|
-
},
|
|
740
|
-
};
|
|
741
|
-
const ClusterUpdate = {
|
|
742
|
-
type: {
|
|
743
|
-
name: "Composite",
|
|
744
|
-
className: "ClusterUpdate",
|
|
745
|
-
modelProperties: {
|
|
746
|
-
sku: {
|
|
747
|
-
serializedName: "sku",
|
|
748
|
-
type: {
|
|
749
|
-
name: "Composite",
|
|
750
|
-
className: "Sku",
|
|
751
|
-
},
|
|
752
|
-
},
|
|
753
|
-
identity: {
|
|
754
|
-
serializedName: "identity",
|
|
755
|
-
type: {
|
|
756
|
-
name: "Composite",
|
|
757
|
-
className: "ManagedServiceIdentity",
|
|
758
|
-
},
|
|
759
|
-
},
|
|
760
|
-
tags: {
|
|
761
|
-
serializedName: "tags",
|
|
762
|
-
type: {
|
|
763
|
-
name: "Dictionary",
|
|
764
|
-
value: { type: { name: "String" } },
|
|
765
|
-
},
|
|
766
|
-
},
|
|
767
|
-
minimumTlsVersion: {
|
|
768
|
-
serializedName: "properties.minimumTlsVersion",
|
|
769
|
-
type: {
|
|
770
|
-
name: "String",
|
|
771
|
-
},
|
|
772
|
-
},
|
|
773
|
-
encryption: {
|
|
774
|
-
serializedName: "properties.encryption",
|
|
775
|
-
type: {
|
|
776
|
-
name: "Composite",
|
|
777
|
-
className: "ClusterPropertiesEncryption",
|
|
778
|
-
},
|
|
779
|
-
},
|
|
780
|
-
hostName: {
|
|
781
|
-
serializedName: "properties.hostName",
|
|
782
|
-
readOnly: true,
|
|
783
|
-
type: {
|
|
784
|
-
name: "String",
|
|
785
|
-
},
|
|
786
|
-
},
|
|
787
|
-
provisioningState: {
|
|
788
|
-
serializedName: "properties.provisioningState",
|
|
789
|
-
readOnly: true,
|
|
790
|
-
type: {
|
|
791
|
-
name: "String",
|
|
792
|
-
},
|
|
793
|
-
},
|
|
794
|
-
resourceState: {
|
|
795
|
-
serializedName: "properties.resourceState",
|
|
796
|
-
readOnly: true,
|
|
797
|
-
type: {
|
|
798
|
-
name: "String",
|
|
799
|
-
},
|
|
800
|
-
},
|
|
801
|
-
redisVersion: {
|
|
802
|
-
serializedName: "properties.redisVersion",
|
|
803
|
-
readOnly: true,
|
|
804
|
-
type: {
|
|
805
|
-
name: "String",
|
|
806
|
-
},
|
|
807
|
-
},
|
|
808
|
-
privateEndpointConnections: {
|
|
809
|
-
serializedName: "properties.privateEndpointConnections",
|
|
810
|
-
readOnly: true,
|
|
811
|
-
type: {
|
|
812
|
-
name: "Sequence",
|
|
813
|
-
element: {
|
|
814
|
-
type: {
|
|
815
|
-
name: "Composite",
|
|
816
|
-
className: "PrivateEndpointConnection",
|
|
817
|
-
},
|
|
818
|
-
},
|
|
819
|
-
},
|
|
820
|
-
},
|
|
821
|
-
},
|
|
822
|
-
},
|
|
823
|
-
};
|
|
824
|
-
const ClusterList = {
|
|
825
|
-
type: {
|
|
826
|
-
name: "Composite",
|
|
827
|
-
className: "ClusterList",
|
|
828
|
-
modelProperties: {
|
|
829
|
-
value: {
|
|
830
|
-
serializedName: "value",
|
|
831
|
-
type: {
|
|
832
|
-
name: "Sequence",
|
|
833
|
-
element: {
|
|
834
|
-
type: {
|
|
835
|
-
name: "Composite",
|
|
836
|
-
className: "Cluster",
|
|
837
|
-
},
|
|
838
|
-
},
|
|
839
|
-
},
|
|
840
|
-
},
|
|
841
|
-
nextLink: {
|
|
842
|
-
serializedName: "nextLink",
|
|
843
|
-
readOnly: true,
|
|
844
|
-
type: {
|
|
845
|
-
name: "String",
|
|
846
|
-
},
|
|
847
|
-
},
|
|
848
|
-
},
|
|
849
|
-
},
|
|
850
|
-
};
|
|
851
|
-
const DatabaseList = {
|
|
852
|
-
type: {
|
|
853
|
-
name: "Composite",
|
|
854
|
-
className: "DatabaseList",
|
|
855
|
-
modelProperties: {
|
|
856
|
-
value: {
|
|
857
|
-
serializedName: "value",
|
|
858
|
-
type: {
|
|
859
|
-
name: "Sequence",
|
|
860
|
-
element: {
|
|
861
|
-
type: {
|
|
862
|
-
name: "Composite",
|
|
863
|
-
className: "Database",
|
|
864
|
-
},
|
|
865
|
-
},
|
|
866
|
-
},
|
|
867
|
-
},
|
|
868
|
-
nextLink: {
|
|
869
|
-
serializedName: "nextLink",
|
|
870
|
-
readOnly: true,
|
|
871
|
-
type: {
|
|
872
|
-
name: "String",
|
|
873
|
-
},
|
|
874
|
-
},
|
|
875
|
-
},
|
|
876
|
-
},
|
|
877
|
-
};
|
|
878
|
-
const Persistence = {
|
|
879
|
-
type: {
|
|
880
|
-
name: "Composite",
|
|
881
|
-
className: "Persistence",
|
|
882
|
-
modelProperties: {
|
|
883
|
-
aofEnabled: {
|
|
884
|
-
serializedName: "aofEnabled",
|
|
885
|
-
type: {
|
|
886
|
-
name: "Boolean",
|
|
887
|
-
},
|
|
888
|
-
},
|
|
889
|
-
rdbEnabled: {
|
|
890
|
-
serializedName: "rdbEnabled",
|
|
891
|
-
type: {
|
|
892
|
-
name: "Boolean",
|
|
893
|
-
},
|
|
894
|
-
},
|
|
895
|
-
aofFrequency: {
|
|
896
|
-
serializedName: "aofFrequency",
|
|
897
|
-
type: {
|
|
898
|
-
name: "String",
|
|
899
|
-
},
|
|
900
|
-
},
|
|
901
|
-
rdbFrequency: {
|
|
902
|
-
serializedName: "rdbFrequency",
|
|
903
|
-
type: {
|
|
904
|
-
name: "String",
|
|
905
|
-
},
|
|
906
|
-
},
|
|
907
|
-
},
|
|
908
|
-
},
|
|
909
|
-
};
|
|
910
|
-
const Module = {
|
|
911
|
-
type: {
|
|
912
|
-
name: "Composite",
|
|
913
|
-
className: "Module",
|
|
914
|
-
modelProperties: {
|
|
915
|
-
name: {
|
|
916
|
-
serializedName: "name",
|
|
917
|
-
required: true,
|
|
918
|
-
type: {
|
|
919
|
-
name: "String",
|
|
920
|
-
},
|
|
921
|
-
},
|
|
922
|
-
args: {
|
|
923
|
-
serializedName: "args",
|
|
924
|
-
type: {
|
|
925
|
-
name: "String",
|
|
926
|
-
},
|
|
927
|
-
},
|
|
928
|
-
version: {
|
|
929
|
-
serializedName: "version",
|
|
930
|
-
readOnly: true,
|
|
931
|
-
type: {
|
|
932
|
-
name: "String",
|
|
933
|
-
},
|
|
934
|
-
},
|
|
935
|
-
},
|
|
936
|
-
},
|
|
937
|
-
};
|
|
938
|
-
const DatabasePropertiesGeoReplication = {
|
|
939
|
-
type: {
|
|
940
|
-
name: "Composite",
|
|
941
|
-
className: "DatabasePropertiesGeoReplication",
|
|
942
|
-
modelProperties: {
|
|
943
|
-
groupNickname: {
|
|
944
|
-
serializedName: "groupNickname",
|
|
945
|
-
type: {
|
|
946
|
-
name: "String",
|
|
947
|
-
},
|
|
948
|
-
},
|
|
949
|
-
linkedDatabases: {
|
|
950
|
-
serializedName: "linkedDatabases",
|
|
951
|
-
type: {
|
|
952
|
-
name: "Sequence",
|
|
953
|
-
element: {
|
|
954
|
-
type: {
|
|
955
|
-
name: "Composite",
|
|
956
|
-
className: "LinkedDatabase",
|
|
957
|
-
},
|
|
958
|
-
},
|
|
959
|
-
},
|
|
960
|
-
},
|
|
961
|
-
},
|
|
962
|
-
},
|
|
963
|
-
};
|
|
964
|
-
const LinkedDatabase = {
|
|
965
|
-
type: {
|
|
966
|
-
name: "Composite",
|
|
967
|
-
className: "LinkedDatabase",
|
|
968
|
-
modelProperties: {
|
|
969
|
-
id: {
|
|
970
|
-
serializedName: "id",
|
|
971
|
-
type: {
|
|
972
|
-
name: "String",
|
|
973
|
-
},
|
|
974
|
-
},
|
|
975
|
-
state: {
|
|
976
|
-
serializedName: "state",
|
|
977
|
-
readOnly: true,
|
|
978
|
-
type: {
|
|
979
|
-
name: "String",
|
|
980
|
-
},
|
|
981
|
-
},
|
|
982
|
-
},
|
|
983
|
-
},
|
|
984
|
-
};
|
|
985
|
-
const DatabaseUpdate = {
|
|
986
|
-
type: {
|
|
987
|
-
name: "Composite",
|
|
988
|
-
className: "DatabaseUpdate",
|
|
989
|
-
modelProperties: {
|
|
990
|
-
clientProtocol: {
|
|
991
|
-
serializedName: "properties.clientProtocol",
|
|
992
|
-
type: {
|
|
993
|
-
name: "String",
|
|
994
|
-
},
|
|
995
|
-
},
|
|
996
|
-
port: {
|
|
997
|
-
serializedName: "properties.port",
|
|
998
|
-
type: {
|
|
999
|
-
name: "Number",
|
|
1000
|
-
},
|
|
1001
|
-
},
|
|
1002
|
-
provisioningState: {
|
|
1003
|
-
serializedName: "properties.provisioningState",
|
|
1004
|
-
readOnly: true,
|
|
1005
|
-
type: {
|
|
1006
|
-
name: "String",
|
|
1007
|
-
},
|
|
1008
|
-
},
|
|
1009
|
-
resourceState: {
|
|
1010
|
-
serializedName: "properties.resourceState",
|
|
1011
|
-
readOnly: true,
|
|
1012
|
-
type: {
|
|
1013
|
-
name: "String",
|
|
1014
|
-
},
|
|
1015
|
-
},
|
|
1016
|
-
clusteringPolicy: {
|
|
1017
|
-
serializedName: "properties.clusteringPolicy",
|
|
1018
|
-
type: {
|
|
1019
|
-
name: "String",
|
|
1020
|
-
},
|
|
1021
|
-
},
|
|
1022
|
-
evictionPolicy: {
|
|
1023
|
-
serializedName: "properties.evictionPolicy",
|
|
1024
|
-
type: {
|
|
1025
|
-
name: "String",
|
|
1026
|
-
},
|
|
1027
|
-
},
|
|
1028
|
-
persistence: {
|
|
1029
|
-
serializedName: "properties.persistence",
|
|
1030
|
-
type: {
|
|
1031
|
-
name: "Composite",
|
|
1032
|
-
className: "Persistence",
|
|
1033
|
-
},
|
|
1034
|
-
},
|
|
1035
|
-
modules: {
|
|
1036
|
-
serializedName: "properties.modules",
|
|
1037
|
-
type: {
|
|
1038
|
-
name: "Sequence",
|
|
1039
|
-
element: {
|
|
1040
|
-
type: {
|
|
1041
|
-
name: "Composite",
|
|
1042
|
-
className: "Module",
|
|
1043
|
-
},
|
|
1044
|
-
},
|
|
1045
|
-
},
|
|
1046
|
-
},
|
|
1047
|
-
geoReplication: {
|
|
1048
|
-
serializedName: "properties.geoReplication",
|
|
1049
|
-
type: {
|
|
1050
|
-
name: "Composite",
|
|
1051
|
-
className: "DatabasePropertiesGeoReplication",
|
|
1052
|
-
},
|
|
1053
|
-
},
|
|
1054
|
-
redisVersion: {
|
|
1055
|
-
serializedName: "properties.redisVersion",
|
|
1056
|
-
readOnly: true,
|
|
1057
|
-
type: {
|
|
1058
|
-
name: "String",
|
|
1059
|
-
},
|
|
1060
|
-
},
|
|
1061
|
-
deferUpgrade: {
|
|
1062
|
-
serializedName: "properties.deferUpgrade",
|
|
1063
|
-
type: {
|
|
1064
|
-
name: "String",
|
|
1065
|
-
},
|
|
1066
|
-
},
|
|
1067
|
-
},
|
|
1068
|
-
},
|
|
1069
|
-
};
|
|
1070
|
-
const AccessKeys = {
|
|
1071
|
-
type: {
|
|
1072
|
-
name: "Composite",
|
|
1073
|
-
className: "AccessKeys",
|
|
1074
|
-
modelProperties: {
|
|
1075
|
-
primaryKey: {
|
|
1076
|
-
serializedName: "primaryKey",
|
|
1077
|
-
readOnly: true,
|
|
1078
|
-
type: {
|
|
1079
|
-
name: "String",
|
|
1080
|
-
},
|
|
1081
|
-
},
|
|
1082
|
-
secondaryKey: {
|
|
1083
|
-
serializedName: "secondaryKey",
|
|
1084
|
-
readOnly: true,
|
|
1085
|
-
type: {
|
|
1086
|
-
name: "String",
|
|
1087
|
-
},
|
|
1088
|
-
},
|
|
1089
|
-
},
|
|
1090
|
-
},
|
|
1091
|
-
};
|
|
1092
|
-
const RegenerateKeyParameters = {
|
|
1093
|
-
type: {
|
|
1094
|
-
name: "Composite",
|
|
1095
|
-
className: "RegenerateKeyParameters",
|
|
1096
|
-
modelProperties: {
|
|
1097
|
-
keyType: {
|
|
1098
|
-
serializedName: "keyType",
|
|
1099
|
-
required: true,
|
|
1100
|
-
type: {
|
|
1101
|
-
name: "Enum",
|
|
1102
|
-
allowedValues: ["Primary", "Secondary"],
|
|
1103
|
-
},
|
|
1104
|
-
},
|
|
1105
|
-
},
|
|
1106
|
-
},
|
|
1107
|
-
};
|
|
1108
|
-
const ImportClusterParameters = {
|
|
1109
|
-
type: {
|
|
1110
|
-
name: "Composite",
|
|
1111
|
-
className: "ImportClusterParameters",
|
|
1112
|
-
modelProperties: {
|
|
1113
|
-
sasUris: {
|
|
1114
|
-
serializedName: "sasUris",
|
|
1115
|
-
required: true,
|
|
1116
|
-
type: {
|
|
1117
|
-
name: "Sequence",
|
|
1118
|
-
element: {
|
|
1119
|
-
type: {
|
|
1120
|
-
name: "String",
|
|
1121
|
-
},
|
|
1122
|
-
},
|
|
1123
|
-
},
|
|
1124
|
-
},
|
|
1125
|
-
},
|
|
1126
|
-
},
|
|
1127
|
-
};
|
|
1128
|
-
const ExportClusterParameters = {
|
|
1129
|
-
type: {
|
|
1130
|
-
name: "Composite",
|
|
1131
|
-
className: "ExportClusterParameters",
|
|
1132
|
-
modelProperties: {
|
|
1133
|
-
sasUri: {
|
|
1134
|
-
serializedName: "sasUri",
|
|
1135
|
-
required: true,
|
|
1136
|
-
type: {
|
|
1137
|
-
name: "String",
|
|
1138
|
-
},
|
|
1139
|
-
},
|
|
1140
|
-
},
|
|
1141
|
-
},
|
|
1142
|
-
};
|
|
1143
|
-
const PrivateEndpointConnectionListResult = {
|
|
1144
|
-
type: {
|
|
1145
|
-
name: "Composite",
|
|
1146
|
-
className: "PrivateEndpointConnectionListResult",
|
|
1147
|
-
modelProperties: {
|
|
1148
|
-
value: {
|
|
1149
|
-
serializedName: "value",
|
|
1150
|
-
type: {
|
|
1151
|
-
name: "Sequence",
|
|
1152
|
-
element: {
|
|
1153
|
-
type: {
|
|
1154
|
-
name: "Composite",
|
|
1155
|
-
className: "PrivateEndpointConnection",
|
|
1156
|
-
},
|
|
1157
|
-
},
|
|
1158
|
-
},
|
|
1159
|
-
},
|
|
1160
|
-
},
|
|
1161
|
-
},
|
|
1162
|
-
};
|
|
1163
|
-
const PrivateLinkResourceListResult = {
|
|
1164
|
-
type: {
|
|
1165
|
-
name: "Composite",
|
|
1166
|
-
className: "PrivateLinkResourceListResult",
|
|
1167
|
-
modelProperties: {
|
|
1168
|
-
value: {
|
|
1169
|
-
serializedName: "value",
|
|
1170
|
-
type: {
|
|
1171
|
-
name: "Sequence",
|
|
1172
|
-
element: {
|
|
1173
|
-
type: {
|
|
1174
|
-
name: "Composite",
|
|
1175
|
-
className: "PrivateLinkResource",
|
|
1176
|
-
},
|
|
1177
|
-
},
|
|
1178
|
-
},
|
|
1179
|
-
},
|
|
1180
|
-
},
|
|
1181
|
-
},
|
|
1182
|
-
};
|
|
1183
|
-
const ForceUnlinkParameters = {
|
|
1184
|
-
type: {
|
|
1185
|
-
name: "Composite",
|
|
1186
|
-
className: "ForceUnlinkParameters",
|
|
1187
|
-
modelProperties: {
|
|
1188
|
-
ids: {
|
|
1189
|
-
serializedName: "ids",
|
|
1190
|
-
required: true,
|
|
1191
|
-
type: {
|
|
1192
|
-
name: "Sequence",
|
|
1193
|
-
element: {
|
|
1194
|
-
type: {
|
|
1195
|
-
name: "String",
|
|
1196
|
-
},
|
|
1197
|
-
},
|
|
1198
|
-
},
|
|
1199
|
-
},
|
|
1200
|
-
},
|
|
1201
|
-
},
|
|
1202
|
-
};
|
|
1203
|
-
const ForceLinkParameters = {
|
|
1204
|
-
type: {
|
|
1205
|
-
name: "Composite",
|
|
1206
|
-
className: "ForceLinkParameters",
|
|
1207
|
-
modelProperties: {
|
|
1208
|
-
groupNickname: {
|
|
1209
|
-
serializedName: "groupNickname",
|
|
1210
|
-
required: true,
|
|
1211
|
-
type: {
|
|
1212
|
-
name: "String",
|
|
1213
|
-
},
|
|
1214
|
-
},
|
|
1215
|
-
linkedDatabases: {
|
|
1216
|
-
serializedName: "linkedDatabases",
|
|
1217
|
-
required: true,
|
|
1218
|
-
type: {
|
|
1219
|
-
name: "Sequence",
|
|
1220
|
-
element: {
|
|
1221
|
-
type: {
|
|
1222
|
-
name: "Composite",
|
|
1223
|
-
className: "LinkedDatabase",
|
|
1224
|
-
},
|
|
1225
|
-
},
|
|
1226
|
-
},
|
|
1227
|
-
},
|
|
1228
|
-
},
|
|
1229
|
-
},
|
|
1230
|
-
};
|
|
1231
|
-
const FlushParameters = {
|
|
1232
|
-
type: {
|
|
1233
|
-
name: "Composite",
|
|
1234
|
-
className: "FlushParameters",
|
|
1235
|
-
modelProperties: {
|
|
1236
|
-
ids: {
|
|
1237
|
-
serializedName: "ids",
|
|
1238
|
-
type: {
|
|
1239
|
-
name: "Sequence",
|
|
1240
|
-
element: {
|
|
1241
|
-
type: {
|
|
1242
|
-
name: "String",
|
|
1243
|
-
},
|
|
1244
|
-
},
|
|
1245
|
-
},
|
|
1246
|
-
},
|
|
1247
|
-
},
|
|
1248
|
-
},
|
|
1249
|
-
};
|
|
1250
|
-
const PrivateEndpointConnection = {
|
|
1251
|
-
type: {
|
|
1252
|
-
name: "Composite",
|
|
1253
|
-
className: "PrivateEndpointConnection",
|
|
1254
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { privateEndpoint: {
|
|
1255
|
-
serializedName: "properties.privateEndpoint",
|
|
1256
|
-
type: {
|
|
1257
|
-
name: "Composite",
|
|
1258
|
-
className: "PrivateEndpoint",
|
|
1259
|
-
},
|
|
1260
|
-
}, privateLinkServiceConnectionState: {
|
|
1261
|
-
serializedName: "properties.privateLinkServiceConnectionState",
|
|
1262
|
-
type: {
|
|
1263
|
-
name: "Composite",
|
|
1264
|
-
className: "PrivateLinkServiceConnectionState",
|
|
1265
|
-
},
|
|
1266
|
-
}, provisioningState: {
|
|
1267
|
-
serializedName: "properties.provisioningState",
|
|
1268
|
-
readOnly: true,
|
|
1269
|
-
type: {
|
|
1270
|
-
name: "String",
|
|
1271
|
-
},
|
|
1272
|
-
} }),
|
|
1273
|
-
},
|
|
1274
|
-
};
|
|
1275
|
-
const TrackedResource = {
|
|
1276
|
-
type: {
|
|
1277
|
-
name: "Composite",
|
|
1278
|
-
className: "TrackedResource",
|
|
1279
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
1280
|
-
serializedName: "tags",
|
|
1281
|
-
type: {
|
|
1282
|
-
name: "Dictionary",
|
|
1283
|
-
value: { type: { name: "String" } },
|
|
1284
|
-
},
|
|
1285
|
-
}, location: {
|
|
1286
|
-
serializedName: "location",
|
|
1287
|
-
required: true,
|
|
1288
|
-
type: {
|
|
1289
|
-
name: "String",
|
|
1290
|
-
},
|
|
1291
|
-
} }),
|
|
1292
|
-
},
|
|
1293
|
-
};
|
|
1294
|
-
const ProxyResource = {
|
|
1295
|
-
type: {
|
|
1296
|
-
name: "Composite",
|
|
1297
|
-
className: "ProxyResource",
|
|
1298
|
-
modelProperties: Object.assign({}, Resource.type.modelProperties),
|
|
1299
|
-
},
|
|
1300
|
-
};
|
|
1301
|
-
const PrivateLinkResource = {
|
|
1302
|
-
type: {
|
|
1303
|
-
name: "Composite",
|
|
1304
|
-
className: "PrivateLinkResource",
|
|
1305
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { groupId: {
|
|
1306
|
-
serializedName: "properties.groupId",
|
|
1307
|
-
readOnly: true,
|
|
1308
|
-
type: {
|
|
1309
|
-
name: "String",
|
|
1310
|
-
},
|
|
1311
|
-
}, requiredMembers: {
|
|
1312
|
-
serializedName: "properties.requiredMembers",
|
|
1313
|
-
readOnly: true,
|
|
1314
|
-
type: {
|
|
1315
|
-
name: "Sequence",
|
|
1316
|
-
element: {
|
|
1317
|
-
type: {
|
|
1318
|
-
name: "String",
|
|
1319
|
-
},
|
|
1320
|
-
},
|
|
1321
|
-
},
|
|
1322
|
-
}, requiredZoneNames: {
|
|
1323
|
-
serializedName: "properties.requiredZoneNames",
|
|
1324
|
-
type: {
|
|
1325
|
-
name: "Sequence",
|
|
1326
|
-
element: {
|
|
1327
|
-
type: {
|
|
1328
|
-
name: "String",
|
|
1329
|
-
},
|
|
1330
|
-
},
|
|
1331
|
-
},
|
|
1332
|
-
} }),
|
|
1333
|
-
},
|
|
1334
|
-
};
|
|
1335
|
-
const Cluster = {
|
|
1336
|
-
type: {
|
|
1337
|
-
name: "Composite",
|
|
1338
|
-
className: "Cluster",
|
|
1339
|
-
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { sku: {
|
|
1340
|
-
serializedName: "sku",
|
|
1341
|
-
type: {
|
|
1342
|
-
name: "Composite",
|
|
1343
|
-
className: "Sku",
|
|
1344
|
-
},
|
|
1345
|
-
}, zones: {
|
|
1346
|
-
serializedName: "zones",
|
|
1347
|
-
type: {
|
|
1348
|
-
name: "Sequence",
|
|
1349
|
-
element: {
|
|
1350
|
-
type: {
|
|
1351
|
-
name: "String",
|
|
1352
|
-
},
|
|
1353
|
-
},
|
|
1354
|
-
},
|
|
1355
|
-
}, identity: {
|
|
1356
|
-
serializedName: "identity",
|
|
1357
|
-
type: {
|
|
1358
|
-
name: "Composite",
|
|
1359
|
-
className: "ManagedServiceIdentity",
|
|
1360
|
-
},
|
|
1361
|
-
}, minimumTlsVersion: {
|
|
1362
|
-
serializedName: "properties.minimumTlsVersion",
|
|
1363
|
-
type: {
|
|
1364
|
-
name: "String",
|
|
1365
|
-
},
|
|
1366
|
-
}, encryption: {
|
|
1367
|
-
serializedName: "properties.encryption",
|
|
1368
|
-
type: {
|
|
1369
|
-
name: "Composite",
|
|
1370
|
-
className: "ClusterPropertiesEncryption",
|
|
1371
|
-
},
|
|
1372
|
-
}, hostName: {
|
|
1373
|
-
serializedName: "properties.hostName",
|
|
1374
|
-
readOnly: true,
|
|
1375
|
-
type: {
|
|
1376
|
-
name: "String",
|
|
1377
|
-
},
|
|
1378
|
-
}, provisioningState: {
|
|
1379
|
-
serializedName: "properties.provisioningState",
|
|
1380
|
-
readOnly: true,
|
|
1381
|
-
type: {
|
|
1382
|
-
name: "String",
|
|
1383
|
-
},
|
|
1384
|
-
}, resourceState: {
|
|
1385
|
-
serializedName: "properties.resourceState",
|
|
1386
|
-
readOnly: true,
|
|
1387
|
-
type: {
|
|
1388
|
-
name: "String",
|
|
1389
|
-
},
|
|
1390
|
-
}, redisVersion: {
|
|
1391
|
-
serializedName: "properties.redisVersion",
|
|
1392
|
-
readOnly: true,
|
|
1393
|
-
type: {
|
|
1394
|
-
name: "String",
|
|
1395
|
-
},
|
|
1396
|
-
}, privateEndpointConnections: {
|
|
1397
|
-
serializedName: "properties.privateEndpointConnections",
|
|
1398
|
-
readOnly: true,
|
|
1399
|
-
type: {
|
|
1400
|
-
name: "Sequence",
|
|
1401
|
-
element: {
|
|
1402
|
-
type: {
|
|
1403
|
-
name: "Composite",
|
|
1404
|
-
className: "PrivateEndpointConnection",
|
|
1405
|
-
},
|
|
1406
|
-
},
|
|
1407
|
-
},
|
|
1408
|
-
} }),
|
|
1409
|
-
},
|
|
1410
|
-
};
|
|
1411
|
-
const Database = {
|
|
1412
|
-
type: {
|
|
1413
|
-
name: "Composite",
|
|
1414
|
-
className: "Database",
|
|
1415
|
-
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { clientProtocol: {
|
|
1416
|
-
serializedName: "properties.clientProtocol",
|
|
1417
|
-
type: {
|
|
1418
|
-
name: "String",
|
|
1419
|
-
},
|
|
1420
|
-
}, port: {
|
|
1421
|
-
serializedName: "properties.port",
|
|
1422
|
-
type: {
|
|
1423
|
-
name: "Number",
|
|
1424
|
-
},
|
|
1425
|
-
}, provisioningState: {
|
|
1426
|
-
serializedName: "properties.provisioningState",
|
|
1427
|
-
readOnly: true,
|
|
1428
|
-
type: {
|
|
1429
|
-
name: "String",
|
|
1430
|
-
},
|
|
1431
|
-
}, resourceState: {
|
|
1432
|
-
serializedName: "properties.resourceState",
|
|
1433
|
-
readOnly: true,
|
|
1434
|
-
type: {
|
|
1435
|
-
name: "String",
|
|
1436
|
-
},
|
|
1437
|
-
}, clusteringPolicy: {
|
|
1438
|
-
serializedName: "properties.clusteringPolicy",
|
|
1439
|
-
type: {
|
|
1440
|
-
name: "String",
|
|
1441
|
-
},
|
|
1442
|
-
}, evictionPolicy: {
|
|
1443
|
-
serializedName: "properties.evictionPolicy",
|
|
1444
|
-
type: {
|
|
1445
|
-
name: "String",
|
|
1446
|
-
},
|
|
1447
|
-
}, persistence: {
|
|
1448
|
-
serializedName: "properties.persistence",
|
|
1449
|
-
type: {
|
|
1450
|
-
name: "Composite",
|
|
1451
|
-
className: "Persistence",
|
|
1452
|
-
},
|
|
1453
|
-
}, modules: {
|
|
1454
|
-
serializedName: "properties.modules",
|
|
1455
|
-
type: {
|
|
1456
|
-
name: "Sequence",
|
|
1457
|
-
element: {
|
|
1458
|
-
type: {
|
|
1459
|
-
name: "Composite",
|
|
1460
|
-
className: "Module",
|
|
1461
|
-
},
|
|
1462
|
-
},
|
|
1463
|
-
},
|
|
1464
|
-
}, geoReplication: {
|
|
1465
|
-
serializedName: "properties.geoReplication",
|
|
1466
|
-
type: {
|
|
1467
|
-
name: "Composite",
|
|
1468
|
-
className: "DatabasePropertiesGeoReplication",
|
|
1469
|
-
},
|
|
1470
|
-
}, redisVersion: {
|
|
1471
|
-
serializedName: "properties.redisVersion",
|
|
1472
|
-
readOnly: true,
|
|
1473
|
-
type: {
|
|
1474
|
-
name: "String",
|
|
1475
|
-
},
|
|
1476
|
-
}, deferUpgrade: {
|
|
1477
|
-
serializedName: "properties.deferUpgrade",
|
|
1478
|
-
type: {
|
|
1479
|
-
name: "String",
|
|
1480
|
-
},
|
|
1481
|
-
} }),
|
|
1482
|
-
},
|
|
1483
|
-
};
|
|
1484
|
-
const DatabasesForceLinkToReplicationGroupHeaders = {
|
|
1485
|
-
type: {
|
|
1486
|
-
name: "Composite",
|
|
1487
|
-
className: "DatabasesForceLinkToReplicationGroupHeaders",
|
|
1488
|
-
modelProperties: {
|
|
1489
|
-
location: {
|
|
1490
|
-
serializedName: "location",
|
|
1491
|
-
type: {
|
|
1492
|
-
name: "String",
|
|
1493
|
-
},
|
|
1494
|
-
},
|
|
1495
|
-
azureAsyncOperation: {
|
|
1496
|
-
serializedName: "azure-asyncoperation",
|
|
1497
|
-
type: {
|
|
1498
|
-
name: "String",
|
|
1499
|
-
},
|
|
1500
|
-
},
|
|
1501
|
-
},
|
|
1502
|
-
},
|
|
1503
|
-
};
|
|
1504
|
-
const DatabasesFlushHeaders = {
|
|
1505
|
-
type: {
|
|
1506
|
-
name: "Composite",
|
|
1507
|
-
className: "DatabasesFlushHeaders",
|
|
1508
|
-
modelProperties: {
|
|
1509
|
-
location: {
|
|
1510
|
-
serializedName: "location",
|
|
1511
|
-
type: {
|
|
1512
|
-
name: "String",
|
|
1513
|
-
},
|
|
1514
|
-
},
|
|
1515
|
-
azureAsyncOperation: {
|
|
1516
|
-
serializedName: "azure-asyncoperation",
|
|
1517
|
-
type: {
|
|
1518
|
-
name: "String",
|
|
1519
|
-
},
|
|
1520
|
-
},
|
|
1521
|
-
},
|
|
1522
|
-
},
|
|
1523
|
-
};
|
|
1524
|
-
const DatabasesUpgradeDBRedisVersionHeaders = {
|
|
1525
|
-
type: {
|
|
1526
|
-
name: "Composite",
|
|
1527
|
-
className: "DatabasesUpgradeDBRedisVersionHeaders",
|
|
1528
|
-
modelProperties: {
|
|
1529
|
-
location: {
|
|
1530
|
-
serializedName: "location",
|
|
1531
|
-
type: {
|
|
1532
|
-
name: "String",
|
|
1533
|
-
},
|
|
1534
|
-
},
|
|
1535
|
-
azureAsyncOperation: {
|
|
1536
|
-
serializedName: "azure-asyncoperation",
|
|
1537
|
-
type: {
|
|
1538
|
-
name: "String",
|
|
1539
|
-
},
|
|
1540
|
-
},
|
|
1541
|
-
},
|
|
1542
|
-
},
|
|
1543
|
-
};
|
|
1544
|
-
const PrivateEndpointConnectionsDeleteHeaders = {
|
|
1545
|
-
type: {
|
|
1546
|
-
name: "Composite",
|
|
1547
|
-
className: "PrivateEndpointConnectionsDeleteHeaders",
|
|
1548
|
-
modelProperties: {
|
|
1549
|
-
location: {
|
|
1550
|
-
serializedName: "location",
|
|
1551
|
-
type: {
|
|
1552
|
-
name: "String",
|
|
1553
|
-
},
|
|
1554
|
-
},
|
|
1555
|
-
azureAsyncOperation: {
|
|
1556
|
-
serializedName: "azure-asyncoperation",
|
|
1557
|
-
type: {
|
|
1558
|
-
name: "String",
|
|
1559
|
-
},
|
|
1560
|
-
},
|
|
1561
|
-
},
|
|
1562
|
-
},
|
|
1563
|
-
};
|
|
1564
|
-
|
|
1565
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1566
|
-
__proto__: null,
|
|
1567
|
-
AccessKeys: AccessKeys,
|
|
1568
|
-
Cluster: Cluster,
|
|
1569
|
-
ClusterList: ClusterList,
|
|
1570
|
-
ClusterPropertiesEncryption: ClusterPropertiesEncryption,
|
|
1571
|
-
ClusterPropertiesEncryptionCustomerManagedKeyEncryption: ClusterPropertiesEncryptionCustomerManagedKeyEncryption,
|
|
1572
|
-
ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity: ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity,
|
|
1573
|
-
ClusterUpdate: ClusterUpdate,
|
|
1574
|
-
Database: Database,
|
|
1575
|
-
DatabaseList: DatabaseList,
|
|
1576
|
-
DatabasePropertiesGeoReplication: DatabasePropertiesGeoReplication,
|
|
1577
|
-
DatabaseUpdate: DatabaseUpdate,
|
|
1578
|
-
DatabasesFlushHeaders: DatabasesFlushHeaders,
|
|
1579
|
-
DatabasesForceLinkToReplicationGroupHeaders: DatabasesForceLinkToReplicationGroupHeaders,
|
|
1580
|
-
DatabasesUpgradeDBRedisVersionHeaders: DatabasesUpgradeDBRedisVersionHeaders,
|
|
1581
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1582
|
-
ErrorDetail: ErrorDetail,
|
|
1583
|
-
ErrorResponse: ErrorResponse,
|
|
1584
|
-
ExportClusterParameters: ExportClusterParameters,
|
|
1585
|
-
FlushParameters: FlushParameters,
|
|
1586
|
-
ForceLinkParameters: ForceLinkParameters,
|
|
1587
|
-
ForceUnlinkParameters: ForceUnlinkParameters,
|
|
1588
|
-
ImportClusterParameters: ImportClusterParameters,
|
|
1589
|
-
LinkedDatabase: LinkedDatabase,
|
|
1590
|
-
ManagedServiceIdentity: ManagedServiceIdentity,
|
|
1591
|
-
Module: Module,
|
|
1592
|
-
Operation: Operation,
|
|
1593
|
-
OperationDisplay: OperationDisplay,
|
|
1594
|
-
OperationListResult: OperationListResult,
|
|
1595
|
-
OperationStatus: OperationStatus,
|
|
1596
|
-
Persistence: Persistence,
|
|
1597
|
-
PrivateEndpoint: PrivateEndpoint,
|
|
1598
|
-
PrivateEndpointConnection: PrivateEndpointConnection,
|
|
1599
|
-
PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
|
|
1600
|
-
PrivateEndpointConnectionsDeleteHeaders: PrivateEndpointConnectionsDeleteHeaders,
|
|
1601
|
-
PrivateLinkResource: PrivateLinkResource,
|
|
1602
|
-
PrivateLinkResourceListResult: PrivateLinkResourceListResult,
|
|
1603
|
-
PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
|
|
1604
|
-
ProxyResource: ProxyResource,
|
|
1605
|
-
RegenerateKeyParameters: RegenerateKeyParameters,
|
|
1606
|
-
Resource: Resource,
|
|
1607
|
-
Sku: Sku,
|
|
1608
|
-
TrackedResource: TrackedResource,
|
|
1609
|
-
UserAssignedIdentity: UserAssignedIdentity
|
|
1610
|
-
});
|
|
1611
|
-
|
|
1612
|
-
/*
|
|
1613
|
-
* Copyright (c) Microsoft Corporation.
|
|
1614
|
-
* Licensed under the MIT License.
|
|
1615
|
-
*
|
|
1616
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1617
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1618
|
-
*/
|
|
1619
|
-
const accept = {
|
|
1620
|
-
parameterPath: "accept",
|
|
1621
|
-
mapper: {
|
|
1622
|
-
defaultValue: "application/json",
|
|
1623
|
-
isConstant: true,
|
|
1624
|
-
serializedName: "Accept",
|
|
1625
|
-
type: {
|
|
1626
|
-
name: "String",
|
|
1627
|
-
},
|
|
1628
|
-
},
|
|
1629
|
-
};
|
|
1630
|
-
const $host = {
|
|
1631
|
-
parameterPath: "$host",
|
|
1632
|
-
mapper: {
|
|
1633
|
-
serializedName: "$host",
|
|
1634
|
-
required: true,
|
|
1635
|
-
type: {
|
|
1636
|
-
name: "String",
|
|
1637
|
-
},
|
|
1638
|
-
},
|
|
1639
|
-
skipEncoding: true,
|
|
1640
|
-
};
|
|
1641
|
-
const apiVersion = {
|
|
1642
|
-
parameterPath: "apiVersion",
|
|
1643
|
-
mapper: {
|
|
1644
|
-
defaultValue: "2024-03-01-preview",
|
|
1645
|
-
isConstant: true,
|
|
1646
|
-
serializedName: "api-version",
|
|
1647
|
-
type: {
|
|
1648
|
-
name: "String",
|
|
1649
|
-
},
|
|
1650
|
-
},
|
|
1651
|
-
};
|
|
1652
|
-
const nextLink = {
|
|
1653
|
-
parameterPath: "nextLink",
|
|
1654
|
-
mapper: {
|
|
1655
|
-
serializedName: "nextLink",
|
|
1656
|
-
required: true,
|
|
1657
|
-
type: {
|
|
1658
|
-
name: "String",
|
|
1659
|
-
},
|
|
1660
|
-
},
|
|
1661
|
-
skipEncoding: true,
|
|
1662
|
-
};
|
|
1663
|
-
const location = {
|
|
1664
|
-
parameterPath: "location",
|
|
1665
|
-
mapper: {
|
|
1666
|
-
constraints: {
|
|
1667
|
-
MinLength: 1,
|
|
1668
|
-
},
|
|
1669
|
-
serializedName: "location",
|
|
1670
|
-
required: true,
|
|
1671
|
-
type: {
|
|
1672
|
-
name: "String",
|
|
1673
|
-
},
|
|
1674
|
-
},
|
|
1675
|
-
};
|
|
1676
|
-
const operationId = {
|
|
1677
|
-
parameterPath: "operationId",
|
|
1678
|
-
mapper: {
|
|
1679
|
-
constraints: {
|
|
1680
|
-
MinLength: 1,
|
|
1681
|
-
},
|
|
1682
|
-
serializedName: "operationId",
|
|
1683
|
-
required: true,
|
|
1684
|
-
type: {
|
|
1685
|
-
name: "String",
|
|
1686
|
-
},
|
|
1687
|
-
},
|
|
1688
|
-
};
|
|
1689
|
-
const subscriptionId = {
|
|
1690
|
-
parameterPath: "subscriptionId",
|
|
1691
|
-
mapper: {
|
|
1692
|
-
constraints: {
|
|
1693
|
-
MinLength: 1,
|
|
1694
|
-
},
|
|
1695
|
-
serializedName: "subscriptionId",
|
|
1696
|
-
required: true,
|
|
1697
|
-
type: {
|
|
1698
|
-
name: "String",
|
|
1699
|
-
},
|
|
1700
|
-
},
|
|
1701
|
-
};
|
|
1702
|
-
const contentType = {
|
|
1703
|
-
parameterPath: ["options", "contentType"],
|
|
1704
|
-
mapper: {
|
|
1705
|
-
defaultValue: "application/json",
|
|
1706
|
-
isConstant: true,
|
|
1707
|
-
serializedName: "Content-Type",
|
|
1708
|
-
type: {
|
|
1709
|
-
name: "String",
|
|
1710
|
-
},
|
|
1711
|
-
},
|
|
1712
|
-
};
|
|
1713
|
-
const parameters = {
|
|
1714
|
-
parameterPath: "parameters",
|
|
1715
|
-
mapper: Cluster,
|
|
1716
|
-
};
|
|
1717
|
-
const resourceGroupName = {
|
|
1718
|
-
parameterPath: "resourceGroupName",
|
|
1719
|
-
mapper: {
|
|
1720
|
-
constraints: {
|
|
1721
|
-
MaxLength: 90,
|
|
1722
|
-
MinLength: 1,
|
|
1723
|
-
},
|
|
1724
|
-
serializedName: "resourceGroupName",
|
|
1725
|
-
required: true,
|
|
1726
|
-
type: {
|
|
1727
|
-
name: "String",
|
|
1728
|
-
},
|
|
1729
|
-
},
|
|
1730
|
-
};
|
|
1731
|
-
const clusterName = {
|
|
1732
|
-
parameterPath: "clusterName",
|
|
1733
|
-
mapper: {
|
|
1734
|
-
constraints: {
|
|
1735
|
-
Pattern: new RegExp("^[A-Za-z0-9]{1,60}$"),
|
|
1736
|
-
},
|
|
1737
|
-
serializedName: "clusterName",
|
|
1738
|
-
required: true,
|
|
1739
|
-
type: {
|
|
1740
|
-
name: "String",
|
|
1741
|
-
},
|
|
1742
|
-
},
|
|
1743
|
-
};
|
|
1744
|
-
const parameters1 = {
|
|
1745
|
-
parameterPath: "parameters",
|
|
1746
|
-
mapper: ClusterUpdate,
|
|
1747
|
-
};
|
|
1748
|
-
const parameters2 = {
|
|
1749
|
-
parameterPath: "parameters",
|
|
1750
|
-
mapper: Database,
|
|
1751
|
-
};
|
|
1752
|
-
const databaseName = {
|
|
1753
|
-
parameterPath: "databaseName",
|
|
1754
|
-
mapper: {
|
|
1755
|
-
constraints: {
|
|
1756
|
-
Pattern: new RegExp("^[A-Za-z0-9]{1,60}$"),
|
|
1757
|
-
},
|
|
1758
|
-
serializedName: "databaseName",
|
|
1759
|
-
required: true,
|
|
1760
|
-
type: {
|
|
1761
|
-
name: "String",
|
|
1762
|
-
},
|
|
1763
|
-
},
|
|
1764
|
-
};
|
|
1765
|
-
const parameters3 = {
|
|
1766
|
-
parameterPath: "parameters",
|
|
1767
|
-
mapper: DatabaseUpdate,
|
|
1768
|
-
};
|
|
1769
|
-
const parameters4 = {
|
|
1770
|
-
parameterPath: "parameters",
|
|
1771
|
-
mapper: RegenerateKeyParameters,
|
|
1772
|
-
};
|
|
1773
|
-
const parameters5 = {
|
|
1774
|
-
parameterPath: "parameters",
|
|
1775
|
-
mapper: ImportClusterParameters,
|
|
1776
|
-
};
|
|
1777
|
-
const parameters6 = {
|
|
1778
|
-
parameterPath: "parameters",
|
|
1779
|
-
mapper: ExportClusterParameters,
|
|
1780
|
-
};
|
|
1781
|
-
const parameters7 = {
|
|
1782
|
-
parameterPath: "parameters",
|
|
1783
|
-
mapper: ForceUnlinkParameters,
|
|
1784
|
-
};
|
|
1785
|
-
const parameters8 = {
|
|
1786
|
-
parameterPath: "parameters",
|
|
1787
|
-
mapper: ForceLinkParameters,
|
|
1788
|
-
};
|
|
1789
|
-
const parameters9 = {
|
|
1790
|
-
parameterPath: "parameters",
|
|
1791
|
-
mapper: FlushParameters,
|
|
1792
|
-
};
|
|
1793
|
-
const privateEndpointConnectionName = {
|
|
1794
|
-
parameterPath: "privateEndpointConnectionName",
|
|
1795
|
-
mapper: {
|
|
1796
|
-
serializedName: "privateEndpointConnectionName",
|
|
1797
|
-
required: true,
|
|
1798
|
-
type: {
|
|
1799
|
-
name: "String",
|
|
1800
|
-
},
|
|
1801
|
-
},
|
|
1802
|
-
};
|
|
1803
|
-
const properties = {
|
|
1804
|
-
parameterPath: "properties",
|
|
1805
|
-
mapper: PrivateEndpointConnection,
|
|
1806
|
-
};
|
|
1807
|
-
|
|
1808
|
-
/*
|
|
1809
|
-
* Copyright (c) Microsoft Corporation.
|
|
1810
|
-
* Licensed under the MIT License.
|
|
1811
|
-
*
|
|
1812
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1813
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1814
|
-
*/
|
|
1815
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1816
|
-
/** Class containing Operations operations. */
|
|
1817
|
-
class OperationsImpl {
|
|
1818
|
-
/**
|
|
1819
|
-
* Initialize a new instance of the class Operations class.
|
|
1820
|
-
* @param client Reference to the service client
|
|
1821
|
-
*/
|
|
1822
|
-
constructor(client) {
|
|
1823
|
-
this.client = client;
|
|
1824
|
-
}
|
|
1825
|
-
/**
|
|
1826
|
-
* Lists all of the available REST API operations of the Microsoft.Cache provider.
|
|
1827
|
-
* @param options The options parameters.
|
|
1828
|
-
*/
|
|
1829
|
-
list(options) {
|
|
1830
|
-
const iter = this.listPagingAll(options);
|
|
1831
|
-
return {
|
|
1832
|
-
next() {
|
|
1833
|
-
return iter.next();
|
|
1834
|
-
},
|
|
1835
|
-
[Symbol.asyncIterator]() {
|
|
1836
|
-
return this;
|
|
1837
|
-
},
|
|
1838
|
-
byPage: (settings) => {
|
|
1839
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1840
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1841
|
-
}
|
|
1842
|
-
return this.listPagingPage(options, settings);
|
|
1843
|
-
},
|
|
1844
|
-
};
|
|
1845
|
-
}
|
|
1846
|
-
listPagingPage(options, settings) {
|
|
1847
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1848
|
-
let result;
|
|
1849
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1850
|
-
if (!continuationToken) {
|
|
1851
|
-
result = yield tslib.__await(this._list(options));
|
|
1852
|
-
let page = result.value || [];
|
|
1853
|
-
continuationToken = result.nextLink;
|
|
1854
|
-
setContinuationToken(page, continuationToken);
|
|
1855
|
-
yield yield tslib.__await(page);
|
|
1856
|
-
}
|
|
1857
|
-
while (continuationToken) {
|
|
1858
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1859
|
-
continuationToken = result.nextLink;
|
|
1860
|
-
let page = result.value || [];
|
|
1861
|
-
setContinuationToken(page, continuationToken);
|
|
1862
|
-
yield yield tslib.__await(page);
|
|
1863
|
-
}
|
|
1864
|
-
});
|
|
1865
|
-
}
|
|
1866
|
-
listPagingAll(options) {
|
|
1867
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1868
|
-
var _a, e_1, _b, _c;
|
|
1869
|
-
try {
|
|
1870
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1871
|
-
_c = _f.value;
|
|
1872
|
-
_d = false;
|
|
1873
|
-
const page = _c;
|
|
1874
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1875
|
-
}
|
|
1876
|
-
}
|
|
1877
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1878
|
-
finally {
|
|
1879
|
-
try {
|
|
1880
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1881
|
-
}
|
|
1882
|
-
finally { if (e_1) throw e_1.error; }
|
|
1883
|
-
}
|
|
1884
|
-
});
|
|
1885
|
-
}
|
|
1886
|
-
/**
|
|
1887
|
-
* Lists all of the available REST API operations of the Microsoft.Cache provider.
|
|
1888
|
-
* @param options The options parameters.
|
|
1889
|
-
*/
|
|
1890
|
-
_list(options) {
|
|
1891
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
1892
|
-
}
|
|
1893
|
-
/**
|
|
1894
|
-
* ListNext
|
|
1895
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1896
|
-
* @param options The options parameters.
|
|
1897
|
-
*/
|
|
1898
|
-
_listNext(nextLink, options) {
|
|
1899
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
|
|
1900
|
-
}
|
|
1901
|
-
}
|
|
1902
|
-
// Operation Specifications
|
|
1903
|
-
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1904
|
-
const listOperationSpec$2 = {
|
|
1905
|
-
path: "/providers/Microsoft.Cache/operations",
|
|
1906
|
-
httpMethod: "GET",
|
|
1907
|
-
responses: {
|
|
1908
|
-
200: {
|
|
1909
|
-
bodyMapper: OperationListResult,
|
|
1910
|
-
},
|
|
1911
|
-
default: {
|
|
1912
|
-
bodyMapper: ErrorResponse,
|
|
1913
|
-
},
|
|
1914
|
-
},
|
|
1915
|
-
queryParameters: [apiVersion],
|
|
1916
|
-
urlParameters: [$host],
|
|
1917
|
-
headerParameters: [accept],
|
|
1918
|
-
serializer: serializer$5,
|
|
1919
|
-
};
|
|
1920
|
-
const listNextOperationSpec$1 = {
|
|
1921
|
-
path: "{nextLink}",
|
|
1922
|
-
httpMethod: "GET",
|
|
1923
|
-
responses: {
|
|
1924
|
-
200: {
|
|
1925
|
-
bodyMapper: OperationListResult,
|
|
1926
|
-
},
|
|
1927
|
-
default: {
|
|
1928
|
-
bodyMapper: ErrorResponse,
|
|
1929
|
-
},
|
|
1930
|
-
},
|
|
1931
|
-
urlParameters: [$host, nextLink],
|
|
1932
|
-
headerParameters: [accept],
|
|
1933
|
-
serializer: serializer$5,
|
|
1934
|
-
};
|
|
1935
|
-
|
|
1936
|
-
/*
|
|
1937
|
-
* Copyright (c) Microsoft Corporation.
|
|
1938
|
-
* Licensed under the MIT License.
|
|
1939
|
-
*
|
|
1940
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1941
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1942
|
-
*/
|
|
1943
|
-
/** Class containing OperationsStatus operations. */
|
|
1944
|
-
class OperationsStatusImpl {
|
|
1945
|
-
/**
|
|
1946
|
-
* Initialize a new instance of the class OperationsStatus class.
|
|
1947
|
-
* @param client Reference to the service client
|
|
1948
|
-
*/
|
|
1949
|
-
constructor(client) {
|
|
1950
|
-
this.client = client;
|
|
1951
|
-
}
|
|
1952
|
-
/**
|
|
1953
|
-
* Gets the status of operation.
|
|
1954
|
-
* @param location The name of Azure region.
|
|
1955
|
-
* @param operationId The ID of an ongoing async operation.
|
|
1956
|
-
* @param options The options parameters.
|
|
1957
|
-
*/
|
|
1958
|
-
get(location, operationId, options) {
|
|
1959
|
-
return this.client.sendOperationRequest({ location, operationId, options }, getOperationSpec$3);
|
|
1960
|
-
}
|
|
1961
|
-
}
|
|
1962
|
-
// Operation Specifications
|
|
1963
|
-
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1964
|
-
const getOperationSpec$3 = {
|
|
1965
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/operationsStatus/{operationId}",
|
|
1966
|
-
httpMethod: "GET",
|
|
1967
|
-
responses: {
|
|
1968
|
-
200: {
|
|
1969
|
-
bodyMapper: OperationStatus,
|
|
1970
|
-
},
|
|
1971
|
-
default: {
|
|
1972
|
-
bodyMapper: ErrorResponse,
|
|
1973
|
-
},
|
|
1974
|
-
},
|
|
1975
|
-
queryParameters: [apiVersion],
|
|
1976
|
-
urlParameters: [
|
|
1977
|
-
$host,
|
|
1978
|
-
location,
|
|
1979
|
-
operationId,
|
|
1980
|
-
subscriptionId,
|
|
1981
|
-
],
|
|
1982
|
-
headerParameters: [accept],
|
|
1983
|
-
serializer: serializer$4,
|
|
1984
|
-
};
|
|
1985
|
-
|
|
1986
|
-
/*
|
|
1987
|
-
* Copyright (c) Microsoft Corporation.
|
|
1988
|
-
* Licensed under the MIT License.
|
|
1989
|
-
*
|
|
1990
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1991
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1992
|
-
*/
|
|
1993
|
-
function createLroSpec(inputs) {
|
|
1994
|
-
const { args, spec, sendOperationFn } = inputs;
|
|
1995
|
-
return {
|
|
1996
|
-
requestMethod: spec.httpMethod,
|
|
1997
|
-
requestPath: spec.path,
|
|
1998
|
-
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
1999
|
-
sendPollRequest: (path, options) => {
|
|
2000
|
-
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
2001
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
2002
|
-
},
|
|
2003
|
-
};
|
|
2004
|
-
}
|
|
2005
|
-
|
|
2006
|
-
/*
|
|
2007
|
-
* Copyright (c) Microsoft Corporation.
|
|
2008
|
-
* Licensed under the MIT License.
|
|
2009
|
-
*
|
|
2010
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2011
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2012
|
-
*/
|
|
2013
|
-
/// <reference lib="esnext.asynciterable" />
|
|
2014
|
-
/** Class containing RedisEnterprise operations. */
|
|
2015
|
-
class RedisEnterpriseImpl {
|
|
2016
|
-
/**
|
|
2017
|
-
* Initialize a new instance of the class RedisEnterprise class.
|
|
2018
|
-
* @param client Reference to the service client
|
|
2019
|
-
*/
|
|
2020
|
-
constructor(client) {
|
|
2021
|
-
this.client = client;
|
|
2022
|
-
}
|
|
2023
|
-
/**
|
|
2024
|
-
* Lists all RedisEnterprise clusters in a resource group.
|
|
2025
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2026
|
-
* @param options The options parameters.
|
|
2027
|
-
*/
|
|
2028
|
-
listByResourceGroup(resourceGroupName, options) {
|
|
2029
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
2030
|
-
return {
|
|
2031
|
-
next() {
|
|
2032
|
-
return iter.next();
|
|
2033
|
-
},
|
|
2034
|
-
[Symbol.asyncIterator]() {
|
|
2035
|
-
return this;
|
|
2036
|
-
},
|
|
2037
|
-
byPage: (settings) => {
|
|
2038
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2039
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2040
|
-
}
|
|
2041
|
-
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
2042
|
-
},
|
|
2043
|
-
};
|
|
2044
|
-
}
|
|
2045
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
2046
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2047
|
-
let result;
|
|
2048
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2049
|
-
if (!continuationToken) {
|
|
2050
|
-
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2051
|
-
let page = result.value || [];
|
|
2052
|
-
continuationToken = result.nextLink;
|
|
2053
|
-
setContinuationToken(page, continuationToken);
|
|
2054
|
-
yield yield tslib.__await(page);
|
|
2055
|
-
}
|
|
2056
|
-
while (continuationToken) {
|
|
2057
|
-
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
2058
|
-
continuationToken = result.nextLink;
|
|
2059
|
-
let page = result.value || [];
|
|
2060
|
-
setContinuationToken(page, continuationToken);
|
|
2061
|
-
yield yield tslib.__await(page);
|
|
2062
|
-
}
|
|
2063
|
-
});
|
|
2064
|
-
}
|
|
2065
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
2066
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
2067
|
-
var _a, e_1, _b, _c;
|
|
2068
|
-
try {
|
|
2069
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2070
|
-
_c = _f.value;
|
|
2071
|
-
_d = false;
|
|
2072
|
-
const page = _c;
|
|
2073
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2074
|
-
}
|
|
2075
|
-
}
|
|
2076
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2077
|
-
finally {
|
|
2078
|
-
try {
|
|
2079
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2080
|
-
}
|
|
2081
|
-
finally { if (e_1) throw e_1.error; }
|
|
2082
|
-
}
|
|
2083
|
-
});
|
|
2084
|
-
}
|
|
2085
|
-
/**
|
|
2086
|
-
* Gets all RedisEnterprise clusters in the specified subscription.
|
|
2087
|
-
* @param options The options parameters.
|
|
2088
|
-
*/
|
|
2089
|
-
list(options) {
|
|
2090
|
-
const iter = this.listPagingAll(options);
|
|
2091
|
-
return {
|
|
2092
|
-
next() {
|
|
2093
|
-
return iter.next();
|
|
2094
|
-
},
|
|
2095
|
-
[Symbol.asyncIterator]() {
|
|
2096
|
-
return this;
|
|
2097
|
-
},
|
|
2098
|
-
byPage: (settings) => {
|
|
2099
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2100
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2101
|
-
}
|
|
2102
|
-
return this.listPagingPage(options, settings);
|
|
2103
|
-
},
|
|
2104
|
-
};
|
|
2105
|
-
}
|
|
2106
|
-
listPagingPage(options, settings) {
|
|
2107
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2108
|
-
let result;
|
|
2109
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2110
|
-
if (!continuationToken) {
|
|
2111
|
-
result = yield tslib.__await(this._list(options));
|
|
2112
|
-
let page = result.value || [];
|
|
2113
|
-
continuationToken = result.nextLink;
|
|
2114
|
-
setContinuationToken(page, continuationToken);
|
|
2115
|
-
yield yield tslib.__await(page);
|
|
2116
|
-
}
|
|
2117
|
-
while (continuationToken) {
|
|
2118
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2119
|
-
continuationToken = result.nextLink;
|
|
2120
|
-
let page = result.value || [];
|
|
2121
|
-
setContinuationToken(page, continuationToken);
|
|
2122
|
-
yield yield tslib.__await(page);
|
|
2123
|
-
}
|
|
2124
|
-
});
|
|
2125
|
-
}
|
|
2126
|
-
listPagingAll(options) {
|
|
2127
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2128
|
-
var _a, e_2, _b, _c;
|
|
2129
|
-
try {
|
|
2130
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2131
|
-
_c = _f.value;
|
|
2132
|
-
_d = false;
|
|
2133
|
-
const page = _c;
|
|
2134
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2135
|
-
}
|
|
2136
|
-
}
|
|
2137
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
2138
|
-
finally {
|
|
2139
|
-
try {
|
|
2140
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2141
|
-
}
|
|
2142
|
-
finally { if (e_2) throw e_2.error; }
|
|
2143
|
-
}
|
|
2144
|
-
});
|
|
2145
|
-
}
|
|
2146
|
-
/**
|
|
2147
|
-
* Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster
|
|
2148
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2149
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2150
|
-
* @param parameters Parameters supplied to the Create RedisEnterprise operation.
|
|
2151
|
-
* @param options The options parameters.
|
|
2152
|
-
*/
|
|
2153
|
-
beginCreate(resourceGroupName, clusterName, parameters, options) {
|
|
2154
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2155
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2156
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2157
|
-
});
|
|
2158
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2159
|
-
var _a;
|
|
2160
|
-
let currentRawResponse = undefined;
|
|
2161
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2162
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2163
|
-
currentRawResponse = rawResponse;
|
|
2164
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2165
|
-
};
|
|
2166
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2167
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2168
|
-
return {
|
|
2169
|
-
flatResponse,
|
|
2170
|
-
rawResponse: {
|
|
2171
|
-
statusCode: currentRawResponse.status,
|
|
2172
|
-
body: currentRawResponse.parsedBody,
|
|
2173
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
2174
|
-
},
|
|
2175
|
-
};
|
|
2176
|
-
});
|
|
2177
|
-
const lro = createLroSpec({
|
|
2178
|
-
sendOperationFn,
|
|
2179
|
-
args: { resourceGroupName, clusterName, parameters, options },
|
|
2180
|
-
spec: createOperationSpec$1,
|
|
2181
|
-
});
|
|
2182
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2183
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2184
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2185
|
-
resourceLocationConfig: "original-uri",
|
|
2186
|
-
});
|
|
2187
|
-
yield poller.poll();
|
|
2188
|
-
return poller;
|
|
2189
|
-
});
|
|
2190
|
-
}
|
|
2191
|
-
/**
|
|
2192
|
-
* Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster
|
|
2193
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2194
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2195
|
-
* @param parameters Parameters supplied to the Create RedisEnterprise operation.
|
|
2196
|
-
* @param options The options parameters.
|
|
2197
|
-
*/
|
|
2198
|
-
beginCreateAndWait(resourceGroupName, clusterName, parameters, options) {
|
|
2199
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2200
|
-
const poller = yield this.beginCreate(resourceGroupName, clusterName, parameters, options);
|
|
2201
|
-
return poller.pollUntilDone();
|
|
2202
|
-
});
|
|
2203
|
-
}
|
|
2204
|
-
/**
|
|
2205
|
-
* Updates an existing RedisEnterprise cluster
|
|
2206
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2207
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2208
|
-
* @param parameters Parameters supplied to the Update RedisEnterprise operation.
|
|
2209
|
-
* @param options The options parameters.
|
|
2210
|
-
*/
|
|
2211
|
-
beginUpdate(resourceGroupName, clusterName, parameters, options) {
|
|
2212
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2213
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2214
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2215
|
-
});
|
|
2216
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2217
|
-
var _a;
|
|
2218
|
-
let currentRawResponse = undefined;
|
|
2219
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2220
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2221
|
-
currentRawResponse = rawResponse;
|
|
2222
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2223
|
-
};
|
|
2224
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2225
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2226
|
-
return {
|
|
2227
|
-
flatResponse,
|
|
2228
|
-
rawResponse: {
|
|
2229
|
-
statusCode: currentRawResponse.status,
|
|
2230
|
-
body: currentRawResponse.parsedBody,
|
|
2231
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
2232
|
-
},
|
|
2233
|
-
};
|
|
2234
|
-
});
|
|
2235
|
-
const lro = createLroSpec({
|
|
2236
|
-
sendOperationFn,
|
|
2237
|
-
args: { resourceGroupName, clusterName, parameters, options },
|
|
2238
|
-
spec: updateOperationSpec$1,
|
|
2239
|
-
});
|
|
2240
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2241
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2242
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2243
|
-
resourceLocationConfig: "azure-async-operation",
|
|
2244
|
-
});
|
|
2245
|
-
yield poller.poll();
|
|
2246
|
-
return poller;
|
|
2247
|
-
});
|
|
2248
|
-
}
|
|
2249
|
-
/**
|
|
2250
|
-
* Updates an existing RedisEnterprise cluster
|
|
2251
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2252
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2253
|
-
* @param parameters Parameters supplied to the Update RedisEnterprise operation.
|
|
2254
|
-
* @param options The options parameters.
|
|
2255
|
-
*/
|
|
2256
|
-
beginUpdateAndWait(resourceGroupName, clusterName, parameters, options) {
|
|
2257
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2258
|
-
const poller = yield this.beginUpdate(resourceGroupName, clusterName, parameters, options);
|
|
2259
|
-
return poller.pollUntilDone();
|
|
2260
|
-
});
|
|
2261
|
-
}
|
|
2262
|
-
/**
|
|
2263
|
-
* Deletes a RedisEnterprise cache cluster.
|
|
2264
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2265
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2266
|
-
* @param options The options parameters.
|
|
2267
|
-
*/
|
|
2268
|
-
beginDelete(resourceGroupName, clusterName, options) {
|
|
2269
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2270
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2271
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2272
|
-
});
|
|
2273
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2274
|
-
var _a;
|
|
2275
|
-
let currentRawResponse = undefined;
|
|
2276
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2277
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2278
|
-
currentRawResponse = rawResponse;
|
|
2279
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2280
|
-
};
|
|
2281
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2282
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2283
|
-
return {
|
|
2284
|
-
flatResponse,
|
|
2285
|
-
rawResponse: {
|
|
2286
|
-
statusCode: currentRawResponse.status,
|
|
2287
|
-
body: currentRawResponse.parsedBody,
|
|
2288
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
2289
|
-
},
|
|
2290
|
-
};
|
|
2291
|
-
});
|
|
2292
|
-
const lro = createLroSpec({
|
|
2293
|
-
sendOperationFn,
|
|
2294
|
-
args: { resourceGroupName, clusterName, options },
|
|
2295
|
-
spec: deleteOperationSpec$2,
|
|
2296
|
-
});
|
|
2297
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2298
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2299
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2300
|
-
resourceLocationConfig: "azure-async-operation",
|
|
2301
|
-
});
|
|
2302
|
-
yield poller.poll();
|
|
2303
|
-
return poller;
|
|
2304
|
-
});
|
|
2305
|
-
}
|
|
2306
|
-
/**
|
|
2307
|
-
* Deletes a RedisEnterprise cache cluster.
|
|
2308
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2309
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2310
|
-
* @param options The options parameters.
|
|
2311
|
-
*/
|
|
2312
|
-
beginDeleteAndWait(resourceGroupName, clusterName, options) {
|
|
2313
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2314
|
-
const poller = yield this.beginDelete(resourceGroupName, clusterName, options);
|
|
2315
|
-
return poller.pollUntilDone();
|
|
2316
|
-
});
|
|
2317
|
-
}
|
|
2318
|
-
/**
|
|
2319
|
-
* Gets information about a RedisEnterprise cluster
|
|
2320
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2321
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2322
|
-
* @param options The options parameters.
|
|
2323
|
-
*/
|
|
2324
|
-
get(resourceGroupName, clusterName, options) {
|
|
2325
|
-
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, getOperationSpec$2);
|
|
2326
|
-
}
|
|
2327
|
-
/**
|
|
2328
|
-
* Lists all RedisEnterprise clusters in a resource group.
|
|
2329
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2330
|
-
* @param options The options parameters.
|
|
2331
|
-
*/
|
|
2332
|
-
_listByResourceGroup(resourceGroupName, options) {
|
|
2333
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
2334
|
-
}
|
|
2335
|
-
/**
|
|
2336
|
-
* Gets all RedisEnterprise clusters in the specified subscription.
|
|
2337
|
-
* @param options The options parameters.
|
|
2338
|
-
*/
|
|
2339
|
-
_list(options) {
|
|
2340
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
2341
|
-
}
|
|
2342
|
-
/**
|
|
2343
|
-
* ListByResourceGroupNext
|
|
2344
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2345
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
2346
|
-
* @param options The options parameters.
|
|
2347
|
-
*/
|
|
2348
|
-
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
2349
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
2350
|
-
}
|
|
2351
|
-
/**
|
|
2352
|
-
* ListNext
|
|
2353
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
2354
|
-
* @param options The options parameters.
|
|
2355
|
-
*/
|
|
2356
|
-
_listNext(nextLink, options) {
|
|
2357
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
2358
|
-
}
|
|
2359
|
-
}
|
|
2360
|
-
// Operation Specifications
|
|
2361
|
-
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2362
|
-
const createOperationSpec$1 = {
|
|
2363
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
|
|
2364
|
-
httpMethod: "PUT",
|
|
2365
|
-
responses: {
|
|
2366
|
-
200: {
|
|
2367
|
-
bodyMapper: Cluster,
|
|
2368
|
-
},
|
|
2369
|
-
201: {
|
|
2370
|
-
bodyMapper: Cluster,
|
|
2371
|
-
},
|
|
2372
|
-
202: {
|
|
2373
|
-
bodyMapper: Cluster,
|
|
2374
|
-
},
|
|
2375
|
-
204: {
|
|
2376
|
-
bodyMapper: Cluster,
|
|
2377
|
-
},
|
|
2378
|
-
default: {
|
|
2379
|
-
bodyMapper: ErrorResponse,
|
|
2380
|
-
},
|
|
2381
|
-
},
|
|
2382
|
-
requestBody: parameters,
|
|
2383
|
-
queryParameters: [apiVersion],
|
|
2384
|
-
urlParameters: [
|
|
2385
|
-
$host,
|
|
2386
|
-
subscriptionId,
|
|
2387
|
-
resourceGroupName,
|
|
2388
|
-
clusterName,
|
|
2389
|
-
],
|
|
2390
|
-
headerParameters: [accept, contentType],
|
|
2391
|
-
mediaType: "json",
|
|
2392
|
-
serializer: serializer$3,
|
|
2393
|
-
};
|
|
2394
|
-
const updateOperationSpec$1 = {
|
|
2395
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
|
|
2396
|
-
httpMethod: "PATCH",
|
|
2397
|
-
responses: {
|
|
2398
|
-
200: {
|
|
2399
|
-
bodyMapper: Cluster,
|
|
2400
|
-
},
|
|
2401
|
-
201: {
|
|
2402
|
-
bodyMapper: Cluster,
|
|
2403
|
-
},
|
|
2404
|
-
202: {
|
|
2405
|
-
bodyMapper: Cluster,
|
|
2406
|
-
},
|
|
2407
|
-
204: {
|
|
2408
|
-
bodyMapper: Cluster,
|
|
2409
|
-
},
|
|
2410
|
-
default: {
|
|
2411
|
-
bodyMapper: ErrorResponse,
|
|
2412
|
-
},
|
|
2413
|
-
},
|
|
2414
|
-
requestBody: parameters1,
|
|
2415
|
-
queryParameters: [apiVersion],
|
|
2416
|
-
urlParameters: [
|
|
2417
|
-
$host,
|
|
2418
|
-
subscriptionId,
|
|
2419
|
-
resourceGroupName,
|
|
2420
|
-
clusterName,
|
|
2421
|
-
],
|
|
2422
|
-
headerParameters: [accept, contentType],
|
|
2423
|
-
mediaType: "json",
|
|
2424
|
-
serializer: serializer$3,
|
|
2425
|
-
};
|
|
2426
|
-
const deleteOperationSpec$2 = {
|
|
2427
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
|
|
2428
|
-
httpMethod: "DELETE",
|
|
2429
|
-
responses: {
|
|
2430
|
-
200: {},
|
|
2431
|
-
201: {},
|
|
2432
|
-
202: {},
|
|
2433
|
-
204: {},
|
|
2434
|
-
default: {
|
|
2435
|
-
bodyMapper: ErrorResponse,
|
|
2436
|
-
},
|
|
2437
|
-
},
|
|
2438
|
-
queryParameters: [apiVersion],
|
|
2439
|
-
urlParameters: [
|
|
2440
|
-
$host,
|
|
2441
|
-
subscriptionId,
|
|
2442
|
-
resourceGroupName,
|
|
2443
|
-
clusterName,
|
|
2444
|
-
],
|
|
2445
|
-
headerParameters: [accept],
|
|
2446
|
-
serializer: serializer$3,
|
|
2447
|
-
};
|
|
2448
|
-
const getOperationSpec$2 = {
|
|
2449
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
|
|
2450
|
-
httpMethod: "GET",
|
|
2451
|
-
responses: {
|
|
2452
|
-
200: {
|
|
2453
|
-
bodyMapper: Cluster,
|
|
2454
|
-
},
|
|
2455
|
-
default: {
|
|
2456
|
-
bodyMapper: ErrorResponse,
|
|
2457
|
-
},
|
|
2458
|
-
},
|
|
2459
|
-
queryParameters: [apiVersion],
|
|
2460
|
-
urlParameters: [
|
|
2461
|
-
$host,
|
|
2462
|
-
subscriptionId,
|
|
2463
|
-
resourceGroupName,
|
|
2464
|
-
clusterName,
|
|
2465
|
-
],
|
|
2466
|
-
headerParameters: [accept],
|
|
2467
|
-
serializer: serializer$3,
|
|
2468
|
-
};
|
|
2469
|
-
const listByResourceGroupOperationSpec = {
|
|
2470
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise",
|
|
2471
|
-
httpMethod: "GET",
|
|
2472
|
-
responses: {
|
|
2473
|
-
200: {
|
|
2474
|
-
bodyMapper: ClusterList,
|
|
2475
|
-
},
|
|
2476
|
-
default: {
|
|
2477
|
-
bodyMapper: ErrorResponse,
|
|
2478
|
-
},
|
|
2479
|
-
},
|
|
2480
|
-
queryParameters: [apiVersion],
|
|
2481
|
-
urlParameters: [
|
|
2482
|
-
$host,
|
|
2483
|
-
subscriptionId,
|
|
2484
|
-
resourceGroupName,
|
|
2485
|
-
],
|
|
2486
|
-
headerParameters: [accept],
|
|
2487
|
-
serializer: serializer$3,
|
|
2488
|
-
};
|
|
2489
|
-
const listOperationSpec$1 = {
|
|
2490
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/redisEnterprise",
|
|
2491
|
-
httpMethod: "GET",
|
|
2492
|
-
responses: {
|
|
2493
|
-
200: {
|
|
2494
|
-
bodyMapper: ClusterList,
|
|
2495
|
-
},
|
|
2496
|
-
default: {
|
|
2497
|
-
bodyMapper: ErrorResponse,
|
|
2498
|
-
},
|
|
2499
|
-
},
|
|
2500
|
-
queryParameters: [apiVersion],
|
|
2501
|
-
urlParameters: [$host, subscriptionId],
|
|
2502
|
-
headerParameters: [accept],
|
|
2503
|
-
serializer: serializer$3,
|
|
2504
|
-
};
|
|
2505
|
-
const listByResourceGroupNextOperationSpec = {
|
|
2506
|
-
path: "{nextLink}",
|
|
2507
|
-
httpMethod: "GET",
|
|
2508
|
-
responses: {
|
|
2509
|
-
200: {
|
|
2510
|
-
bodyMapper: ClusterList,
|
|
2511
|
-
},
|
|
2512
|
-
default: {
|
|
2513
|
-
bodyMapper: ErrorResponse,
|
|
2514
|
-
},
|
|
2515
|
-
},
|
|
2516
|
-
urlParameters: [
|
|
2517
|
-
$host,
|
|
2518
|
-
nextLink,
|
|
2519
|
-
subscriptionId,
|
|
2520
|
-
resourceGroupName,
|
|
2521
|
-
],
|
|
2522
|
-
headerParameters: [accept],
|
|
2523
|
-
serializer: serializer$3,
|
|
2524
|
-
};
|
|
2525
|
-
const listNextOperationSpec = {
|
|
2526
|
-
path: "{nextLink}",
|
|
2527
|
-
httpMethod: "GET",
|
|
2528
|
-
responses: {
|
|
2529
|
-
200: {
|
|
2530
|
-
bodyMapper: ClusterList,
|
|
2531
|
-
},
|
|
2532
|
-
default: {
|
|
2533
|
-
bodyMapper: ErrorResponse,
|
|
2534
|
-
},
|
|
2535
|
-
},
|
|
2536
|
-
urlParameters: [
|
|
2537
|
-
$host,
|
|
2538
|
-
nextLink,
|
|
2539
|
-
subscriptionId,
|
|
2540
|
-
],
|
|
2541
|
-
headerParameters: [accept],
|
|
2542
|
-
serializer: serializer$3,
|
|
2543
|
-
};
|
|
2544
|
-
|
|
2545
|
-
/*
|
|
2546
|
-
* Copyright (c) Microsoft Corporation.
|
|
2547
|
-
* Licensed under the MIT License.
|
|
2548
|
-
*
|
|
2549
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2550
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2551
|
-
*/
|
|
2552
|
-
/// <reference lib="esnext.asynciterable" />
|
|
2553
|
-
/** Class containing Databases operations. */
|
|
2554
|
-
class DatabasesImpl {
|
|
2555
|
-
/**
|
|
2556
|
-
* Initialize a new instance of the class Databases class.
|
|
2557
|
-
* @param client Reference to the service client
|
|
2558
|
-
*/
|
|
2559
|
-
constructor(client) {
|
|
2560
|
-
this.client = client;
|
|
2561
|
-
}
|
|
2562
|
-
/**
|
|
2563
|
-
* Gets all databases in the specified RedisEnterprise cluster.
|
|
2564
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2565
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2566
|
-
* @param options The options parameters.
|
|
2567
|
-
*/
|
|
2568
|
-
listByCluster(resourceGroupName, clusterName, options) {
|
|
2569
|
-
const iter = this.listByClusterPagingAll(resourceGroupName, clusterName, options);
|
|
2570
|
-
return {
|
|
2571
|
-
next() {
|
|
2572
|
-
return iter.next();
|
|
2573
|
-
},
|
|
2574
|
-
[Symbol.asyncIterator]() {
|
|
2575
|
-
return this;
|
|
2576
|
-
},
|
|
2577
|
-
byPage: (settings) => {
|
|
2578
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2579
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2580
|
-
}
|
|
2581
|
-
return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
|
|
2582
|
-
},
|
|
2583
|
-
};
|
|
2584
|
-
}
|
|
2585
|
-
listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
|
|
2586
|
-
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
|
|
2587
|
-
let result;
|
|
2588
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2589
|
-
if (!continuationToken) {
|
|
2590
|
-
result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
|
|
2591
|
-
let page = result.value || [];
|
|
2592
|
-
continuationToken = result.nextLink;
|
|
2593
|
-
setContinuationToken(page, continuationToken);
|
|
2594
|
-
yield yield tslib.__await(page);
|
|
2595
|
-
}
|
|
2596
|
-
while (continuationToken) {
|
|
2597
|
-
result = yield tslib.__await(this._listByClusterNext(resourceGroupName, clusterName, continuationToken, options));
|
|
2598
|
-
continuationToken = result.nextLink;
|
|
2599
|
-
let page = result.value || [];
|
|
2600
|
-
setContinuationToken(page, continuationToken);
|
|
2601
|
-
yield yield tslib.__await(page);
|
|
2602
|
-
}
|
|
2603
|
-
});
|
|
2604
|
-
}
|
|
2605
|
-
listByClusterPagingAll(resourceGroupName, clusterName, options) {
|
|
2606
|
-
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingAll_1() {
|
|
2607
|
-
var _a, e_1, _b, _c;
|
|
2608
|
-
try {
|
|
2609
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2610
|
-
_c = _f.value;
|
|
2611
|
-
_d = false;
|
|
2612
|
-
const page = _c;
|
|
2613
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2614
|
-
}
|
|
2615
|
-
}
|
|
2616
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2617
|
-
finally {
|
|
2618
|
-
try {
|
|
2619
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2620
|
-
}
|
|
2621
|
-
finally { if (e_1) throw e_1.error; }
|
|
2622
|
-
}
|
|
2623
|
-
});
|
|
2624
|
-
}
|
|
2625
|
-
/**
|
|
2626
|
-
* Gets all databases in the specified RedisEnterprise cluster.
|
|
2627
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2628
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2629
|
-
* @param options The options parameters.
|
|
2630
|
-
*/
|
|
2631
|
-
_listByCluster(resourceGroupName, clusterName, options) {
|
|
2632
|
-
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listByClusterOperationSpec$1);
|
|
2633
|
-
}
|
|
2634
|
-
/**
|
|
2635
|
-
* Creates a database
|
|
2636
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2637
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2638
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
2639
|
-
* @param parameters Parameters supplied to the create or update database operation.
|
|
2640
|
-
* @param options The options parameters.
|
|
2641
|
-
*/
|
|
2642
|
-
beginCreate(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
2643
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2644
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2645
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2646
|
-
});
|
|
2647
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2648
|
-
var _a;
|
|
2649
|
-
let currentRawResponse = undefined;
|
|
2650
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2651
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2652
|
-
currentRawResponse = rawResponse;
|
|
2653
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2654
|
-
};
|
|
2655
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2656
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2657
|
-
return {
|
|
2658
|
-
flatResponse,
|
|
2659
|
-
rawResponse: {
|
|
2660
|
-
statusCode: currentRawResponse.status,
|
|
2661
|
-
body: currentRawResponse.parsedBody,
|
|
2662
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
2663
|
-
},
|
|
2664
|
-
};
|
|
2665
|
-
});
|
|
2666
|
-
const lro = createLroSpec({
|
|
2667
|
-
sendOperationFn,
|
|
2668
|
-
args: {
|
|
2669
|
-
resourceGroupName,
|
|
2670
|
-
clusterName,
|
|
2671
|
-
databaseName,
|
|
2672
|
-
parameters,
|
|
2673
|
-
options,
|
|
2674
|
-
},
|
|
2675
|
-
spec: createOperationSpec,
|
|
2676
|
-
});
|
|
2677
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2678
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2679
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2680
|
-
resourceLocationConfig: "original-uri",
|
|
2681
|
-
});
|
|
2682
|
-
yield poller.poll();
|
|
2683
|
-
return poller;
|
|
2684
|
-
});
|
|
2685
|
-
}
|
|
2686
|
-
/**
|
|
2687
|
-
* Creates a database
|
|
2688
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2689
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2690
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
2691
|
-
* @param parameters Parameters supplied to the create or update database operation.
|
|
2692
|
-
* @param options The options parameters.
|
|
2693
|
-
*/
|
|
2694
|
-
beginCreateAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
2695
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2696
|
-
const poller = yield this.beginCreate(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
2697
|
-
return poller.pollUntilDone();
|
|
2698
|
-
});
|
|
2699
|
-
}
|
|
2700
|
-
/**
|
|
2701
|
-
* Updates a database
|
|
2702
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2703
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2704
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
2705
|
-
* @param parameters Parameters supplied to the create or update database operation.
|
|
2706
|
-
* @param options The options parameters.
|
|
2707
|
-
*/
|
|
2708
|
-
beginUpdate(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
2709
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2710
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2711
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2712
|
-
});
|
|
2713
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2714
|
-
var _a;
|
|
2715
|
-
let currentRawResponse = undefined;
|
|
2716
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2717
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2718
|
-
currentRawResponse = rawResponse;
|
|
2719
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2720
|
-
};
|
|
2721
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2722
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2723
|
-
return {
|
|
2724
|
-
flatResponse,
|
|
2725
|
-
rawResponse: {
|
|
2726
|
-
statusCode: currentRawResponse.status,
|
|
2727
|
-
body: currentRawResponse.parsedBody,
|
|
2728
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
2729
|
-
},
|
|
2730
|
-
};
|
|
2731
|
-
});
|
|
2732
|
-
const lro = createLroSpec({
|
|
2733
|
-
sendOperationFn,
|
|
2734
|
-
args: {
|
|
2735
|
-
resourceGroupName,
|
|
2736
|
-
clusterName,
|
|
2737
|
-
databaseName,
|
|
2738
|
-
parameters,
|
|
2739
|
-
options,
|
|
2740
|
-
},
|
|
2741
|
-
spec: updateOperationSpec,
|
|
2742
|
-
});
|
|
2743
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2744
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2745
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2746
|
-
resourceLocationConfig: "azure-async-operation",
|
|
2747
|
-
});
|
|
2748
|
-
yield poller.poll();
|
|
2749
|
-
return poller;
|
|
2750
|
-
});
|
|
2751
|
-
}
|
|
2752
|
-
/**
|
|
2753
|
-
* Updates a database
|
|
2754
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2755
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2756
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
2757
|
-
* @param parameters Parameters supplied to the create or update database operation.
|
|
2758
|
-
* @param options The options parameters.
|
|
2759
|
-
*/
|
|
2760
|
-
beginUpdateAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
2761
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2762
|
-
const poller = yield this.beginUpdate(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
2763
|
-
return poller.pollUntilDone();
|
|
2764
|
-
});
|
|
2765
|
-
}
|
|
2766
|
-
/**
|
|
2767
|
-
* Gets information about a database in a RedisEnterprise cluster.
|
|
2768
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2769
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2770
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
2771
|
-
* @param options The options parameters.
|
|
2772
|
-
*/
|
|
2773
|
-
get(resourceGroupName, clusterName, databaseName, options) {
|
|
2774
|
-
return this.client.sendOperationRequest({ resourceGroupName, clusterName, databaseName, options }, getOperationSpec$1);
|
|
2775
|
-
}
|
|
2776
|
-
/**
|
|
2777
|
-
* Deletes a single database
|
|
2778
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2779
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2780
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
2781
|
-
* @param options The options parameters.
|
|
2782
|
-
*/
|
|
2783
|
-
beginDelete(resourceGroupName, clusterName, databaseName, options) {
|
|
2784
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2785
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2786
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2787
|
-
});
|
|
2788
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2789
|
-
var _a;
|
|
2790
|
-
let currentRawResponse = undefined;
|
|
2791
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2792
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2793
|
-
currentRawResponse = rawResponse;
|
|
2794
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2795
|
-
};
|
|
2796
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2797
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2798
|
-
return {
|
|
2799
|
-
flatResponse,
|
|
2800
|
-
rawResponse: {
|
|
2801
|
-
statusCode: currentRawResponse.status,
|
|
2802
|
-
body: currentRawResponse.parsedBody,
|
|
2803
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
2804
|
-
},
|
|
2805
|
-
};
|
|
2806
|
-
});
|
|
2807
|
-
const lro = createLroSpec({
|
|
2808
|
-
sendOperationFn,
|
|
2809
|
-
args: { resourceGroupName, clusterName, databaseName, options },
|
|
2810
|
-
spec: deleteOperationSpec$1,
|
|
2811
|
-
});
|
|
2812
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2813
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2814
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2815
|
-
resourceLocationConfig: "azure-async-operation",
|
|
2816
|
-
});
|
|
2817
|
-
yield poller.poll();
|
|
2818
|
-
return poller;
|
|
2819
|
-
});
|
|
2820
|
-
}
|
|
2821
|
-
/**
|
|
2822
|
-
* Deletes a single database
|
|
2823
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2824
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2825
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
2826
|
-
* @param options The options parameters.
|
|
2827
|
-
*/
|
|
2828
|
-
beginDeleteAndWait(resourceGroupName, clusterName, databaseName, options) {
|
|
2829
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2830
|
-
const poller = yield this.beginDelete(resourceGroupName, clusterName, databaseName, options);
|
|
2831
|
-
return poller.pollUntilDone();
|
|
2832
|
-
});
|
|
2833
|
-
}
|
|
2834
|
-
/**
|
|
2835
|
-
* Retrieves the access keys for the RedisEnterprise database.
|
|
2836
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2837
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2838
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
2839
|
-
* @param options The options parameters.
|
|
2840
|
-
*/
|
|
2841
|
-
listKeys(resourceGroupName, clusterName, databaseName, options) {
|
|
2842
|
-
return this.client.sendOperationRequest({ resourceGroupName, clusterName, databaseName, options }, listKeysOperationSpec);
|
|
2843
|
-
}
|
|
2844
|
-
/**
|
|
2845
|
-
* Regenerates the RedisEnterprise database's access keys.
|
|
2846
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2847
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2848
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
2849
|
-
* @param parameters Specifies which key to regenerate.
|
|
2850
|
-
* @param options The options parameters.
|
|
2851
|
-
*/
|
|
2852
|
-
beginRegenerateKey(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
2853
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2854
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2855
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2856
|
-
});
|
|
2857
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2858
|
-
var _a;
|
|
2859
|
-
let currentRawResponse = undefined;
|
|
2860
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2861
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2862
|
-
currentRawResponse = rawResponse;
|
|
2863
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2864
|
-
};
|
|
2865
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2866
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2867
|
-
return {
|
|
2868
|
-
flatResponse,
|
|
2869
|
-
rawResponse: {
|
|
2870
|
-
statusCode: currentRawResponse.status,
|
|
2871
|
-
body: currentRawResponse.parsedBody,
|
|
2872
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
2873
|
-
},
|
|
2874
|
-
};
|
|
2875
|
-
});
|
|
2876
|
-
const lro = createLroSpec({
|
|
2877
|
-
sendOperationFn,
|
|
2878
|
-
args: {
|
|
2879
|
-
resourceGroupName,
|
|
2880
|
-
clusterName,
|
|
2881
|
-
databaseName,
|
|
2882
|
-
parameters,
|
|
2883
|
-
options,
|
|
2884
|
-
},
|
|
2885
|
-
spec: regenerateKeyOperationSpec,
|
|
2886
|
-
});
|
|
2887
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2888
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2889
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2890
|
-
resourceLocationConfig: "azure-async-operation",
|
|
2891
|
-
});
|
|
2892
|
-
yield poller.poll();
|
|
2893
|
-
return poller;
|
|
2894
|
-
});
|
|
2895
|
-
}
|
|
2896
|
-
/**
|
|
2897
|
-
* Regenerates the RedisEnterprise database's access keys.
|
|
2898
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2899
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2900
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
2901
|
-
* @param parameters Specifies which key to regenerate.
|
|
2902
|
-
* @param options The options parameters.
|
|
2903
|
-
*/
|
|
2904
|
-
beginRegenerateKeyAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
2905
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2906
|
-
const poller = yield this.beginRegenerateKey(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
2907
|
-
return poller.pollUntilDone();
|
|
2908
|
-
});
|
|
2909
|
-
}
|
|
2910
|
-
/**
|
|
2911
|
-
* Imports database files to target database.
|
|
2912
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2913
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2914
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
2915
|
-
* @param parameters Storage information for importing into the cluster
|
|
2916
|
-
* @param options The options parameters.
|
|
2917
|
-
*/
|
|
2918
|
-
beginImport(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
2919
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2920
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2921
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2922
|
-
});
|
|
2923
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2924
|
-
var _a;
|
|
2925
|
-
let currentRawResponse = undefined;
|
|
2926
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2927
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2928
|
-
currentRawResponse = rawResponse;
|
|
2929
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2930
|
-
};
|
|
2931
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2932
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2933
|
-
return {
|
|
2934
|
-
flatResponse,
|
|
2935
|
-
rawResponse: {
|
|
2936
|
-
statusCode: currentRawResponse.status,
|
|
2937
|
-
body: currentRawResponse.parsedBody,
|
|
2938
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
2939
|
-
},
|
|
2940
|
-
};
|
|
2941
|
-
});
|
|
2942
|
-
const lro = createLroSpec({
|
|
2943
|
-
sendOperationFn,
|
|
2944
|
-
args: {
|
|
2945
|
-
resourceGroupName,
|
|
2946
|
-
clusterName,
|
|
2947
|
-
databaseName,
|
|
2948
|
-
parameters,
|
|
2949
|
-
options,
|
|
2950
|
-
},
|
|
2951
|
-
spec: importOperationSpec,
|
|
2952
|
-
});
|
|
2953
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2954
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2955
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2956
|
-
resourceLocationConfig: "azure-async-operation",
|
|
2957
|
-
});
|
|
2958
|
-
yield poller.poll();
|
|
2959
|
-
return poller;
|
|
2960
|
-
});
|
|
2961
|
-
}
|
|
2962
|
-
/**
|
|
2963
|
-
* Imports database files to target database.
|
|
2964
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2965
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2966
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
2967
|
-
* @param parameters Storage information for importing into the cluster
|
|
2968
|
-
* @param options The options parameters.
|
|
2969
|
-
*/
|
|
2970
|
-
beginImportAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
2971
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2972
|
-
const poller = yield this.beginImport(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
2973
|
-
return poller.pollUntilDone();
|
|
2974
|
-
});
|
|
2975
|
-
}
|
|
2976
|
-
/**
|
|
2977
|
-
* Exports a database file from target database.
|
|
2978
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2979
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
2980
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
2981
|
-
* @param parameters Storage information for exporting into the cluster
|
|
2982
|
-
* @param options The options parameters.
|
|
2983
|
-
*/
|
|
2984
|
-
beginExport(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
2985
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2986
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2987
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2988
|
-
});
|
|
2989
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2990
|
-
var _a;
|
|
2991
|
-
let currentRawResponse = undefined;
|
|
2992
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2993
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2994
|
-
currentRawResponse = rawResponse;
|
|
2995
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2996
|
-
};
|
|
2997
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2998
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2999
|
-
return {
|
|
3000
|
-
flatResponse,
|
|
3001
|
-
rawResponse: {
|
|
3002
|
-
statusCode: currentRawResponse.status,
|
|
3003
|
-
body: currentRawResponse.parsedBody,
|
|
3004
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
3005
|
-
},
|
|
3006
|
-
};
|
|
3007
|
-
});
|
|
3008
|
-
const lro = createLroSpec({
|
|
3009
|
-
sendOperationFn,
|
|
3010
|
-
args: {
|
|
3011
|
-
resourceGroupName,
|
|
3012
|
-
clusterName,
|
|
3013
|
-
databaseName,
|
|
3014
|
-
parameters,
|
|
3015
|
-
options,
|
|
3016
|
-
},
|
|
3017
|
-
spec: exportOperationSpec,
|
|
3018
|
-
});
|
|
3019
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3020
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3021
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3022
|
-
resourceLocationConfig: "azure-async-operation",
|
|
3023
|
-
});
|
|
3024
|
-
yield poller.poll();
|
|
3025
|
-
return poller;
|
|
3026
|
-
});
|
|
3027
|
-
}
|
|
3028
|
-
/**
|
|
3029
|
-
* Exports a database file from target database.
|
|
3030
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3031
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
3032
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
3033
|
-
* @param parameters Storage information for exporting into the cluster
|
|
3034
|
-
* @param options The options parameters.
|
|
3035
|
-
*/
|
|
3036
|
-
beginExportAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3037
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3038
|
-
const poller = yield this.beginExport(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
3039
|
-
return poller.pollUntilDone();
|
|
3040
|
-
});
|
|
3041
|
-
}
|
|
3042
|
-
/**
|
|
3043
|
-
* Forcibly removes the link to the specified database resource.
|
|
3044
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3045
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
3046
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
3047
|
-
* @param parameters Information identifying the database to be unlinked.
|
|
3048
|
-
* @param options The options parameters.
|
|
3049
|
-
*/
|
|
3050
|
-
beginForceUnlink(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3051
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3052
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3053
|
-
return this.client.sendOperationRequest(args, spec);
|
|
3054
|
-
});
|
|
3055
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3056
|
-
var _a;
|
|
3057
|
-
let currentRawResponse = undefined;
|
|
3058
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3059
|
-
const callback = (rawResponse, flatResponse) => {
|
|
3060
|
-
currentRawResponse = rawResponse;
|
|
3061
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3062
|
-
};
|
|
3063
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3064
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3065
|
-
return {
|
|
3066
|
-
flatResponse,
|
|
3067
|
-
rawResponse: {
|
|
3068
|
-
statusCode: currentRawResponse.status,
|
|
3069
|
-
body: currentRawResponse.parsedBody,
|
|
3070
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
3071
|
-
},
|
|
3072
|
-
};
|
|
3073
|
-
});
|
|
3074
|
-
const lro = createLroSpec({
|
|
3075
|
-
sendOperationFn,
|
|
3076
|
-
args: {
|
|
3077
|
-
resourceGroupName,
|
|
3078
|
-
clusterName,
|
|
3079
|
-
databaseName,
|
|
3080
|
-
parameters,
|
|
3081
|
-
options,
|
|
3082
|
-
},
|
|
3083
|
-
spec: forceUnlinkOperationSpec,
|
|
3084
|
-
});
|
|
3085
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3086
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3087
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3088
|
-
resourceLocationConfig: "azure-async-operation",
|
|
3089
|
-
});
|
|
3090
|
-
yield poller.poll();
|
|
3091
|
-
return poller;
|
|
3092
|
-
});
|
|
3093
|
-
}
|
|
3094
|
-
/**
|
|
3095
|
-
* Forcibly removes the link to the specified database resource.
|
|
3096
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3097
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
3098
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
3099
|
-
* @param parameters Information identifying the database to be unlinked.
|
|
3100
|
-
* @param options The options parameters.
|
|
3101
|
-
*/
|
|
3102
|
-
beginForceUnlinkAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3103
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3104
|
-
const poller = yield this.beginForceUnlink(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
3105
|
-
return poller.pollUntilDone();
|
|
3106
|
-
});
|
|
3107
|
-
}
|
|
3108
|
-
/**
|
|
3109
|
-
* Forcibly recreates an existing database on the specified cluster, and rejoins it to an existing
|
|
3110
|
-
* replication group. **IMPORTANT NOTE:** All data in this database will be discarded, and the database
|
|
3111
|
-
* will temporarily be unavailable while rejoining the replication group.
|
|
3112
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3113
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
3114
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
3115
|
-
* @param parameters Information identifying the database to be unlinked.
|
|
3116
|
-
* @param options The options parameters.
|
|
3117
|
-
*/
|
|
3118
|
-
beginForceLinkToReplicationGroup(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3119
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3120
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3121
|
-
return this.client.sendOperationRequest(args, spec);
|
|
3122
|
-
});
|
|
3123
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3124
|
-
var _a;
|
|
3125
|
-
let currentRawResponse = undefined;
|
|
3126
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3127
|
-
const callback = (rawResponse, flatResponse) => {
|
|
3128
|
-
currentRawResponse = rawResponse;
|
|
3129
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3130
|
-
};
|
|
3131
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3132
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3133
|
-
return {
|
|
3134
|
-
flatResponse,
|
|
3135
|
-
rawResponse: {
|
|
3136
|
-
statusCode: currentRawResponse.status,
|
|
3137
|
-
body: currentRawResponse.parsedBody,
|
|
3138
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
3139
|
-
},
|
|
3140
|
-
};
|
|
3141
|
-
});
|
|
3142
|
-
const lro = createLroSpec({
|
|
3143
|
-
sendOperationFn,
|
|
3144
|
-
args: {
|
|
3145
|
-
resourceGroupName,
|
|
3146
|
-
clusterName,
|
|
3147
|
-
databaseName,
|
|
3148
|
-
parameters,
|
|
3149
|
-
options,
|
|
3150
|
-
},
|
|
3151
|
-
spec: forceLinkToReplicationGroupOperationSpec,
|
|
3152
|
-
});
|
|
3153
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3154
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3155
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3156
|
-
resourceLocationConfig: "azure-async-operation",
|
|
3157
|
-
});
|
|
3158
|
-
yield poller.poll();
|
|
3159
|
-
return poller;
|
|
3160
|
-
});
|
|
3161
|
-
}
|
|
3162
|
-
/**
|
|
3163
|
-
* Forcibly recreates an existing database on the specified cluster, and rejoins it to an existing
|
|
3164
|
-
* replication group. **IMPORTANT NOTE:** All data in this database will be discarded, and the database
|
|
3165
|
-
* will temporarily be unavailable while rejoining the replication group.
|
|
3166
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3167
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
3168
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
3169
|
-
* @param parameters Information identifying the database to be unlinked.
|
|
3170
|
-
* @param options The options parameters.
|
|
3171
|
-
*/
|
|
3172
|
-
beginForceLinkToReplicationGroupAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3173
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3174
|
-
const poller = yield this.beginForceLinkToReplicationGroup(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
3175
|
-
return poller.pollUntilDone();
|
|
3176
|
-
});
|
|
3177
|
-
}
|
|
3178
|
-
/**
|
|
3179
|
-
* Flushes all the keys in this database and also from its linked databases.
|
|
3180
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3181
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
3182
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
3183
|
-
* @param parameters Information identifying the databases to be flushed
|
|
3184
|
-
* @param options The options parameters.
|
|
3185
|
-
*/
|
|
3186
|
-
beginFlush(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3187
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3188
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3189
|
-
return this.client.sendOperationRequest(args, spec);
|
|
3190
|
-
});
|
|
3191
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3192
|
-
var _a;
|
|
3193
|
-
let currentRawResponse = undefined;
|
|
3194
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3195
|
-
const callback = (rawResponse, flatResponse) => {
|
|
3196
|
-
currentRawResponse = rawResponse;
|
|
3197
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3198
|
-
};
|
|
3199
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3200
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3201
|
-
return {
|
|
3202
|
-
flatResponse,
|
|
3203
|
-
rawResponse: {
|
|
3204
|
-
statusCode: currentRawResponse.status,
|
|
3205
|
-
body: currentRawResponse.parsedBody,
|
|
3206
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
3207
|
-
},
|
|
3208
|
-
};
|
|
3209
|
-
});
|
|
3210
|
-
const lro = createLroSpec({
|
|
3211
|
-
sendOperationFn,
|
|
3212
|
-
args: {
|
|
3213
|
-
resourceGroupName,
|
|
3214
|
-
clusterName,
|
|
3215
|
-
databaseName,
|
|
3216
|
-
parameters,
|
|
3217
|
-
options,
|
|
3218
|
-
},
|
|
3219
|
-
spec: flushOperationSpec,
|
|
3220
|
-
});
|
|
3221
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3222
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3223
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3224
|
-
resourceLocationConfig: "location",
|
|
3225
|
-
});
|
|
3226
|
-
yield poller.poll();
|
|
3227
|
-
return poller;
|
|
3228
|
-
});
|
|
3229
|
-
}
|
|
3230
|
-
/**
|
|
3231
|
-
* Flushes all the keys in this database and also from its linked databases.
|
|
3232
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3233
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
3234
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
3235
|
-
* @param parameters Information identifying the databases to be flushed
|
|
3236
|
-
* @param options The options parameters.
|
|
3237
|
-
*/
|
|
3238
|
-
beginFlushAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3239
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3240
|
-
const poller = yield this.beginFlush(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
3241
|
-
return poller.pollUntilDone();
|
|
3242
|
-
});
|
|
3243
|
-
}
|
|
3244
|
-
/**
|
|
3245
|
-
* Upgrades the database Redis version to the latest available.
|
|
3246
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3247
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
3248
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
3249
|
-
* @param options The options parameters.
|
|
3250
|
-
*/
|
|
3251
|
-
beginUpgradeDBRedisVersion(resourceGroupName, clusterName, databaseName, options) {
|
|
3252
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3253
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3254
|
-
return this.client.sendOperationRequest(args, spec);
|
|
3255
|
-
});
|
|
3256
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3257
|
-
var _a;
|
|
3258
|
-
let currentRawResponse = undefined;
|
|
3259
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3260
|
-
const callback = (rawResponse, flatResponse) => {
|
|
3261
|
-
currentRawResponse = rawResponse;
|
|
3262
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3263
|
-
};
|
|
3264
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3265
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3266
|
-
return {
|
|
3267
|
-
flatResponse,
|
|
3268
|
-
rawResponse: {
|
|
3269
|
-
statusCode: currentRawResponse.status,
|
|
3270
|
-
body: currentRawResponse.parsedBody,
|
|
3271
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
3272
|
-
},
|
|
3273
|
-
};
|
|
3274
|
-
});
|
|
3275
|
-
const lro = createLroSpec({
|
|
3276
|
-
sendOperationFn,
|
|
3277
|
-
args: { resourceGroupName, clusterName, databaseName, options },
|
|
3278
|
-
spec: upgradeDBRedisVersionOperationSpec,
|
|
3279
|
-
});
|
|
3280
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3281
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3282
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3283
|
-
resourceLocationConfig: "location",
|
|
3284
|
-
});
|
|
3285
|
-
yield poller.poll();
|
|
3286
|
-
return poller;
|
|
3287
|
-
});
|
|
3288
|
-
}
|
|
3289
|
-
/**
|
|
3290
|
-
* Upgrades the database Redis version to the latest available.
|
|
3291
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3292
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
3293
|
-
* @param databaseName The name of the Redis Enterprise database.
|
|
3294
|
-
* @param options The options parameters.
|
|
3295
|
-
*/
|
|
3296
|
-
beginUpgradeDBRedisVersionAndWait(resourceGroupName, clusterName, databaseName, options) {
|
|
3297
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3298
|
-
const poller = yield this.beginUpgradeDBRedisVersion(resourceGroupName, clusterName, databaseName, options);
|
|
3299
|
-
return poller.pollUntilDone();
|
|
3300
|
-
});
|
|
3301
|
-
}
|
|
3302
|
-
/**
|
|
3303
|
-
* ListByClusterNext
|
|
3304
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3305
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
3306
|
-
* @param nextLink The nextLink from the previous successful call to the ListByCluster method.
|
|
3307
|
-
* @param options The options parameters.
|
|
3308
|
-
*/
|
|
3309
|
-
_listByClusterNext(resourceGroupName, clusterName, nextLink, options) {
|
|
3310
|
-
return this.client.sendOperationRequest({ resourceGroupName, clusterName, nextLink, options }, listByClusterNextOperationSpec);
|
|
3311
|
-
}
|
|
3312
|
-
}
|
|
3313
|
-
// Operation Specifications
|
|
3314
|
-
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3315
|
-
const listByClusterOperationSpec$1 = {
|
|
3316
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases",
|
|
3317
|
-
httpMethod: "GET",
|
|
3318
|
-
responses: {
|
|
3319
|
-
200: {
|
|
3320
|
-
bodyMapper: DatabaseList,
|
|
3321
|
-
},
|
|
3322
|
-
default: {
|
|
3323
|
-
bodyMapper: ErrorResponse,
|
|
3324
|
-
},
|
|
3325
|
-
},
|
|
3326
|
-
queryParameters: [apiVersion],
|
|
3327
|
-
urlParameters: [
|
|
3328
|
-
$host,
|
|
3329
|
-
subscriptionId,
|
|
3330
|
-
resourceGroupName,
|
|
3331
|
-
clusterName,
|
|
3332
|
-
],
|
|
3333
|
-
headerParameters: [accept],
|
|
3334
|
-
serializer: serializer$2,
|
|
3335
|
-
};
|
|
3336
|
-
const createOperationSpec = {
|
|
3337
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
3338
|
-
httpMethod: "PUT",
|
|
3339
|
-
responses: {
|
|
3340
|
-
200: {
|
|
3341
|
-
bodyMapper: Database,
|
|
3342
|
-
},
|
|
3343
|
-
201: {
|
|
3344
|
-
bodyMapper: Database,
|
|
3345
|
-
},
|
|
3346
|
-
202: {
|
|
3347
|
-
bodyMapper: Database,
|
|
3348
|
-
},
|
|
3349
|
-
204: {
|
|
3350
|
-
bodyMapper: Database,
|
|
3351
|
-
},
|
|
3352
|
-
default: {
|
|
3353
|
-
bodyMapper: ErrorResponse,
|
|
3354
|
-
},
|
|
3355
|
-
},
|
|
3356
|
-
requestBody: parameters2,
|
|
3357
|
-
queryParameters: [apiVersion],
|
|
3358
|
-
urlParameters: [
|
|
3359
|
-
$host,
|
|
3360
|
-
subscriptionId,
|
|
3361
|
-
resourceGroupName,
|
|
3362
|
-
clusterName,
|
|
3363
|
-
databaseName,
|
|
3364
|
-
],
|
|
3365
|
-
headerParameters: [accept, contentType],
|
|
3366
|
-
mediaType: "json",
|
|
3367
|
-
serializer: serializer$2,
|
|
3368
|
-
};
|
|
3369
|
-
const updateOperationSpec = {
|
|
3370
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
3371
|
-
httpMethod: "PATCH",
|
|
3372
|
-
responses: {
|
|
3373
|
-
200: {
|
|
3374
|
-
bodyMapper: Database,
|
|
3375
|
-
},
|
|
3376
|
-
201: {
|
|
3377
|
-
bodyMapper: Database,
|
|
3378
|
-
},
|
|
3379
|
-
202: {
|
|
3380
|
-
bodyMapper: Database,
|
|
3381
|
-
},
|
|
3382
|
-
204: {
|
|
3383
|
-
bodyMapper: Database,
|
|
3384
|
-
},
|
|
3385
|
-
default: {
|
|
3386
|
-
bodyMapper: ErrorResponse,
|
|
3387
|
-
},
|
|
3388
|
-
},
|
|
3389
|
-
requestBody: parameters3,
|
|
3390
|
-
queryParameters: [apiVersion],
|
|
3391
|
-
urlParameters: [
|
|
3392
|
-
$host,
|
|
3393
|
-
subscriptionId,
|
|
3394
|
-
resourceGroupName,
|
|
3395
|
-
clusterName,
|
|
3396
|
-
databaseName,
|
|
3397
|
-
],
|
|
3398
|
-
headerParameters: [accept, contentType],
|
|
3399
|
-
mediaType: "json",
|
|
3400
|
-
serializer: serializer$2,
|
|
3401
|
-
};
|
|
3402
|
-
const getOperationSpec$1 = {
|
|
3403
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
3404
|
-
httpMethod: "GET",
|
|
3405
|
-
responses: {
|
|
3406
|
-
200: {
|
|
3407
|
-
bodyMapper: Database,
|
|
3408
|
-
},
|
|
3409
|
-
default: {
|
|
3410
|
-
bodyMapper: ErrorResponse,
|
|
3411
|
-
},
|
|
3412
|
-
},
|
|
3413
|
-
queryParameters: [apiVersion],
|
|
3414
|
-
urlParameters: [
|
|
3415
|
-
$host,
|
|
3416
|
-
subscriptionId,
|
|
3417
|
-
resourceGroupName,
|
|
3418
|
-
clusterName,
|
|
3419
|
-
databaseName,
|
|
3420
|
-
],
|
|
3421
|
-
headerParameters: [accept],
|
|
3422
|
-
serializer: serializer$2,
|
|
3423
|
-
};
|
|
3424
|
-
const deleteOperationSpec$1 = {
|
|
3425
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
3426
|
-
httpMethod: "DELETE",
|
|
3427
|
-
responses: {
|
|
3428
|
-
200: {},
|
|
3429
|
-
201: {},
|
|
3430
|
-
202: {},
|
|
3431
|
-
204: {},
|
|
3432
|
-
default: {
|
|
3433
|
-
bodyMapper: ErrorResponse,
|
|
3434
|
-
},
|
|
3435
|
-
},
|
|
3436
|
-
queryParameters: [apiVersion],
|
|
3437
|
-
urlParameters: [
|
|
3438
|
-
$host,
|
|
3439
|
-
subscriptionId,
|
|
3440
|
-
resourceGroupName,
|
|
3441
|
-
clusterName,
|
|
3442
|
-
databaseName,
|
|
3443
|
-
],
|
|
3444
|
-
headerParameters: [accept],
|
|
3445
|
-
serializer: serializer$2,
|
|
3446
|
-
};
|
|
3447
|
-
const listKeysOperationSpec = {
|
|
3448
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/listKeys",
|
|
3449
|
-
httpMethod: "POST",
|
|
3450
|
-
responses: {
|
|
3451
|
-
200: {
|
|
3452
|
-
bodyMapper: AccessKeys,
|
|
3453
|
-
},
|
|
3454
|
-
default: {
|
|
3455
|
-
bodyMapper: ErrorResponse,
|
|
3456
|
-
},
|
|
3457
|
-
},
|
|
3458
|
-
queryParameters: [apiVersion],
|
|
3459
|
-
urlParameters: [
|
|
3460
|
-
$host,
|
|
3461
|
-
subscriptionId,
|
|
3462
|
-
resourceGroupName,
|
|
3463
|
-
clusterName,
|
|
3464
|
-
databaseName,
|
|
3465
|
-
],
|
|
3466
|
-
headerParameters: [accept],
|
|
3467
|
-
serializer: serializer$2,
|
|
3468
|
-
};
|
|
3469
|
-
const regenerateKeyOperationSpec = {
|
|
3470
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey",
|
|
3471
|
-
httpMethod: "POST",
|
|
3472
|
-
responses: {
|
|
3473
|
-
200: {
|
|
3474
|
-
bodyMapper: AccessKeys,
|
|
3475
|
-
},
|
|
3476
|
-
201: {
|
|
3477
|
-
bodyMapper: AccessKeys,
|
|
3478
|
-
},
|
|
3479
|
-
202: {
|
|
3480
|
-
bodyMapper: AccessKeys,
|
|
3481
|
-
},
|
|
3482
|
-
204: {
|
|
3483
|
-
bodyMapper: AccessKeys,
|
|
3484
|
-
},
|
|
3485
|
-
default: {
|
|
3486
|
-
bodyMapper: ErrorResponse,
|
|
3487
|
-
},
|
|
3488
|
-
},
|
|
3489
|
-
requestBody: parameters4,
|
|
3490
|
-
queryParameters: [apiVersion],
|
|
3491
|
-
urlParameters: [
|
|
3492
|
-
$host,
|
|
3493
|
-
subscriptionId,
|
|
3494
|
-
resourceGroupName,
|
|
3495
|
-
clusterName,
|
|
3496
|
-
databaseName,
|
|
3497
|
-
],
|
|
3498
|
-
headerParameters: [accept, contentType],
|
|
3499
|
-
mediaType: "json",
|
|
3500
|
-
serializer: serializer$2,
|
|
3501
|
-
};
|
|
3502
|
-
const importOperationSpec = {
|
|
3503
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import",
|
|
3504
|
-
httpMethod: "POST",
|
|
3505
|
-
responses: {
|
|
3506
|
-
200: {},
|
|
3507
|
-
201: {},
|
|
3508
|
-
202: {},
|
|
3509
|
-
204: {},
|
|
3510
|
-
default: {
|
|
3511
|
-
bodyMapper: ErrorResponse,
|
|
3512
|
-
},
|
|
3513
|
-
},
|
|
3514
|
-
requestBody: parameters5,
|
|
3515
|
-
queryParameters: [apiVersion],
|
|
3516
|
-
urlParameters: [
|
|
3517
|
-
$host,
|
|
3518
|
-
subscriptionId,
|
|
3519
|
-
resourceGroupName,
|
|
3520
|
-
clusterName,
|
|
3521
|
-
databaseName,
|
|
3522
|
-
],
|
|
3523
|
-
headerParameters: [accept, contentType],
|
|
3524
|
-
mediaType: "json",
|
|
3525
|
-
serializer: serializer$2,
|
|
3526
|
-
};
|
|
3527
|
-
const exportOperationSpec = {
|
|
3528
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export",
|
|
3529
|
-
httpMethod: "POST",
|
|
3530
|
-
responses: {
|
|
3531
|
-
200: {},
|
|
3532
|
-
201: {},
|
|
3533
|
-
202: {},
|
|
3534
|
-
204: {},
|
|
3535
|
-
default: {
|
|
3536
|
-
bodyMapper: ErrorResponse,
|
|
3537
|
-
},
|
|
3538
|
-
},
|
|
3539
|
-
requestBody: parameters6,
|
|
3540
|
-
queryParameters: [apiVersion],
|
|
3541
|
-
urlParameters: [
|
|
3542
|
-
$host,
|
|
3543
|
-
subscriptionId,
|
|
3544
|
-
resourceGroupName,
|
|
3545
|
-
clusterName,
|
|
3546
|
-
databaseName,
|
|
3547
|
-
],
|
|
3548
|
-
headerParameters: [accept, contentType],
|
|
3549
|
-
mediaType: "json",
|
|
3550
|
-
serializer: serializer$2,
|
|
3551
|
-
};
|
|
3552
|
-
const forceUnlinkOperationSpec = {
|
|
3553
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceUnlink",
|
|
3554
|
-
httpMethod: "POST",
|
|
3555
|
-
responses: {
|
|
3556
|
-
200: {},
|
|
3557
|
-
201: {},
|
|
3558
|
-
202: {},
|
|
3559
|
-
204: {},
|
|
3560
|
-
default: {
|
|
3561
|
-
bodyMapper: ErrorResponse,
|
|
3562
|
-
},
|
|
3563
|
-
},
|
|
3564
|
-
requestBody: parameters7,
|
|
3565
|
-
queryParameters: [apiVersion],
|
|
3566
|
-
urlParameters: [
|
|
3567
|
-
$host,
|
|
3568
|
-
subscriptionId,
|
|
3569
|
-
resourceGroupName,
|
|
3570
|
-
clusterName,
|
|
3571
|
-
databaseName,
|
|
3572
|
-
],
|
|
3573
|
-
headerParameters: [accept, contentType],
|
|
3574
|
-
mediaType: "json",
|
|
3575
|
-
serializer: serializer$2,
|
|
3576
|
-
};
|
|
3577
|
-
const forceLinkToReplicationGroupOperationSpec = {
|
|
3578
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceLinkToReplicationGroup",
|
|
3579
|
-
httpMethod: "POST",
|
|
3580
|
-
responses: {
|
|
3581
|
-
200: {
|
|
3582
|
-
headersMapper: DatabasesForceLinkToReplicationGroupHeaders,
|
|
3583
|
-
},
|
|
3584
|
-
201: {
|
|
3585
|
-
headersMapper: DatabasesForceLinkToReplicationGroupHeaders,
|
|
3586
|
-
},
|
|
3587
|
-
202: {
|
|
3588
|
-
headersMapper: DatabasesForceLinkToReplicationGroupHeaders,
|
|
3589
|
-
},
|
|
3590
|
-
204: {
|
|
3591
|
-
headersMapper: DatabasesForceLinkToReplicationGroupHeaders,
|
|
3592
|
-
},
|
|
3593
|
-
default: {
|
|
3594
|
-
bodyMapper: ErrorResponse,
|
|
3595
|
-
},
|
|
3596
|
-
},
|
|
3597
|
-
requestBody: parameters8,
|
|
3598
|
-
queryParameters: [apiVersion],
|
|
3599
|
-
urlParameters: [
|
|
3600
|
-
$host,
|
|
3601
|
-
subscriptionId,
|
|
3602
|
-
resourceGroupName,
|
|
3603
|
-
clusterName,
|
|
3604
|
-
databaseName,
|
|
3605
|
-
],
|
|
3606
|
-
headerParameters: [accept, contentType],
|
|
3607
|
-
mediaType: "json",
|
|
3608
|
-
serializer: serializer$2,
|
|
3609
|
-
};
|
|
3610
|
-
const flushOperationSpec = {
|
|
3611
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/flush",
|
|
3612
|
-
httpMethod: "POST",
|
|
3613
|
-
responses: {
|
|
3614
|
-
200: {},
|
|
3615
|
-
201: {},
|
|
3616
|
-
202: {},
|
|
3617
|
-
204: {},
|
|
3618
|
-
default: {
|
|
3619
|
-
bodyMapper: ErrorResponse,
|
|
3620
|
-
},
|
|
3621
|
-
},
|
|
3622
|
-
requestBody: parameters9,
|
|
3623
|
-
queryParameters: [apiVersion],
|
|
3624
|
-
urlParameters: [
|
|
3625
|
-
$host,
|
|
3626
|
-
subscriptionId,
|
|
3627
|
-
resourceGroupName,
|
|
3628
|
-
clusterName,
|
|
3629
|
-
databaseName,
|
|
3630
|
-
],
|
|
3631
|
-
headerParameters: [accept, contentType],
|
|
3632
|
-
mediaType: "json",
|
|
3633
|
-
serializer: serializer$2,
|
|
3634
|
-
};
|
|
3635
|
-
const upgradeDBRedisVersionOperationSpec = {
|
|
3636
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/upgradeDBRedisVersion",
|
|
3637
|
-
httpMethod: "POST",
|
|
3638
|
-
responses: {
|
|
3639
|
-
200: {
|
|
3640
|
-
headersMapper: DatabasesUpgradeDBRedisVersionHeaders,
|
|
3641
|
-
},
|
|
3642
|
-
201: {
|
|
3643
|
-
headersMapper: DatabasesUpgradeDBRedisVersionHeaders,
|
|
3644
|
-
},
|
|
3645
|
-
202: {
|
|
3646
|
-
headersMapper: DatabasesUpgradeDBRedisVersionHeaders,
|
|
3647
|
-
},
|
|
3648
|
-
204: {
|
|
3649
|
-
headersMapper: DatabasesUpgradeDBRedisVersionHeaders,
|
|
3650
|
-
},
|
|
3651
|
-
default: {
|
|
3652
|
-
bodyMapper: ErrorResponse,
|
|
3653
|
-
},
|
|
3654
|
-
},
|
|
3655
|
-
queryParameters: [apiVersion],
|
|
3656
|
-
urlParameters: [
|
|
3657
|
-
$host,
|
|
3658
|
-
subscriptionId,
|
|
3659
|
-
resourceGroupName,
|
|
3660
|
-
clusterName,
|
|
3661
|
-
databaseName,
|
|
3662
|
-
],
|
|
3663
|
-
headerParameters: [accept],
|
|
3664
|
-
serializer: serializer$2,
|
|
3665
|
-
};
|
|
3666
|
-
const listByClusterNextOperationSpec = {
|
|
3667
|
-
path: "{nextLink}",
|
|
3668
|
-
httpMethod: "GET",
|
|
3669
|
-
responses: {
|
|
3670
|
-
200: {
|
|
3671
|
-
bodyMapper: DatabaseList,
|
|
3672
|
-
},
|
|
3673
|
-
default: {
|
|
3674
|
-
bodyMapper: ErrorResponse,
|
|
3675
|
-
},
|
|
3676
|
-
},
|
|
3677
|
-
urlParameters: [
|
|
3678
|
-
$host,
|
|
3679
|
-
nextLink,
|
|
3680
|
-
subscriptionId,
|
|
3681
|
-
resourceGroupName,
|
|
3682
|
-
clusterName,
|
|
3683
|
-
],
|
|
3684
|
-
headerParameters: [accept],
|
|
3685
|
-
serializer: serializer$2,
|
|
3686
|
-
};
|
|
3687
|
-
|
|
3688
|
-
/*
|
|
3689
|
-
* Copyright (c) Microsoft Corporation.
|
|
3690
|
-
* Licensed under the MIT License.
|
|
3691
|
-
*
|
|
3692
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3693
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3694
|
-
*/
|
|
3695
|
-
/// <reference lib="esnext.asynciterable" />
|
|
3696
|
-
/** Class containing PrivateEndpointConnections operations. */
|
|
3697
|
-
class PrivateEndpointConnectionsImpl {
|
|
3698
|
-
/**
|
|
3699
|
-
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
3700
|
-
* @param client Reference to the service client
|
|
3701
|
-
*/
|
|
3702
|
-
constructor(client) {
|
|
3703
|
-
this.client = client;
|
|
3704
|
-
}
|
|
3705
|
-
/**
|
|
3706
|
-
* Lists all the private endpoint connections associated with the RedisEnterprise cluster.
|
|
3707
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3708
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
3709
|
-
* @param options The options parameters.
|
|
3710
|
-
*/
|
|
3711
|
-
list(resourceGroupName, clusterName, options) {
|
|
3712
|
-
const iter = this.listPagingAll(resourceGroupName, clusterName, options);
|
|
3713
|
-
return {
|
|
3714
|
-
next() {
|
|
3715
|
-
return iter.next();
|
|
3716
|
-
},
|
|
3717
|
-
[Symbol.asyncIterator]() {
|
|
3718
|
-
return this;
|
|
3719
|
-
},
|
|
3720
|
-
byPage: (settings) => {
|
|
3721
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3722
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
3723
|
-
}
|
|
3724
|
-
return this.listPagingPage(resourceGroupName, clusterName, options, settings);
|
|
3725
|
-
},
|
|
3726
|
-
};
|
|
3727
|
-
}
|
|
3728
|
-
listPagingPage(resourceGroupName, clusterName, options, _settings) {
|
|
3729
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3730
|
-
let result;
|
|
3731
|
-
result = yield tslib.__await(this._list(resourceGroupName, clusterName, options));
|
|
3732
|
-
yield yield tslib.__await(result.value || []);
|
|
3733
|
-
});
|
|
3734
|
-
}
|
|
3735
|
-
listPagingAll(resourceGroupName, clusterName, options) {
|
|
3736
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
3737
|
-
var _a, e_1, _b, _c;
|
|
3738
|
-
try {
|
|
3739
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
3740
|
-
_c = _f.value;
|
|
3741
|
-
_d = false;
|
|
3742
|
-
const page = _c;
|
|
3743
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3744
|
-
}
|
|
3745
|
-
}
|
|
3746
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3747
|
-
finally {
|
|
3748
|
-
try {
|
|
3749
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
3750
|
-
}
|
|
3751
|
-
finally { if (e_1) throw e_1.error; }
|
|
3752
|
-
}
|
|
3753
|
-
});
|
|
3754
|
-
}
|
|
3755
|
-
/**
|
|
3756
|
-
* Lists all the private endpoint connections associated with the RedisEnterprise cluster.
|
|
3757
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3758
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
3759
|
-
* @param options The options parameters.
|
|
3760
|
-
*/
|
|
3761
|
-
_list(resourceGroupName, clusterName, options) {
|
|
3762
|
-
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listOperationSpec);
|
|
3763
|
-
}
|
|
3764
|
-
/**
|
|
3765
|
-
* Gets the specified private endpoint connection associated with the RedisEnterprise cluster.
|
|
3766
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3767
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
3768
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
3769
|
-
* Azure resource
|
|
3770
|
-
* @param options The options parameters.
|
|
3771
|
-
*/
|
|
3772
|
-
get(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
|
|
3773
|
-
return this.client.sendOperationRequest({
|
|
3774
|
-
resourceGroupName,
|
|
3775
|
-
clusterName,
|
|
3776
|
-
privateEndpointConnectionName,
|
|
3777
|
-
options,
|
|
3778
|
-
}, getOperationSpec);
|
|
3779
|
-
}
|
|
3780
|
-
/**
|
|
3781
|
-
* Updates the state of the specified private endpoint connection associated with the RedisEnterprise
|
|
3782
|
-
* cluster.
|
|
3783
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3784
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
3785
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
3786
|
-
* Azure resource
|
|
3787
|
-
* @param properties The private endpoint connection properties.
|
|
3788
|
-
* @param options The options parameters.
|
|
3789
|
-
*/
|
|
3790
|
-
beginPut(resourceGroupName, clusterName, privateEndpointConnectionName, properties, options) {
|
|
3791
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3792
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3793
|
-
return this.client.sendOperationRequest(args, spec);
|
|
3794
|
-
});
|
|
3795
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3796
|
-
var _a;
|
|
3797
|
-
let currentRawResponse = undefined;
|
|
3798
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3799
|
-
const callback = (rawResponse, flatResponse) => {
|
|
3800
|
-
currentRawResponse = rawResponse;
|
|
3801
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3802
|
-
};
|
|
3803
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3804
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3805
|
-
return {
|
|
3806
|
-
flatResponse,
|
|
3807
|
-
rawResponse: {
|
|
3808
|
-
statusCode: currentRawResponse.status,
|
|
3809
|
-
body: currentRawResponse.parsedBody,
|
|
3810
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
3811
|
-
},
|
|
3812
|
-
};
|
|
3813
|
-
});
|
|
3814
|
-
const lro = createLroSpec({
|
|
3815
|
-
sendOperationFn,
|
|
3816
|
-
args: {
|
|
3817
|
-
resourceGroupName,
|
|
3818
|
-
clusterName,
|
|
3819
|
-
privateEndpointConnectionName,
|
|
3820
|
-
properties,
|
|
3821
|
-
options,
|
|
3822
|
-
},
|
|
3823
|
-
spec: putOperationSpec,
|
|
3824
|
-
});
|
|
3825
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3826
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3827
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3828
|
-
});
|
|
3829
|
-
yield poller.poll();
|
|
3830
|
-
return poller;
|
|
3831
|
-
});
|
|
3832
|
-
}
|
|
3833
|
-
/**
|
|
3834
|
-
* Updates the state of the specified private endpoint connection associated with the RedisEnterprise
|
|
3835
|
-
* cluster.
|
|
3836
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3837
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
3838
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
3839
|
-
* Azure resource
|
|
3840
|
-
* @param properties The private endpoint connection properties.
|
|
3841
|
-
* @param options The options parameters.
|
|
3842
|
-
*/
|
|
3843
|
-
beginPutAndWait(resourceGroupName, clusterName, privateEndpointConnectionName, properties, options) {
|
|
3844
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3845
|
-
const poller = yield this.beginPut(resourceGroupName, clusterName, privateEndpointConnectionName, properties, options);
|
|
3846
|
-
return poller.pollUntilDone();
|
|
3847
|
-
});
|
|
3848
|
-
}
|
|
3849
|
-
/**
|
|
3850
|
-
* Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
|
|
3851
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3852
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
3853
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
3854
|
-
* Azure resource
|
|
3855
|
-
* @param options The options parameters.
|
|
3856
|
-
*/
|
|
3857
|
-
beginDelete(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
|
|
3858
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3859
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3860
|
-
return this.client.sendOperationRequest(args, spec);
|
|
3861
|
-
});
|
|
3862
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3863
|
-
var _a;
|
|
3864
|
-
let currentRawResponse = undefined;
|
|
3865
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3866
|
-
const callback = (rawResponse, flatResponse) => {
|
|
3867
|
-
currentRawResponse = rawResponse;
|
|
3868
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3869
|
-
};
|
|
3870
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3871
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3872
|
-
return {
|
|
3873
|
-
flatResponse,
|
|
3874
|
-
rawResponse: {
|
|
3875
|
-
statusCode: currentRawResponse.status,
|
|
3876
|
-
body: currentRawResponse.parsedBody,
|
|
3877
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
3878
|
-
},
|
|
3879
|
-
};
|
|
3880
|
-
});
|
|
3881
|
-
const lro = createLroSpec({
|
|
3882
|
-
sendOperationFn,
|
|
3883
|
-
args: {
|
|
3884
|
-
resourceGroupName,
|
|
3885
|
-
clusterName,
|
|
3886
|
-
privateEndpointConnectionName,
|
|
3887
|
-
options,
|
|
3888
|
-
},
|
|
3889
|
-
spec: deleteOperationSpec,
|
|
3890
|
-
});
|
|
3891
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3892
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3893
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3894
|
-
resourceLocationConfig: "location",
|
|
3895
|
-
});
|
|
3896
|
-
yield poller.poll();
|
|
3897
|
-
return poller;
|
|
3898
|
-
});
|
|
3899
|
-
}
|
|
3900
|
-
/**
|
|
3901
|
-
* Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
|
|
3902
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3903
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
3904
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
3905
|
-
* Azure resource
|
|
3906
|
-
* @param options The options parameters.
|
|
3907
|
-
*/
|
|
3908
|
-
beginDeleteAndWait(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
|
|
3909
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3910
|
-
const poller = yield this.beginDelete(resourceGroupName, clusterName, privateEndpointConnectionName, options);
|
|
3911
|
-
return poller.pollUntilDone();
|
|
3912
|
-
});
|
|
3913
|
-
}
|
|
3914
|
-
}
|
|
3915
|
-
// Operation Specifications
|
|
3916
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3917
|
-
const listOperationSpec = {
|
|
3918
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections",
|
|
3919
|
-
httpMethod: "GET",
|
|
3920
|
-
responses: {
|
|
3921
|
-
200: {
|
|
3922
|
-
bodyMapper: PrivateEndpointConnectionListResult,
|
|
3923
|
-
},
|
|
3924
|
-
default: {
|
|
3925
|
-
bodyMapper: ErrorResponse,
|
|
3926
|
-
},
|
|
3927
|
-
},
|
|
3928
|
-
queryParameters: [apiVersion],
|
|
3929
|
-
urlParameters: [
|
|
3930
|
-
$host,
|
|
3931
|
-
subscriptionId,
|
|
3932
|
-
resourceGroupName,
|
|
3933
|
-
clusterName,
|
|
3934
|
-
],
|
|
3935
|
-
headerParameters: [accept],
|
|
3936
|
-
serializer: serializer$1,
|
|
3937
|
-
};
|
|
3938
|
-
const getOperationSpec = {
|
|
3939
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
3940
|
-
httpMethod: "GET",
|
|
3941
|
-
responses: {
|
|
3942
|
-
200: {
|
|
3943
|
-
bodyMapper: PrivateEndpointConnection,
|
|
3944
|
-
},
|
|
3945
|
-
default: {
|
|
3946
|
-
bodyMapper: ErrorResponse,
|
|
3947
|
-
},
|
|
3948
|
-
},
|
|
3949
|
-
queryParameters: [apiVersion],
|
|
3950
|
-
urlParameters: [
|
|
3951
|
-
$host,
|
|
3952
|
-
subscriptionId,
|
|
3953
|
-
resourceGroupName,
|
|
3954
|
-
clusterName,
|
|
3955
|
-
privateEndpointConnectionName,
|
|
3956
|
-
],
|
|
3957
|
-
headerParameters: [accept],
|
|
3958
|
-
serializer: serializer$1,
|
|
3959
|
-
};
|
|
3960
|
-
const putOperationSpec = {
|
|
3961
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
3962
|
-
httpMethod: "PUT",
|
|
3963
|
-
responses: {
|
|
3964
|
-
200: {
|
|
3965
|
-
bodyMapper: PrivateEndpointConnection,
|
|
3966
|
-
},
|
|
3967
|
-
201: {
|
|
3968
|
-
bodyMapper: PrivateEndpointConnection,
|
|
3969
|
-
},
|
|
3970
|
-
202: {
|
|
3971
|
-
bodyMapper: PrivateEndpointConnection,
|
|
3972
|
-
},
|
|
3973
|
-
204: {
|
|
3974
|
-
bodyMapper: PrivateEndpointConnection,
|
|
3975
|
-
},
|
|
3976
|
-
default: {
|
|
3977
|
-
bodyMapper: ErrorResponse,
|
|
3978
|
-
},
|
|
3979
|
-
},
|
|
3980
|
-
requestBody: properties,
|
|
3981
|
-
queryParameters: [apiVersion],
|
|
3982
|
-
urlParameters: [
|
|
3983
|
-
$host,
|
|
3984
|
-
subscriptionId,
|
|
3985
|
-
resourceGroupName,
|
|
3986
|
-
clusterName,
|
|
3987
|
-
privateEndpointConnectionName,
|
|
3988
|
-
],
|
|
3989
|
-
headerParameters: [accept, contentType],
|
|
3990
|
-
mediaType: "json",
|
|
3991
|
-
serializer: serializer$1,
|
|
3992
|
-
};
|
|
3993
|
-
const deleteOperationSpec = {
|
|
3994
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
3995
|
-
httpMethod: "DELETE",
|
|
3996
|
-
responses: {
|
|
3997
|
-
200: {},
|
|
3998
|
-
201: {},
|
|
3999
|
-
202: {},
|
|
4000
|
-
204: {},
|
|
4001
|
-
default: {
|
|
4002
|
-
bodyMapper: ErrorResponse,
|
|
4003
|
-
},
|
|
4004
|
-
},
|
|
4005
|
-
queryParameters: [apiVersion],
|
|
4006
|
-
urlParameters: [
|
|
4007
|
-
$host,
|
|
4008
|
-
subscriptionId,
|
|
4009
|
-
resourceGroupName,
|
|
4010
|
-
clusterName,
|
|
4011
|
-
privateEndpointConnectionName,
|
|
4012
|
-
],
|
|
4013
|
-
headerParameters: [accept],
|
|
4014
|
-
serializer: serializer$1,
|
|
4015
|
-
};
|
|
4016
|
-
|
|
4017
|
-
/*
|
|
4018
|
-
* Copyright (c) Microsoft Corporation.
|
|
4019
|
-
* Licensed under the MIT License.
|
|
4020
|
-
*
|
|
4021
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4022
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4023
|
-
*/
|
|
4024
|
-
/// <reference lib="esnext.asynciterable" />
|
|
4025
|
-
/** Class containing PrivateLinkResources operations. */
|
|
4026
|
-
class PrivateLinkResourcesImpl {
|
|
4027
|
-
/**
|
|
4028
|
-
* Initialize a new instance of the class PrivateLinkResources class.
|
|
4029
|
-
* @param client Reference to the service client
|
|
4030
|
-
*/
|
|
4031
|
-
constructor(client) {
|
|
4032
|
-
this.client = client;
|
|
4033
|
-
}
|
|
4034
|
-
/**
|
|
4035
|
-
* Gets the private link resources that need to be created for a RedisEnterprise cluster.
|
|
4036
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4037
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
4038
|
-
* @param options The options parameters.
|
|
4039
|
-
*/
|
|
4040
|
-
listByCluster(resourceGroupName, clusterName, options) {
|
|
4041
|
-
const iter = this.listByClusterPagingAll(resourceGroupName, clusterName, options);
|
|
4042
|
-
return {
|
|
4043
|
-
next() {
|
|
4044
|
-
return iter.next();
|
|
4045
|
-
},
|
|
4046
|
-
[Symbol.asyncIterator]() {
|
|
4047
|
-
return this;
|
|
4048
|
-
},
|
|
4049
|
-
byPage: (settings) => {
|
|
4050
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4051
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
4052
|
-
}
|
|
4053
|
-
return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
|
|
4054
|
-
},
|
|
4055
|
-
};
|
|
4056
|
-
}
|
|
4057
|
-
listByClusterPagingPage(resourceGroupName, clusterName, options, _settings) {
|
|
4058
|
-
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
|
|
4059
|
-
let result;
|
|
4060
|
-
result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
|
|
4061
|
-
yield yield tslib.__await(result.value || []);
|
|
4062
|
-
});
|
|
4063
|
-
}
|
|
4064
|
-
listByClusterPagingAll(resourceGroupName, clusterName, options) {
|
|
4065
|
-
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingAll_1() {
|
|
4066
|
-
var _a, e_1, _b, _c;
|
|
4067
|
-
try {
|
|
4068
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
4069
|
-
_c = _f.value;
|
|
4070
|
-
_d = false;
|
|
4071
|
-
const page = _c;
|
|
4072
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
4073
|
-
}
|
|
4074
|
-
}
|
|
4075
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
4076
|
-
finally {
|
|
4077
|
-
try {
|
|
4078
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
4079
|
-
}
|
|
4080
|
-
finally { if (e_1) throw e_1.error; }
|
|
4081
|
-
}
|
|
4082
|
-
});
|
|
4083
|
-
}
|
|
4084
|
-
/**
|
|
4085
|
-
* Gets the private link resources that need to be created for a RedisEnterprise cluster.
|
|
4086
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4087
|
-
* @param clusterName The name of the Redis Enterprise cluster.
|
|
4088
|
-
* @param options The options parameters.
|
|
4089
|
-
*/
|
|
4090
|
-
_listByCluster(resourceGroupName, clusterName, options) {
|
|
4091
|
-
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listByClusterOperationSpec);
|
|
4092
|
-
}
|
|
4093
|
-
}
|
|
4094
|
-
// Operation Specifications
|
|
4095
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4096
|
-
const listByClusterOperationSpec = {
|
|
4097
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateLinkResources",
|
|
4098
|
-
httpMethod: "GET",
|
|
4099
|
-
responses: {
|
|
4100
|
-
200: {
|
|
4101
|
-
bodyMapper: PrivateLinkResourceListResult,
|
|
4102
|
-
},
|
|
4103
|
-
default: {
|
|
4104
|
-
bodyMapper: ErrorResponse,
|
|
4105
|
-
},
|
|
4106
|
-
},
|
|
4107
|
-
queryParameters: [apiVersion],
|
|
4108
|
-
urlParameters: [
|
|
4109
|
-
$host,
|
|
4110
|
-
subscriptionId,
|
|
4111
|
-
resourceGroupName,
|
|
4112
|
-
clusterName,
|
|
4113
|
-
],
|
|
4114
|
-
headerParameters: [accept],
|
|
4115
|
-
serializer,
|
|
4116
|
-
};
|
|
4117
|
-
|
|
4118
|
-
/*
|
|
4119
|
-
* Copyright (c) Microsoft Corporation.
|
|
4120
|
-
* Licensed under the MIT License.
|
|
4121
|
-
*
|
|
4122
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4123
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4124
|
-
*/
|
|
4125
|
-
class RedisEnterpriseManagementClient extends coreClient__namespace.ServiceClient {
|
|
4126
|
-
/**
|
|
4127
|
-
* Initializes a new instance of the RedisEnterpriseManagementClient class.
|
|
4128
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
4129
|
-
* @param subscriptionId The ID of the target subscription.
|
|
4130
|
-
* @param options The parameter options
|
|
4131
|
-
*/
|
|
4132
|
-
constructor(credentials, subscriptionId, options) {
|
|
4133
|
-
var _a, _b, _c;
|
|
4134
|
-
if (credentials === undefined) {
|
|
4135
|
-
throw new Error("'credentials' cannot be null");
|
|
4136
|
-
}
|
|
4137
|
-
if (subscriptionId === undefined) {
|
|
4138
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
4139
|
-
}
|
|
4140
|
-
// Initializing default values for options
|
|
4141
|
-
if (!options) {
|
|
4142
|
-
options = {};
|
|
4143
|
-
}
|
|
4144
|
-
const defaults = {
|
|
4145
|
-
requestContentType: "application/json; charset=utf-8",
|
|
4146
|
-
credential: credentials,
|
|
4147
|
-
};
|
|
4148
|
-
const packageDetails = `azsdk-js-arm-redisenterprisecache/3.1.0-beta.1`;
|
|
4149
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
4150
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
4151
|
-
: `${packageDetails}`;
|
|
4152
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
4153
|
-
userAgentPrefix,
|
|
4154
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
4155
|
-
super(optionsWithDefaults);
|
|
4156
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
|
4157
|
-
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
4158
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
4159
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
4160
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
4161
|
-
}
|
|
4162
|
-
if (!options ||
|
|
4163
|
-
!options.pipeline ||
|
|
4164
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
4165
|
-
!bearerTokenAuthenticationPolicyFound) {
|
|
4166
|
-
this.pipeline.removePolicy({
|
|
4167
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName,
|
|
4168
|
-
});
|
|
4169
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
4170
|
-
credential: credentials,
|
|
4171
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
4172
|
-
challengeCallbacks: {
|
|
4173
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
4174
|
-
},
|
|
4175
|
-
}));
|
|
4176
|
-
}
|
|
4177
|
-
// Parameter assignments
|
|
4178
|
-
this.subscriptionId = subscriptionId;
|
|
4179
|
-
// Assigning values to Constant parameters
|
|
4180
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
4181
|
-
this.apiVersion = options.apiVersion || "2024-03-01-preview";
|
|
4182
|
-
this.operations = new OperationsImpl(this);
|
|
4183
|
-
this.operationsStatus = new OperationsStatusImpl(this);
|
|
4184
|
-
this.redisEnterprise = new RedisEnterpriseImpl(this);
|
|
4185
|
-
this.databases = new DatabasesImpl(this);
|
|
4186
|
-
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
4187
|
-
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
4188
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
4189
|
-
}
|
|
4190
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
4191
|
-
addCustomApiVersionPolicy(apiVersion) {
|
|
4192
|
-
if (!apiVersion) {
|
|
4193
|
-
return;
|
|
4194
|
-
}
|
|
4195
|
-
const apiVersionPolicy = {
|
|
4196
|
-
name: "CustomApiVersionPolicy",
|
|
4197
|
-
sendRequest(request, next) {
|
|
4198
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4199
|
-
const param = request.url.split("?");
|
|
4200
|
-
if (param.length > 1) {
|
|
4201
|
-
const newParams = param[1].split("&").map((item) => {
|
|
4202
|
-
if (item.indexOf("api-version") > -1) {
|
|
4203
|
-
return "api-version=" + apiVersion;
|
|
4204
|
-
}
|
|
4205
|
-
else {
|
|
4206
|
-
return item;
|
|
4207
|
-
}
|
|
4208
|
-
});
|
|
4209
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
4210
|
-
}
|
|
4211
|
-
return next(request);
|
|
4212
|
-
});
|
|
4213
|
-
},
|
|
4214
|
-
};
|
|
4215
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
4216
|
-
}
|
|
4217
|
-
}
|
|
4218
|
-
|
|
4219
|
-
exports.RedisEnterpriseManagementClient = RedisEnterpriseManagementClient;
|
|
4220
|
-
exports.getContinuationToken = getContinuationToken;
|
|
4221
|
-
//# sourceMappingURL=index.js.map
|