@azure/arm-storageactions 1.0.0-beta.2 → 1.0.0
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 +3 -22
- package/README.md +10 -10
- package/dist/browser/api/index.d.ts +2 -0
- package/dist/browser/api/index.js +4 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +3 -0
- package/dist/browser/api/operations/index.js +4 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/operations/operations.d.ts +10 -0
- package/dist/browser/api/operations/operations.js +29 -0
- package/dist/browser/api/operations/operations.js.map +1 -0
- package/dist/browser/api/operations/options.d.ts +5 -0
- package/dist/browser/api/operations/options.js +4 -0
- package/dist/browser/api/operations/options.js.map +1 -0
- package/dist/browser/api/storageActionsManagementContext.d.ts +19 -0
- package/dist/browser/api/storageActionsManagementContext.js +36 -0
- package/dist/browser/api/storageActionsManagementContext.js.map +1 -0
- package/dist/browser/api/storageTaskAssignment/index.d.ts +3 -0
- package/dist/browser/api/storageTaskAssignment/index.js +4 -0
- package/dist/browser/api/storageTaskAssignment/index.js.map +1 -0
- package/dist/browser/api/storageTaskAssignment/operations.d.ts +10 -0
- package/dist/browser/api/storageTaskAssignment/operations.js +33 -0
- package/dist/browser/api/storageTaskAssignment/operations.js.map +1 -0
- package/dist/browser/api/storageTaskAssignment/options.d.ts +7 -0
- package/dist/browser/api/storageTaskAssignment/options.js +4 -0
- package/dist/browser/api/storageTaskAssignment/options.js.map +1 -0
- package/dist/browser/api/storageTasks/index.d.ts +3 -0
- package/dist/browser/api/storageTasks/index.js +4 -0
- package/dist/browser/api/storageTasks/index.js.map +1 -0
- package/dist/browser/api/storageTasks/operations.d.ts +40 -0
- package/dist/browser/api/storageTasks/operations.js +209 -0
- package/dist/browser/api/storageTasks/operations.js.map +1 -0
- package/dist/browser/api/storageTasks/options.d.ts +29 -0
- package/dist/browser/api/storageTasks/options.js +4 -0
- package/dist/browser/api/storageTasks/options.js.map +1 -0
- package/dist/browser/api/storageTasksReport/index.d.ts +3 -0
- package/dist/browser/api/storageTasksReport/index.js +4 -0
- package/dist/browser/api/storageTasksReport/index.js.map +1 -0
- package/dist/browser/api/storageTasksReport/operations.d.ts +10 -0
- package/dist/browser/api/storageTasksReport/operations.js +34 -0
- package/dist/browser/api/storageTasksReport/operations.js.map +1 -0
- package/dist/browser/api/storageTasksReport/options.d.ts +9 -0
- package/dist/browser/api/storageTasksReport/options.js +4 -0
- package/dist/browser/api/storageTasksReport/options.js.map +1 -0
- package/dist/browser/classic/index.d.ts +5 -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.js +12 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/classic/storageTaskAssignment/index.d.ts +11 -0
- package/dist/browser/classic/storageTaskAssignment/index.js +12 -0
- package/dist/browser/classic/storageTaskAssignment/index.js.map +1 -0
- package/dist/browser/classic/storageTasks/index.d.ts +29 -0
- package/dist/browser/classic/storageTasks/index.js +18 -0
- package/dist/browser/classic/storageTasks/index.js.map +1 -0
- package/dist/browser/classic/storageTasksReport/index.d.ts +11 -0
- package/dist/browser/classic/storageTasksReport/index.js +12 -0
- package/dist/browser/classic/storageTasksReport/index.js.map +1 -0
- package/dist/browser/index.d.ts +10 -3
- package/dist/browser/index.js +4 -11
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +1 -777
- package/dist/browser/models/index.js +3 -123
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +564 -0
- package/dist/browser/models/models.js +545 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.js +98 -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.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.js +76 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.js +169 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/browser/storageActionsManagementClient.d.ts +22 -21
- package/dist/browser/storageActionsManagementClient.js +21 -98
- package/dist/browser/storageActionsManagementClient.js.map +1 -1
- package/dist/commonjs/api/index.d.ts +2 -0
- package/dist/commonjs/api/index.js +8 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/operations/index.d.ts +3 -0
- package/dist/commonjs/api/operations/index.js +8 -0
- package/dist/commonjs/api/operations/index.js.map +1 -0
- package/dist/commonjs/api/operations/operations.d.ts +10 -0
- package/dist/commonjs/api/operations/operations.js +34 -0
- package/dist/commonjs/api/operations/operations.js.map +1 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/api/operations/options.js +5 -0
- package/dist/commonjs/api/operations/options.js.map +1 -0
- package/dist/commonjs/api/storageActionsManagementContext.d.ts +19 -0
- package/dist/commonjs/api/storageActionsManagementContext.js +39 -0
- package/dist/commonjs/api/storageActionsManagementContext.js.map +1 -0
- package/dist/commonjs/api/storageTaskAssignment/index.d.ts +3 -0
- package/dist/commonjs/api/storageTaskAssignment/index.js +8 -0
- package/dist/commonjs/api/storageTaskAssignment/index.js.map +1 -0
- package/dist/commonjs/api/storageTaskAssignment/operations.d.ts +10 -0
- package/dist/commonjs/api/storageTaskAssignment/operations.js +38 -0
- package/dist/commonjs/api/storageTaskAssignment/operations.js.map +1 -0
- package/dist/commonjs/api/storageTaskAssignment/options.d.ts +7 -0
- package/dist/commonjs/api/storageTaskAssignment/options.js +5 -0
- package/dist/commonjs/api/storageTaskAssignment/options.js.map +1 -0
- package/dist/commonjs/api/storageTasks/index.d.ts +3 -0
- package/dist/commonjs/api/storageTasks/index.js +14 -0
- package/dist/commonjs/api/storageTasks/index.js.map +1 -0
- package/dist/commonjs/api/storageTasks/operations.d.ts +40 -0
- package/dist/commonjs/api/storageTasks/operations.js +232 -0
- package/dist/commonjs/api/storageTasks/operations.js.map +1 -0
- package/dist/commonjs/api/storageTasks/options.d.ts +29 -0
- package/dist/commonjs/api/storageTasks/options.js +5 -0
- package/dist/commonjs/api/storageTasks/options.js.map +1 -0
- package/dist/commonjs/api/storageTasksReport/index.d.ts +3 -0
- package/dist/commonjs/api/storageTasksReport/index.js +8 -0
- package/dist/commonjs/api/storageTasksReport/index.js.map +1 -0
- package/dist/commonjs/api/storageTasksReport/operations.d.ts +10 -0
- package/dist/commonjs/api/storageTasksReport/operations.js +39 -0
- package/dist/commonjs/api/storageTasksReport/operations.js.map +1 -0
- package/dist/commonjs/api/storageTasksReport/options.d.ts +9 -0
- package/dist/commonjs/api/storageTasksReport/options.js +5 -0
- package/dist/commonjs/api/storageTasksReport/options.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +5 -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.js +15 -0
- package/dist/commonjs/classic/operations/index.js.map +1 -0
- package/dist/commonjs/classic/storageTaskAssignment/index.d.ts +11 -0
- package/dist/commonjs/classic/storageTaskAssignment/index.js +15 -0
- package/dist/commonjs/classic/storageTaskAssignment/index.js.map +1 -0
- package/dist/commonjs/classic/storageTasks/index.d.ts +29 -0
- package/dist/commonjs/classic/storageTasks/index.js +21 -0
- package/dist/commonjs/classic/storageTasks/index.js.map +1 -0
- package/dist/commonjs/classic/storageTasksReport/index.d.ts +11 -0
- package/dist/commonjs/classic/storageTasksReport/index.js +15 -0
- package/dist/commonjs/classic/storageTasksReport/index.js.map +1 -0
- package/dist/commonjs/index.d.ts +10 -3
- package/dist/commonjs/index.js +18 -14
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +1 -777
- package/dist/commonjs/models/index.js +16 -124
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +564 -0
- package/dist/commonjs/models/models.js +611 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.js +101 -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.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.js +79 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +172 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/storageActionsManagementClient.d.ts +22 -21
- package/dist/commonjs/storageActionsManagementClient.js +21 -99
- package/dist/commonjs/storageActionsManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/api/index.js +4 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +3 -0
- package/dist/esm/api/operations/index.js +4 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/operations/operations.d.ts +10 -0
- package/dist/esm/api/operations/operations.js +29 -0
- package/dist/esm/api/operations/operations.js.map +1 -0
- package/dist/esm/api/operations/options.d.ts +5 -0
- package/dist/esm/api/operations/options.js +4 -0
- package/dist/esm/api/operations/options.js.map +1 -0
- package/dist/esm/api/storageActionsManagementContext.d.ts +19 -0
- package/dist/esm/api/storageActionsManagementContext.js +36 -0
- package/dist/esm/api/storageActionsManagementContext.js.map +1 -0
- package/dist/esm/api/storageTaskAssignment/index.d.ts +3 -0
- package/dist/esm/api/storageTaskAssignment/index.js +4 -0
- package/dist/esm/api/storageTaskAssignment/index.js.map +1 -0
- package/dist/esm/api/storageTaskAssignment/operations.d.ts +10 -0
- package/dist/esm/api/storageTaskAssignment/operations.js +33 -0
- package/dist/esm/api/storageTaskAssignment/operations.js.map +1 -0
- package/dist/esm/api/storageTaskAssignment/options.d.ts +7 -0
- package/dist/esm/api/storageTaskAssignment/options.js +4 -0
- package/dist/esm/api/storageTaskAssignment/options.js.map +1 -0
- package/dist/esm/api/storageTasks/index.d.ts +3 -0
- package/dist/esm/api/storageTasks/index.js +4 -0
- package/dist/esm/api/storageTasks/index.js.map +1 -0
- package/dist/esm/api/storageTasks/operations.d.ts +40 -0
- package/dist/esm/api/storageTasks/operations.js +209 -0
- package/dist/esm/api/storageTasks/operations.js.map +1 -0
- package/dist/esm/api/storageTasks/options.d.ts +29 -0
- package/dist/esm/api/storageTasks/options.js +4 -0
- package/dist/esm/api/storageTasks/options.js.map +1 -0
- package/dist/esm/api/storageTasksReport/index.d.ts +3 -0
- package/dist/esm/api/storageTasksReport/index.js +4 -0
- package/dist/esm/api/storageTasksReport/index.js.map +1 -0
- package/dist/esm/api/storageTasksReport/operations.d.ts +10 -0
- package/dist/esm/api/storageTasksReport/operations.js +34 -0
- package/dist/esm/api/storageTasksReport/operations.js.map +1 -0
- package/dist/esm/api/storageTasksReport/options.d.ts +9 -0
- package/dist/esm/api/storageTasksReport/options.js +4 -0
- package/dist/esm/api/storageTasksReport/options.js.map +1 -0
- package/dist/esm/classic/index.d.ts +5 -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.js +12 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/classic/storageTaskAssignment/index.d.ts +11 -0
- package/dist/esm/classic/storageTaskAssignment/index.js +12 -0
- package/dist/esm/classic/storageTaskAssignment/index.js.map +1 -0
- package/dist/esm/classic/storageTasks/index.d.ts +29 -0
- package/dist/esm/classic/storageTasks/index.js +18 -0
- package/dist/esm/classic/storageTasks/index.js.map +1 -0
- package/dist/esm/classic/storageTasksReport/index.d.ts +11 -0
- package/dist/esm/classic/storageTasksReport/index.js +12 -0
- package/dist/esm/classic/storageTasksReport/index.js.map +1 -0
- package/dist/esm/index.d.ts +10 -3
- package/dist/esm/index.js +4 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +1 -777
- package/dist/esm/models/index.js +3 -123
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +564 -0
- package/dist/esm/models/models.js +545 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.js +98 -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.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.js +76 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.js +169 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/dist/esm/storageActionsManagementClient.d.ts +22 -21
- package/dist/esm/storageActionsManagementClient.js +21 -98
- package/dist/esm/storageActionsManagementClient.js.map +1 -1
- package/dist/react-native/api/index.d.ts +2 -0
- package/dist/react-native/api/index.js +4 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/api/operations/index.d.ts +3 -0
- package/dist/react-native/api/operations/index.js +4 -0
- package/dist/react-native/api/operations/index.js.map +1 -0
- package/dist/react-native/api/operations/operations.d.ts +10 -0
- package/dist/react-native/api/operations/operations.js +29 -0
- package/dist/react-native/api/operations/operations.js.map +1 -0
- package/dist/react-native/api/operations/options.d.ts +5 -0
- package/dist/react-native/api/operations/options.js +4 -0
- package/dist/react-native/api/operations/options.js.map +1 -0
- package/dist/react-native/api/storageActionsManagementContext.d.ts +19 -0
- package/dist/react-native/api/storageActionsManagementContext.js +36 -0
- package/dist/react-native/api/storageActionsManagementContext.js.map +1 -0
- package/dist/react-native/api/storageTaskAssignment/index.d.ts +3 -0
- package/dist/react-native/api/storageTaskAssignment/index.js +4 -0
- package/dist/react-native/api/storageTaskAssignment/index.js.map +1 -0
- package/dist/react-native/api/storageTaskAssignment/operations.d.ts +10 -0
- package/dist/react-native/api/storageTaskAssignment/operations.js +33 -0
- package/dist/react-native/api/storageTaskAssignment/operations.js.map +1 -0
- package/dist/react-native/api/storageTaskAssignment/options.d.ts +7 -0
- package/dist/react-native/api/storageTaskAssignment/options.js +4 -0
- package/dist/react-native/api/storageTaskAssignment/options.js.map +1 -0
- package/dist/react-native/api/storageTasks/index.d.ts +3 -0
- package/dist/react-native/api/storageTasks/index.js +4 -0
- package/dist/react-native/api/storageTasks/index.js.map +1 -0
- package/dist/react-native/api/storageTasks/operations.d.ts +40 -0
- package/dist/react-native/api/storageTasks/operations.js +209 -0
- package/dist/react-native/api/storageTasks/operations.js.map +1 -0
- package/dist/react-native/api/storageTasks/options.d.ts +29 -0
- package/dist/react-native/api/storageTasks/options.js +4 -0
- package/dist/react-native/api/storageTasks/options.js.map +1 -0
- package/dist/react-native/api/storageTasksReport/index.d.ts +3 -0
- package/dist/react-native/api/storageTasksReport/index.js +4 -0
- package/dist/react-native/api/storageTasksReport/index.js.map +1 -0
- package/dist/react-native/api/storageTasksReport/operations.d.ts +10 -0
- package/dist/react-native/api/storageTasksReport/operations.js +34 -0
- package/dist/react-native/api/storageTasksReport/operations.js.map +1 -0
- package/dist/react-native/api/storageTasksReport/options.d.ts +9 -0
- package/dist/react-native/api/storageTasksReport/options.js +4 -0
- package/dist/react-native/api/storageTasksReport/options.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +5 -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.js +12 -0
- package/dist/react-native/classic/operations/index.js.map +1 -0
- package/dist/react-native/classic/storageTaskAssignment/index.d.ts +11 -0
- package/dist/react-native/classic/storageTaskAssignment/index.js +12 -0
- package/dist/react-native/classic/storageTaskAssignment/index.js.map +1 -0
- package/dist/react-native/classic/storageTasks/index.d.ts +29 -0
- package/dist/react-native/classic/storageTasks/index.js +18 -0
- package/dist/react-native/classic/storageTasks/index.js.map +1 -0
- package/dist/react-native/classic/storageTasksReport/index.d.ts +11 -0
- package/dist/react-native/classic/storageTasksReport/index.js +12 -0
- package/dist/react-native/classic/storageTasksReport/index.js.map +1 -0
- package/dist/react-native/index.d.ts +10 -3
- package/dist/react-native/index.js +4 -11
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/logger.d.ts +2 -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 +1 -777
- package/dist/react-native/models/index.js +3 -123
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +564 -0
- package/dist/react-native/models/models.js +545 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/restorePollerHelpers.d.ts +21 -0
- package/dist/react-native/restorePollerHelpers.js +98 -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.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.js +76 -0
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/react-native/static-helpers/urlTemplate.js +169 -0
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
- package/dist/react-native/storageActionsManagementClient.d.ts +22 -21
- package/dist/react-native/storageActionsManagementClient.js +21 -98
- package/dist/react-native/storageActionsManagementClient.js.map +1 -1
- package/package.json +192 -83
- package/review/arm-storageactions-api-operations.api.md +19 -0
- package/review/arm-storageactions-api-storageTaskAssignment.api.md +20 -0
- package/review/arm-storageactions-api-storageTasks.api.md +66 -0
- package/review/arm-storageactions-api-storageTasksReport.api.md +21 -0
- package/review/arm-storageactions-api.api.md +27 -0
- package/review/arm-storageactions-models.api.md +360 -0
- package/review/arm-storageactions.api.md +106 -172
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/lroImpl.d.ts +0 -11
- package/dist/browser/lroImpl.d.ts.map +0 -1
- package/dist/browser/lroImpl.js +0 -21
- package/dist/browser/lroImpl.js.map +0 -1
- package/dist/browser/models/index.d.ts.map +0 -1
- package/dist/browser/models/mappers.d.ts +0 -37
- package/dist/browser/models/mappers.d.ts.map +0 -1
- package/dist/browser/models/mappers.js +0 -1030
- package/dist/browser/models/mappers.js.map +0 -1
- package/dist/browser/models/parameters.d.ts +0 -16
- package/dist/browser/models/parameters.d.ts.map +0 -1
- package/dist/browser/models/parameters.js +0 -143
- package/dist/browser/models/parameters.js.map +0 -1
- package/dist/browser/operations/index.d.ts +0 -5
- package/dist/browser/operations/index.d.ts.map +0 -1
- package/dist/browser/operations/index.js +0 -12
- package/dist/browser/operations/index.js.map +0 -1
- package/dist/browser/operations/operations.d.ts +0 -32
- package/dist/browser/operations/operations.d.ts.map +0 -1
- package/dist/browser/operations/operations.js +0 -133
- package/dist/browser/operations/operations.js.map +0 -1
- package/dist/browser/operations/storageTaskAssignmentOperations.d.ts +0 -44
- package/dist/browser/operations/storageTaskAssignmentOperations.d.ts.map +0 -1
- package/dist/browser/operations/storageTaskAssignmentOperations.js +0 -156
- package/dist/browser/operations/storageTaskAssignmentOperations.js.map +0 -1
- package/dist/browser/operations/storageTasks.d.ts +0 -135
- package/dist/browser/operations/storageTasks.d.ts.map +0 -1
- package/dist/browser/operations/storageTasks.js +0 -594
- package/dist/browser/operations/storageTasks.js.map +0 -1
- package/dist/browser/operations/storageTasksReport.d.ts +0 -44
- package/dist/browser/operations/storageTasksReport.d.ts.map +0 -1
- package/dist/browser/operations/storageTasksReport.js +0 -160
- package/dist/browser/operations/storageTasksReport.js.map +0 -1
- package/dist/browser/operationsInterfaces/index.d.ts +0 -5
- package/dist/browser/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/index.js +0 -12
- package/dist/browser/operationsInterfaces/index.js.map +0 -1
- package/dist/browser/operationsInterfaces/operations.d.ts +0 -11
- package/dist/browser/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/operations.js +0 -9
- package/dist/browser/operationsInterfaces/operations.js.map +0 -1
- package/dist/browser/operationsInterfaces/storageTaskAssignmentOperations.d.ts +0 -15
- package/dist/browser/operationsInterfaces/storageTaskAssignmentOperations.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/storageTaskAssignmentOperations.js +0 -9
- package/dist/browser/operationsInterfaces/storageTaskAssignmentOperations.js.map +0 -1
- package/dist/browser/operationsInterfaces/storageTasks.d.ts +0 -99
- package/dist/browser/operationsInterfaces/storageTasks.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/storageTasks.js +0 -9
- package/dist/browser/operationsInterfaces/storageTasks.js.map +0 -1
- package/dist/browser/operationsInterfaces/storageTasksReport.d.ts +0 -15
- package/dist/browser/operationsInterfaces/storageTasksReport.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/storageTasksReport.js +0 -9
- package/dist/browser/operationsInterfaces/storageTasksReport.js.map +0 -1
- package/dist/browser/pagingHelper.d.ts +0 -13
- package/dist/browser/pagingHelper.d.ts.map +0 -1
- package/dist/browser/pagingHelper.js +0 -32
- package/dist/browser/pagingHelper.js.map +0 -1
- package/dist/browser/storageActionsManagementClient.d.ts.map +0 -1
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/lroImpl.d.ts +0 -11
- package/dist/commonjs/lroImpl.d.ts.map +0 -1
- package/dist/commonjs/lroImpl.js +0 -24
- package/dist/commonjs/lroImpl.js.map +0 -1
- package/dist/commonjs/models/index.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.d.ts +0 -37
- package/dist/commonjs/models/mappers.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.js +0 -1033
- package/dist/commonjs/models/mappers.js.map +0 -1
- package/dist/commonjs/models/parameters.d.ts +0 -16
- package/dist/commonjs/models/parameters.d.ts.map +0 -1
- package/dist/commonjs/models/parameters.js +0 -146
- package/dist/commonjs/models/parameters.js.map +0 -1
- package/dist/commonjs/operations/index.d.ts +0 -5
- package/dist/commonjs/operations/index.d.ts.map +0 -1
- package/dist/commonjs/operations/index.js +0 -15
- package/dist/commonjs/operations/index.js.map +0 -1
- package/dist/commonjs/operations/operations.d.ts +0 -32
- package/dist/commonjs/operations/operations.d.ts.map +0 -1
- package/dist/commonjs/operations/operations.js +0 -137
- package/dist/commonjs/operations/operations.js.map +0 -1
- package/dist/commonjs/operations/storageTaskAssignmentOperations.d.ts +0 -44
- package/dist/commonjs/operations/storageTaskAssignmentOperations.d.ts.map +0 -1
- package/dist/commonjs/operations/storageTaskAssignmentOperations.js +0 -160
- package/dist/commonjs/operations/storageTaskAssignmentOperations.js.map +0 -1
- package/dist/commonjs/operations/storageTasks.d.ts +0 -135
- package/dist/commonjs/operations/storageTasks.d.ts.map +0 -1
- package/dist/commonjs/operations/storageTasks.js +0 -598
- package/dist/commonjs/operations/storageTasks.js.map +0 -1
- package/dist/commonjs/operations/storageTasksReport.d.ts +0 -44
- package/dist/commonjs/operations/storageTasksReport.d.ts.map +0 -1
- package/dist/commonjs/operations/storageTasksReport.js +0 -164
- package/dist/commonjs/operations/storageTasksReport.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +0 -5
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.js +0 -15
- package/dist/commonjs/operationsInterfaces/index.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/operations.d.ts +0 -11
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/operations.js +0 -10
- package/dist/commonjs/operationsInterfaces/operations.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/storageTaskAssignmentOperations.d.ts +0 -15
- package/dist/commonjs/operationsInterfaces/storageTaskAssignmentOperations.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/storageTaskAssignmentOperations.js +0 -10
- package/dist/commonjs/operationsInterfaces/storageTaskAssignmentOperations.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/storageTasks.d.ts +0 -99
- package/dist/commonjs/operationsInterfaces/storageTasks.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/storageTasks.js +0 -10
- package/dist/commonjs/operationsInterfaces/storageTasks.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/storageTasksReport.d.ts +0 -15
- package/dist/commonjs/operationsInterfaces/storageTasksReport.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/storageTasksReport.js +0 -10
- package/dist/commonjs/operationsInterfaces/storageTasksReport.js.map +0 -1
- package/dist/commonjs/pagingHelper.d.ts +0 -13
- package/dist/commonjs/pagingHelper.d.ts.map +0 -1
- package/dist/commonjs/pagingHelper.js +0 -36
- package/dist/commonjs/pagingHelper.js.map +0 -1
- package/dist/commonjs/storageActionsManagementClient.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/lroImpl.d.ts +0 -11
- package/dist/esm/lroImpl.d.ts.map +0 -1
- package/dist/esm/lroImpl.js +0 -21
- package/dist/esm/lroImpl.js.map +0 -1
- package/dist/esm/models/index.d.ts.map +0 -1
- package/dist/esm/models/mappers.d.ts +0 -37
- package/dist/esm/models/mappers.d.ts.map +0 -1
- package/dist/esm/models/mappers.js +0 -1030
- package/dist/esm/models/mappers.js.map +0 -1
- package/dist/esm/models/parameters.d.ts +0 -16
- package/dist/esm/models/parameters.d.ts.map +0 -1
- package/dist/esm/models/parameters.js +0 -143
- package/dist/esm/models/parameters.js.map +0 -1
- package/dist/esm/operations/index.d.ts +0 -5
- package/dist/esm/operations/index.d.ts.map +0 -1
- package/dist/esm/operations/index.js +0 -12
- package/dist/esm/operations/index.js.map +0 -1
- package/dist/esm/operations/operations.d.ts +0 -32
- package/dist/esm/operations/operations.d.ts.map +0 -1
- package/dist/esm/operations/operations.js +0 -133
- package/dist/esm/operations/operations.js.map +0 -1
- package/dist/esm/operations/storageTaskAssignmentOperations.d.ts +0 -44
- package/dist/esm/operations/storageTaskAssignmentOperations.d.ts.map +0 -1
- package/dist/esm/operations/storageTaskAssignmentOperations.js +0 -156
- package/dist/esm/operations/storageTaskAssignmentOperations.js.map +0 -1
- package/dist/esm/operations/storageTasks.d.ts +0 -135
- package/dist/esm/operations/storageTasks.d.ts.map +0 -1
- package/dist/esm/operations/storageTasks.js +0 -594
- package/dist/esm/operations/storageTasks.js.map +0 -1
- package/dist/esm/operations/storageTasksReport.d.ts +0 -44
- package/dist/esm/operations/storageTasksReport.d.ts.map +0 -1
- package/dist/esm/operations/storageTasksReport.js +0 -160
- package/dist/esm/operations/storageTasksReport.js.map +0 -1
- package/dist/esm/operationsInterfaces/index.d.ts +0 -5
- package/dist/esm/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/index.js +0 -12
- package/dist/esm/operationsInterfaces/index.js.map +0 -1
- package/dist/esm/operationsInterfaces/operations.d.ts +0 -11
- package/dist/esm/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/operations.js +0 -9
- package/dist/esm/operationsInterfaces/operations.js.map +0 -1
- package/dist/esm/operationsInterfaces/storageTaskAssignmentOperations.d.ts +0 -15
- package/dist/esm/operationsInterfaces/storageTaskAssignmentOperations.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/storageTaskAssignmentOperations.js +0 -9
- package/dist/esm/operationsInterfaces/storageTaskAssignmentOperations.js.map +0 -1
- package/dist/esm/operationsInterfaces/storageTasks.d.ts +0 -99
- package/dist/esm/operationsInterfaces/storageTasks.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/storageTasks.js +0 -9
- package/dist/esm/operationsInterfaces/storageTasks.js.map +0 -1
- package/dist/esm/operationsInterfaces/storageTasksReport.d.ts +0 -15
- package/dist/esm/operationsInterfaces/storageTasksReport.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/storageTasksReport.js +0 -9
- package/dist/esm/operationsInterfaces/storageTasksReport.js.map +0 -1
- package/dist/esm/pagingHelper.d.ts +0 -13
- package/dist/esm/pagingHelper.d.ts.map +0 -1
- package/dist/esm/pagingHelper.js +0 -32
- package/dist/esm/pagingHelper.js.map +0 -1
- package/dist/esm/storageActionsManagementClient.d.ts.map +0 -1
- package/dist/react-native/index.d.ts.map +0 -1
- package/dist/react-native/lroImpl.d.ts +0 -11
- package/dist/react-native/lroImpl.d.ts.map +0 -1
- package/dist/react-native/lroImpl.js +0 -21
- package/dist/react-native/lroImpl.js.map +0 -1
- package/dist/react-native/models/index.d.ts.map +0 -1
- package/dist/react-native/models/mappers.d.ts +0 -37
- package/dist/react-native/models/mappers.d.ts.map +0 -1
- package/dist/react-native/models/mappers.js +0 -1030
- package/dist/react-native/models/mappers.js.map +0 -1
- package/dist/react-native/models/parameters.d.ts +0 -16
- package/dist/react-native/models/parameters.d.ts.map +0 -1
- package/dist/react-native/models/parameters.js +0 -143
- package/dist/react-native/models/parameters.js.map +0 -1
- package/dist/react-native/operations/index.d.ts +0 -5
- package/dist/react-native/operations/index.d.ts.map +0 -1
- package/dist/react-native/operations/index.js +0 -12
- package/dist/react-native/operations/index.js.map +0 -1
- package/dist/react-native/operations/operations.d.ts +0 -32
- package/dist/react-native/operations/operations.d.ts.map +0 -1
- package/dist/react-native/operations/operations.js +0 -133
- package/dist/react-native/operations/operations.js.map +0 -1
- package/dist/react-native/operations/storageTaskAssignmentOperations.d.ts +0 -44
- package/dist/react-native/operations/storageTaskAssignmentOperations.d.ts.map +0 -1
- package/dist/react-native/operations/storageTaskAssignmentOperations.js +0 -156
- package/dist/react-native/operations/storageTaskAssignmentOperations.js.map +0 -1
- package/dist/react-native/operations/storageTasks.d.ts +0 -135
- package/dist/react-native/operations/storageTasks.d.ts.map +0 -1
- package/dist/react-native/operations/storageTasks.js +0 -594
- package/dist/react-native/operations/storageTasks.js.map +0 -1
- package/dist/react-native/operations/storageTasksReport.d.ts +0 -44
- package/dist/react-native/operations/storageTasksReport.d.ts.map +0 -1
- package/dist/react-native/operations/storageTasksReport.js +0 -160
- package/dist/react-native/operations/storageTasksReport.js.map +0 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +0 -5
- package/dist/react-native/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/index.js +0 -12
- package/dist/react-native/operationsInterfaces/index.js.map +0 -1
- package/dist/react-native/operationsInterfaces/operations.d.ts +0 -11
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/operations.js +0 -9
- package/dist/react-native/operationsInterfaces/operations.js.map +0 -1
- package/dist/react-native/operationsInterfaces/storageTaskAssignmentOperations.d.ts +0 -15
- package/dist/react-native/operationsInterfaces/storageTaskAssignmentOperations.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/storageTaskAssignmentOperations.js +0 -9
- package/dist/react-native/operationsInterfaces/storageTaskAssignmentOperations.js.map +0 -1
- package/dist/react-native/operationsInterfaces/storageTasks.d.ts +0 -99
- package/dist/react-native/operationsInterfaces/storageTasks.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/storageTasks.js +0 -9
- package/dist/react-native/operationsInterfaces/storageTasks.js.map +0 -1
- package/dist/react-native/operationsInterfaces/storageTasksReport.d.ts +0 -15
- package/dist/react-native/operationsInterfaces/storageTasksReport.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/storageTasksReport.js +0 -9
- package/dist/react-native/operationsInterfaces/storageTasksReport.js.map +0 -1
- package/dist/react-native/pagingHelper.d.ts +0 -13
- package/dist/react-native/pagingHelper.d.ts.map +0 -1
- package/dist/react-native/pagingHelper.js +0 -32
- package/dist/react-native/pagingHelper.js.map +0 -1
- package/dist/react-native/storageActionsManagementClient.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACxD,OAAO;QACL,KAAK,EAAE,0BAA0B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,MAAwB;IACjE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC;AAgBD,MAAM,UAAU,qBAAqB,CAAC,IAAS;IAC7C,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MA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AC3D,IAAS;IAET,OAAO;QACL,KAAK,EAAE,sCAAsC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5D,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sCAAsC,CACpD,MAAoC;IAEpC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,iCAAiC,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC;AAQD,MAAM,UAAU,iCAAiC,CAAC,IAAS;IACzD,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;KACf,CAAC;AACJ,CAAC;AAED,kCAAkC;AAClC,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,kCAAkC;IAClC,yCAAwB,CAAA;AAC1B,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\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 readonly value: Operation[];\n /** The link to the next page of items */\n readonly 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/** 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?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** Represents Storage Task. */\nexport interface StorageTask extends TrackedResource {\n /** The managed service identity of the resource. */\n identity: ManagedServiceIdentity;\n /** Properties of the storage task. */\n properties: StorageTaskProperties;\n}\n\nexport function storageTaskSerializer(item: StorageTask): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n identity: managedServiceIdentitySerializer(item[\"identity\"]),\n properties: storageTaskPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function storageTaskDeserializer(item: any): StorageTask {\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 identity: managedServiceIdentityDeserializer(item[\"identity\"]),\n properties: storageTaskPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Managed service identity (system assigned and/or user assigned identities) */\nexport interface ManagedServiceIdentity {\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 | null>;\n}\n\nexport function managedServiceIdentitySerializer(item: ManagedServiceIdentity): any {\n return {\n type: item[\"type\"],\n userAssignedIdentities: item[\"userAssignedIdentities\"],\n };\n}\n\nexport function managedServiceIdentityDeserializer(item: any): ManagedServiceIdentity {\n return {\n principalId: item[\"principalId\"],\n tenantId: item[\"tenantId\"],\n type: item[\"type\"],\n userAssignedIdentities: 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 SystemAssignedUserAssigned = \"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\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/** Properties of the storage task. */\nexport interface StorageTaskProperties {\n /** Storage task version. */\n readonly taskVersion?: number;\n /** Storage Task is enabled when set to true and disabled when set to false */\n enabled: boolean;\n /** Text that describes the purpose of the storage task */\n description: string;\n /** The storage task action that is executed */\n action: StorageTaskAction;\n /** Represents the provisioning state of the storage task. */\n readonly provisioningState?: ProvisioningState;\n /** The creation date and time of the storage task in UTC. */\n readonly creationTimeInUtc?: Date;\n}\n\nexport function storageTaskPropertiesSerializer(item: StorageTaskProperties): any {\n return {\n enabled: item[\"enabled\"],\n description: item[\"description\"],\n action: storageTaskActionSerializer(item[\"action\"]),\n };\n}\n\nexport function storageTaskPropertiesDeserializer(item: any): StorageTaskProperties {\n return {\n taskVersion: item[\"taskVersion\"],\n enabled: item[\"enabled\"],\n description: item[\"description\"],\n action: storageTaskActionDeserializer(item[\"action\"]),\n provisioningState: item[\"provisioningState\"],\n creationTimeInUtc: !item[\"creationTimeInUtc\"]\n ? item[\"creationTimeInUtc\"]\n : new Date(item[\"creationTimeInUtc\"]),\n };\n}\n\n/** The storage task action represents conditional statements and operations to be performed on target objects. */\nexport interface StorageTaskAction {\n /** The if block of storage task operation */\n if: IfCondition;\n /** The else block of storage task operation */\n else?: ElseCondition;\n}\n\nexport function storageTaskActionSerializer(item: StorageTaskAction): any {\n return {\n if: ifConditionSerializer(item[\"if\"]),\n else: !item[\"else\"] ? item[\"else\"] : elseConditionSerializer(item[\"else\"]),\n };\n}\n\nexport function storageTaskActionDeserializer(item: any): StorageTaskAction {\n return {\n if: ifConditionDeserializer(item[\"if\"]),\n else: !item[\"else\"] ? item[\"else\"] : elseConditionDeserializer(item[\"else\"]),\n };\n}\n\n/** The if block of storage task operation */\nexport interface IfCondition {\n /** Condition predicate to evaluate each object. See https://aka.ms/storagetaskconditions for valid properties and operators. */\n condition: string;\n /** List of operations to execute when the condition predicate satisfies. */\n operations: StorageTaskOperation[];\n}\n\nexport function ifConditionSerializer(item: IfCondition): any {\n return {\n condition: item[\"condition\"],\n operations: storageTaskOperationArraySerializer(item[\"operations\"]),\n };\n}\n\nexport function ifConditionDeserializer(item: any): IfCondition {\n return {\n condition: item[\"condition\"],\n operations: storageTaskOperationArrayDeserializer(item[\"operations\"]),\n };\n}\n\nexport function storageTaskOperationArraySerializer(result: Array<StorageTaskOperation>): any[] {\n return result.map((item) => {\n return storageTaskOperationSerializer(item);\n });\n}\n\nexport function storageTaskOperationArrayDeserializer(result: Array<StorageTaskOperation>): any[] {\n return result.map((item) => {\n return storageTaskOperationDeserializer(item);\n });\n}\n\n/** Represents an operation to be performed on the object */\nexport interface StorageTaskOperation {\n /** The operation to be performed on the object. */\n name: StorageTaskOperationName;\n /** Key-value parameters for the operation. */\n parameters?: Record<string, string>;\n /** Action to be taken when the operation is successful for a object. */\n onSuccess?: OnSuccess;\n /** Action to be taken when the operation fails for a object. */\n onFailure?: OnFailure;\n}\n\nexport function storageTaskOperationSerializer(item: StorageTaskOperation): any {\n return {\n name: item[\"name\"],\n parameters: item[\"parameters\"],\n onSuccess: item[\"onSuccess\"],\n onFailure: item[\"onFailure\"],\n };\n}\n\nexport function storageTaskOperationDeserializer(item: any): StorageTaskOperation {\n return {\n name: item[\"name\"],\n parameters: item[\"parameters\"],\n onSuccess: item[\"onSuccess\"],\n onFailure: item[\"onFailure\"],\n };\n}\n\n/** The operation to be performed on the object. */\nexport enum KnownStorageTaskOperationName {\n SetBlobTier = \"SetBlobTier\",\n SetBlobTags = \"SetBlobTags\",\n SetBlobImmutabilityPolicy = \"SetBlobImmutabilityPolicy\",\n SetBlobLegalHold = \"SetBlobLegalHold\",\n SetBlobExpiry = \"SetBlobExpiry\",\n DeleteBlob = \"DeleteBlob\",\n UndeleteBlob = \"UndeleteBlob\",\n}\n\n/**\n * The operation to be performed on the object. \\\n * {@link KnownStorageTaskOperationName} can be used interchangeably with StorageTaskOperationName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **SetBlobTier** \\\n * **SetBlobTags** \\\n * **SetBlobImmutabilityPolicy** \\\n * **SetBlobLegalHold** \\\n * **SetBlobExpiry** \\\n * **DeleteBlob** \\\n * **UndeleteBlob**\n */\nexport type StorageTaskOperationName = string;\n\n/** Action to be taken when the operation is successful for a object. */\nexport enum KnownOnSuccess {\n Continue = \"continue\",\n}\n\n/**\n * Action to be taken when the operation is successful for a object. \\\n * {@link KnownOnSuccess} can be used interchangeably with OnSuccess,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **continue**\n */\nexport type OnSuccess = string;\n\n/** Action to be taken when the operation fails for a object. */\nexport enum KnownOnFailure {\n Break = \"break\",\n}\n\n/**\n * Action to be taken when the operation fails for a object. \\\n * {@link KnownOnFailure} can be used interchangeably with OnFailure,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **break**\n */\nexport type OnFailure = string;\n\n/** The else block of storage task operation */\nexport interface ElseCondition {\n /** List of operations to execute in the else block */\n operations: StorageTaskOperation[];\n}\n\nexport function elseConditionSerializer(item: ElseCondition): any {\n return {\n operations: storageTaskOperationArraySerializer(item[\"operations\"]),\n };\n}\n\nexport function elseConditionDeserializer(item: any): ElseCondition {\n return {\n operations: storageTaskOperationArrayDeserializer(item[\"operations\"]),\n };\n}\n\n/** Represents the provisioning state of the storage task. */\nexport enum KnownProvisioningState {\n ValidateSubscriptionQuotaBegin = \"ValidateSubscriptionQuotaBegin\",\n ValidateSubscriptionQuotaEnd = \"ValidateSubscriptionQuotaEnd\",\n Accepted = \"Accepted\",\n Creating = \"Creating\",\n Succeeded = \"Succeeded\",\n Deleting = \"Deleting\",\n Canceled = \"Canceled\",\n Failed = \"Failed\",\n}\n\n/**\n * Represents the provisioning state of the storage task. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **ValidateSubscriptionQuotaBegin** \\\n * **ValidateSubscriptionQuotaEnd** \\\n * **Accepted** \\\n * **Creating** \\\n * **Succeeded** \\\n * **Deleting** \\\n * **Canceled** \\\n * **Failed**\n */\nexport type ProvisioningState = string;\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/** 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/** Parameters of the storage task update request */\nexport interface StorageTaskUpdateParameters {\n /** The identity of the resource. */\n identity?: ManagedServiceIdentity;\n /** Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. */\n tags?: Record<string, string>;\n /** Properties of the storage task. */\n properties?: StorageTaskUpdateProperties;\n}\n\nexport function storageTaskUpdateParametersSerializer(item: StorageTaskUpdateParameters): any {\n return {\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentitySerializer(item[\"identity\"]),\n tags: item[\"tags\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : storageTaskUpdatePropertiesSerializer(item[\"properties\"]),\n };\n}\n\n/** Properties of the storage task. */\nexport interface StorageTaskUpdateProperties {\n /** Storage task version. */\n readonly taskVersion?: number;\n /** Storage Task is enabled when set to true and disabled when set to false */\n enabled?: boolean;\n /** Text that describes the purpose of the storage task */\n description?: string;\n /** The storage task action that is executed */\n action?: StorageTaskAction;\n /** Represents the provisioning state of the storage task. */\n readonly provisioningState?: ProvisioningState;\n /** The creation date and time of the storage task in UTC. */\n readonly creationTimeInUtc?: Date;\n}\n\nexport function storageTaskUpdatePropertiesSerializer(item: StorageTaskUpdateProperties): any {\n return {\n enabled: item[\"enabled\"],\n description: item[\"description\"],\n action: !item[\"action\"] ? item[\"action\"] : storageTaskActionSerializer(item[\"action\"]),\n };\n}\n\n/** The response from the List Storage Task operation. */\nexport interface _StorageTasksListResult {\n /** Gets the list of storage tasks and their properties. */\n readonly value: StorageTask[];\n /** The link to the next page of items */\n readonly nextLink?: string;\n}\n\nexport function _storageTasksListResultDeserializer(item: any): _StorageTasksListResult {\n return {\n value: storageTaskArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function storageTaskArraySerializer(result: Array<StorageTask>): any[] {\n return result.map((item) => {\n return storageTaskSerializer(item);\n });\n}\n\nexport function storageTaskArrayDeserializer(result: Array<StorageTask>): any[] {\n return result.map((item) => {\n return storageTaskDeserializer(item);\n });\n}\n\n/** Storage Task Preview Action. */\nexport interface StorageTaskPreviewAction {\n /** Properties of the storage task preview. */\n properties: StorageTaskPreviewActionProperties;\n}\n\nexport function storageTaskPreviewActionSerializer(item: StorageTaskPreviewAction): any {\n return {\n properties: storageTaskPreviewActionPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function storageTaskPreviewActionDeserializer(item: any): StorageTaskPreviewAction {\n return {\n properties: storageTaskPreviewActionPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Storage task preview action properties. */\nexport interface StorageTaskPreviewActionProperties {\n /** Properties of a sample container to test for a match with the preview action. */\n container: StorageTaskPreviewContainerProperties;\n /** Properties of some sample blobs in the container to test for matches with the preview action. */\n blobs: StorageTaskPreviewBlobProperties[];\n /** Preview action to test */\n action: StorageTaskPreviewActionCondition;\n}\n\nexport function storageTaskPreviewActionPropertiesSerializer(\n item: StorageTaskPreviewActionProperties,\n): any {\n return {\n container: storageTaskPreviewContainerPropertiesSerializer(item[\"container\"]),\n blobs: storageTaskPreviewBlobPropertiesArraySerializer(item[\"blobs\"]),\n action: storageTaskPreviewActionConditionSerializer(item[\"action\"]),\n };\n}\n\nexport function storageTaskPreviewActionPropertiesDeserializer(\n item: any,\n): StorageTaskPreviewActionProperties {\n return {\n container: storageTaskPreviewContainerPropertiesDeserializer(item[\"container\"]),\n blobs: storageTaskPreviewBlobPropertiesArrayDeserializer(item[\"blobs\"]),\n action: storageTaskPreviewActionConditionDeserializer(item[\"action\"]),\n };\n}\n\n/** Storage task preview container properties */\nexport interface StorageTaskPreviewContainerProperties {\n /** Name of test container */\n name?: string;\n /** metadata key value pairs to be tested for a match against the provided condition. */\n metadata?: StorageTaskPreviewKeyValueProperties[];\n}\n\nexport function storageTaskPreviewContainerPropertiesSerializer(\n item: StorageTaskPreviewContainerProperties,\n): any {\n return {\n name: item[\"name\"],\n metadata: !item[\"metadata\"]\n ? item[\"metadata\"]\n : storageTaskPreviewKeyValuePropertiesArraySerializer(item[\"metadata\"]),\n };\n}\n\nexport function storageTaskPreviewContainerPropertiesDeserializer(\n item: any,\n): StorageTaskPreviewContainerProperties {\n return {\n name: item[\"name\"],\n metadata: !item[\"metadata\"]\n ? item[\"metadata\"]\n : storageTaskPreviewKeyValuePropertiesArrayDeserializer(item[\"metadata\"]),\n };\n}\n\nexport function storageTaskPreviewKeyValuePropertiesArraySerializer(\n result: Array<StorageTaskPreviewKeyValueProperties>,\n): any[] {\n return result.map((item) => {\n return storageTaskPreviewKeyValuePropertiesSerializer(item);\n });\n}\n\nexport function storageTaskPreviewKeyValuePropertiesArrayDeserializer(\n result: Array<StorageTaskPreviewKeyValueProperties>,\n): any[] {\n return result.map((item) => {\n return storageTaskPreviewKeyValuePropertiesDeserializer(item);\n });\n}\n\n/** Storage task preview object key value pair properties. */\nexport interface StorageTaskPreviewKeyValueProperties {\n /** Represents the key property of the pair. */\n key?: string;\n /** Represents the value property of the pair. */\n value?: string;\n}\n\nexport function storageTaskPreviewKeyValuePropertiesSerializer(\n item: StorageTaskPreviewKeyValueProperties,\n): any {\n return { key: item[\"key\"], value: item[\"value\"] };\n}\n\nexport function storageTaskPreviewKeyValuePropertiesDeserializer(\n item: any,\n): StorageTaskPreviewKeyValueProperties {\n return {\n key: item[\"key\"],\n value: item[\"value\"],\n };\n}\n\nexport function storageTaskPreviewBlobPropertiesArraySerializer(\n result: Array<StorageTaskPreviewBlobProperties>,\n): any[] {\n return result.map((item) => {\n return storageTaskPreviewBlobPropertiesSerializer(item);\n });\n}\n\nexport function storageTaskPreviewBlobPropertiesArrayDeserializer(\n result: Array<StorageTaskPreviewBlobProperties>,\n): any[] {\n return result.map((item) => {\n return storageTaskPreviewBlobPropertiesDeserializer(item);\n });\n}\n\n/** Storage task preview container properties */\nexport interface StorageTaskPreviewBlobProperties {\n /** Name of test blob */\n name?: string;\n /** properties key value pairs to be tested for a match against the provided condition. */\n properties?: StorageTaskPreviewKeyValueProperties[];\n /** metadata key value pairs to be tested for a match against the provided condition. */\n metadata?: StorageTaskPreviewKeyValueProperties[];\n /** tags key value pairs to be tested for a match against the provided condition. */\n tags?: StorageTaskPreviewKeyValueProperties[];\n /** Represents the condition block name that matched blob properties. */\n readonly matchedBlock?: MatchedBlockName;\n}\n\nexport function storageTaskPreviewBlobPropertiesSerializer(\n item: StorageTaskPreviewBlobProperties,\n): any {\n return {\n name: item[\"name\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : storageTaskPreviewKeyValuePropertiesArraySerializer(item[\"properties\"]),\n metadata: !item[\"metadata\"]\n ? item[\"metadata\"]\n : storageTaskPreviewKeyValuePropertiesArraySerializer(item[\"metadata\"]),\n tags: !item[\"tags\"]\n ? item[\"tags\"]\n : storageTaskPreviewKeyValuePropertiesArraySerializer(item[\"tags\"]),\n };\n}\n\nexport function storageTaskPreviewBlobPropertiesDeserializer(\n item: any,\n): StorageTaskPreviewBlobProperties {\n return {\n name: item[\"name\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : storageTaskPreviewKeyValuePropertiesArrayDeserializer(item[\"properties\"]),\n metadata: !item[\"metadata\"]\n ? item[\"metadata\"]\n : storageTaskPreviewKeyValuePropertiesArrayDeserializer(item[\"metadata\"]),\n tags: !item[\"tags\"]\n ? item[\"tags\"]\n : storageTaskPreviewKeyValuePropertiesArrayDeserializer(item[\"tags\"]),\n matchedBlock: item[\"matchedBlock\"],\n };\n}\n\n/** Represents the condition block name that matched blob properties. */\nexport enum KnownMatchedBlockName {\n If = \"If\",\n Else = \"Else\",\n None = \"None\",\n}\n\n/**\n * Represents the condition block name that matched blob properties. \\\n * {@link KnownMatchedBlockName} can be used interchangeably with MatchedBlockName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **If** \\\n * **Else** \\\n * **None**\n */\nexport type MatchedBlockName = string;\n\n/** Represents the storage task conditions to be tested for a match with container and blob properties. */\nexport interface StorageTaskPreviewActionCondition {\n /** The condition to be tested for a match with container and blob properties. */\n if: StorageTaskPreviewActionIfCondition;\n /** Specify whether the else block is present in the condition. */\n elseBlockExists: boolean;\n}\n\nexport function storageTaskPreviewActionConditionSerializer(\n item: StorageTaskPreviewActionCondition,\n): any {\n return {\n if: storageTaskPreviewActionIfConditionSerializer(item[\"if\"]),\n elseBlockExists: item[\"elseBlockExists\"],\n };\n}\n\nexport function storageTaskPreviewActionConditionDeserializer(\n item: any,\n): StorageTaskPreviewActionCondition {\n return {\n if: storageTaskPreviewActionIfConditionDeserializer(item[\"if\"]),\n elseBlockExists: item[\"elseBlockExists\"],\n };\n}\n\n/** Represents storage task preview action condition. */\nexport interface StorageTaskPreviewActionIfCondition {\n /** Storage task condition to bes tested for a match. */\n condition?: string;\n}\n\nexport function storageTaskPreviewActionIfConditionSerializer(\n item: StorageTaskPreviewActionIfCondition,\n): any {\n return { condition: item[\"condition\"] };\n}\n\nexport function storageTaskPreviewActionIfConditionDeserializer(\n item: any,\n): StorageTaskPreviewActionIfCondition {\n return {\n condition: item[\"condition\"],\n };\n}\n\n/** Fetch Storage Tasks Run Summary. */\nexport interface _StorageTaskReportSummary {\n /** Gets storage tasks run result summary. */\n readonly value: StorageTaskReportInstance[];\n /** The link to the next page of items */\n readonly nextLink?: string;\n}\n\nexport function _storageTaskReportSummaryDeserializer(item: any): _StorageTaskReportSummary {\n return {\n value: storageTaskReportInstanceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function storageTaskReportInstanceArrayDeserializer(\n result: Array<StorageTaskReportInstance>,\n): any[] {\n return result.map((item) => {\n return storageTaskReportInstanceDeserializer(item);\n });\n}\n\n/** Storage Tasks run report instance */\nexport interface StorageTaskReportInstance extends ProxyResource {\n /** Storage task execution report for a run instance. */\n properties?: StorageTaskReportProperties;\n}\n\nexport function storageTaskReportInstanceDeserializer(item: any): StorageTaskReportInstance {\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 : storageTaskReportPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Storage task execution report for a run instance. */\nexport interface StorageTaskReportProperties {\n /** Resource ID of the Storage Task Assignment associated with this reported run. */\n readonly taskAssignmentId?: string;\n /** Resource ID of the Storage Account where this reported run executed. */\n readonly storageAccountId?: string;\n /** Start time of the run instance. Filter options such as startTime gt '2023-06-26T20:51:24.4494016Z' and other comparison operators can be used as described for DateTime properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators */\n readonly startTime?: string;\n /** End time of the run instance. Filter options such as startTime gt '2023-06-26T20:51:24.4494016Z' and other comparison operators can be used as described for DateTime properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators */\n readonly finishTime?: string;\n /** Total number of objects that meet the condition as defined in the storage task assignment execution context. Filter options such as objectsTargetedCount gt 50 and other comparison operators can be used as described for Numerical properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators */\n readonly objectsTargetedCount?: string;\n /** Total number of objects that meet the storage tasks condition and were operated upon. Filter options such as objectsOperatedOnCount ge 100 and other comparison operators can be used as described for Numerical properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators */\n readonly objectsOperatedOnCount?: string;\n /** Total number of objects where task operation failed when was attempted. Filter options such as objectFailedCount eq 0 and other comparison operators can be used as described for Numerical properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators */\n readonly objectFailedCount?: string;\n /** Total number of objects where task operation succeeded when was attempted.Filter options such as objectsSucceededCount gt 150 and other comparison operators can be used as described for Numerical properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators */\n readonly objectsSucceededCount?: string;\n /** Well known Azure Storage error code that represents the error encountered during execution of the run instance. */\n readonly runStatusError?: string;\n /** Represents the status of the execution. */\n readonly runStatusEnum?: RunStatusEnum;\n /** Full path to the verbose report stored in the reporting container as specified in the assignment execution context for the storage account. */\n readonly summaryReportPath?: string;\n /** Resource ID of the Storage Task applied during this run. */\n readonly taskId?: string;\n /** Storage Task Version */\n readonly taskVersion?: string;\n /** Represents the overall result of the execution for the run instance */\n readonly runResult?: RunResult;\n}\n\nexport function storageTaskReportPropertiesDeserializer(item: any): StorageTaskReportProperties {\n return {\n taskAssignmentId: item[\"taskAssignmentId\"],\n storageAccountId: item[\"storageAccountId\"],\n startTime: item[\"startTime\"],\n finishTime: item[\"finishTime\"],\n objectsTargetedCount: item[\"objectsTargetedCount\"],\n objectsOperatedOnCount: item[\"objectsOperatedOnCount\"],\n objectFailedCount: item[\"objectFailedCount\"],\n objectsSucceededCount: item[\"objectsSucceededCount\"],\n runStatusError: item[\"runStatusError\"],\n runStatusEnum: item[\"runStatusEnum\"],\n summaryReportPath: item[\"summaryReportPath\"],\n taskId: item[\"taskId\"],\n taskVersion: item[\"taskVersion\"],\n runResult: item[\"runResult\"],\n };\n}\n\n/** Represents the status of the execution. */\nexport enum KnownRunStatusEnum {\n InProgress = \"InProgress\",\n Finished = \"Finished\",\n}\n\n/**\n * Represents the status of the execution. \\\n * {@link KnownRunStatusEnum} can be used interchangeably with RunStatusEnum,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **InProgress** \\\n * **Finished**\n */\nexport type RunStatusEnum = string;\n\n/** Represents the overall result of the execution for the run instance */\nexport enum KnownRunResult {\n Succeeded = \"Succeeded\",\n Failed = \"Failed\",\n}\n\n/**\n * Represents the overall result of the execution for the run instance \\\n * {@link KnownRunResult} can be used interchangeably with RunResult,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded** \\\n * **Failed**\n */\nexport type RunResult = 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 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/** The response from the List Storage Tasks operation. */\nexport interface _StorageTaskAssignmentsListResult {\n /** List of Storage Task Assignment Resource IDs associated with this Storage Task. */\n readonly value: StorageTaskAssignment[];\n /** The link to the next page of items */\n readonly nextLink?: string;\n}\n\nexport function _storageTaskAssignmentsListResultDeserializer(\n item: any,\n): _StorageTaskAssignmentsListResult {\n return {\n value: storageTaskAssignmentArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function storageTaskAssignmentArrayDeserializer(\n result: Array<StorageTaskAssignment>,\n): any[] {\n return result.map((item) => {\n return storageTaskAssignmentDeserializer(item);\n });\n}\n\n/** Storage Task Assignment associated with this Storage Task. */\nexport interface StorageTaskAssignment {\n /** Resource ID of the Storage Task Assignment. */\n readonly id?: string;\n}\n\nexport function storageTaskAssignmentDeserializer(item: any): StorageTaskAssignment {\n return {\n id: item[\"id\"],\n };\n}\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** The 2023-01-01 API version. */\n V20230101 = \"2023-01-01\",\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StorageActionsManagementClient } from "./storageActionsManagementClient.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: StorageActionsManagementClient, 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,98 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { _$deleteDeserialize, _updateDeserialize, _createDeserialize, } from "./api/storageTasks/operations.js";
|
|
4
|
+
import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
|
|
5
|
+
import { deserializeState, } from "@azure/core-lro";
|
|
6
|
+
/**
|
|
7
|
+
* Creates a poller from the serialized state of another poller. This can be
|
|
8
|
+
* useful when you want to create pollers on a different host or a poller
|
|
9
|
+
* needs to be constructed after the original one is not in scope.
|
|
10
|
+
*/
|
|
11
|
+
export function restorePoller(client, serializedState, sourceOperation, options) {
|
|
12
|
+
var _a, _b, _c;
|
|
13
|
+
const pollerConfig = deserializeState(serializedState).config;
|
|
14
|
+
const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
|
|
15
|
+
if (!initialRequestUrl || !requestMethod) {
|
|
16
|
+
throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}`);
|
|
17
|
+
}
|
|
18
|
+
const resourceLocationConfig = metadata === null || metadata === void 0 ? void 0 : metadata["resourceLocationConfig"];
|
|
19
|
+
const { deserializer, expectedStatuses = [] } = (_a = getDeserializationHelper(initialRequestUrl, requestMethod)) !== null && _a !== void 0 ? _a : {};
|
|
20
|
+
const deserializeHelper = (_b = options === null || options === void 0 ? void 0 : options.processResponseBody) !== null && _b !== void 0 ? _b : deserializer;
|
|
21
|
+
if (!deserializeHelper) {
|
|
22
|
+
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}.`);
|
|
23
|
+
}
|
|
24
|
+
return getLongRunningPoller((_c = client["_client"]) !== null && _c !== void 0 ? _c : client, deserializeHelper, expectedStatuses, {
|
|
25
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
26
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
27
|
+
resourceLocationConfig,
|
|
28
|
+
restoreFrom: serializedState,
|
|
29
|
+
initialRequestUrl,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
const deserializeMap = {
|
|
33
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageActions/storageTasks/{storageTaskName}": {
|
|
34
|
+
deserializer: _$deleteDeserialize,
|
|
35
|
+
expectedStatuses: ["202", "204", "200"],
|
|
36
|
+
},
|
|
37
|
+
"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageActions/storageTasks/{storageTaskName}": { deserializer: _updateDeserialize, expectedStatuses: ["200", "202"] },
|
|
38
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageActions/storageTasks/{storageTaskName}": {
|
|
39
|
+
deserializer: _createDeserialize,
|
|
40
|
+
expectedStatuses: ["200", "201", "202"],
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
function getDeserializationHelper(urlStr, method) {
|
|
44
|
+
var _a, _b, _c, _d;
|
|
45
|
+
const path = new URL(urlStr).pathname;
|
|
46
|
+
const pathParts = path.split("/");
|
|
47
|
+
// Traverse list to match the longest candidate
|
|
48
|
+
// matchedLen: the length of candidate path
|
|
49
|
+
// matchedValue: the matched status code array
|
|
50
|
+
let matchedLen = -1, matchedValue;
|
|
51
|
+
// Iterate the responseMap to find a match
|
|
52
|
+
for (const [key, value] of Object.entries(deserializeMap)) {
|
|
53
|
+
// Extracting the path from the map key which is in format
|
|
54
|
+
// GET /path/foo
|
|
55
|
+
if (!key.startsWith(method)) {
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
const candidatePath = getPathFromMapKey(key);
|
|
59
|
+
// Get each part of the url path
|
|
60
|
+
const candidateParts = candidatePath.split("/");
|
|
61
|
+
// track if we have found a match to return the values found.
|
|
62
|
+
let found = true;
|
|
63
|
+
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
64
|
+
if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
|
|
65
|
+
const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
|
|
66
|
+
// If the current part of the candidate is a "template" part
|
|
67
|
+
// Try to use the suffix of pattern to match the path
|
|
68
|
+
// {guid} ==> $
|
|
69
|
+
// {guid}:export ==> :export$
|
|
70
|
+
const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
|
|
71
|
+
if (!isMatched) {
|
|
72
|
+
found = false;
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
// If the candidate part is not a template and
|
|
78
|
+
// the parts don't match mark the candidate as not found
|
|
79
|
+
// to move on with the next candidate path.
|
|
80
|
+
if (candidateParts[i] !== pathParts[j]) {
|
|
81
|
+
found = false;
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
// We finished evaluating the current candidate parts
|
|
86
|
+
// Update the matched value if and only if we found the longer pattern
|
|
87
|
+
if (found && candidatePath.length > matchedLen) {
|
|
88
|
+
matchedLen = candidatePath.length;
|
|
89
|
+
matchedValue = value;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return matchedValue;
|
|
93
|
+
}
|
|
94
|
+
function getPathFromMapKey(mapKey) {
|
|
95
|
+
const pathStart = mapKey.indexOf("/");
|
|
96
|
+
return mapKey.slice(pathStart);
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=restorePollerHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAG1E,OAAO,EAGL,gBAAgB,GAEjB,MAAM,iBAAiB,CAAC;AAgBzB;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAsC,EACtC,eAAuB,EACvB,eAAiF,EACjF,OAAuC;;IAEvC,MAAM,YAAY,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC;IACpE,IAAI,CAAC,iBAAiB,IAAI,CAAC,aAAa,EAAE,CAAC;QACzC,MAAM,IAAI,KAAK,CACb,6BAA6B,eAAe,wBAAwB,eAAe,aAAf,eAAe,uBAAf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;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 { StorageActionsManagementClient } from \"./storageActionsManagementClient.js\";\nimport {\n _$deleteDeserialize,\n _updateDeserialize,\n _createDeserialize,\n} from \"./api/storageTasks/operations.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: StorageActionsManagementClient,\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.StorageActions/storageTasks/{storageTaskName}\":\n {\n deserializer: _$deleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageActions/storageTasks/{storageTaskName}\":\n { deserializer: _updateDeserialize, expectedStatuses: [\"200\", \"202\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageActions/storageTasks/{storageTaskName}\":\n {\n deserializer: _createDeserialize,\n expectedStatuses: [\"200\", \"201\", \"202\"],\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,137 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
4
|
+
import { createRestError } from "@azure-rest/core-client";
|
|
5
|
+
import { RestError } from "@azure/core-rest-pipeline";
|
|
6
|
+
/**
|
|
7
|
+
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
|
8
|
+
*/
|
|
9
|
+
export function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, expectedStatuses, options = {}) {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
const itemName = (_a = options.itemName) !== null && _a !== void 0 ? _a : "value";
|
|
12
|
+
const nextLinkName = (_b = options.nextLinkName) !== null && _b !== void 0 ? _b : "nextLink";
|
|
13
|
+
const pagedResult = {
|
|
14
|
+
getPage: async (pageLink) => {
|
|
15
|
+
const result = pageLink === undefined
|
|
16
|
+
? await getInitialResponse()
|
|
17
|
+
: await client.pathUnchecked(pageLink).get();
|
|
18
|
+
checkPagingRequest(result, expectedStatuses);
|
|
19
|
+
const results = await processResponseBody(result);
|
|
20
|
+
const nextLink = getNextLink(results, nextLinkName);
|
|
21
|
+
const values = getElements(results, itemName);
|
|
22
|
+
return {
|
|
23
|
+
page: values,
|
|
24
|
+
nextPageLink: nextLink,
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
byPage: (settings) => {
|
|
28
|
+
const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
|
|
29
|
+
return getPageAsyncIterator(pagedResult, {
|
|
30
|
+
pageLink: continuationToken,
|
|
31
|
+
});
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
return getPagedAsyncIterator(pagedResult);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* returns an async iterator that iterates over results. It also has a `byPage`
|
|
38
|
+
* method that returns pages of items at once.
|
|
39
|
+
*
|
|
40
|
+
* @param pagedResult - an object that specifies how to get pages.
|
|
41
|
+
* @returns a paged async iterator that iterates over results.
|
|
42
|
+
*/
|
|
43
|
+
function getPagedAsyncIterator(pagedResult) {
|
|
44
|
+
var _a;
|
|
45
|
+
const iter = getItemAsyncIterator(pagedResult);
|
|
46
|
+
return {
|
|
47
|
+
next() {
|
|
48
|
+
return iter.next();
|
|
49
|
+
},
|
|
50
|
+
[Symbol.asyncIterator]() {
|
|
51
|
+
return this;
|
|
52
|
+
},
|
|
53
|
+
byPage: (_a = pagedResult === null || pagedResult === void 0 ? void 0 : pagedResult.byPage) !== null && _a !== void 0 ? _a : ((settings) => {
|
|
54
|
+
const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
|
|
55
|
+
return getPageAsyncIterator(pagedResult, {
|
|
56
|
+
pageLink: continuationToken,
|
|
57
|
+
});
|
|
58
|
+
}),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function getItemAsyncIterator(pagedResult) {
|
|
62
|
+
return __asyncGenerator(this, arguments, function* getItemAsyncIterator_1() {
|
|
63
|
+
var _a, e_1, _b, _c;
|
|
64
|
+
const pages = getPageAsyncIterator(pagedResult);
|
|
65
|
+
try {
|
|
66
|
+
for (var _d = true, pages_1 = __asyncValues(pages), pages_1_1; pages_1_1 = yield __await(pages_1.next()), _a = pages_1_1.done, !_a; _d = true) {
|
|
67
|
+
_c = pages_1_1.value;
|
|
68
|
+
_d = false;
|
|
69
|
+
const page = _c;
|
|
70
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
74
|
+
finally {
|
|
75
|
+
try {
|
|
76
|
+
if (!_d && !_a && (_b = pages_1.return)) yield __await(_b.call(pages_1));
|
|
77
|
+
}
|
|
78
|
+
finally { if (e_1) throw e_1.error; }
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function getPageAsyncIterator(pagedResult_1) {
|
|
83
|
+
return __asyncGenerator(this, arguments, function* getPageAsyncIterator_1(pagedResult, options = {}) {
|
|
84
|
+
const { pageLink } = options;
|
|
85
|
+
let response = yield __await(pagedResult.getPage(pageLink !== null && pageLink !== void 0 ? pageLink : pagedResult.firstPageLink));
|
|
86
|
+
if (!response) {
|
|
87
|
+
return yield __await(void 0);
|
|
88
|
+
}
|
|
89
|
+
let result = response.page;
|
|
90
|
+
result.continuationToken = response.nextPageLink;
|
|
91
|
+
yield yield __await(result);
|
|
92
|
+
while (response.nextPageLink) {
|
|
93
|
+
response = yield __await(pagedResult.getPage(response.nextPageLink));
|
|
94
|
+
if (!response) {
|
|
95
|
+
return yield __await(void 0);
|
|
96
|
+
}
|
|
97
|
+
result = response.page;
|
|
98
|
+
result.continuationToken = response.nextPageLink;
|
|
99
|
+
yield yield __await(result);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Gets for the value of nextLink in the body
|
|
105
|
+
*/
|
|
106
|
+
function getNextLink(body, nextLinkName) {
|
|
107
|
+
if (!nextLinkName) {
|
|
108
|
+
return undefined;
|
|
109
|
+
}
|
|
110
|
+
const nextLink = body[nextLinkName];
|
|
111
|
+
if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) {
|
|
112
|
+
throw new RestError(`Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`);
|
|
113
|
+
}
|
|
114
|
+
if (nextLink === null) {
|
|
115
|
+
return undefined;
|
|
116
|
+
}
|
|
117
|
+
return nextLink;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Gets the elements of the current request in the body.
|
|
121
|
+
*/
|
|
122
|
+
function getElements(body, itemName) {
|
|
123
|
+
const value = body[itemName];
|
|
124
|
+
if (!Array.isArray(value)) {
|
|
125
|
+
throw new RestError(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
|
|
126
|
+
}
|
|
127
|
+
return value !== null && value !== void 0 ? value : [];
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Checks if a request failed
|
|
131
|
+
*/
|
|
132
|
+
function checkPagingRequest(response, expectedStatuses) {
|
|
133
|
+
if (!expectedStatuses.includes(response.status)) {
|
|
134
|
+
throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=pagingHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pagingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,OAAO,EAAU,eAAe,EAAyB,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AA+EtD;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAMrC,MAAc,EACd,kBAAgD,EAChD,mBAAgE,EAChE,gBAA0B,EAC1B,UAA0C,EAAE;;IAE5C,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC;IAC7C,MAAM,YAAY,GAAG,MAAA,OAAO,CAAC,YAAY,mCAAI,UAAU,CAAC;IACxD,MAAM,WAAW,GAAgD;QAC/D,OAAO,EAAE,KAAK,EAAE,QAAiB,EAAE,EAAE;YACnC,MAAM,MAAM,GACV,QAAQ,KAAK,SAAS;gBACpB,CAAC,CAAC,MAAM,kBAAkB,EAAE;gBAC5B,CAAC,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;YACjD,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;YAC7C,MAAM,OAAO,GAAG,MAAM,mBAAmB,CAAC,MAAmB,CAAC,CAAC;YAC/D,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;YACpD,MAAM,MA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B,YAAY,oDAAoD,OAAO,QAAQ,EAAE,CACnG,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAc,IAAa,EAAE,QAAgB;IAC/D,MAAM,KAAK,GAAI,IAAgC,CAAC,QAAQ,CAAQ,CAAC;IACjE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,SAAS,CACjB,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B,EAAE,gBAA0B;IACrF,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAChD,MAAM,eAAe,CACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { Client, createRestError, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { RestError } from \"@azure/core-rest-pipeline\";\n\n/**\n * Options for the byPage method\n */\nexport interface PageSettings {\n /**\n * A reference to a specific page to start iterating from.\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that describes a page of results.\n */\nexport type ContinuablePage<TElement, TPage = TElement[]> = TPage & {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n};\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\nexport interface PagedResult<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * Link to the first page of results.\n */\n firstPageLink?: string;\n /**\n * A method that returns a page of results.\n */\n getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => TElement[];\n}\n\n/**\n * Options for the paging helper\n */\nexport interface BuildPagedAsyncIteratorOptions {\n itemName?: string;\n nextLinkName?: string;\n}\n\n/**\n * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator\n */\nexport function buildPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n>(\n client: Client,\n getInitialResponse: () => PromiseLike<TResponse>,\n processResponseBody: (result: TResponse) => PromiseLike<unknown>,\n expectedStatuses: string[],\n options: BuildPagedAsyncIteratorOptions = {},\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const itemName = options.itemName ?? \"value\";\n const nextLinkName = options.nextLinkName ?? \"nextLink\";\n const pagedResult: PagedResult<TElement, TPage, TPageSettings> = {\n getPage: async (pageLink?: string) => {\n const result =\n pageLink === undefined\n ? await getInitialResponse()\n : await client.pathUnchecked(pageLink).get();\n checkPagingRequest(result, expectedStatuses);\n const results = await processResponseBody(result as TResponse);\n const nextLink = getNextLink(results, nextLinkName);\n const values = getElements<TElement>(results, itemName) as TPage;\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n byPage: (settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n },\n };\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\n\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TPageSettings>(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n ((settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n }),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n for await (const page of pages) {\n yield* page as unknown as TElement[];\n }\n}\n\nasync function* getPageAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n options: {\n pageLink?: string;\n } = {},\n): AsyncIterableIterator<ContinuablePage<TElement, TPage>> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);\n if (!response) {\n return;\n }\n let result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n }\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\" && nextLink !== null) {\n throw new RestError(\n `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`,\n );\n }\n\n if (nextLink === null) {\n return undefined;\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n if (!Array.isArray(value)) {\n throw new RestError(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse, expectedStatuses: string[]): void {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PollerLike, OperationState, ResourceLocationConfig } from "@azure/core-lro";
|
|
2
|
+
import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
3
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
4
|
+
export interface GetLongRunningPollerOptions<TResponse> {
|
|
5
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
6
|
+
updateIntervalInMs?: number;
|
|
7
|
+
/**
|
|
8
|
+
* The signal which can be used to abort requests.
|
|
9
|
+
*/
|
|
10
|
+
abortSignal?: AbortSignalLike;
|
|
11
|
+
/**
|
|
12
|
+
* The potential location of the result of the LRO if specified by the LRO extension in the swagger.
|
|
13
|
+
*/
|
|
14
|
+
resourceLocationConfig?: ResourceLocationConfig;
|
|
15
|
+
/**
|
|
16
|
+
* The original url of the LRO
|
|
17
|
+
* Should not be null when restoreFrom is set
|
|
18
|
+
*/
|
|
19
|
+
initialRequestUrl?: string;
|
|
20
|
+
/**
|
|
21
|
+
* A serialized poller which can be used to resume an existing paused Long-Running-Operation.
|
|
22
|
+
*/
|
|
23
|
+
restoreFrom?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The function to get the initial response
|
|
26
|
+
*/
|
|
27
|
+
getInitialResponse?: () => PromiseLike<TResponse>;
|
|
28
|
+
}
|
|
29
|
+
export declare function getLongRunningPoller<TResponse extends PathUncheckedResponse, TResult = void>(client: Client, processResponseBody: (result: TResponse) => Promise<TResult>, expectedStatuses: string[], options: GetLongRunningPollerOptions<TResponse>): PollerLike<OperationState<TResult>, TResult>;
|
|
30
|
+
//# sourceMappingURL=pollingHelpers.d.ts.map
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { createHttpPoller, } from "@azure/core-lro";
|
|
4
|
+
import { createRestError } from "@azure-rest/core-client";
|
|
5
|
+
export function getLongRunningPoller(client, processResponseBody, expectedStatuses, options) {
|
|
6
|
+
const { restoreFrom, getInitialResponse } = options;
|
|
7
|
+
if (!restoreFrom && !getInitialResponse) {
|
|
8
|
+
throw new Error("Either restoreFrom or getInitialResponse must be specified");
|
|
9
|
+
}
|
|
10
|
+
let initialResponse = undefined;
|
|
11
|
+
const pollAbortController = new AbortController();
|
|
12
|
+
const poller = {
|
|
13
|
+
sendInitialRequest: async () => {
|
|
14
|
+
if (!getInitialResponse) {
|
|
15
|
+
throw new Error("getInitialResponse is required when initializing a new poller");
|
|
16
|
+
}
|
|
17
|
+
initialResponse = await getInitialResponse();
|
|
18
|
+
return getLroResponse(initialResponse, expectedStatuses);
|
|
19
|
+
},
|
|
20
|
+
sendPollRequest: async (path, pollOptions) => {
|
|
21
|
+
var _a, _b, _c, _d, _e, _f;
|
|
22
|
+
// The poll request would both listen to the user provided abort signal and the poller's own abort signal
|
|
23
|
+
function abortListener() {
|
|
24
|
+
pollAbortController.abort();
|
|
25
|
+
}
|
|
26
|
+
const abortSignal = pollAbortController.signal;
|
|
27
|
+
if ((_a = options.abortSignal) === null || _a === void 0 ? void 0 : _a.aborted) {
|
|
28
|
+
pollAbortController.abort();
|
|
29
|
+
}
|
|
30
|
+
else if ((_b = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal) === null || _b === void 0 ? void 0 : _b.aborted) {
|
|
31
|
+
pollAbortController.abort();
|
|
32
|
+
}
|
|
33
|
+
else if (!abortSignal.aborted) {
|
|
34
|
+
(_c = options.abortSignal) === null || _c === void 0 ? void 0 : _c.addEventListener("abort", abortListener, {
|
|
35
|
+
once: true,
|
|
36
|
+
});
|
|
37
|
+
(_d = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal) === null || _d === void 0 ? void 0 : _d.addEventListener("abort", abortListener, {
|
|
38
|
+
once: true,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
let response;
|
|
42
|
+
try {
|
|
43
|
+
response = await client.pathUnchecked(path).get({ abortSignal });
|
|
44
|
+
}
|
|
45
|
+
finally {
|
|
46
|
+
(_e = options.abortSignal) === null || _e === void 0 ? void 0 : _e.removeEventListener("abort", abortListener);
|
|
47
|
+
(_f = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal) === null || _f === void 0 ? void 0 : _f.removeEventListener("abort", abortListener);
|
|
48
|
+
}
|
|
49
|
+
return getLroResponse(response, expectedStatuses);
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
return createHttpPoller(poller, {
|
|
53
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
54
|
+
resourceLocationConfig: options === null || options === void 0 ? void 0 : options.resourceLocationConfig,
|
|
55
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.restoreFrom,
|
|
56
|
+
processResult: (result) => {
|
|
57
|
+
return processResponseBody(result);
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Converts a Rest Client response to a response that the LRO implementation understands
|
|
63
|
+
* @param response - a rest client http response
|
|
64
|
+
* @param deserializeFn - deserialize function to convert Rest response to modular output
|
|
65
|
+
* @returns - An LRO response that the LRO implementation understands
|
|
66
|
+
*/
|
|
67
|
+
function getLroResponse(response, expectedStatuses) {
|
|
68
|
+
if (!expectedStatuses.includes(response.status)) {
|
|
69
|
+
throw createRestError(response);
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
flatResponse: response,
|
|
73
|
+
rawResponse: Object.assign(Object.assign({}, response), { statusCode: Number.parseInt(response.status), body: response.body }),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=pollingHelpers.js.map
|