@azure/arm-databasewatcher 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 +114 -0
- package/dist/browser/api/alertRuleResources/index.d.ts +21 -0
- package/dist/browser/api/alertRuleResources/index.d.ts.map +1 -0
- package/dist/browser/api/alertRuleResources/index.js +93 -0
- package/dist/browser/api/alertRuleResources/index.js.map +1 -0
- package/dist/browser/api/databaseWatcherContext.d.ts +17 -0
- package/dist/browser/api/databaseWatcherContext.d.ts.map +1 -0
- package/dist/browser/api/databaseWatcherContext.js +35 -0
- package/dist/browser/api/databaseWatcherContext.js.map +1 -0
- package/dist/browser/api/healthValidations/index.d.ts +18 -0
- package/dist/browser/api/healthValidations/index.d.ts.map +1 -0
- package/dist/browser/api/healthValidations/index.js +74 -0
- package/dist/browser/api/healthValidations/index.js.map +1 -0
- package/dist/browser/api/index.d.ts +9 -0
- package/dist/browser/api/index.d.ts.map +1 -0
- package/dist/browser/api/index.js +10 -0
- package/dist/browser/api/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 +23 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/options.d.ts +90 -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/sharedPrivateLinkResources/index.d.ts +22 -0
- package/dist/browser/api/sharedPrivateLinkResources/index.d.ts.map +1 -0
- package/dist/browser/api/sharedPrivateLinkResources/index.js +106 -0
- package/dist/browser/api/sharedPrivateLinkResources/index.js.map +1 -0
- package/dist/browser/api/targets/index.d.ts +21 -0
- package/dist/browser/api/targets/index.d.ts.map +1 -0
- package/dist/browser/api/targets/index.js +85 -0
- package/dist/browser/api/targets/index.js.map +1 -0
- package/dist/browser/api/watchers/index.d.ts +38 -0
- package/dist/browser/api/watchers/index.d.ts.map +1 -0
- package/dist/browser/api/watchers/index.js +185 -0
- package/dist/browser/api/watchers/index.js.map +1 -0
- package/dist/browser/classic/alertRuleResources/index.d.ts +17 -0
- package/dist/browser/classic/alertRuleResources/index.d.ts.map +1 -0
- package/dist/browser/classic/alertRuleResources/index.js +15 -0
- package/dist/browser/classic/alertRuleResources/index.js.map +1 -0
- package/dist/browser/classic/healthValidations/index.d.ts +16 -0
- package/dist/browser/classic/healthValidations/index.d.ts.map +1 -0
- package/dist/browser/classic/healthValidations/index.js +14 -0
- package/dist/browser/classic/healthValidations/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +7 -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/operations/index.d.ts +11 -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/sharedPrivateLinkResources/index.d.ts +18 -0
- package/dist/browser/classic/sharedPrivateLinkResources/index.d.ts.map +1 -0
- package/dist/browser/classic/sharedPrivateLinkResources/index.js +15 -0
- package/dist/browser/classic/sharedPrivateLinkResources/index.js.map +1 -0
- package/dist/browser/classic/targets/index.d.ts +17 -0
- package/dist/browser/classic/targets/index.d.ts.map +1 -0
- package/dist/browser/classic/targets/index.js +15 -0
- package/dist/browser/classic/targets/index.js.map +1 -0
- package/dist/browser/classic/watchers/index.d.ts +26 -0
- package/dist/browser/classic/watchers/index.d.ts.map +1 -0
- package/dist/browser/classic/watchers/index.js +19 -0
- package/dist/browser/classic/watchers/index.js.map +1 -0
- package/dist/browser/databaseWatcherClient.d.ts +29 -0
- package/dist/browser/databaseWatcherClient.d.ts.map +1 -0
- package/dist/browser/databaseWatcherClient.js +27 -0
- package/dist/browser/databaseWatcherClient.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/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 +652 -0
- package/dist/browser/models/models.d.ts.map +1 -0
- package/dist/browser/models/models.js +725 -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 +123 -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/alertRuleResources/index.d.ts +21 -0
- package/dist/commonjs/api/alertRuleResources/index.d.ts.map +1 -0
- package/dist/commonjs/api/alertRuleResources/index.js +107 -0
- package/dist/commonjs/api/alertRuleResources/index.js.map +1 -0
- package/dist/commonjs/api/databaseWatcherContext.d.ts +17 -0
- package/dist/commonjs/api/databaseWatcherContext.d.ts.map +1 -0
- package/dist/commonjs/api/databaseWatcherContext.js +38 -0
- package/dist/commonjs/api/databaseWatcherContext.js.map +1 -0
- package/dist/commonjs/api/healthValidations/index.d.ts +18 -0
- package/dist/commonjs/api/healthValidations/index.d.ts.map +1 -0
- package/dist/commonjs/api/healthValidations/index.js +85 -0
- package/dist/commonjs/api/healthValidations/index.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +9 -0
- package/dist/commonjs/api/index.d.ts.map +1 -0
- package/dist/commonjs/api/index.js +38 -0
- package/dist/commonjs/api/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 +28 -0
- package/dist/commonjs/api/operations/index.js.map +1 -0
- package/dist/commonjs/api/options.d.ts +90 -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/sharedPrivateLinkResources/index.d.ts +22 -0
- package/dist/commonjs/api/sharedPrivateLinkResources/index.d.ts.map +1 -0
- package/dist/commonjs/api/sharedPrivateLinkResources/index.js +120 -0
- package/dist/commonjs/api/sharedPrivateLinkResources/index.js.map +1 -0
- package/dist/commonjs/api/targets/index.d.ts +21 -0
- package/dist/commonjs/api/targets/index.d.ts.map +1 -0
- package/dist/commonjs/api/targets/index.js +99 -0
- package/dist/commonjs/api/targets/index.js.map +1 -0
- package/dist/commonjs/api/watchers/index.d.ts +38 -0
- package/dist/commonjs/api/watchers/index.d.ts.map +1 -0
- package/dist/commonjs/api/watchers/index.js +211 -0
- package/dist/commonjs/api/watchers/index.js.map +1 -0
- package/dist/commonjs/classic/alertRuleResources/index.d.ts +17 -0
- package/dist/commonjs/classic/alertRuleResources/index.d.ts.map +1 -0
- package/dist/commonjs/classic/alertRuleResources/index.js +18 -0
- package/dist/commonjs/classic/alertRuleResources/index.js.map +1 -0
- package/dist/commonjs/classic/healthValidations/index.d.ts +16 -0
- package/dist/commonjs/classic/healthValidations/index.d.ts.map +1 -0
- package/dist/commonjs/classic/healthValidations/index.js +17 -0
- package/dist/commonjs/classic/healthValidations/index.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +7 -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/operations/index.d.ts +11 -0
- package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
- package/dist/commonjs/classic/operations/index.js +15 -0
- package/dist/commonjs/classic/operations/index.js.map +1 -0
- package/dist/commonjs/classic/sharedPrivateLinkResources/index.d.ts +18 -0
- package/dist/commonjs/classic/sharedPrivateLinkResources/index.d.ts.map +1 -0
- package/dist/commonjs/classic/sharedPrivateLinkResources/index.js +18 -0
- package/dist/commonjs/classic/sharedPrivateLinkResources/index.js.map +1 -0
- package/dist/commonjs/classic/targets/index.d.ts +17 -0
- package/dist/commonjs/classic/targets/index.d.ts.map +1 -0
- package/dist/commonjs/classic/targets/index.js +18 -0
- package/dist/commonjs/classic/targets/index.js.map +1 -0
- package/dist/commonjs/classic/watchers/index.d.ts +26 -0
- package/dist/commonjs/classic/watchers/index.d.ts.map +1 -0
- package/dist/commonjs/classic/watchers/index.js +22 -0
- package/dist/commonjs/classic/watchers/index.js.map +1 -0
- package/dist/commonjs/databaseWatcherClient.d.ts +29 -0
- package/dist/commonjs/databaseWatcherClient.d.ts.map +1 -0
- package/dist/commonjs/databaseWatcherClient.js +31 -0
- package/dist/commonjs/databaseWatcherClient.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/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 +652 -0
- package/dist/commonjs/models/models.d.ts.map +1 -0
- package/dist/commonjs/models/models.js +799 -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 +126 -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/alertRuleResources/index.d.ts +21 -0
- package/dist/esm/api/alertRuleResources/index.d.ts.map +1 -0
- package/dist/esm/api/alertRuleResources/index.js +93 -0
- package/dist/esm/api/alertRuleResources/index.js.map +1 -0
- package/dist/esm/api/databaseWatcherContext.d.ts +17 -0
- package/dist/esm/api/databaseWatcherContext.d.ts.map +1 -0
- package/dist/esm/api/databaseWatcherContext.js +35 -0
- package/dist/esm/api/databaseWatcherContext.js.map +1 -0
- package/dist/esm/api/healthValidations/index.d.ts +18 -0
- package/dist/esm/api/healthValidations/index.d.ts.map +1 -0
- package/dist/esm/api/healthValidations/index.js +74 -0
- package/dist/esm/api/healthValidations/index.js.map +1 -0
- package/dist/esm/api/index.d.ts +9 -0
- package/dist/esm/api/index.d.ts.map +1 -0
- package/dist/esm/api/index.js +10 -0
- package/dist/esm/api/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 +23 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/options.d.ts +90 -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/sharedPrivateLinkResources/index.d.ts +22 -0
- package/dist/esm/api/sharedPrivateLinkResources/index.d.ts.map +1 -0
- package/dist/esm/api/sharedPrivateLinkResources/index.js +106 -0
- package/dist/esm/api/sharedPrivateLinkResources/index.js.map +1 -0
- package/dist/esm/api/targets/index.d.ts +21 -0
- package/dist/esm/api/targets/index.d.ts.map +1 -0
- package/dist/esm/api/targets/index.js +85 -0
- package/dist/esm/api/targets/index.js.map +1 -0
- package/dist/esm/api/watchers/index.d.ts +38 -0
- package/dist/esm/api/watchers/index.d.ts.map +1 -0
- package/dist/esm/api/watchers/index.js +185 -0
- package/dist/esm/api/watchers/index.js.map +1 -0
- package/dist/esm/classic/alertRuleResources/index.d.ts +17 -0
- package/dist/esm/classic/alertRuleResources/index.d.ts.map +1 -0
- package/dist/esm/classic/alertRuleResources/index.js +15 -0
- package/dist/esm/classic/alertRuleResources/index.js.map +1 -0
- package/dist/esm/classic/healthValidations/index.d.ts +16 -0
- package/dist/esm/classic/healthValidations/index.d.ts.map +1 -0
- package/dist/esm/classic/healthValidations/index.js +14 -0
- package/dist/esm/classic/healthValidations/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +7 -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/operations/index.d.ts +11 -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/sharedPrivateLinkResources/index.d.ts +18 -0
- package/dist/esm/classic/sharedPrivateLinkResources/index.d.ts.map +1 -0
- package/dist/esm/classic/sharedPrivateLinkResources/index.js +15 -0
- package/dist/esm/classic/sharedPrivateLinkResources/index.js.map +1 -0
- package/dist/esm/classic/targets/index.d.ts +17 -0
- package/dist/esm/classic/targets/index.d.ts.map +1 -0
- package/dist/esm/classic/targets/index.js +15 -0
- package/dist/esm/classic/targets/index.js.map +1 -0
- package/dist/esm/classic/watchers/index.d.ts +26 -0
- package/dist/esm/classic/watchers/index.d.ts.map +1 -0
- package/dist/esm/classic/watchers/index.js +19 -0
- package/dist/esm/classic/watchers/index.js.map +1 -0
- package/dist/esm/databaseWatcherClient.d.ts +29 -0
- package/dist/esm/databaseWatcherClient.d.ts.map +1 -0
- package/dist/esm/databaseWatcherClient.js +27 -0
- package/dist/esm/databaseWatcherClient.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/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 +652 -0
- package/dist/esm/models/models.d.ts.map +1 -0
- package/dist/esm/models/models.js +725 -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 +123 -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/alertRuleResources/index.d.ts +21 -0
- package/dist/react-native/api/alertRuleResources/index.d.ts.map +1 -0
- package/dist/react-native/api/alertRuleResources/index.js +93 -0
- package/dist/react-native/api/alertRuleResources/index.js.map +1 -0
- package/dist/react-native/api/databaseWatcherContext.d.ts +17 -0
- package/dist/react-native/api/databaseWatcherContext.d.ts.map +1 -0
- package/dist/react-native/api/databaseWatcherContext.js +35 -0
- package/dist/react-native/api/databaseWatcherContext.js.map +1 -0
- package/dist/react-native/api/healthValidations/index.d.ts +18 -0
- package/dist/react-native/api/healthValidations/index.d.ts.map +1 -0
- package/dist/react-native/api/healthValidations/index.js +74 -0
- package/dist/react-native/api/healthValidations/index.js.map +1 -0
- package/dist/react-native/api/index.d.ts +9 -0
- package/dist/react-native/api/index.d.ts.map +1 -0
- package/dist/react-native/api/index.js +10 -0
- package/dist/react-native/api/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 +23 -0
- package/dist/react-native/api/operations/index.js.map +1 -0
- package/dist/react-native/api/options.d.ts +90 -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/sharedPrivateLinkResources/index.d.ts +22 -0
- package/dist/react-native/api/sharedPrivateLinkResources/index.d.ts.map +1 -0
- package/dist/react-native/api/sharedPrivateLinkResources/index.js +106 -0
- package/dist/react-native/api/sharedPrivateLinkResources/index.js.map +1 -0
- package/dist/react-native/api/targets/index.d.ts +21 -0
- package/dist/react-native/api/targets/index.d.ts.map +1 -0
- package/dist/react-native/api/targets/index.js +85 -0
- package/dist/react-native/api/targets/index.js.map +1 -0
- package/dist/react-native/api/watchers/index.d.ts +38 -0
- package/dist/react-native/api/watchers/index.d.ts.map +1 -0
- package/dist/react-native/api/watchers/index.js +185 -0
- package/dist/react-native/api/watchers/index.js.map +1 -0
- package/dist/react-native/classic/alertRuleResources/index.d.ts +17 -0
- package/dist/react-native/classic/alertRuleResources/index.d.ts.map +1 -0
- package/dist/react-native/classic/alertRuleResources/index.js +15 -0
- package/dist/react-native/classic/alertRuleResources/index.js.map +1 -0
- package/dist/react-native/classic/healthValidations/index.d.ts +16 -0
- package/dist/react-native/classic/healthValidations/index.d.ts.map +1 -0
- package/dist/react-native/classic/healthValidations/index.js +14 -0
- package/dist/react-native/classic/healthValidations/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +7 -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/operations/index.d.ts +11 -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/sharedPrivateLinkResources/index.d.ts +18 -0
- package/dist/react-native/classic/sharedPrivateLinkResources/index.d.ts.map +1 -0
- package/dist/react-native/classic/sharedPrivateLinkResources/index.js +15 -0
- package/dist/react-native/classic/sharedPrivateLinkResources/index.js.map +1 -0
- package/dist/react-native/classic/targets/index.d.ts +17 -0
- package/dist/react-native/classic/targets/index.d.ts.map +1 -0
- package/dist/react-native/classic/targets/index.js +15 -0
- package/dist/react-native/classic/targets/index.js.map +1 -0
- package/dist/react-native/classic/watchers/index.d.ts +26 -0
- package/dist/react-native/classic/watchers/index.d.ts.map +1 -0
- package/dist/react-native/classic/watchers/index.js +19 -0
- package/dist/react-native/classic/watchers/index.js.map +1 -0
- package/dist/react-native/databaseWatcherClient.d.ts +29 -0
- package/dist/react-native/databaseWatcherClient.d.ts.map +1 -0
- package/dist/react-native/databaseWatcherClient.js +27 -0
- package/dist/react-native/databaseWatcherClient.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/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 +652 -0
- package/dist/react-native/models/models.d.ts.map +1 -0
- package/dist/react-native/models/models.js +725 -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 +123 -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 +164 -0
- package/review/arm-databasewatcher-models.api.md +357 -0
- package/review/arm-databasewatcher.api.md +562 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAQlC,kFAMC;AAED,sFAYC;AAkBD,sGASC;AAED,0GA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I,CAAC,UAAU,CAAC;QAC1B,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC;QAC5B,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;KACjC,CAAC;AACJ,CAAC;AAED,2IAA2I;AAC3I,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,sDAAsD;IACtD,4BAAa,CAAA;IACb,wDAAwD;IACxD,gCAAiB,CAAA;IACjB,gEAAgE;IAChE,yCAA0B,CAAA;AAC5B,CAAC,EAPW,WAAW,2BAAX,WAAW,QAOtB;AAaD,gHAAgH;AAChH,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,0CAA0C;IAC1C,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAWD,qBAAqB;AACrB,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,8BAA8B;IAC9B,yCAAwB,CAAA;AAC1B,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** Concrete proxy resource types can be created by aliasing this type using a specific property type. */\nexport interface SharedPrivateLinkResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: SharedPrivateLinkResourceProperties;\n}\n\nexport function sharedPrivateLinkResourceSerializer(item: SharedPrivateLinkResource): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : sharedPrivateLinkResourcePropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function sharedPrivateLinkResourceDeserializer(item: any): SharedPrivateLinkResource {\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 : sharedPrivateLinkResourcePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The generic properties of a Shared Private Link resource. */\nexport interface SharedPrivateLinkResourceProperties {\n /** The resource ID of the resource the shared private link resource is for. */\n privateLinkResourceId: string;\n /** The group id from the provider of resource the shared private link resource is for. */\n groupId: string;\n /** The request message for requesting approval of the shared private link resource. */\n requestMessage: string;\n /** The DNS zone to be included in the DNS name of the shared private link. Value is required for Azure Data Explorer clusters and SQL managed instances. The value to use is the second segment of the host FQDN name of the resource that the shared private link resource is for. */\n dnsZone?: string;\n /** Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected. */\n readonly status?: SharedPrivateLinkResourceStatus;\n /** The provisioning state of the resource. */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function sharedPrivateLinkResourcePropertiesSerializer(\n item: SharedPrivateLinkResourceProperties,\n): any {\n return {\n privateLinkResourceId: item[\"privateLinkResourceId\"],\n groupId: item[\"groupId\"],\n requestMessage: item[\"requestMessage\"],\n dnsZone: item[\"dnsZone\"],\n };\n}\n\nexport function sharedPrivateLinkResourcePropertiesDeserializer(\n item: any,\n): SharedPrivateLinkResourceProperties {\n return {\n privateLinkResourceId: item[\"privateLinkResourceId\"],\n groupId: item[\"groupId\"],\n requestMessage: item[\"requestMessage\"],\n dnsZone: item[\"dnsZone\"],\n status: item[\"status\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected. */\nexport enum KnownSharedPrivateLinkResourceStatus {\n /** The shared private link connection request was not yet authorized by the resource owner. */\n Pending = \"Pending\",\n /** The shared private link connection request was approved by the resource owner. */\n Approved = \"Approved\",\n /** The shared private link connection request was rejected by the resource owner. */\n Rejected = \"Rejected\",\n /** The shared private link connection request was disconnected by the resource owner. */\n Disconnected = \"Disconnected\",\n}\n\n/**\n * Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected. \\\n * {@link KnownSharedPrivateLinkResourceStatus} can be used interchangeably with SharedPrivateLinkResourceStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Pending**: The shared private link connection request was not yet authorized by the resource owner. \\\n * **Approved**: The shared private link connection request was approved by the resource owner. \\\n * **Rejected**: The shared private link connection request was rejected by the resource owner. \\\n * **Disconnected**: The shared private link connection request was disconnected by the resource owner.\n */\nexport type SharedPrivateLinkResourceStatus = string;\n\n/** The provisioning state of a resource type. */\nexport enum KnownResourceProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownResourceProvisioningState} 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**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled.\n */\nexport type ResourceProvisioningState = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(item: ProxyResource): any {\n return item;\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\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/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: Record<string, any>;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: !item[\"info\"] ? item[\"info\"] : _errorAdditionalInfoInfoDeserializer(item[\"info\"]),\n };\n}\n\n/** model interface _ErrorAdditionalInfoInfo */\nexport interface _ErrorAdditionalInfoInfo {}\n\nexport function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo {\n return item;\n}\n\n/** The response of a SharedPrivateLinkResource list operation. */\nexport interface _SharedPrivateLinkResourceListResult {\n /** The SharedPrivateLinkResource items on this page */\n value: SharedPrivateLinkResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _sharedPrivateLinkResourceListResultDeserializer(\n item: any,\n): _SharedPrivateLinkResourceListResult {\n return {\n value: sharedPrivateLinkResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function sharedPrivateLinkResourceArraySerializer(\n result: Array<SharedPrivateLinkResource>,\n): any[] {\n return result.map((item) => {\n return sharedPrivateLinkResourceSerializer(item);\n });\n}\n\nexport function sharedPrivateLinkResourceArrayDeserializer(\n result: Array<SharedPrivateLinkResource>,\n): any[] {\n return result.map((item) => {\n return sharedPrivateLinkResourceDeserializer(item);\n });\n}\n\n/** Concrete proxy resource types can be created by aliasing this type using a specific property type. */\nexport interface Target extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: TargetPropertiesUnion;\n}\n\nexport function targetSerializer(item: Target): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : targetPropertiesUnionSerializer(item[\"properties\"]),\n };\n}\n\nexport function targetDeserializer(item: any): Target {\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 : targetPropertiesUnionDeserializer(item[\"properties\"]),\n };\n}\n\n/** The generic properties of a target. */\nexport interface TargetProperties {\n /** Discriminator property for TargetProperties. */\n /** The discriminator possible values: SqlDb, SqlEp, SqlMi */\n targetType: string;\n /** The type of authentication to use when connecting to a target. */\n targetAuthenticationType: TargetAuthenticationType;\n /** To use SQL authentication when connecting to targets, specify the vault where the login name and password secrets are stored. */\n targetVault?: VaultSecret;\n /** The server name to use in the connection string when connecting to a target. Port number and instance name must be specified separately. */\n connectionServerName: string;\n /** The provisioning state of the resource. */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function targetPropertiesSerializer(item: TargetProperties): any {\n return {\n targetType: item[\"targetType\"],\n targetAuthenticationType: item[\"targetAuthenticationType\"],\n targetVault: !item[\"targetVault\"]\n ? item[\"targetVault\"]\n : vaultSecretSerializer(item[\"targetVault\"]),\n connectionServerName: item[\"connectionServerName\"],\n };\n}\n\nexport function targetPropertiesDeserializer(item: any): TargetProperties {\n return {\n targetType: item[\"targetType\"],\n targetAuthenticationType: item[\"targetAuthenticationType\"],\n targetVault: !item[\"targetVault\"]\n ? item[\"targetVault\"]\n : vaultSecretDeserializer(item[\"targetVault\"]),\n connectionServerName: item[\"connectionServerName\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Alias for TargetPropertiesUnion */\nexport type TargetPropertiesUnion =\n | SqlDbSingleDatabaseTargetProperties\n | SqlDbElasticPoolTargetProperties\n | SqlMiTargetProperties\n | TargetProperties;\n\nexport function targetPropertiesUnionSerializer(item: TargetPropertiesUnion): any {\n switch (item.targetType) {\n case \"SqlDb\":\n return sqlDbSingleDatabaseTargetPropertiesSerializer(\n item as SqlDbSingleDatabaseTargetProperties,\n );\n\n case \"SqlEp\":\n return sqlDbElasticPoolTargetPropertiesSerializer(item as SqlDbElasticPoolTargetProperties);\n\n case \"SqlMi\":\n return sqlMiTargetPropertiesSerializer(item as SqlMiTargetProperties);\n\n default:\n return targetPropertiesSerializer(item);\n }\n}\n\nexport function targetPropertiesUnionDeserializer(item: any): TargetPropertiesUnion {\n switch (item.targetType) {\n case \"SqlDb\":\n return sqlDbSingleDatabaseTargetPropertiesDeserializer(\n item as SqlDbSingleDatabaseTargetProperties,\n );\n\n case \"SqlEp\":\n return sqlDbElasticPoolTargetPropertiesDeserializer(item as SqlDbElasticPoolTargetProperties);\n\n case \"SqlMi\":\n return sqlMiTargetPropertiesDeserializer(item as SqlMiTargetProperties);\n\n default:\n return targetPropertiesDeserializer(item);\n }\n}\n\n/** The type of authentication to use when connecting to a target. */\nexport enum KnownTargetAuthenticationType {\n /** The Azure Active Directory authentication. */\n Aad = \"Aad\",\n /** The SQL password authentication. */\n Sql = \"Sql\",\n}\n\n/**\n * The type of authentication to use when connecting to a target. \\\n * {@link KnownTargetAuthenticationType} can be used interchangeably with TargetAuthenticationType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Aad**: The Azure Active Directory authentication. \\\n * **Sql**: The SQL password authentication.\n */\nexport type TargetAuthenticationType = string;\n\n/** The vault specific details required if using SQL authentication to connect to a target. */\nexport interface VaultSecret {\n /** The Azure resource ID of the Key Vault instance storing database authentication secrets. */\n akvResourceId?: string;\n /** The path to the Key Vault secret storing the login name (aka user name, aka account name) for authentication to a target. */\n akvTargetUser?: string;\n /** The path to the Key Vault secret storing the password for authentication to a target. */\n akvTargetPassword?: string;\n}\n\nexport function vaultSecretSerializer(item: VaultSecret): any {\n return {\n akvResourceId: item[\"akvResourceId\"],\n akvTargetUser: item[\"akvTargetUser\"],\n akvTargetPassword: item[\"akvTargetPassword\"],\n };\n}\n\nexport function vaultSecretDeserializer(item: any): VaultSecret {\n return {\n akvResourceId: item[\"akvResourceId\"],\n akvTargetUser: item[\"akvTargetUser\"],\n akvTargetPassword: item[\"akvTargetPassword\"],\n };\n}\n\n/** The properties specific to single database in Azure SQL Database. */\nexport interface SqlDbSingleDatabaseTargetProperties extends TargetProperties {\n /** The Azure SQL DB single database target. */\n targetType: \"SqlDb\";\n /** The Azure resource ID of an Azure SQL DB single database target. */\n sqlDbResourceId: string;\n /** Set to true to monitor a high availability replica of specified target, if any. */\n readIntent?: boolean;\n}\n\nexport function sqlDbSingleDatabaseTargetPropertiesSerializer(\n item: SqlDbSingleDatabaseTargetProperties,\n): any {\n return {\n targetType: item[\"targetType\"],\n targetAuthenticationType: item[\"targetAuthenticationType\"],\n targetVault: !item[\"targetVault\"]\n ? item[\"targetVault\"]\n : vaultSecretSerializer(item[\"targetVault\"]),\n connectionServerName: item[\"connectionServerName\"],\n sqlDbResourceId: item[\"sqlDbResourceId\"],\n readIntent: item[\"readIntent\"],\n };\n}\n\nexport function sqlDbSingleDatabaseTargetPropertiesDeserializer(\n item: any,\n): SqlDbSingleDatabaseTargetProperties {\n return {\n targetType: item[\"targetType\"],\n targetAuthenticationType: item[\"targetAuthenticationType\"],\n targetVault: !item[\"targetVault\"]\n ? item[\"targetVault\"]\n : vaultSecretDeserializer(item[\"targetVault\"]),\n connectionServerName: item[\"connectionServerName\"],\n provisioningState: item[\"provisioningState\"],\n sqlDbResourceId: item[\"sqlDbResourceId\"],\n readIntent: item[\"readIntent\"],\n };\n}\n\n/** The properties specific to elastic pool in Azure SQL Database. */\nexport interface SqlDbElasticPoolTargetProperties extends TargetProperties {\n /** The Azure SQL DB elastic pool target. */\n targetType: \"SqlEp\";\n /** The Azure resource ID of an Azure SQL DB elastic pool target. */\n sqlEpResourceId: string;\n /** The Azure resource ID of the anchor database used to connect to an elastic pool. */\n anchorDatabaseResourceId: string;\n /** Set to true to monitor a high availability replica of specified target, if any. */\n readIntent?: boolean;\n}\n\nexport function sqlDbElasticPoolTargetPropertiesSerializer(\n item: SqlDbElasticPoolTargetProperties,\n): any {\n return {\n targetType: item[\"targetType\"],\n targetAuthenticationType: item[\"targetAuthenticationType\"],\n targetVault: !item[\"targetVault\"]\n ? item[\"targetVault\"]\n : vaultSecretSerializer(item[\"targetVault\"]),\n connectionServerName: item[\"connectionServerName\"],\n sqlEpResourceId: item[\"sqlEpResourceId\"],\n anchorDatabaseResourceId: item[\"anchorDatabaseResourceId\"],\n readIntent: item[\"readIntent\"],\n };\n}\n\nexport function sqlDbElasticPoolTargetPropertiesDeserializer(\n item: any,\n): SqlDbElasticPoolTargetProperties {\n return {\n targetType: item[\"targetType\"],\n targetAuthenticationType: item[\"targetAuthenticationType\"],\n targetVault: !item[\"targetVault\"]\n ? item[\"targetVault\"]\n : vaultSecretDeserializer(item[\"targetVault\"]),\n connectionServerName: item[\"connectionServerName\"],\n provisioningState: item[\"provisioningState\"],\n sqlEpResourceId: item[\"sqlEpResourceId\"],\n anchorDatabaseResourceId: item[\"anchorDatabaseResourceId\"],\n readIntent: item[\"readIntent\"],\n };\n}\n\n/** The properties specific to Azure SQL Managed Instance targets. */\nexport interface SqlMiTargetProperties extends TargetProperties {\n /** The Azure SQL Managed Instance target. */\n targetType: \"SqlMi\";\n /** The Azure resource ID of an Azure SQL Managed Instance target. */\n sqlMiResourceId: string;\n /** The TCP port number to optionally use in the connection string when connecting to an Azure SQL Managed Instance target. */\n connectionTcpPort?: number;\n /** Set to true to monitor a high availability replica of specified target, if any. */\n readIntent?: boolean;\n}\n\nexport function sqlMiTargetPropertiesSerializer(item: SqlMiTargetProperties): any {\n return {\n targetType: item[\"targetType\"],\n targetAuthenticationType: item[\"targetAuthenticationType\"],\n targetVault: !item[\"targetVault\"]\n ? item[\"targetVault\"]\n : vaultSecretSerializer(item[\"targetVault\"]),\n connectionServerName: item[\"connectionServerName\"],\n sqlMiResourceId: item[\"sqlMiResourceId\"],\n connectionTcpPort: item[\"connectionTcpPort\"],\n readIntent: item[\"readIntent\"],\n };\n}\n\nexport function sqlMiTargetPropertiesDeserializer(item: any): SqlMiTargetProperties {\n return {\n targetType: item[\"targetType\"],\n targetAuthenticationType: item[\"targetAuthenticationType\"],\n targetVault: !item[\"targetVault\"]\n ? item[\"targetVault\"]\n : vaultSecretDeserializer(item[\"targetVault\"]),\n connectionServerName: item[\"connectionServerName\"],\n provisioningState: item[\"provisioningState\"],\n sqlMiResourceId: item[\"sqlMiResourceId\"],\n connectionTcpPort: item[\"connectionTcpPort\"],\n readIntent: item[\"readIntent\"],\n };\n}\n\n/** The response of a Target list operation. */\nexport interface _TargetListResult {\n /** The Target items on this page */\n value: Target[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _targetListResultDeserializer(item: any): _TargetListResult {\n return {\n value: targetArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function targetArraySerializer(result: Array<Target>): any[] {\n return result.map((item) => {\n return targetSerializer(item);\n });\n}\n\nexport function targetArrayDeserializer(result: Array<Target>): any[] {\n return result.map((item) => {\n return targetDeserializer(item);\n });\n}\n\n/** Concrete proxy resource types can be created by aliasing this type using a specific property type. */\nexport interface HealthValidation extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: HealthValidationProperties;\n}\n\nexport function healthValidationDeserializer(item: any): HealthValidation {\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 : healthValidationPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The generic properties of the health validation resource. */\nexport interface HealthValidationProperties {\n /** The start time of health validation, in UTC. */\n readonly startTime: Date;\n /** The end time of health validation, in UTC. */\n readonly endTime: Date;\n /** The current health validation status. */\n readonly status: ValidationStatus;\n /** The list of issues found by health validation. */\n readonly issues: ValidationIssue[];\n /** The provisioning state of the health validation resource. */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function healthValidationPropertiesDeserializer(item: any): HealthValidationProperties {\n return {\n startTime: new Date(item[\"startTime\"]),\n endTime: new Date(item[\"endTime\"]),\n status: item[\"status\"],\n issues: validationIssueArrayDeserializer(item[\"issues\"]),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Health validation status. */\nexport enum KnownValidationStatus {\n /** Health validation has not started. */\n NotStarted = \"NotStarted\",\n /** Health validation is running. */\n Running = \"Running\",\n /** Health validation completed successfully. */\n Succeeded = \"Succeeded\",\n /** Health validation failed. */\n Failed = \"Failed\",\n /** Health validation was canceled. */\n Canceled = \"Canceled\",\n /** Health validation timed out. */\n TimedOut = \"TimedOut\",\n}\n\n/**\n * Health validation status. \\\n * {@link KnownvalidationStatus} can be used interchangeably with validationStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **NotStarted**: Health validation has not started. \\\n * **Running**: Health validation is running. \\\n * **Succeeded**: Health validation completed successfully. \\\n * **Failed**: Health validation failed. \\\n * **Canceled**: Health validation was canceled. \\\n * **TimedOut**: Health validation timed out.\n */\nexport type ValidationStatus = string;\n\nexport function validationIssueArrayDeserializer(result: Array<ValidationIssue>): any[] {\n return result.map((item) => {\n return validationIssueDeserializer(item);\n });\n}\n\n/** The model of a health validation issue. */\nexport interface ValidationIssue {\n /** The error code of the issue. */\n readonly errorCode: string;\n /** The error message of the issue. */\n readonly errorMessage: string;\n /** The additional details for the issue. */\n readonly additionalDetails?: string;\n /** The recommendation for resolving the issue. */\n readonly recommendationMessage: string;\n /** The URL related to resolving the issue. */\n readonly recommendationUrl?: string;\n /** The resource ID of the Azure resource related to the issue. */\n readonly relatedResourceId?: string;\n /** The type of the Azure resource related to the issue. */\n readonly relatedResourceType?: string;\n}\n\nexport function validationIssueDeserializer(item: any): ValidationIssue {\n return {\n errorCode: item[\"errorCode\"],\n errorMessage: item[\"errorMessage\"],\n additionalDetails: item[\"additionalDetails\"],\n recommendationMessage: item[\"recommendationMessage\"],\n recommendationUrl: item[\"recommendationUrl\"],\n relatedResourceId: item[\"relatedResourceId\"],\n relatedResourceType: item[\"relatedResourceType\"],\n };\n}\n\n/** The response of a HealthValidation list operation. */\nexport interface _HealthValidationListResult {\n /** The HealthValidation items on this page */\n value: HealthValidation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _healthValidationListResultDeserializer(item: any): _HealthValidationListResult {\n return {\n value: healthValidationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function healthValidationArrayDeserializer(result: Array<HealthValidation>): any[] {\n return result.map((item) => {\n return healthValidationDeserializer(item);\n });\n}\n\n/** Concrete proxy resource types can be created by aliasing this type using a specific property type. */\nexport interface AlertRuleResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: AlertRuleResourceProperties;\n}\n\nexport function alertRuleResourceSerializer(item: AlertRuleResource): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : alertRuleResourcePropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function alertRuleResourceDeserializer(item: any): AlertRuleResource {\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 : alertRuleResourcePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The generic properties of the alert rule proxy resource. */\nexport interface AlertRuleResourceProperties {\n /** The resource ID of the alert rule resource. */\n alertRuleResourceId: string;\n /** The properties with which the alert rule resource was created. */\n createdWithProperties: AlertRuleCreationProperties;\n /** The creation time of the alert rule resource. */\n creationTime: Date;\n /** The provisioning state of the alert rule resource. */\n readonly provisioningState?: ResourceProvisioningState;\n /** The template ID associated with alert rule resource. */\n alertRuleTemplateId: string;\n /** The alert rule template version. */\n alertRuleTemplateVersion: string;\n}\n\nexport function alertRuleResourcePropertiesSerializer(item: AlertRuleResourceProperties): any {\n return {\n alertRuleResourceId: item[\"alertRuleResourceId\"],\n createdWithProperties: item[\"createdWithProperties\"],\n creationTime: item[\"creationTime\"].toISOString(),\n alertRuleTemplateId: item[\"alertRuleTemplateId\"],\n alertRuleTemplateVersion: item[\"alertRuleTemplateVersion\"],\n };\n}\n\nexport function alertRuleResourcePropertiesDeserializer(item: any): AlertRuleResourceProperties {\n return {\n alertRuleResourceId: item[\"alertRuleResourceId\"],\n createdWithProperties: item[\"createdWithProperties\"],\n creationTime: new Date(item[\"creationTime\"]),\n provisioningState: item[\"provisioningState\"],\n alertRuleTemplateId: item[\"alertRuleTemplateId\"],\n alertRuleTemplateVersion: item[\"alertRuleTemplateVersion\"],\n };\n}\n\n/** The properties with which the alert rule resource was created. */\nexport enum KnownAlertRuleCreationProperties {\n /** The alert rule was created with an action group. */\n CreatedWithActionGroup = \"CreatedWithActionGroup\",\n /** The alert rule was created with no properties. */\n None = \"None\",\n}\n\n/**\n * The properties with which the alert rule resource was created. \\\n * {@link KnownalertRuleCreationProperties} can be used interchangeably with alertRuleCreationProperties,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **CreatedWithActionGroup**: The alert rule was created with an action group. \\\n * **None**: The alert rule was created with no properties.\n */\nexport type AlertRuleCreationProperties = string;\n\n/** The response of a AlertRuleResource list operation. */\nexport interface _AlertRuleResourceListResult {\n /** The AlertRuleResource items on this page */\n value: AlertRuleResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _alertRuleResourceListResultDeserializer(item: any): _AlertRuleResourceListResult {\n return {\n value: alertRuleResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function alertRuleResourceArraySerializer(result: Array<AlertRuleResource>): any[] {\n return result.map((item) => {\n return alertRuleResourceSerializer(item);\n });\n}\n\nexport function alertRuleResourceArrayDeserializer(result: Array<AlertRuleResource>): any[] {\n return result.map((item) => {\n return alertRuleResourceDeserializer(item);\n });\n}\n\n/** The DatabaseWatcherProviderHub resource. */\nexport interface Watcher extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: WatcherProperties;\n /** The managed service identities assigned to this resource. */\n identity?: ManagedServiceIdentityV4;\n}\n\nexport function watcherSerializer(item: Watcher): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : watcherPropertiesSerializer(item[\"properties\"]),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentityV4Serializer(item[\"identity\"]),\n };\n}\n\nexport function watcherDeserializer(item: any): Watcher {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\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 : watcherPropertiesDeserializer(item[\"properties\"]),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentityV4Deserializer(item[\"identity\"]),\n };\n}\n\n/** The RP specific properties of the resource. */\nexport interface WatcherProperties {\n /** The data store for collected monitoring data. */\n datastore?: Datastore;\n /** The monitoring collection status of the watcher. */\n readonly status?: WatcherStatus;\n /** The provisioning state of the resource watcher. */\n readonly provisioningState?: DatabaseWatcherProvisioningState;\n /** The resource ID of a user-assigned managed identity that will be assigned to a new alert rule. */\n defaultAlertRuleIdentityResourceId?: string;\n}\n\nexport function watcherPropertiesSerializer(item: WatcherProperties): any {\n return {\n datastore: !item[\"datastore\"] ? item[\"datastore\"] : datastoreSerializer(item[\"datastore\"]),\n defaultAlertRuleIdentityResourceId: item[\"defaultAlertRuleIdentityResourceId\"],\n };\n}\n\nexport function watcherPropertiesDeserializer(item: any): WatcherProperties {\n return {\n datastore: !item[\"datastore\"] ? item[\"datastore\"] : datastoreDeserializer(item[\"datastore\"]),\n status: item[\"status\"],\n provisioningState: item[\"provisioningState\"],\n defaultAlertRuleIdentityResourceId: item[\"defaultAlertRuleIdentityResourceId\"],\n };\n}\n\n/** The properties of a data store. */\nexport interface Datastore {\n /** The Azure resource ID of an Azure Data Explorer cluster. */\n adxClusterResourceId?: string;\n /** The Kusto cluster display name. */\n kustoClusterDisplayName?: string;\n /** The Kusto cluster URI. */\n kustoClusterUri: string;\n /** The Kusto data ingestion URI. */\n kustoDataIngestionUri: string;\n /** The name of a Kusto database. */\n kustoDatabaseName: string;\n /** The Kusto management URL. */\n kustoManagementUrl: string;\n /** The type of a Kusto offering. */\n kustoOfferingType: KustoOfferingType;\n}\n\nexport function datastoreSerializer(item: Datastore): any {\n return {\n adxClusterResourceId: item[\"adxClusterResourceId\"],\n kustoClusterDisplayName: item[\"kustoClusterDisplayName\"],\n kustoClusterUri: item[\"kustoClusterUri\"],\n kustoDataIngestionUri: item[\"kustoDataIngestionUri\"],\n kustoDatabaseName: item[\"kustoDatabaseName\"],\n kustoManagementUrl: item[\"kustoManagementUrl\"],\n kustoOfferingType: item[\"kustoOfferingType\"],\n };\n}\n\nexport function datastoreDeserializer(item: any): Datastore {\n return {\n adxClusterResourceId: item[\"adxClusterResourceId\"],\n kustoClusterDisplayName: item[\"kustoClusterDisplayName\"],\n kustoClusterUri: item[\"kustoClusterUri\"],\n kustoDataIngestionUri: item[\"kustoDataIngestionUri\"],\n kustoDatabaseName: item[\"kustoDatabaseName\"],\n kustoManagementUrl: item[\"kustoManagementUrl\"],\n kustoOfferingType: item[\"kustoOfferingType\"],\n };\n}\n\n/** The type of Kusto offering. */\nexport enum KnownKustoOfferingType {\n /** The Azure Data Explorer cluster Kusto offering. */\n Adx = \"adx\",\n /** The free Azure Data Explorer cluster Kusto offering. */\n Free = \"free\",\n /** The Fabric Real-Time Analytics Kusto offering. */\n Fabric = \"fabric\",\n}\n\n/**\n * The type of Kusto offering. \\\n * {@link KnownKustoOfferingType} can be used interchangeably with KustoOfferingType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **adx**: The Azure Data Explorer cluster Kusto offering. \\\n * **free**: The free Azure Data Explorer cluster Kusto offering. \\\n * **fabric**: The Fabric Real-Time Analytics Kusto offering.\n */\nexport type KustoOfferingType = string;\n\n/** The monitoring collection status of a watcher. */\nexport enum KnownWatcherStatus {\n /** Denotes the watcher is in a starting state. */\n Starting = \"Starting\",\n /** Denotes the watcher is in a running state. */\n Running = \"Running\",\n /** Denotes the watcher is in a stopping state. */\n Stopping = \"Stopping\",\n /** Denotes the watcher is in a stopped state. */\n Stopped = \"Stopped\",\n /** Denotes the watcher is in a deleting state. */\n Deleting = \"Deleting\",\n}\n\n/**\n * The monitoring collection status of a watcher. \\\n * {@link KnownWatcherStatus} can be used interchangeably with WatcherStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Starting**: Denotes the watcher is in a starting state. \\\n * **Running**: Denotes the watcher is in a running state. \\\n * **Stopping**: Denotes the watcher is in a stopping state. \\\n * **Stopped**: Denotes the watcher is in a stopped state. \\\n * **Deleting**: Denotes the watcher is in a deleting state.\n */\nexport type WatcherStatus = string;\n\n/** The status of the last provisioning operation performed on the resource. */\nexport enum KnownDatabaseWatcherProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n}\n\n/**\n * The status of the last provisioning operation performed on the resource. \\\n * {@link KnownDatabaseWatcherProvisioningState} can be used interchangeably with DatabaseWatcherProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled.\n */\nexport type DatabaseWatcherProvisioningState = string;\n\n/** Managed service identity (system assigned and/or user assigned identities) */\nexport interface ManagedServiceIdentityV4 {\n /** The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly principalId?: string;\n /** The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly tenantId?: string;\n /** The type of managed identity assigned to this resource. */\n type: ManagedServiceIdentityType;\n /** The identities assigned to this resource by the user. */\n userAssignedIdentities?: Record<string, UserAssignedIdentity>;\n}\n\nexport function managedServiceIdentityV4Serializer(item: ManagedServiceIdentityV4): any {\n return {\n type: item[\"type\"],\n userAssignedIdentities: !item[\"userAssignedIdentities\"]\n ? item[\"userAssignedIdentities\"]\n : userAssignedIdentityRecordSerializer(item[\"userAssignedIdentities\"]),\n };\n}\n\nexport function managedServiceIdentityV4Deserializer(item: any): ManagedServiceIdentityV4 {\n return {\n principalId: item[\"principalId\"],\n tenantId: item[\"tenantId\"],\n type: item[\"type\"],\n userAssignedIdentities: !item[\"userAssignedIdentities\"]\n ? item[\"userAssignedIdentities\"]\n : userAssignedIdentityRecordDeserializer(item[\"userAssignedIdentities\"]),\n };\n}\n\n/** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */\nexport enum KnownManagedServiceIdentityType {\n /** No managed identity. */\n None = \"None\",\n /** System assigned managed identity. */\n SystemAssigned = \"SystemAssigned\",\n /** User assigned managed identity. */\n UserAssigned = \"UserAssigned\",\n /** System and user assigned managed identity. */\n SystemAndUserAssigned = \"SystemAssigned, UserAssigned\",\n}\n\n/**\n * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). \\\n * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None**: No managed identity. \\\n * **SystemAssigned**: System assigned managed identity. \\\n * **UserAssigned**: User assigned managed identity. \\\n * **SystemAssigned, UserAssigned**: System and user assigned managed identity.\n */\nexport type ManagedServiceIdentityType = string;\n\nexport function userAssignedIdentityRecordSerializer(\n item: Record<string, UserAssignedIdentity>,\n): Record<string, any> {\n const result: Record<string, any> = {};\n Object.keys(item).map((key) => {\n result[key] = !item[key] ? item[key] : userAssignedIdentitySerializer(item[key]);\n });\n return result;\n}\n\nexport function userAssignedIdentityRecordDeserializer(\n item: Record<string, any>,\n): Record<string, UserAssignedIdentity> {\n const result: Record<string, any> = {};\n Object.keys(item).map((key) => {\n result[key] = !item[key] ? item[key] : userAssignedIdentityDeserializer(item[key]);\n });\n return result;\n}\n\n/** User assigned identity properties */\nexport interface UserAssignedIdentity {\n /** The principal ID of the assigned identity. */\n readonly principalId?: string;\n /** The client ID of the assigned identity. */\n readonly clientId?: string;\n}\n\nexport function userAssignedIdentitySerializer(item: UserAssignedIdentity): any {\n return item;\n}\n\nexport function userAssignedIdentityDeserializer(item: any): UserAssignedIdentity {\n return {\n principalId: item[\"principalId\"],\n clientId: item[\"clientId\"],\n };\n}\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\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 tags: item[\"tags\"],\n location: item[\"location\"],\n };\n}\n\n/** The type used for update operations of the Watcher. */\nexport interface WatcherUpdate {\n /** The managed service identities assigned to this resource. */\n identity?: ManagedServiceIdentityV4;\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The resource-specific properties for this resource. */\n properties?: WatcherUpdateProperties;\n}\n\nexport function watcherUpdateSerializer(item: WatcherUpdate): any {\n return {\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentityV4Serializer(item[\"identity\"]),\n tags: item[\"tags\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : watcherUpdatePropertiesSerializer(item[\"properties\"]),\n };\n}\n\n/** The updatable properties of the Watcher. */\nexport interface WatcherUpdateProperties {\n /** The data store for collected monitoring data. */\n datastore?: Datastore;\n /** The resource ID of a user-assigned managed identity that will be assigned to a new alert rule. */\n defaultAlertRuleIdentityResourceId?: string;\n}\n\nexport function watcherUpdatePropertiesSerializer(item: WatcherUpdateProperties): any {\n return {\n datastore: !item[\"datastore\"] ? item[\"datastore\"] : datastoreSerializer(item[\"datastore\"]),\n defaultAlertRuleIdentityResourceId: item[\"defaultAlertRuleIdentityResourceId\"],\n };\n}\n\n/** The response of a Watcher list operation. */\nexport interface _WatcherListResult {\n /** The Watcher items on this page */\n value: Watcher[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _watcherListResultDeserializer(item: any): _WatcherListResult {\n return {\n value: watcherArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function watcherArraySerializer(result: Array<Watcher>): any[] {\n return result.map((item) => {\n return watcherSerializer(item);\n });\n}\n\nexport function watcherArrayDeserializer(result: Array<Watcher>): any[] {\n return result.map((item) => {\n return watcherDeserializer(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\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\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 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 readonly 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\n/** Versions info. */\nexport enum KnownVersions {\n /** The 2025-01-02 version. */\n V20250102 = \"2025-01-02\",\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DatabaseWatcherClient } from "./databaseWatcherClient.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: DatabaseWatcherClient, 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,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAcnE,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,qBAAqB,EAC7B,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,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.restorePoller = restorePoller;
|
|
6
|
+
const index_js_1 = require("./api/sharedPrivateLinkResources/index.js");
|
|
7
|
+
const index_js_2 = require("./api/healthValidations/index.js");
|
|
8
|
+
const index_js_3 = require("./api/watchers/index.js");
|
|
9
|
+
const pollingHelpers_js_1 = require("./static-helpers/pollingHelpers.js");
|
|
10
|
+
const core_lro_1 = require("@azure/core-lro");
|
|
11
|
+
/**
|
|
12
|
+
* Creates a poller from the serialized state of another poller. This can be
|
|
13
|
+
* useful when you want to create pollers on a different host or a poller
|
|
14
|
+
* needs to be constructed after the original one is not in scope.
|
|
15
|
+
*/
|
|
16
|
+
function restorePoller(client, serializedState, sourceOperation, options) {
|
|
17
|
+
var _a, _b, _c;
|
|
18
|
+
const pollerConfig = (0, core_lro_1.deserializeState)(serializedState).config;
|
|
19
|
+
const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
|
|
20
|
+
if (!initialRequestUrl || !requestMethod) {
|
|
21
|
+
throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}`);
|
|
22
|
+
}
|
|
23
|
+
const resourceLocationConfig = metadata === null || metadata === void 0 ? void 0 : metadata["resourceLocationConfig"];
|
|
24
|
+
const { deserializer, expectedStatuses = [] } = (_a = getDeserializationHelper(initialRequestUrl, requestMethod)) !== null && _a !== void 0 ? _a : {};
|
|
25
|
+
const deserializeHelper = (_b = options === null || options === void 0 ? void 0 : options.processResponseBody) !== null && _b !== void 0 ? _b : deserializer;
|
|
26
|
+
if (!deserializeHelper) {
|
|
27
|
+
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}.`);
|
|
28
|
+
}
|
|
29
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)((_c = client["_client"]) !== null && _c !== void 0 ? _c : client, deserializeHelper, expectedStatuses, {
|
|
30
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
31
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
32
|
+
resourceLocationConfig,
|
|
33
|
+
restoreFrom: serializedState,
|
|
34
|
+
initialRequestUrl,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
const deserializeMap = {
|
|
38
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}": {
|
|
39
|
+
deserializer: index_js_1._sharedPrivateLinkResourcesDeleteDeserialize,
|
|
40
|
+
expectedStatuses: ["202", "204", "200"],
|
|
41
|
+
},
|
|
42
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}": {
|
|
43
|
+
deserializer: index_js_1._sharedPrivateLinkResourcesCreateDeserialize,
|
|
44
|
+
expectedStatuses: ["200", "201"],
|
|
45
|
+
},
|
|
46
|
+
"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/healthValidations/{healthValidationName}/startValidation": {
|
|
47
|
+
deserializer: index_js_2._healthValidationsStartValidationDeserialize,
|
|
48
|
+
expectedStatuses: ["202", "200"],
|
|
49
|
+
},
|
|
50
|
+
"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/stop": {
|
|
51
|
+
deserializer: index_js_3._watchersStopDeserialize,
|
|
52
|
+
expectedStatuses: ["202", "200"],
|
|
53
|
+
},
|
|
54
|
+
"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/start": {
|
|
55
|
+
deserializer: index_js_3._watchersStartDeserialize,
|
|
56
|
+
expectedStatuses: ["202", "200"],
|
|
57
|
+
},
|
|
58
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}": {
|
|
59
|
+
deserializer: index_js_3._watchersDeleteDeserialize,
|
|
60
|
+
expectedStatuses: ["202", "204", "200"],
|
|
61
|
+
},
|
|
62
|
+
"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}": {
|
|
63
|
+
deserializer: index_js_3._watchersUpdateDeserialize,
|
|
64
|
+
expectedStatuses: ["200", "202"],
|
|
65
|
+
},
|
|
66
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}": {
|
|
67
|
+
deserializer: index_js_3._watchersCreateOrUpdateDeserialize,
|
|
68
|
+
expectedStatuses: ["200", "201"],
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
function getDeserializationHelper(urlStr, method) {
|
|
72
|
+
var _a, _b, _c, _d;
|
|
73
|
+
const path = new URL(urlStr).pathname;
|
|
74
|
+
const pathParts = path.split("/");
|
|
75
|
+
// Traverse list to match the longest candidate
|
|
76
|
+
// matchedLen: the length of candidate path
|
|
77
|
+
// matchedValue: the matched status code array
|
|
78
|
+
let matchedLen = -1, matchedValue;
|
|
79
|
+
// Iterate the responseMap to find a match
|
|
80
|
+
for (const [key, value] of Object.entries(deserializeMap)) {
|
|
81
|
+
// Extracting the path from the map key which is in format
|
|
82
|
+
// GET /path/foo
|
|
83
|
+
if (!key.startsWith(method)) {
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
const candidatePath = getPathFromMapKey(key);
|
|
87
|
+
// Get each part of the url path
|
|
88
|
+
const candidateParts = candidatePath.split("/");
|
|
89
|
+
// track if we have found a match to return the values found.
|
|
90
|
+
let found = true;
|
|
91
|
+
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
92
|
+
if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
|
|
93
|
+
const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
|
|
94
|
+
// If the current part of the candidate is a "template" part
|
|
95
|
+
// Try to use the suffix of pattern to match the path
|
|
96
|
+
// {guid} ==> $
|
|
97
|
+
// {guid}:export ==> :export$
|
|
98
|
+
const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
|
|
99
|
+
if (!isMatched) {
|
|
100
|
+
found = false;
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
// If the candidate part is not a template and
|
|
106
|
+
// the parts don't match mark the candidate as not found
|
|
107
|
+
// to move on with the next candidate path.
|
|
108
|
+
if (candidateParts[i] !== pathParts[j]) {
|
|
109
|
+
found = false;
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
// We finished evaluating the current candidate parts
|
|
114
|
+
// Update the matched value if and only if we found the longer pattern
|
|
115
|
+
if (found && candidatePath.length > matchedLen) {
|
|
116
|
+
matchedLen = candidatePath.length;
|
|
117
|
+
matchedValue = value;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return matchedValue;
|
|
121
|
+
}
|
|
122
|
+
function getPathFromMapKey(mapKey) {
|
|
123
|
+
const pathStart = mapKey.indexOf("/");
|
|
124
|
+
return mapKey.slice(pathStart);
|
|
125
|
+
}
|
|
126
|
+
//# sourceMappingURL=restorePollerHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA4ClC,sCAoCC;AA7ED,wEAGmD;AACnD,+DAAgG;AAChG,sDAMiC;AACjC,0EAA0E;AAG1E,8CAKyB;AAgBzB;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,MAA6B,EAC7B,eAAuB,EACvB,eAAiF,EACjF,OAAuC;;IAEvC,MAAM,YAAY,GAAG,IAAA,2BAAgB,EAAC,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,GAAG,EAAE,EAAE,GAC3C,MAAA,wBAAwB,CAAC,iBAAiB,EAAE,aAAa,CAAC,mCAAI,EAAE,CAAC;IACnE,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,mBAAmB,mCAAI,YAAY,CAAC;IACvE,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CACb,0FAA0F,eAA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AC,EAC/C,GAAG,GAAG,MAAA,cAAc,CAAC,CAAC,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 { DatabaseWatcherClient } from \"./databaseWatcherClient.js\";\nimport {\n _sharedPrivateLinkResourcesDeleteDeserialize,\n _sharedPrivateLinkResourcesCreateDeserialize,\n} from \"./api/sharedPrivateLinkResources/index.js\";\nimport { _healthValidationsStartValidationDeserialize } from \"./api/healthValidations/index.js\";\nimport {\n _watchersStopDeserialize,\n _watchersStartDeserialize,\n _watchersDeleteDeserialize,\n _watchersUpdateDeserialize,\n _watchersCreateOrUpdateDeserialize,\n} from \"./api/watchers/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: DatabaseWatcherClient,\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 \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}\":\n {\n deserializer: _sharedPrivateLinkResourcesDeleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}\":\n {\n deserializer: _sharedPrivateLinkResourcesCreateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/healthValidations/{healthValidationName}/startValidation\":\n {\n deserializer: _healthValidationsStartValidationDeserialize,\n expectedStatuses: [\"202\", \"200\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/stop\":\n {\n deserializer: _watchersStopDeserialize,\n expectedStatuses: [\"202\", \"200\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/start\":\n {\n deserializer: _watchersStartDeserialize,\n expectedStatuses: [\"202\", \"200\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}\":\n {\n deserializer: _watchersDeleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}\":\n {\n deserializer: _watchersUpdateDeserialize,\n expectedStatuses: [\"200\", \"202\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}\":\n {\n deserializer: _watchersCreateOrUpdateDeserialize,\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-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AC,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;IAE/F;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,QAAQ,EAAE,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,SAAS,YAAY,GAAG,YAAY,EACjD,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,EAE/D,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,MAAM,WAAW,CAAC,SAAS,CAAC,EAChD,mBAAmB,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,WAAW,CAAC,OAAO,CAAC,EAChE,gBAAgB,EAAE,MAAM,EAAE,EAC1B,OAAO,GAAE,8BAAmC,GAC3C,0BAA0B,CAAC,QAAQ,EAAE,KAAK,EAAE,aAAa,CAAC,CA0B5D"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.buildPagedAsyncIterator = buildPagedAsyncIterator;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const core_client_1 = require("@azure-rest/core-client");
|
|
8
|
+
const core_rest_pipeline_1 = require("@azure/core-rest-pipeline");
|
|
9
|
+
/**
|
|
10
|
+
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
|
11
|
+
*/
|
|
12
|
+
function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, expectedStatuses, options = {}) {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
const itemName = (_a = options.itemName) !== null && _a !== void 0 ? _a : "value";
|
|
15
|
+
const nextLinkName = (_b = options.nextLinkName) !== null && _b !== void 0 ? _b : "nextLink";
|
|
16
|
+
const pagedResult = {
|
|
17
|
+
getPage: async (pageLink) => {
|
|
18
|
+
const result = pageLink === undefined
|
|
19
|
+
? await getInitialResponse()
|
|
20
|
+
: await client.pathUnchecked(pageLink).get();
|
|
21
|
+
checkPagingRequest(result, expectedStatuses);
|
|
22
|
+
const results = await processResponseBody(result);
|
|
23
|
+
const nextLink = getNextLink(results, nextLinkName);
|
|
24
|
+
const values = getElements(results, itemName);
|
|
25
|
+
return {
|
|
26
|
+
page: values,
|
|
27
|
+
nextPageLink: nextLink,
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
byPage: (settings) => {
|
|
31
|
+
const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
|
|
32
|
+
return getPageAsyncIterator(pagedResult, {
|
|
33
|
+
pageLink: continuationToken,
|
|
34
|
+
});
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
return getPagedAsyncIterator(pagedResult);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* returns an async iterator that iterates over results. It also has a `byPage`
|
|
41
|
+
* method that returns pages of items at once.
|
|
42
|
+
*
|
|
43
|
+
* @param pagedResult - an object that specifies how to get pages.
|
|
44
|
+
* @returns a paged async iterator that iterates over results.
|
|
45
|
+
*/
|
|
46
|
+
function getPagedAsyncIterator(pagedResult) {
|
|
47
|
+
var _a;
|
|
48
|
+
const iter = getItemAsyncIterator(pagedResult);
|
|
49
|
+
return {
|
|
50
|
+
next() {
|
|
51
|
+
return iter.next();
|
|
52
|
+
},
|
|
53
|
+
[Symbol.asyncIterator]() {
|
|
54
|
+
return this;
|
|
55
|
+
},
|
|
56
|
+
byPage: (_a = pagedResult === null || pagedResult === void 0 ? void 0 : pagedResult.byPage) !== null && _a !== void 0 ? _a : ((settings) => {
|
|
57
|
+
const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
|
|
58
|
+
return getPageAsyncIterator(pagedResult, {
|
|
59
|
+
pageLink: continuationToken,
|
|
60
|
+
});
|
|
61
|
+
}),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function getItemAsyncIterator(pagedResult) {
|
|
65
|
+
return tslib_1.__asyncGenerator(this, arguments, function* getItemAsyncIterator_1() {
|
|
66
|
+
var _a, e_1, _b, _c;
|
|
67
|
+
const pages = getPageAsyncIterator(pagedResult);
|
|
68
|
+
try {
|
|
69
|
+
for (var _d = true, pages_1 = tslib_1.__asyncValues(pages), pages_1_1; pages_1_1 = yield tslib_1.__await(pages_1.next()), _a = pages_1_1.done, !_a; _d = true) {
|
|
70
|
+
_c = pages_1_1.value;
|
|
71
|
+
_d = false;
|
|
72
|
+
const page = _c;
|
|
73
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
77
|
+
finally {
|
|
78
|
+
try {
|
|
79
|
+
if (!_d && !_a && (_b = pages_1.return)) yield tslib_1.__await(_b.call(pages_1));
|
|
80
|
+
}
|
|
81
|
+
finally { if (e_1) throw e_1.error; }
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function getPageAsyncIterator(pagedResult_1) {
|
|
86
|
+
return tslib_1.__asyncGenerator(this, arguments, function* getPageAsyncIterator_1(pagedResult, options = {}) {
|
|
87
|
+
const { pageLink } = options;
|
|
88
|
+
let response = yield tslib_1.__await(pagedResult.getPage(pageLink !== null && pageLink !== void 0 ? pageLink : pagedResult.firstPageLink));
|
|
89
|
+
if (!response) {
|
|
90
|
+
return yield tslib_1.__await(void 0);
|
|
91
|
+
}
|
|
92
|
+
let result = response.page;
|
|
93
|
+
result.continuationToken = response.nextPageLink;
|
|
94
|
+
yield yield tslib_1.__await(result);
|
|
95
|
+
while (response.nextPageLink) {
|
|
96
|
+
response = yield tslib_1.__await(pagedResult.getPage(response.nextPageLink));
|
|
97
|
+
if (!response) {
|
|
98
|
+
return yield tslib_1.__await(void 0);
|
|
99
|
+
}
|
|
100
|
+
result = response.page;
|
|
101
|
+
result.continuationToken = response.nextPageLink;
|
|
102
|
+
yield yield tslib_1.__await(result);
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Gets for the value of nextLink in the body
|
|
108
|
+
*/
|
|
109
|
+
function getNextLink(body, nextLinkName) {
|
|
110
|
+
if (!nextLinkName) {
|
|
111
|
+
return undefined;
|
|
112
|
+
}
|
|
113
|
+
const nextLink = body[nextLinkName];
|
|
114
|
+
if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) {
|
|
115
|
+
throw new core_rest_pipeline_1.RestError(`Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`);
|
|
116
|
+
}
|
|
117
|
+
if (nextLink === null) {
|
|
118
|
+
return undefined;
|
|
119
|
+
}
|
|
120
|
+
return nextLink;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Gets the elements of the current request in the body.
|
|
124
|
+
*/
|
|
125
|
+
function getElements(body, itemName) {
|
|
126
|
+
const value = body[itemName];
|
|
127
|
+
if (!Array.isArray(value)) {
|
|
128
|
+
throw new core_rest_pipeline_1.RestError(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
|
|
129
|
+
}
|
|
130
|
+
return value !== null && value !== void 0 ? value : [];
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Checks if a request failed
|
|
134
|
+
*/
|
|
135
|
+
function checkPagingRequest(response, expectedStatuses) {
|
|
136
|
+
if (!expectedStatuses.includes(response.status)) {
|
|
137
|
+
throw (0, core_client_1.createRestError)(`Pagination failed with unexpected statusCode ${response.status}`, response);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=pagingHelpers.js.map
|
|
@@ -0,0 +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,CAAC;QAC1B,MAAM,IAAI,8BAAS,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,IAAA,6BAAe,EACnB,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"]}
|