@azure/arm-containerorchestratorruntime 1.0.0-beta.1
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 +7 -0
- package/LICENSE +21 -0
- package/README.md +100 -0
- package/dist/browser/api/bgpPeers/index.d.ts +22 -0
- package/dist/browser/api/bgpPeers/index.d.ts.map +1 -0
- package/dist/browser/api/bgpPeers/index.js +81 -0
- package/dist/browser/api/bgpPeers/index.js.map +1 -0
- package/dist/browser/api/index.d.ts +8 -0
- package/dist/browser/api/index.d.ts.map +1 -0
- package/dist/browser/api/index.js +9 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/kubernetesRuntimeContext.d.ts +11 -0
- package/dist/browser/api/kubernetesRuntimeContext.d.ts.map +1 -0
- package/dist/browser/api/kubernetesRuntimeContext.js +34 -0
- package/dist/browser/api/kubernetesRuntimeContext.js.map +1 -0
- package/dist/browser/api/loadBalancers/index.d.ts +22 -0
- package/dist/browser/api/loadBalancers/index.d.ts.map +1 -0
- package/dist/browser/api/loadBalancers/index.js +81 -0
- package/dist/browser/api/loadBalancers/index.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +9 -0
- package/dist/browser/api/operations/index.d.ts.map +1 -0
- package/dist/browser/api/operations/index.js +22 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/options.d.ts +66 -0
- package/dist/browser/api/options.d.ts.map +1 -0
- package/dist/browser/api/options.js +4 -0
- package/dist/browser/api/options.js.map +1 -0
- package/dist/browser/api/services/index.d.ts +21 -0
- package/dist/browser/api/services/index.d.ts.map +1 -0
- package/dist/browser/api/services/index.js +76 -0
- package/dist/browser/api/services/index.js.map +1 -0
- package/dist/browser/api/storageClass/index.d.ts +26 -0
- package/dist/browser/api/storageClass/index.d.ts.map +1 -0
- package/dist/browser/api/storageClass/index.js +106 -0
- package/dist/browser/api/storageClass/index.js.map +1 -0
- package/dist/browser/classic/bgpPeers/index.d.ts +24 -0
- package/dist/browser/classic/bgpPeers/index.d.ts.map +1 -0
- package/dist/browser/classic/bgpPeers/index.js +15 -0
- package/dist/browser/classic/bgpPeers/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +6 -0
- package/dist/browser/classic/index.d.ts.map +1 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/loadBalancers/index.d.ts +24 -0
- package/dist/browser/classic/loadBalancers/index.d.ts.map +1 -0
- package/dist/browser/classic/loadBalancers/index.js +15 -0
- package/dist/browser/classic/loadBalancers/index.js.map +1 -0
- package/dist/browser/classic/operations/index.d.ts +14 -0
- package/dist/browser/classic/operations/index.d.ts.map +1 -0
- package/dist/browser/classic/operations/index.js +12 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/classic/services/index.d.ts +23 -0
- package/dist/browser/classic/services/index.d.ts.map +1 -0
- package/dist/browser/classic/services/index.js +15 -0
- package/dist/browser/classic/services/index.js.map +1 -0
- package/dist/browser/classic/storageClass/index.d.ts +27 -0
- package/dist/browser/classic/storageClass/index.d.ts.map +1 -0
- package/dist/browser/classic/storageClass/index.js +16 -0
- package/dist/browser/classic/storageClass/index.js.map +1 -0
- package/dist/browser/helpers/serializerHelpers.d.ts +3 -0
- package/dist/browser/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/browser/helpers/serializerHelpers.js +24 -0
- package/dist/browser/helpers/serializerHelpers.js.map +1 -0
- package/dist/browser/index.d.ts +8 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +6 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/kubernetesRuntimeClient.d.ts +26 -0
- package/dist/browser/kubernetesRuntimeClient.d.ts.map +1 -0
- package/dist/browser/kubernetesRuntimeClient.js +25 -0
- package/dist/browser/kubernetesRuntimeClient.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +2 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +4 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/models.d.ts +591 -0
- package/dist/browser/models/models.d.ts.map +1 -0
- package/dist/browser/models/models.js +635 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.d.ts.map +1 -0
- package/dist/browser/restorePollerHelpers.js +111 -0
- package/dist/browser/restorePollerHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.js +137 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.js +76 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/api/bgpPeers/index.d.ts +22 -0
- package/dist/commonjs/api/bgpPeers/index.d.ts.map +1 -0
- package/dist/commonjs/api/bgpPeers/index.js +95 -0
- package/dist/commonjs/api/bgpPeers/index.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +8 -0
- package/dist/commonjs/api/index.d.ts.map +1 -0
- package/dist/commonjs/api/index.js +31 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/kubernetesRuntimeContext.d.ts +11 -0
- package/dist/commonjs/api/kubernetesRuntimeContext.d.ts.map +1 -0
- package/dist/commonjs/api/kubernetesRuntimeContext.js +37 -0
- package/dist/commonjs/api/kubernetesRuntimeContext.js.map +1 -0
- package/dist/commonjs/api/loadBalancers/index.d.ts +22 -0
- package/dist/commonjs/api/loadBalancers/index.d.ts.map +1 -0
- package/dist/commonjs/api/loadBalancers/index.js +95 -0
- package/dist/commonjs/api/loadBalancers/index.js.map +1 -0
- package/dist/commonjs/api/operations/index.d.ts +9 -0
- package/dist/commonjs/api/operations/index.d.ts.map +1 -0
- package/dist/commonjs/api/operations/index.js +27 -0
- package/dist/commonjs/api/operations/index.js.map +1 -0
- package/dist/commonjs/api/options.d.ts +66 -0
- package/dist/commonjs/api/options.d.ts.map +1 -0
- package/dist/commonjs/api/options.js +5 -0
- package/dist/commonjs/api/options.js.map +1 -0
- package/dist/commonjs/api/services/index.d.ts +21 -0
- package/dist/commonjs/api/services/index.d.ts.map +1 -0
- package/dist/commonjs/api/services/index.js +90 -0
- package/dist/commonjs/api/services/index.js.map +1 -0
- package/dist/commonjs/api/storageClass/index.d.ts +26 -0
- package/dist/commonjs/api/storageClass/index.d.ts.map +1 -0
- package/dist/commonjs/api/storageClass/index.js +123 -0
- package/dist/commonjs/api/storageClass/index.js.map +1 -0
- package/dist/commonjs/classic/bgpPeers/index.d.ts +24 -0
- package/dist/commonjs/classic/bgpPeers/index.d.ts.map +1 -0
- package/dist/commonjs/classic/bgpPeers/index.js +19 -0
- package/dist/commonjs/classic/bgpPeers/index.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +6 -0
- package/dist/commonjs/classic/index.d.ts.map +1 -0
- package/dist/commonjs/classic/index.js +5 -0
- package/dist/commonjs/classic/index.js.map +1 -0
- package/dist/commonjs/classic/loadBalancers/index.d.ts +24 -0
- package/dist/commonjs/classic/loadBalancers/index.d.ts.map +1 -0
- package/dist/commonjs/classic/loadBalancers/index.js +19 -0
- package/dist/commonjs/classic/loadBalancers/index.js.map +1 -0
- package/dist/commonjs/classic/operations/index.d.ts +14 -0
- package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
- package/dist/commonjs/classic/operations/index.js +16 -0
- package/dist/commonjs/classic/operations/index.js.map +1 -0
- package/dist/commonjs/classic/services/index.d.ts +23 -0
- package/dist/commonjs/classic/services/index.d.ts.map +1 -0
- package/dist/commonjs/classic/services/index.js +19 -0
- package/dist/commonjs/classic/services/index.js.map +1 -0
- package/dist/commonjs/classic/storageClass/index.d.ts +27 -0
- package/dist/commonjs/classic/storageClass/index.d.ts.map +1 -0
- package/dist/commonjs/classic/storageClass/index.js +20 -0
- package/dist/commonjs/classic/storageClass/index.js.map +1 -0
- package/dist/commonjs/helpers/serializerHelpers.d.ts +3 -0
- package/dist/commonjs/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/commonjs/helpers/serializerHelpers.js +27 -0
- package/dist/commonjs/helpers/serializerHelpers.js.map +1 -0
- package/dist/commonjs/index.d.ts +8 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +24 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/kubernetesRuntimeClient.d.ts +26 -0
- package/dist/commonjs/kubernetesRuntimeClient.d.ts.map +1 -0
- package/dist/commonjs/kubernetesRuntimeClient.js +29 -0
- package/dist/commonjs/kubernetesRuntimeClient.js.map +1 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +20 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/models.d.ts +591 -0
- package/dist/commonjs/models/models.d.ts.map +1 -0
- package/dist/commonjs/models/models.js +694 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -0
- package/dist/commonjs/restorePollerHelpers.js +114 -0
- package/dist/commonjs/restorePollerHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +140 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +79 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/api/bgpPeers/index.d.ts +22 -0
- package/dist/esm/api/bgpPeers/index.d.ts.map +1 -0
- package/dist/esm/api/bgpPeers/index.js +81 -0
- package/dist/esm/api/bgpPeers/index.js.map +1 -0
- package/dist/esm/api/index.d.ts +8 -0
- package/dist/esm/api/index.d.ts.map +1 -0
- package/dist/esm/api/index.js +9 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/kubernetesRuntimeContext.d.ts +11 -0
- package/dist/esm/api/kubernetesRuntimeContext.d.ts.map +1 -0
- package/dist/esm/api/kubernetesRuntimeContext.js +34 -0
- package/dist/esm/api/kubernetesRuntimeContext.js.map +1 -0
- package/dist/esm/api/loadBalancers/index.d.ts +22 -0
- package/dist/esm/api/loadBalancers/index.d.ts.map +1 -0
- package/dist/esm/api/loadBalancers/index.js +81 -0
- package/dist/esm/api/loadBalancers/index.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +9 -0
- package/dist/esm/api/operations/index.d.ts.map +1 -0
- package/dist/esm/api/operations/index.js +22 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/options.d.ts +66 -0
- package/dist/esm/api/options.d.ts.map +1 -0
- package/dist/esm/api/options.js +4 -0
- package/dist/esm/api/options.js.map +1 -0
- package/dist/esm/api/services/index.d.ts +21 -0
- package/dist/esm/api/services/index.d.ts.map +1 -0
- package/dist/esm/api/services/index.js +76 -0
- package/dist/esm/api/services/index.js.map +1 -0
- package/dist/esm/api/storageClass/index.d.ts +26 -0
- package/dist/esm/api/storageClass/index.d.ts.map +1 -0
- package/dist/esm/api/storageClass/index.js +106 -0
- package/dist/esm/api/storageClass/index.js.map +1 -0
- package/dist/esm/classic/bgpPeers/index.d.ts +24 -0
- package/dist/esm/classic/bgpPeers/index.d.ts.map +1 -0
- package/dist/esm/classic/bgpPeers/index.js +15 -0
- package/dist/esm/classic/bgpPeers/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +6 -0
- package/dist/esm/classic/index.d.ts.map +1 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/loadBalancers/index.d.ts +24 -0
- package/dist/esm/classic/loadBalancers/index.d.ts.map +1 -0
- package/dist/esm/classic/loadBalancers/index.js +15 -0
- package/dist/esm/classic/loadBalancers/index.js.map +1 -0
- package/dist/esm/classic/operations/index.d.ts +14 -0
- package/dist/esm/classic/operations/index.d.ts.map +1 -0
- package/dist/esm/classic/operations/index.js +12 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/classic/services/index.d.ts +23 -0
- package/dist/esm/classic/services/index.d.ts.map +1 -0
- package/dist/esm/classic/services/index.js +15 -0
- package/dist/esm/classic/services/index.js.map +1 -0
- package/dist/esm/classic/storageClass/index.d.ts +27 -0
- package/dist/esm/classic/storageClass/index.d.ts.map +1 -0
- package/dist/esm/classic/storageClass/index.js +16 -0
- package/dist/esm/classic/storageClass/index.js.map +1 -0
- package/dist/esm/helpers/serializerHelpers.d.ts +3 -0
- package/dist/esm/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/esm/helpers/serializerHelpers.js +24 -0
- package/dist/esm/helpers/serializerHelpers.js.map +1 -0
- package/dist/esm/index.d.ts +8 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/kubernetesRuntimeClient.d.ts +26 -0
- package/dist/esm/kubernetesRuntimeClient.d.ts.map +1 -0
- package/dist/esm/kubernetesRuntimeClient.js +25 -0
- package/dist/esm/kubernetesRuntimeClient.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/models.d.ts +591 -0
- package/dist/esm/models/models.d.ts.map +1 -0
- package/dist/esm/models/models.js +635 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.d.ts.map +1 -0
- package/dist/esm/restorePollerHelpers.js +111 -0
- package/dist/esm/restorePollerHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.js +137 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.js +76 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/react-native/api/bgpPeers/index.d.ts +22 -0
- package/dist/react-native/api/bgpPeers/index.d.ts.map +1 -0
- package/dist/react-native/api/bgpPeers/index.js +81 -0
- package/dist/react-native/api/bgpPeers/index.js.map +1 -0
- package/dist/react-native/api/index.d.ts +8 -0
- package/dist/react-native/api/index.d.ts.map +1 -0
- package/dist/react-native/api/index.js +9 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/api/kubernetesRuntimeContext.d.ts +11 -0
- package/dist/react-native/api/kubernetesRuntimeContext.d.ts.map +1 -0
- package/dist/react-native/api/kubernetesRuntimeContext.js +34 -0
- package/dist/react-native/api/kubernetesRuntimeContext.js.map +1 -0
- package/dist/react-native/api/loadBalancers/index.d.ts +22 -0
- package/dist/react-native/api/loadBalancers/index.d.ts.map +1 -0
- package/dist/react-native/api/loadBalancers/index.js +81 -0
- package/dist/react-native/api/loadBalancers/index.js.map +1 -0
- package/dist/react-native/api/operations/index.d.ts +9 -0
- package/dist/react-native/api/operations/index.d.ts.map +1 -0
- package/dist/react-native/api/operations/index.js +22 -0
- package/dist/react-native/api/operations/index.js.map +1 -0
- package/dist/react-native/api/options.d.ts +66 -0
- package/dist/react-native/api/options.d.ts.map +1 -0
- package/dist/react-native/api/options.js +4 -0
- package/dist/react-native/api/options.js.map +1 -0
- package/dist/react-native/api/services/index.d.ts +21 -0
- package/dist/react-native/api/services/index.d.ts.map +1 -0
- package/dist/react-native/api/services/index.js +76 -0
- package/dist/react-native/api/services/index.js.map +1 -0
- package/dist/react-native/api/storageClass/index.d.ts +26 -0
- package/dist/react-native/api/storageClass/index.d.ts.map +1 -0
- package/dist/react-native/api/storageClass/index.js +106 -0
- package/dist/react-native/api/storageClass/index.js.map +1 -0
- package/dist/react-native/classic/bgpPeers/index.d.ts +24 -0
- package/dist/react-native/classic/bgpPeers/index.d.ts.map +1 -0
- package/dist/react-native/classic/bgpPeers/index.js +15 -0
- package/dist/react-native/classic/bgpPeers/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +6 -0
- package/dist/react-native/classic/index.d.ts.map +1 -0
- package/dist/react-native/classic/index.js +4 -0
- package/dist/react-native/classic/index.js.map +1 -0
- package/dist/react-native/classic/loadBalancers/index.d.ts +24 -0
- package/dist/react-native/classic/loadBalancers/index.d.ts.map +1 -0
- package/dist/react-native/classic/loadBalancers/index.js +15 -0
- package/dist/react-native/classic/loadBalancers/index.js.map +1 -0
- package/dist/react-native/classic/operations/index.d.ts +14 -0
- package/dist/react-native/classic/operations/index.d.ts.map +1 -0
- package/dist/react-native/classic/operations/index.js +12 -0
- package/dist/react-native/classic/operations/index.js.map +1 -0
- package/dist/react-native/classic/services/index.d.ts +23 -0
- package/dist/react-native/classic/services/index.d.ts.map +1 -0
- package/dist/react-native/classic/services/index.js +15 -0
- package/dist/react-native/classic/services/index.js.map +1 -0
- package/dist/react-native/classic/storageClass/index.d.ts +27 -0
- package/dist/react-native/classic/storageClass/index.d.ts.map +1 -0
- package/dist/react-native/classic/storageClass/index.js +16 -0
- package/dist/react-native/classic/storageClass/index.js.map +1 -0
- package/dist/react-native/helpers/serializerHelpers.d.ts +3 -0
- package/dist/react-native/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/react-native/helpers/serializerHelpers.js +24 -0
- package/dist/react-native/helpers/serializerHelpers.js.map +1 -0
- package/dist/react-native/index.d.ts +8 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +6 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/kubernetesRuntimeClient.d.ts +26 -0
- package/dist/react-native/kubernetesRuntimeClient.d.ts.map +1 -0
- package/dist/react-native/kubernetesRuntimeClient.js +25 -0
- package/dist/react-native/kubernetesRuntimeClient.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models/index.d.ts +2 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +4 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/models.d.ts +591 -0
- package/dist/react-native/models/models.d.ts.map +1 -0
- package/dist/react-native/models/models.js +635 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/restorePollerHelpers.d.ts +21 -0
- package/dist/react-native/restorePollerHelpers.d.ts.map +1 -0
- package/dist/react-native/restorePollerHelpers.js +111 -0
- package/dist/react-native/restorePollerHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +137 -0
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.js +76 -0
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
- package/package.json +167 -0
- package/review/arm-containerorchestratorruntime-models.api.md +320 -0
- package/review/arm-containerorchestratorruntime.api.md +487 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,MAAM,UAAU,yBAAyB,CAAC,IAAqB;IAC7D,OAAO;QACL,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,2BAA2B,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KACpD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,IAAS;IACnD,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;QACd,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9C,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,6BAA6B,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KACtD,CAAC;AACJ,CA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AAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** A Service resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) */\nexport interface ServiceResource extends ExtensionResource {\n /** The resource-specific properties for this resource. */\n properties?: ServiceProperties;\n}\n\nexport function serviceResourceSerializer(item: ServiceResource): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : servicePropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function serviceResourceDeserializer(item: any): ServiceResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : servicePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties for the service resource */\nexport interface ServiceProperties {\n /** The object id of the service principal of the RP provisioned in the tenant */\n readonly rpObjectId?: string;\n /** Resource provision state */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function servicePropertiesSerializer(item: ServiceProperties): any {\n return item;\n}\n\nexport function servicePropertiesDeserializer(item: any): ServiceProperties {\n return {\n rpObjectId: item[\"rpObjectId\"],\n provisioningState: !item[\"provisioningState\"]\n ? item[\"provisioningState\"]\n : provisioningStateDeserializer(item[\"provisioningState\"]),\n };\n}\n\n/** Known values of {@link ResourceProvisioningState} that the service accepts. */\nexport enum KnownProvisioningState {\n /** Succeeded */\n Succeeded = \"Succeeded\",\n /** Failed */\n Failed = \"Failed\",\n /** Canceled */\n Canceled = \"Canceled\",\n /** Provisioning */\n Provisioning = \"Provisioning\",\n /** Updating */\n Updating = \"Updating\",\n /** Deleting */\n Deleting = \"Deleting\",\n /** Accepted */\n Accepted = \"Accepted\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded** \\\n * **Failed** \\\n * **Canceled** \\\n * **Provisioning** \\\n * **Updating** \\\n * **Deleting** \\\n * **Accepted**\n */\nexport type ProvisioningState = string;\n\nexport function provisioningStateSerializer(item: ProvisioningState): any {\n return item;\n}\n\nexport function provisioningStateDeserializer(item: any): ProvisioningState {\n return item;\n}\n\n/** The base extension resource. */\nexport interface ExtensionResource extends Resource {}\n\nexport function extensionResourceSerializer(item: ExtensionResource): any {\n return item;\n}\n\nexport function extensionResourceDeserializer(item: any): ExtensionResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** The response of a ServiceResource list operation. */\nexport interface _ServiceResourceListResult {\n /** The ServiceResource items on this page */\n value: ServiceResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _serviceResourceListResultDeserializer(item: any): _ServiceResourceListResult {\n return {\n value: serviceResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function serviceResourceArraySerializer(result: Array<ServiceResource>): any[] {\n return result.map((item) => {\n return serviceResourceSerializer(item);\n });\n}\n\nexport function serviceResourceArrayDeserializer(result: Array<ServiceResource>): any[] {\n return result.map((item) => {\n return serviceResourceDeserializer(item);\n });\n}\n\n/** A BgpPeer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) */\nexport interface BgpPeer extends ExtensionResource {\n /** The resource-specific properties for this resource. */\n properties?: BgpPeerProperties;\n}\n\nexport function bgpPeerSerializer(item: BgpPeer): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : bgpPeerPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function bgpPeerDeserializer(item: any): BgpPeer {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : bgpPeerPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Details of the BgpPeer. */\nexport interface BgpPeerProperties {\n /** My ASN */\n myAsn: number;\n /** Peer ASN */\n peerAsn: number;\n /** Peer Address */\n peerAddress: string;\n /** Resource provision state */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function bgpPeerPropertiesSerializer(item: BgpPeerProperties): any {\n return {\n myAsn: item[\"myAsn\"],\n peerAsn: item[\"peerAsn\"],\n peerAddress: item[\"peerAddress\"],\n };\n}\n\nexport function bgpPeerPropertiesDeserializer(item: any): BgpPeerProperties {\n return {\n myAsn: item[\"myAsn\"],\n peerAsn: item[\"peerAsn\"],\n peerAddress: item[\"peerAddress\"],\n provisioningState: !item[\"provisioningState\"]\n ? item[\"provisioningState\"]\n : provisioningStateDeserializer(item[\"provisioningState\"]),\n };\n}\n\n/** The response of a BgpPeer list operation. */\nexport interface _BgpPeerListResult {\n /** The BgpPeer items on this page */\n value: BgpPeer[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _bgpPeerListResultDeserializer(item: any): _BgpPeerListResult {\n return {\n value: bgpPeerArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function bgpPeerArraySerializer(result: Array<BgpPeer>): any[] {\n return result.map((item) => {\n return bgpPeerSerializer(item);\n });\n}\n\nexport function bgpPeerArrayDeserializer(result: Array<BgpPeer>): any[] {\n return result.map((item) => {\n return bgpPeerDeserializer(item);\n });\n}\n\n/** A LoadBalancer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) */\nexport interface LoadBalancer extends ExtensionResource {\n /** The resource-specific properties for this resource. */\n properties?: LoadBalancerProperties;\n}\n\nexport function loadBalancerSerializer(item: LoadBalancer): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : loadBalancerPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function loadBalancerDeserializer(item: any): LoadBalancer {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : loadBalancerPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Details of the LoadBalancer. */\nexport interface LoadBalancerProperties {\n /** IP Range */\n addresses: string[];\n /** A dynamic label mapping to select related services. For instance, if you want to create a load balancer only for services with label \"a=b\", then please specify {\"a\": \"b\"} in the field. */\n serviceSelector?: Record<string, string>;\n /** Advertise Mode */\n advertiseMode: AdvertiseMode;\n /** The list of BGP peers it should advertise to. Null or empty means to advertise to all peers. */\n bgpPeers?: string[];\n /** Resource provision state */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function loadBalancerPropertiesSerializer(item: LoadBalancerProperties): any {\n return {\n addresses: item[\"addresses\"].map((p: any) => {\n return p;\n }),\n serviceSelector: item[\"serviceSelector\"],\n advertiseMode: item[\"advertiseMode\"],\n bgpPeers: !item[\"bgpPeers\"]\n ? item[\"bgpPeers\"]\n : item[\"bgpPeers\"].map((p: any) => {\n return p;\n }),\n };\n}\n\nexport function loadBalancerPropertiesDeserializer(item: any): LoadBalancerProperties {\n return {\n addresses: item[\"addresses\"].map((p: any) => {\n return p;\n }),\n serviceSelector: item[\"serviceSelector\"],\n advertiseMode: item[\"advertiseMode\"],\n bgpPeers: !item[\"bgpPeers\"]\n ? item[\"bgpPeers\"]\n : item[\"bgpPeers\"].map((p: any) => {\n return p;\n }),\n provisioningState: !item[\"provisioningState\"]\n ? item[\"provisioningState\"]\n : provisioningStateDeserializer(item[\"provisioningState\"]),\n };\n}\n\n/** Enum of advertise mode */\nexport enum KnownAdvertiseMode {\n /** ARP advertise mode */\n ARP = \"ARP\",\n /** BGP advertise mode */\n BGP = \"BGP\",\n /** both ARP and BGP advertise mode */\n Both = \"Both\",\n}\n\n/**\n * Enum of advertise mode \\\n * {@link KnownAdvertiseMode} can be used interchangeably with AdvertiseMode,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **ARP**: ARP advertise mode \\\n * **BGP**: BGP advertise mode \\\n * **Both**: both ARP and BGP advertise mode\n */\nexport type AdvertiseMode = string;\n\n/** The response of a LoadBalancer list operation. */\nexport interface _LoadBalancerListResult {\n /** The LoadBalancer items on this page */\n value: LoadBalancer[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _loadBalancerListResultDeserializer(item: any): _LoadBalancerListResult {\n return {\n value: loadBalancerArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function loadBalancerArraySerializer(result: Array<LoadBalancer>): any[] {\n return result.map((item) => {\n return loadBalancerSerializer(item);\n });\n}\n\nexport function loadBalancerArrayDeserializer(result: Array<LoadBalancer>): any[] {\n return result.map((item) => {\n return loadBalancerDeserializer(item);\n });\n}\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n readonly display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** A StorageClass resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) */\nexport interface StorageClassResource extends ExtensionResource {\n /** The resource-specific properties for this resource. */\n properties?: StorageClassProperties;\n}\n\nexport function storageClassResourceSerializer(item: StorageClassResource): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : storageClassPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function storageClassResourceDeserializer(item: any): StorageClassResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : storageClassPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Details of the StorageClass StorageClass. */\nexport interface StorageClassProperties {\n /** Volume can be expanded or not */\n allowVolumeExpansion?: VolumeExpansion;\n /** Additional mount options */\n mountOptions?: string[];\n /** Provisioner name */\n provisioner?: string;\n /** Binding mode of volumes: Immediate, WaitForFirstConsumer */\n volumeBindingMode?: VolumeBindingMode;\n /** The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce] */\n accessModes?: AccessMode[];\n /** Allow single data node failure */\n dataResilience?: DataResilienceTier;\n /** Failover speed: NA, Slow, Fast */\n failoverSpeed?: FailoverTier;\n /** Limitations of the storage class */\n limitations?: string[];\n /** Performance tier */\n performance?: PerformanceTier;\n /** Selection priority when multiple storage classes meet the criteria. 0: Highest, -1: Never use */\n priority?: number;\n /** Properties of the StorageClass */\n typeProperties: StorageClassTypePropertiesUnion;\n /** Resource provision state */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function storageClassPropertiesSerializer(item: StorageClassProperties): any {\n return {\n allowVolumeExpansion: item[\"allowVolumeExpansion\"],\n mountOptions: !item[\"mountOptions\"]\n ? item[\"mountOptions\"]\n : item[\"mountOptions\"].map((p: any) => {\n return p;\n }),\n provisioner: item[\"provisioner\"],\n volumeBindingMode: item[\"volumeBindingMode\"],\n accessModes: !item[\"accessModes\"]\n ? item[\"accessModes\"]\n : item[\"accessModes\"].map((p: any) => {\n return p;\n }),\n dataResilience: item[\"dataResilience\"],\n failoverSpeed: item[\"failoverSpeed\"],\n limitations: !item[\"limitations\"]\n ? item[\"limitations\"]\n : item[\"limitations\"].map((p: any) => {\n return p;\n }),\n performance: item[\"performance\"],\n priority: item[\"priority\"],\n typeProperties: storageClassTypePropertiesUnionSerializer(item[\"typeProperties\"]),\n };\n}\n\nexport function storageClassPropertiesDeserializer(item: any): StorageClassProperties {\n return {\n allowVolumeExpansion: item[\"allowVolumeExpansion\"],\n mountOptions: !item[\"mountOptions\"]\n ? item[\"mountOptions\"]\n : item[\"mountOptions\"].map((p: any) => {\n return p;\n }),\n provisioner: item[\"provisioner\"],\n volumeBindingMode: item[\"volumeBindingMode\"],\n accessModes: !item[\"accessModes\"]\n ? item[\"accessModes\"]\n : item[\"accessModes\"].map((p: any) => {\n return p;\n }),\n dataResilience: item[\"dataResilience\"],\n failoverSpeed: item[\"failoverSpeed\"],\n limitations: !item[\"limitations\"]\n ? item[\"limitations\"]\n : item[\"limitations\"].map((p: any) => {\n return p;\n }),\n performance: item[\"performance\"],\n priority: item[\"priority\"],\n typeProperties: storageClassTypePropertiesUnionDeserializer(item[\"typeProperties\"]),\n provisioningState: !item[\"provisioningState\"]\n ? item[\"provisioningState\"]\n : provisioningStateDeserializer(item[\"provisioningState\"]),\n };\n}\n\n/** Ability to expand volumes of a storage class */\nexport enum KnownVolumeExpansion {\n /** Allow volume expansion */\n Allow = \"Allow\",\n /** Disallow volume expansion */\n Disallow = \"Disallow\",\n}\n\n/**\n * Ability to expand volumes of a storage class \\\n * {@link KnownVolumeExpansion} can be used interchangeably with VolumeExpansion,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Allow**: Allow volume expansion \\\n * **Disallow**: Disallow volume expansion\n */\nexport type VolumeExpansion = string;\n\n/** Storage class volume binding mode */\nexport enum KnownVolumeBindingMode {\n /** Immediate binding mode */\n Immediate = \"Immediate\",\n /** Wait for first consumer binding mode */\n WaitForFirstConsumer = \"WaitForFirstConsumer\",\n}\n\n/**\n * Storage class volume binding mode \\\n * {@link KnownVolumeBindingMode} can be used interchangeably with VolumeBindingMode,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Immediate**: Immediate binding mode \\\n * **WaitForFirstConsumer**: Wait for first consumer binding mode\n */\nexport type VolumeBindingMode = string;\n\n/** Storage Class Access Mode */\nexport enum KnownAccessMode {\n /** Read Write Once (RWO) access mode */\n ReadWriteOnce = \"ReadWriteOnce\",\n /** Read Write Many (RWX) access mode */\n ReadWriteMany = \"ReadWriteMany\",\n}\n\n/**\n * Storage Class Access Mode \\\n * {@link KnownAccessMode} can be used interchangeably with AccessMode,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **ReadWriteOnce**: Read Write Once (RWO) access mode \\\n * **ReadWriteMany**: Read Write Many (RWX) access mode\n */\nexport type AccessMode = string;\n\n/** Data resilience tier of a storage class */\nexport enum KnownDataResilienceTier {\n /** Not data resilient */\n NotDataResilient = \"NotDataResilient\",\n /** Data resilient */\n DataResilient = \"DataResilient\",\n}\n\n/**\n * Data resilience tier of a storage class \\\n * {@link KnownDataResilienceTier} can be used interchangeably with DataResilienceTier,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **NotDataResilient**: Not data resilient \\\n * **DataResilient**: Data resilient\n */\nexport type DataResilienceTier = string;\n\n/** Failover tier of a storage class */\nexport enum KnownFailoverTier {\n /** Not available Failover Tier */\n NotAvailable = \"NotAvailable\",\n /** Slow Failover Tier */\n Slow = \"Slow\",\n /** Fast Failover Tier */\n Fast = \"Fast\",\n /** Super Failover Tier */\n Super = \"Super\",\n}\n\n/**\n * Failover tier of a storage class \\\n * {@link KnownFailoverTier} can be used interchangeably with FailoverTier,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **NotAvailable**: Not available Failover Tier \\\n * **Slow**: Slow Failover Tier \\\n * **Fast**: Fast Failover Tier \\\n * **Super**: Super Failover Tier\n */\nexport type FailoverTier = string;\n\n/** Performance tier of a storage class */\nexport enum KnownPerformanceTier {\n /** Undefined Performance Tier */\n Undefined = \"Undefined\",\n /** Basic Performance Tier */\n Basic = \"Basic\",\n /** Standard Performance Tier */\n Standard = \"Standard\",\n /** Premium Performance Tier */\n Premium = \"Premium\",\n /** Ultra Performance Tier */\n Ultra = \"Ultra\",\n}\n\n/**\n * Performance tier of a storage class \\\n * {@link KnownPerformanceTier} can be used interchangeably with PerformanceTier,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Undefined**: Undefined Performance Tier \\\n * **Basic**: Basic Performance Tier \\\n * **Standard**: Standard Performance Tier \\\n * **Premium**: Premium Performance Tier \\\n * **Ultra**: Ultra Performance Tier\n */\nexport type PerformanceTier = string;\n\n/** The properties of storage class of the StorageClass */\nexport interface StorageClassTypeProperties {\n /** Type of the storage class. */\n /** The discriminator possible values: Native, RWX, Blob, NFS, SMB */\n type: SCType;\n}\n\nexport function storageClassTypePropertiesSerializer(item: StorageClassTypeProperties): any {\n return { type: item[\"type\"] };\n}\n\nexport function storageClassTypePropertiesDeserializer(item: any): StorageClassTypeProperties {\n return {\n type: item[\"type\"],\n };\n}\n\n/** Alias for StorageClassTypePropertiesUnion */\nexport type StorageClassTypePropertiesUnion =\n | NativeStorageClassTypeProperties\n | RwxStorageClassTypeProperties\n | BlobStorageClassTypeProperties\n | NfsStorageClassTypeProperties\n | SmbStorageClassTypeProperties\n | StorageClassTypeProperties;\n\nexport function storageClassTypePropertiesUnionSerializer(\n item: StorageClassTypePropertiesUnion,\n): any {\n switch (item.type) {\n case \"Native\":\n return nativeStorageClassTypePropertiesSerializer(item as NativeStorageClassTypeProperties);\n\n case \"RWX\":\n return rwxStorageClassTypePropertiesSerializer(item as RwxStorageClassTypeProperties);\n\n case \"Blob\":\n return blobStorageClassTypePropertiesSerializer(item as BlobStorageClassTypeProperties);\n\n case \"NFS\":\n return nfsStorageClassTypePropertiesSerializer(item as NfsStorageClassTypeProperties);\n\n case \"SMB\":\n return smbStorageClassTypePropertiesSerializer(item as SmbStorageClassTypeProperties);\n\n default:\n return storageClassTypePropertiesSerializer(item);\n }\n}\n\nexport function storageClassTypePropertiesUnionDeserializer(\n item: any,\n): StorageClassTypePropertiesUnion {\n switch (item.type) {\n case \"Native\":\n return nativeStorageClassTypePropertiesDeserializer(item as NativeStorageClassTypeProperties);\n\n case \"RWX\":\n return rwxStorageClassTypePropertiesDeserializer(item as RwxStorageClassTypeProperties);\n\n case \"Blob\":\n return blobStorageClassTypePropertiesDeserializer(item as BlobStorageClassTypeProperties);\n\n case \"NFS\":\n return nfsStorageClassTypePropertiesDeserializer(item as NfsStorageClassTypeProperties);\n\n case \"SMB\":\n return smbStorageClassTypePropertiesDeserializer(item as SmbStorageClassTypeProperties);\n\n default:\n return storageClassTypePropertiesDeserializer(item);\n }\n}\n\n/** Type of a storage class */\nexport enum KnownSCType {\n /** Native storage class */\n Native = \"Native\",\n /** RWX storage class */\n RWX = \"RWX\",\n /** Blob storage class */\n Blob = \"Blob\",\n /** NFS storage class */\n NFS = \"NFS\",\n /** SMB storage class */\n SMB = \"SMB\",\n}\n\n/**\n * Type of a storage class \\\n * {@link KnownSCType} can be used interchangeably with SCType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Native**: Native storage class \\\n * **RWX**: RWX storage class \\\n * **Blob**: Blob storage class \\\n * **NFS**: NFS storage class \\\n * **SMB**: SMB storage class\n */\nexport type SCType = string;\n\n/** The properties of Native StorageClass */\nexport interface NativeStorageClassTypeProperties extends StorageClassTypeProperties {\n /** Native StorageClass */\n type: \"Native\";\n}\n\nexport function nativeStorageClassTypePropertiesSerializer(\n item: NativeStorageClassTypeProperties,\n): any {\n return { type: item[\"type\"] };\n}\n\nexport function nativeStorageClassTypePropertiesDeserializer(\n item: any,\n): NativeStorageClassTypeProperties {\n return {\n type: item[\"type\"],\n };\n}\n\n/** The properties of RWX StorageClass */\nexport interface RwxStorageClassTypeProperties extends StorageClassTypeProperties {\n /** RWX StorageClass */\n type: \"RWX\";\n /** The backing storageclass used to create new storageclass */\n backingStorageClassName: string;\n}\n\nexport function rwxStorageClassTypePropertiesSerializer(item: RwxStorageClassTypeProperties): any {\n return {\n type: item[\"type\"],\n backingStorageClassName: item[\"backingStorageClassName\"],\n };\n}\n\nexport function rwxStorageClassTypePropertiesDeserializer(\n item: any,\n): RwxStorageClassTypeProperties {\n return {\n type: item[\"type\"],\n backingStorageClassName: item[\"backingStorageClassName\"],\n };\n}\n\n/** The properties of Blob StorageClass */\nexport interface BlobStorageClassTypeProperties extends StorageClassTypeProperties {\n /** Blob StorageClass */\n type: \"Blob\";\n /** Azure Storage Account Name */\n azureStorageAccountName: string;\n /** Azure Storage Account Key */\n azureStorageAccountKey: string;\n}\n\nexport function blobStorageClassTypePropertiesSerializer(\n item: BlobStorageClassTypeProperties,\n): any {\n return {\n type: item[\"type\"],\n azureStorageAccountName: item[\"azureStorageAccountName\"],\n azureStorageAccountKey: item[\"azureStorageAccountKey\"],\n };\n}\n\nexport function blobStorageClassTypePropertiesDeserializer(\n item: any,\n): BlobStorageClassTypeProperties {\n return {\n type: item[\"type\"],\n azureStorageAccountName: item[\"azureStorageAccountName\"],\n azureStorageAccountKey: item[\"azureStorageAccountKey\"],\n };\n}\n\n/** The properties of NFS StorageClass */\nexport interface NfsStorageClassTypeProperties extends StorageClassTypeProperties {\n /** NFS StorageClass */\n type: \"NFS\";\n /** NFS Server */\n server: string;\n /** NFS share */\n share: string;\n /** Sub directory under share. If the sub directory doesn't exist, driver will create it */\n subDir?: string;\n /** Mounted folder permissions. Default is 0. If set as non-zero, driver will perform `chmod` after mount */\n mountPermissions?: string;\n /** The action to take when a NFS volume is deleted. Default is Delete */\n onDelete?: NfsDirectoryActionOnVolumeDeletion;\n}\n\nexport function nfsStorageClassTypePropertiesSerializer(item: NfsStorageClassTypeProperties): any {\n return {\n type: item[\"type\"],\n server: item[\"server\"],\n share: item[\"share\"],\n subDir: item[\"subDir\"],\n mountPermissions: item[\"mountPermissions\"],\n onDelete: item[\"onDelete\"],\n };\n}\n\nexport function nfsStorageClassTypePropertiesDeserializer(\n item: any,\n): NfsStorageClassTypeProperties {\n return {\n type: item[\"type\"],\n server: item[\"server\"],\n share: item[\"share\"],\n subDir: item[\"subDir\"],\n mountPermissions: item[\"mountPermissions\"],\n onDelete: item[\"onDelete\"],\n };\n}\n\n/** The action to take when a NFS volume is deleted */\nexport enum KnownNfsDirectoryActionOnVolumeDeletion {\n /** When the volume is deleted, delete the directory */\n Delete = \"Delete\",\n /** When the volume is deleted, retain the directory */\n Retain = \"Retain\",\n}\n\n/**\n * The action to take when a NFS volume is deleted \\\n * {@link KnownNfsDirectoryActionOnVolumeDeletion} can be used interchangeably with NfsDirectoryActionOnVolumeDeletion,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Delete**: When the volume is deleted, delete the directory \\\n * **Retain**: When the volume is deleted, retain the directory\n */\nexport type NfsDirectoryActionOnVolumeDeletion = string;\n\n/** The properties of SMB StorageClass */\nexport interface SmbStorageClassTypeProperties extends StorageClassTypeProperties {\n /** SMB StorageClass */\n type: \"SMB\";\n /** SMB Source */\n source: string;\n /** Sub directory under share. If the sub directory doesn't exist, driver will create it */\n subDir?: string;\n /** Server username */\n username?: string;\n /** Server password */\n password?: string;\n /** Server domain */\n domain?: string;\n}\n\nexport function smbStorageClassTypePropertiesSerializer(item: SmbStorageClassTypeProperties): any {\n return {\n type: item[\"type\"],\n source: item[\"source\"],\n subDir: item[\"subDir\"],\n username: item[\"username\"],\n password: item[\"password\"],\n domain: item[\"domain\"],\n };\n}\n\nexport function smbStorageClassTypePropertiesDeserializer(\n item: any,\n): SmbStorageClassTypeProperties {\n return {\n type: item[\"type\"],\n source: item[\"source\"],\n subDir: item[\"subDir\"],\n username: item[\"username\"],\n password: item[\"password\"],\n domain: item[\"domain\"],\n };\n}\n\n/** The model for updating a storageClass */\nexport interface StorageClassResourceUpdate {\n /** The properties of StorageClass */\n properties?: StorageClassPropertiesUpdate;\n}\n\nexport function storageClassResourceUpdateSerializer(item: StorageClassResourceUpdate): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : storageClassPropertiesUpdateSerializer(item[\"properties\"]),\n };\n}\n\n/** The model for updating storageClass properties */\nexport interface StorageClassPropertiesUpdate {\n /** Volume can be expanded or not */\n allowVolumeExpansion?: VolumeExpansion;\n /** Additional mount options */\n mountOptions?: string[];\n /** The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce] */\n accessModes?: AccessMode[];\n /** Allow single data node failure */\n dataResilience?: DataResilienceTier;\n /** Failover speed: NA, Slow, Fast */\n failoverSpeed?: FailoverTier;\n /** Limitations of the storage class */\n limitations?: string[];\n /** Performance tier */\n performance?: PerformanceTier;\n /** Selection priority when multiple storage classes meet the criteria. 0: Highest, -1: Never use */\n priority?: number;\n /** New storage class type of storageClass */\n typeProperties?: StorageClassTypePropertiesUpdate;\n}\n\nexport function storageClassPropertiesUpdateSerializer(item: StorageClassPropertiesUpdate): any {\n return {\n allowVolumeExpansion: item[\"allowVolumeExpansion\"],\n mountOptions: !item[\"mountOptions\"]\n ? item[\"mountOptions\"]\n : item[\"mountOptions\"].map((p: any) => {\n return p;\n }),\n accessModes: !item[\"accessModes\"]\n ? item[\"accessModes\"]\n : item[\"accessModes\"].map((p: any) => {\n return p;\n }),\n dataResilience: item[\"dataResilience\"],\n failoverSpeed: item[\"failoverSpeed\"],\n limitations: !item[\"limitations\"]\n ? item[\"limitations\"]\n : item[\"limitations\"].map((p: any) => {\n return p;\n }),\n performance: item[\"performance\"],\n priority: item[\"priority\"],\n typeProperties: !item[\"typeProperties\"]\n ? item[\"typeProperties\"]\n : storageClassTypePropertiesUpdateSerializer(item[\"typeProperties\"]),\n };\n}\n\n/** The model for update a storageClass */\nexport interface StorageClassTypePropertiesUpdate {\n /** The backing storageclass used to create new storageclass */\n backingStorageClassName?: string;\n /** Azure Storage Account Name */\n azureStorageAccountName?: string;\n /** Azure Storage Account Key */\n azureStorageAccountKey?: string;\n /** NFS Server */\n server?: string;\n /** NFS share */\n share?: string;\n /** Sub directory under share. If the sub directory doesn't exist, driver will create it */\n subDir?: string;\n /** Mounted folder permissions. Default is 0. If set as non-zero, driver will perform `chmod` after mount */\n mountPermissions?: string;\n /** The action to take when a NFS volume is deleted. Default is Delete */\n onDelete?: NfsDirectoryActionOnVolumeDeletion;\n /** SMB Source */\n source?: string;\n /** Server username */\n username?: string;\n /** Server password */\n password?: string;\n /** Server domain */\n domain?: string;\n}\n\nexport function storageClassTypePropertiesUpdateSerializer(\n item: StorageClassTypePropertiesUpdate,\n): any {\n return {\n backingStorageClassName: item[\"backingStorageClassName\"],\n azureStorageAccountName: item[\"azureStorageAccountName\"],\n azureStorageAccountKey: item[\"azureStorageAccountKey\"],\n server: item[\"server\"],\n share: item[\"share\"],\n subDir: item[\"subDir\"],\n mountPermissions: item[\"mountPermissions\"],\n onDelete: item[\"onDelete\"],\n source: item[\"source\"],\n username: item[\"username\"],\n password: item[\"password\"],\n domain: item[\"domain\"],\n };\n}\n\n/** The response of a StorageClassResource list operation. */\nexport interface _StorageClassResourceListResult {\n /** The StorageClassResource items on this page */\n value: StorageClassResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _storageClassResourceListResultDeserializer(\n item: any,\n): _StorageClassResourceListResult {\n return {\n value: storageClassResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function storageClassResourceArraySerializer(result: Array<StorageClassResource>): any[] {\n return result.map((item) => {\n return storageClassResourceSerializer(item);\n });\n}\n\nexport function storageClassResourceArrayDeserializer(result: Array<StorageClassResource>): any[] {\n return result.map((item) => {\n return storageClassResourceDeserializer(item);\n });\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { KubernetesRuntimeClient } from "./kubernetesRuntimeClient.js";
|
|
2
|
+
import { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
3
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
4
|
+
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
5
|
+
export interface RestorePollerOptions<TResult, TResponse extends PathUncheckedResponse = PathUncheckedResponse> extends OperationOptions {
|
|
6
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
7
|
+
updateIntervalInMs?: number;
|
|
8
|
+
/**
|
|
9
|
+
* The signal which can be used to abort requests.
|
|
10
|
+
*/
|
|
11
|
+
abortSignal?: AbortSignalLike;
|
|
12
|
+
/** Deserialization function for raw response body */
|
|
13
|
+
processResponseBody?: (result: TResponse) => Promise<TResult>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Creates a poller from the serialized state of another poller. This can be
|
|
17
|
+
* useful when you want to create pollers on a different host or a poller
|
|
18
|
+
* needs to be constructed after the original one is not in scope.
|
|
19
|
+
*/
|
|
20
|
+
export declare function restorePoller<TResponse extends PathUncheckedResponse, TResult>(client: KubernetesRuntimeClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult>): PollerLike<OperationState<TResult>, TResult>;
|
|
21
|
+
//# sourceMappingURL=restorePollerHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.d.ts","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AASvE,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,UAAU,EACV,cAAc,EAGf,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,oBAAoB,CACnC,OAAO,EACP,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,CAC/D,SAAQ,gBAAgB;IACxB,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,qDAAqD;IACrD,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,SAAS,qBAAqB,EAAE,OAAO,EAC5E,MAAM,EAAE,uBAAuB,EAC/B,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,EACjF,OAAO,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,GACtC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CA+B9C"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { _storageClassCreateOrUpdateDeserialize, _storageClassUpdateDeserialize, _storageClassDeleteDeserialize, } from "./api/storageClass/index.js";
|
|
4
|
+
import { _loadBalancersCreateOrUpdateDeserialize } from "./api/loadBalancers/index.js";
|
|
5
|
+
import { _bgpPeersCreateOrUpdateDeserialize } from "./api/bgpPeers/index.js";
|
|
6
|
+
import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
|
|
7
|
+
import { deserializeState, } from "@azure/core-lro";
|
|
8
|
+
/**
|
|
9
|
+
* Creates a poller from the serialized state of another poller. This can be
|
|
10
|
+
* useful when you want to create pollers on a different host or a poller
|
|
11
|
+
* needs to be constructed after the original one is not in scope.
|
|
12
|
+
*/
|
|
13
|
+
export function restorePoller(client, serializedState, sourceOperation, options) {
|
|
14
|
+
var _a, _b, _c;
|
|
15
|
+
const pollerConfig = deserializeState(serializedState).config;
|
|
16
|
+
const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
|
|
17
|
+
if (!initialRequestUrl || !requestMethod) {
|
|
18
|
+
throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}`);
|
|
19
|
+
}
|
|
20
|
+
const resourceLocationConfig = metadata === null || metadata === void 0 ? void 0 : metadata["resourceLocationConfig"];
|
|
21
|
+
const { deserializer, expectedStatuses = [] } = (_a = getDeserializationHelper(initialRequestUrl, requestMethod)) !== null && _a !== void 0 ? _a : {};
|
|
22
|
+
const deserializeHelper = (_b = options === null || options === void 0 ? void 0 : options.processResponseBody) !== null && _b !== void 0 ? _b : deserializer;
|
|
23
|
+
if (!deserializeHelper) {
|
|
24
|
+
throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}.`);
|
|
25
|
+
}
|
|
26
|
+
return getLongRunningPoller((_c = client["_client"]) !== null && _c !== void 0 ? _c : client, deserializeHelper, expectedStatuses, {
|
|
27
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
28
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
29
|
+
resourceLocationConfig,
|
|
30
|
+
restoreFrom: serializedState,
|
|
31
|
+
initialRequestUrl,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
const deserializeMap = {
|
|
35
|
+
"PUT /{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}": {
|
|
36
|
+
deserializer: _storageClassCreateOrUpdateDeserialize,
|
|
37
|
+
expectedStatuses: ["200", "201"],
|
|
38
|
+
},
|
|
39
|
+
"PATCH /{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}": {
|
|
40
|
+
deserializer: _storageClassUpdateDeserialize,
|
|
41
|
+
expectedStatuses: ["200", "202"],
|
|
42
|
+
},
|
|
43
|
+
"DELETE /{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}": {
|
|
44
|
+
deserializer: _storageClassDeleteDeserialize,
|
|
45
|
+
expectedStatuses: ["202", "204", "200"],
|
|
46
|
+
},
|
|
47
|
+
"PUT /{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}": {
|
|
48
|
+
deserializer: _loadBalancersCreateOrUpdateDeserialize,
|
|
49
|
+
expectedStatuses: ["200", "201"],
|
|
50
|
+
},
|
|
51
|
+
"PUT /{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}": {
|
|
52
|
+
deserializer: _bgpPeersCreateOrUpdateDeserialize,
|
|
53
|
+
expectedStatuses: ["200", "201"],
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
function getDeserializationHelper(urlStr, method) {
|
|
57
|
+
var _a, _b, _c, _d;
|
|
58
|
+
const path = new URL(urlStr).pathname;
|
|
59
|
+
const pathParts = path.split("/");
|
|
60
|
+
// Traverse list to match the longest candidate
|
|
61
|
+
// matchedLen: the length of candidate path
|
|
62
|
+
// matchedValue: the matched status code array
|
|
63
|
+
let matchedLen = -1, matchedValue;
|
|
64
|
+
// Iterate the responseMap to find a match
|
|
65
|
+
for (const [key, value] of Object.entries(deserializeMap)) {
|
|
66
|
+
// Extracting the path from the map key which is in format
|
|
67
|
+
// GET /path/foo
|
|
68
|
+
if (!key.startsWith(method)) {
|
|
69
|
+
continue;
|
|
70
|
+
}
|
|
71
|
+
const candidatePath = getPathFromMapKey(key);
|
|
72
|
+
// Get each part of the url path
|
|
73
|
+
const candidateParts = candidatePath.split("/");
|
|
74
|
+
// track if we have found a match to return the values found.
|
|
75
|
+
let found = true;
|
|
76
|
+
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
77
|
+
if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
|
|
78
|
+
const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
|
|
79
|
+
// If the current part of the candidate is a "template" part
|
|
80
|
+
// Try to use the suffix of pattern to match the path
|
|
81
|
+
// {guid} ==> $
|
|
82
|
+
// {guid}:export ==> :export$
|
|
83
|
+
const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
|
|
84
|
+
if (!isMatched) {
|
|
85
|
+
found = false;
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
// If the candidate part is not a template and
|
|
91
|
+
// the parts don't match mark the candidate as not found
|
|
92
|
+
// to move on with the next candidate path.
|
|
93
|
+
if (candidateParts[i] !== pathParts[j]) {
|
|
94
|
+
found = false;
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
// We finished evaluating the current candidate parts
|
|
99
|
+
// Update the matched value if and only if we found the longer pattern
|
|
100
|
+
if (found && candidatePath.length > matchedLen) {
|
|
101
|
+
matchedLen = candidatePath.length;
|
|
102
|
+
matchedValue = value;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return matchedValue;
|
|
106
|
+
}
|
|
107
|
+
function getPathFromMapKey(mapKey) {
|
|
108
|
+
const pathStart = mapKey.indexOf("/");
|
|
109
|
+
return mapKey.slice(pathStart);
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=restorePollerHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,sCAAsC,EACtC,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uCAAuC,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAG1E,OAAO,EAGL,gBAAgB,GAEjB,MAAM,iBAAiB,CAAC;AAgBzB;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAC3B,MAA+B,EAC/B,eAAuB,EACvB,eAAiF,EACjF,OAAuC;;IAEvC,MAAM,YAAY,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC;IACpE,IAAI,CAAC,iBAAiB,IAAI,CAAC,aAAa,EAAE,CAAC;QACzC,MAAM,IAAI,KAAK,CACb,6BAA6B,eAAe,wBAAwB,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,EAAE,CAC5F,CAAC;IACJ,CAAC;IACD,MAAM,sBAAsB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,wBAAwB,CAErD,CAAC;IACd,MAAM,EAAE,YAAY,EAAE,gBAAgB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CAAC,0CAAE,MAAM,CAAC;gBAClC,4DAA4D;gBAC5D,qDAAqD;gBACrD,eAAe;gBACf,6BAA6B;gBAC7B,MAAM,SAAS,GAAG,IAAI,MAAM,CAAC,GAAG,MAAA,cAAc,CAAC,CAAC,CAAC,0CAAE,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAC1E,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CACnB,CAAC;gBAEF,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { KubernetesRuntimeClient } from \"./kubernetesRuntimeClient.js\";\nimport {\n _storageClassCreateOrUpdateDeserialize,\n _storageClassUpdateDeserialize,\n _storageClassDeleteDeserialize,\n} from \"./api/storageClass/index.js\";\nimport { _loadBalancersCreateOrUpdateDeserialize } from \"./api/loadBalancers/index.js\";\nimport { _bgpPeersCreateOrUpdateDeserialize } from \"./api/bgpPeers/index.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: KubernetesRuntimeClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"PUT /{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}\": {\n deserializer: _storageClassCreateOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"PATCH /{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}\": {\n deserializer: _storageClassUpdateDeserialize,\n expectedStatuses: [\"200\", \"202\"],\n },\n \"DELETE /{resourceUri}/providers/Microsoft.KubernetesRuntime/storageClasses/{storageClassName}\": {\n deserializer: _storageClassDeleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /{resourceUri}/providers/Microsoft.KubernetesRuntime/loadBalancers/{loadBalancerName}\": {\n deserializer: _loadBalancersCreateOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"PUT /{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}\": {\n deserializer: _bgpPeersCreateOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
2
|
+
/**
|
|
3
|
+
* Options for the byPage method
|
|
4
|
+
*/
|
|
5
|
+
export interface PageSettings {
|
|
6
|
+
/**
|
|
7
|
+
* A reference to a specific page to start iterating from.
|
|
8
|
+
*/
|
|
9
|
+
continuationToken?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* An interface that describes a page of results.
|
|
13
|
+
*/
|
|
14
|
+
export type ContinuablePage<TElement, TPage = TElement[]> = TPage & {
|
|
15
|
+
/**
|
|
16
|
+
* The token that keeps track of where to continue the iterator
|
|
17
|
+
*/
|
|
18
|
+
continuationToken?: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* An interface that allows async iterable iteration both to completion and by page.
|
|
22
|
+
*/
|
|
23
|
+
export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
|
|
24
|
+
/**
|
|
25
|
+
* The next method, part of the iteration protocol
|
|
26
|
+
*/
|
|
27
|
+
next(): Promise<IteratorResult<TElement>>;
|
|
28
|
+
/**
|
|
29
|
+
* The connection to the async iterator, part of the iteration protocol
|
|
30
|
+
*/
|
|
31
|
+
[Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
32
|
+
/**
|
|
33
|
+
* Return an AsyncIterableIterator that works a page at a time
|
|
34
|
+
*/
|
|
35
|
+
byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* An interface that describes how to communicate with the service.
|
|
39
|
+
*/
|
|
40
|
+
export interface PagedResult<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
|
|
41
|
+
/**
|
|
42
|
+
* Link to the first page of results.
|
|
43
|
+
*/
|
|
44
|
+
firstPageLink?: string;
|
|
45
|
+
/**
|
|
46
|
+
* A method that returns a page of results.
|
|
47
|
+
*/
|
|
48
|
+
getPage: (pageLink?: string) => Promise<{
|
|
49
|
+
page: TPage;
|
|
50
|
+
nextPageLink?: string;
|
|
51
|
+
} | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* a function to implement the `byPage` method on the paged async iterator.
|
|
54
|
+
*/
|
|
55
|
+
byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
|
|
56
|
+
/**
|
|
57
|
+
* A function to extract elements from a page.
|
|
58
|
+
*/
|
|
59
|
+
toElements?: (page: TPage) => TElement[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Options for the paging helper
|
|
63
|
+
*/
|
|
64
|
+
export interface BuildPagedAsyncIteratorOptions {
|
|
65
|
+
itemName?: string;
|
|
66
|
+
nextLinkName?: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
|
70
|
+
*/
|
|
71
|
+
export declare function buildPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings, TResponse extends PathUncheckedResponse = PathUncheckedResponse>(client: Client, getInitialResponse: () => PromiseLike<TResponse>, processResponseBody: (result: TResponse) => PromiseLike<unknown>, expectedStatuses: string[], options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
72
|
+
//# sourceMappingURL=pagingHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelpers.d.ts","sourceRoot":"","sources":["../../../src/static-helpers/pagingHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAmB,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGzF;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,QAAQ,EAAE,KAAK,GAAG,QAAQ,EAAE,IAAI,KAAK,GAAG;IAClE;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,0BAA0B,CACzC,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,SAAS,YAAY,GAAG,YAAY;IAEjD;;OAEG;IACH,IAAI,IAAI,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1C;;OAEG;IACH,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,0BAA0B,CAAC,QAAQ,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC;IACrF;;OAEG;IACH,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,aAAa,KAAK,qBAAqB,CAAC,eAAe,CAAC,QAAQ,EAAE,KAAK,CAA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.
|
|
3
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
4
|
+
import { createRestError } from "@azure-rest/core-client";
|
|
5
|
+
import { RestError } from "@azure/core-rest-pipeline";
|
|
6
|
+
/**
|
|
7
|
+
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
|
8
|
+
*/
|
|
9
|
+
export function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, expectedStatuses, options = {}) {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
const itemName = (_a = options.itemName) !== null && _a !== void 0 ? _a : "value";
|
|
12
|
+
const nextLinkName = (_b = options.nextLinkName) !== null && _b !== void 0 ? _b : "nextLink";
|
|
13
|
+
const pagedResult = {
|
|
14
|
+
getPage: async (pageLink) => {
|
|
15
|
+
const result = pageLink === undefined
|
|
16
|
+
? await getInitialResponse()
|
|
17
|
+
: await client.pathUnchecked(pageLink).get();
|
|
18
|
+
checkPagingRequest(result, expectedStatuses);
|
|
19
|
+
const results = await processResponseBody(result);
|
|
20
|
+
const nextLink = getNextLink(results, nextLinkName);
|
|
21
|
+
const values = getElements(results, itemName);
|
|
22
|
+
return {
|
|
23
|
+
page: values,
|
|
24
|
+
nextPageLink: nextLink,
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
byPage: (settings) => {
|
|
28
|
+
const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
|
|
29
|
+
return getPageAsyncIterator(pagedResult, {
|
|
30
|
+
pageLink: continuationToken,
|
|
31
|
+
});
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
return getPagedAsyncIterator(pagedResult);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* returns an async iterator that iterates over results. It also has a `byPage`
|
|
38
|
+
* method that returns pages of items at once.
|
|
39
|
+
*
|
|
40
|
+
* @param pagedResult - an object that specifies how to get pages.
|
|
41
|
+
* @returns a paged async iterator that iterates over results.
|
|
42
|
+
*/
|
|
43
|
+
function getPagedAsyncIterator(pagedResult) {
|
|
44
|
+
var _a;
|
|
45
|
+
const iter = getItemAsyncIterator(pagedResult);
|
|
46
|
+
return {
|
|
47
|
+
next() {
|
|
48
|
+
return iter.next();
|
|
49
|
+
},
|
|
50
|
+
[Symbol.asyncIterator]() {
|
|
51
|
+
return this;
|
|
52
|
+
},
|
|
53
|
+
byPage: (_a = pagedResult === null || pagedResult === void 0 ? void 0 : pagedResult.byPage) !== null && _a !== void 0 ? _a : ((settings) => {
|
|
54
|
+
const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
|
|
55
|
+
return getPageAsyncIterator(pagedResult, {
|
|
56
|
+
pageLink: continuationToken,
|
|
57
|
+
});
|
|
58
|
+
}),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function getItemAsyncIterator(pagedResult) {
|
|
62
|
+
return __asyncGenerator(this, arguments, function* getItemAsyncIterator_1() {
|
|
63
|
+
var _a, e_1, _b, _c;
|
|
64
|
+
const pages = getPageAsyncIterator(pagedResult);
|
|
65
|
+
try {
|
|
66
|
+
for (var _d = true, pages_1 = __asyncValues(pages), pages_1_1; pages_1_1 = yield __await(pages_1.next()), _a = pages_1_1.done, !_a; _d = true) {
|
|
67
|
+
_c = pages_1_1.value;
|
|
68
|
+
_d = false;
|
|
69
|
+
const page = _c;
|
|
70
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
74
|
+
finally {
|
|
75
|
+
try {
|
|
76
|
+
if (!_d && !_a && (_b = pages_1.return)) yield __await(_b.call(pages_1));
|
|
77
|
+
}
|
|
78
|
+
finally { if (e_1) throw e_1.error; }
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function getPageAsyncIterator(pagedResult_1) {
|
|
83
|
+
return __asyncGenerator(this, arguments, function* getPageAsyncIterator_1(pagedResult, options = {}) {
|
|
84
|
+
const { pageLink } = options;
|
|
85
|
+
let response = yield __await(pagedResult.getPage(pageLink !== null && pageLink !== void 0 ? pageLink : pagedResult.firstPageLink));
|
|
86
|
+
if (!response) {
|
|
87
|
+
return yield __await(void 0);
|
|
88
|
+
}
|
|
89
|
+
let result = response.page;
|
|
90
|
+
result.continuationToken = response.nextPageLink;
|
|
91
|
+
yield yield __await(result);
|
|
92
|
+
while (response.nextPageLink) {
|
|
93
|
+
response = yield __await(pagedResult.getPage(response.nextPageLink));
|
|
94
|
+
if (!response) {
|
|
95
|
+
return yield __await(void 0);
|
|
96
|
+
}
|
|
97
|
+
result = response.page;
|
|
98
|
+
result.continuationToken = response.nextPageLink;
|
|
99
|
+
yield yield __await(result);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Gets for the value of nextLink in the body
|
|
105
|
+
*/
|
|
106
|
+
function getNextLink(body, nextLinkName) {
|
|
107
|
+
if (!nextLinkName) {
|
|
108
|
+
return undefined;
|
|
109
|
+
}
|
|
110
|
+
const nextLink = body[nextLinkName];
|
|
111
|
+
if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) {
|
|
112
|
+
throw new RestError(`Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`);
|
|
113
|
+
}
|
|
114
|
+
if (nextLink === null) {
|
|
115
|
+
return undefined;
|
|
116
|
+
}
|
|
117
|
+
return nextLink;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Gets the elements of the current request in the body.
|
|
121
|
+
*/
|
|
122
|
+
function getElements(body, itemName) {
|
|
123
|
+
const value = body[itemName];
|
|
124
|
+
if (!Array.isArray(value)) {
|
|
125
|
+
throw new RestError(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
|
|
126
|
+
}
|
|
127
|
+
return value !== null && value !== void 0 ? value : [];
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Checks if a request failed
|
|
131
|
+
*/
|
|
132
|
+
function checkPagingRequest(response, expectedStatuses) {
|
|
133
|
+
if (!expectedStatuses.includes(response.status)) {
|
|
134
|
+
throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=pagingHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pagingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,OAAO,EAAU,eAAe,EAAyB,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AA+EtD;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAMrC,MAAc,EACd,kBAAgD,EAChD,mBAAgE,EAChE,gBAA0B,EAC1B,UAA0C,EAAE;;IAE5C,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC;IAC7C,MAAM,YAAY,GAAG,MAAA,OAAO,CAAC,YAAY,mCAAI,UAAU,CAAC;IACxD,MAAM,WAAW,GAAgD;QAC/D,OAAO,EAAE,KAAK,EAAE,QAAiB,EAAE,EAAE;YACnC,MAAM,MAAM,GACV,QAAQ,KAAK,SAAS;gBACpB,CAAC,CAAC,MAAM,kBAAkB,EAAE;gBAC5B,CAAC,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;YACjD,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;YAC7C,MAAM,OAAO,GAAG,MAAM,mBAAmB,CAAC,MAAmB,CAAC,CAAC;YAC/D,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;YACpD,MAAM,MAAM,GAAG,WAAW,CAAW,OAAO,EAAE,QAAQ,CAAU,CAAC;YACjE,OAAO;gBACL,IAAI,EAA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AK,IAAI,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAc,IAAa,EAAE,QAAgB;IAC/D,MAAM,KAAK,GAAI,IAAgC,CAAC,QAAQ,CAAQ,CAAC;IACjE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,SAAS,CACjB,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B,EAAE,gBAA0B;IACrF,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAChD,MAAM,eAAe,CACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { Client, createRestError, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { RestError } from \"@azure/core-rest-pipeline\";\n\n/**\n * Options for the byPage method\n */\nexport interface PageSettings {\n /**\n * A reference to a specific page to start iterating from.\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that describes a page of results.\n */\nexport type ContinuablePage<TElement, TPage = TElement[]> = TPage & {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n};\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\nexport interface PagedResult<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * Link to the first page of results.\n */\n firstPageLink?: string;\n /**\n * A method that returns a page of results.\n */\n getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => TElement[];\n}\n\n/**\n * Options for the paging helper\n */\nexport interface BuildPagedAsyncIteratorOptions {\n itemName?: string;\n nextLinkName?: string;\n}\n\n/**\n * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator\n */\nexport function buildPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n>(\n client: Client,\n getInitialResponse: () => PromiseLike<TResponse>,\n processResponseBody: (result: TResponse) => PromiseLike<unknown>,\n expectedStatuses: string[],\n options: BuildPagedAsyncIteratorOptions = {},\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const itemName = options.itemName ?? \"value\";\n const nextLinkName = options.nextLinkName ?? \"nextLink\";\n const pagedResult: PagedResult<TElement, TPage, TPageSettings> = {\n getPage: async (pageLink?: string) => {\n const result =\n pageLink === undefined\n ? await getInitialResponse()\n : await client.pathUnchecked(pageLink).get();\n checkPagingRequest(result, expectedStatuses);\n const results = await processResponseBody(result as TResponse);\n const nextLink = getNextLink(results, nextLinkName);\n const values = getElements<TElement>(results, itemName) as TPage;\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n byPage: (settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n },\n };\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\n\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TPageSettings>(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n ((settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n }),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n for await (const page of pages) {\n yield* page as unknown as TElement[];\n }\n}\n\nasync function* getPageAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n options: {\n pageLink?: string;\n } = {},\n): AsyncIterableIterator<ContinuablePage<TElement, TPage>> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);\n if (!response) {\n return;\n }\n let result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n }\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\" && nextLink !== null) {\n throw new RestError(\n `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`,\n );\n }\n\n if (nextLink === null) {\n return undefined;\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n if (!Array.isArray(value)) {\n throw new RestError(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse, expectedStatuses: string[]): void {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PollerLike, OperationState, ResourceLocationConfig } from "@azure/core-lro";
|
|
2
|
+
import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
3
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
4
|
+
export interface GetLongRunningPollerOptions<TResponse> {
|
|
5
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
6
|
+
updateIntervalInMs?: number;
|
|
7
|
+
/**
|
|
8
|
+
* The signal which can be used to abort requests.
|
|
9
|
+
*/
|
|
10
|
+
abortSignal?: AbortSignalLike;
|
|
11
|
+
/**
|
|
12
|
+
* The potential location of the result of the LRO if specified by the LRO extension in the swagger.
|
|
13
|
+
*/
|
|
14
|
+
resourceLocationConfig?: ResourceLocationConfig;
|
|
15
|
+
/**
|
|
16
|
+
* The original url of the LRO
|
|
17
|
+
* Should not be null when restoreFrom is set
|
|
18
|
+
*/
|
|
19
|
+
initialRequestUrl?: string;
|
|
20
|
+
/**
|
|
21
|
+
* A serialized poller which can be used to resume an existing paused Long-Running-Operation.
|
|
22
|
+
*/
|
|
23
|
+
restoreFrom?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The function to get the initial response
|
|
26
|
+
*/
|
|
27
|
+
getInitialResponse?: () => PromiseLike<TResponse>;
|
|
28
|
+
}
|
|
29
|
+
export declare function getLongRunningPoller<TResponse extends PathUncheckedResponse, TResult = void>(client: Client, processResponseBody: (result: TResponse) => Promise<TResult>, expectedStatuses: string[], options: GetLongRunningPollerOptions<TResponse>): PollerLike<OperationState<TResult>, TResult>;
|
|
30
|
+
//# sourceMappingURL=pollingHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pollingHelpers.d.ts","sourceRoot":"","sources":["../../../src/static-helpers/pollingHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EACV,cAAc,EACd,sBAAsB,EAIvB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAmB,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,WAAW,2BAA2B,CAAC,SAAS;IACpD,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;OAEG;IACH,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,WAAW,CAAC,SAAS,CAAC,CAAC;CACnD;AACD,wBAAgB,oBAAoB,CAAC,SAAS,SAAS,qBAAqB,EAAE,OAAO,GAAG,IAAI,EAC1F,MAAM,EAAE,MAAM,EACd,mBAAmB,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,EAC5D,gBAAgB,EAAE,MAAM,EAAE,EAC1B,OAAO,EAAE,2BAA2B,CAAC,SAAS,CAAC,GAC9C,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAyD9C"}
|