@azure/arm-storageactions 1.0.0-beta.1 → 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 +4 -2
- package/LICENSE +3 -3
- package/README.md +29 -23
- 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 +12 -0
- package/dist/browser/index.js +6 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +2 -0
- package/dist/browser/models/index.js +4 -0
- package/dist/browser/models/index.js.map +1 -0
- 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/package.json +3 -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 +24 -0
- package/dist/browser/storageActionsManagementClient.js +24 -0
- package/dist/browser/storageActionsManagementClient.js.map +1 -0
- 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 +12 -0
- package/dist/commonjs/index.js +23 -0
- package/dist/commonjs/index.js.map +1 -0
- 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 +2 -0
- package/dist/commonjs/models/index.js +19 -0
- package/dist/commonjs/models/index.js.map +1 -0
- 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/package.json +3 -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 +24 -0
- package/dist/commonjs/storageActionsManagementClient.js +28 -0
- package/dist/commonjs/storageActionsManagementClient.js.map +1 -0
- package/{types → 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 +12 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -0
- 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/package.json +3 -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 +24 -0
- package/dist/esm/storageActionsManagementClient.js +24 -0
- package/dist/esm/storageActionsManagementClient.js.map +1 -0
- 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 +12 -0
- package/dist/react-native/index.js +6 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models/index.d.ts +2 -0
- package/dist/react-native/models/index.js +4 -0
- package/dist/react-native/models/index.js.map +1 -0
- 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/package.json +3 -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 +24 -0
- package/dist/react-native/storageActionsManagementClient.js +24 -0
- package/dist/react-native/storageActionsManagementClient.js.map +1 -0
- package/package.json +221 -86
- 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 +141 -179
- package/dist/index.js +0 -2533
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -53
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/storageTaskAssignmentListSample.d.ts +0 -2
- package/dist-esm/samples-dev/storageTaskAssignmentListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/storageTaskAssignmentListSample.js +0 -55
- package/dist-esm/samples-dev/storageTaskAssignmentListSample.js.map +0 -1
- package/dist-esm/samples-dev/storageTasksCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/storageTasksCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/storageTasksCreateSample.js +0 -64
- package/dist-esm/samples-dev/storageTasksCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/storageTasksDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/storageTasksDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/storageTasksDeleteSample.js +0 -39
- package/dist-esm/samples-dev/storageTasksDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/storageTasksGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/storageTasksGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/storageTasksGetSample.js +0 -39
- package/dist-esm/samples-dev/storageTasksGetSample.js.map +0 -1
- package/dist-esm/samples-dev/storageTasksListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/storageTasksListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/storageTasksListByResourceGroupSample.js +0 -54
- package/dist-esm/samples-dev/storageTasksListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/storageTasksListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/storageTasksListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/storageTasksListBySubscriptionSample.js +0 -53
- package/dist-esm/samples-dev/storageTasksListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/storageTasksPreviewActionsSample.d.ts +0 -2
- package/dist-esm/samples-dev/storageTasksPreviewActionsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/storageTasksPreviewActionsSample.js +0 -87
- package/dist-esm/samples-dev/storageTasksPreviewActionsSample.js.map +0 -1
- package/dist-esm/samples-dev/storageTasksReportListSample.d.ts +0 -2
- package/dist-esm/samples-dev/storageTasksReportListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/storageTasksReportListSample.js +0 -55
- package/dist-esm/samples-dev/storageTasksReportListSample.js.map +0 -1
- package/dist-esm/samples-dev/storageTasksUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/storageTasksUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/storageTasksUpdateSample.js +0 -63
- package/dist-esm/samples-dev/storageTasksUpdateSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -6
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js +0 -13
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.d.ts +0 -11
- package/dist-esm/src/lroImpl.d.ts.map +0 -1
- package/dist-esm/src/lroImpl.js +0 -21
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.d.ts +0 -720
- package/dist-esm/src/models/index.d.ts.map +0 -1
- package/dist-esm/src/models/index.js +0 -92
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.d.ts +0 -37
- package/dist-esm/src/models/mappers.d.ts.map +0 -1
- package/dist-esm/src/models/mappers.js +0 -1043
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.d.ts +0 -16
- package/dist-esm/src/models/parameters.d.ts.map +0 -1
- package/dist-esm/src/models/parameters.js +0 -143
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -5
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -12
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts +0 -32
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js +0 -133
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/storageTaskAssignmentOperations.d.ts +0 -44
- package/dist-esm/src/operations/storageTaskAssignmentOperations.d.ts.map +0 -1
- package/dist-esm/src/operations/storageTaskAssignmentOperations.js +0 -156
- package/dist-esm/src/operations/storageTaskAssignmentOperations.js.map +0 -1
- package/dist-esm/src/operations/storageTasks.d.ts +0 -135
- package/dist-esm/src/operations/storageTasks.d.ts.map +0 -1
- package/dist-esm/src/operations/storageTasks.js +0 -606
- package/dist-esm/src/operations/storageTasks.js.map +0 -1
- package/dist-esm/src/operations/storageTasksReport.d.ts +0 -44
- package/dist-esm/src/operations/storageTasksReport.d.ts.map +0 -1
- package/dist-esm/src/operations/storageTasksReport.js +0 -160
- package/dist-esm/src/operations/storageTasksReport.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -5
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -12
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts +0 -11
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js +0 -9
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentOperations.d.ts +0 -15
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentOperations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentOperations.js +0 -9
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentOperations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/storageTasks.d.ts +0 -99
- package/dist-esm/src/operationsInterfaces/storageTasks.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/storageTasks.js +0 -9
- package/dist-esm/src/operationsInterfaces/storageTasks.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/storageTasksReport.d.ts +0 -15
- package/dist-esm/src/operationsInterfaces/storageTasksReport.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/storageTasksReport.js +0 -9
- package/dist-esm/src/operationsInterfaces/storageTasksReport.js.map +0 -1
- package/dist-esm/src/pagingHelper.d.ts +0 -13
- package/dist-esm/src/pagingHelper.d.ts.map +0 -1
- package/dist-esm/src/pagingHelper.js +0 -32
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/src/storageActionsManagementClient.d.ts +0 -23
- package/dist-esm/src/storageActionsManagementClient.d.ts.map +0 -1
- package/dist-esm/src/storageActionsManagementClient.js +0 -104
- package/dist-esm/src/storageActionsManagementClient.js.map +0 -1
- package/dist-esm/test/storageactions_operations_test.spec.d.ts +0 -4
- package/dist-esm/test/storageactions_operations_test.spec.d.ts.map +0 -1
- package/dist-esm/test/storageactions_operations_test.spec.js +0 -135
- package/dist-esm/test/storageactions_operations_test.spec.js.map +0 -1
- package/src/index.ts +0 -13
- package/src/lroImpl.ts +0 -42
- package/src/models/index.ts +0 -818
- package/src/models/mappers.ts +0 -1094
- package/src/models/parameters.ts +0 -166
- package/src/operations/index.ts +0 -12
- package/src/operations/operations.ts +0 -149
- package/src/operations/storageTaskAssignmentOperations.ts +0 -205
- package/src/operations/storageTasks.ts +0 -791
- package/src/operations/storageTasksReport.ts +0 -207
- package/src/operationsInterfaces/index.ts +0 -12
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/storageTaskAssignmentOperations.ts +0 -31
- package/src/operationsInterfaces/storageTasks.ts +0 -180
- package/src/operationsInterfaces/storageTasksReport.ts +0 -31
- package/src/pagingHelper.ts +0 -39
- package/src/storageActionsManagementClient.ts +0 -158
- package/tsconfig.json +0 -33
- package/types/arm-storageactions.d.ts +0 -967
package/dist/index.js
DELETED
|
@@ -1,2533 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var tslib = require('tslib');
|
|
6
|
-
var coreClient = require('@azure/core-client');
|
|
7
|
-
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
|
-
var coreLro = require('@azure/core-lro');
|
|
9
|
-
|
|
10
|
-
function _interopNamespaceDefault(e) {
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n.default = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
|
28
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
|
29
|
-
|
|
30
|
-
/*
|
|
31
|
-
* Copyright (c) Microsoft Corporation.
|
|
32
|
-
* Licensed under the MIT License.
|
|
33
|
-
*
|
|
34
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
35
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
36
|
-
*/
|
|
37
|
-
const pageMap = new WeakMap();
|
|
38
|
-
/**
|
|
39
|
-
* Given the last `.value` produced by the `byPage` iterator,
|
|
40
|
-
* returns a continuation token that can be used to begin paging from
|
|
41
|
-
* that point later.
|
|
42
|
-
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
43
|
-
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
44
|
-
*/
|
|
45
|
-
function getContinuationToken(page) {
|
|
46
|
-
var _a;
|
|
47
|
-
if (typeof page !== "object" || page === null) {
|
|
48
|
-
return undefined;
|
|
49
|
-
}
|
|
50
|
-
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
51
|
-
}
|
|
52
|
-
function setContinuationToken(page, continuationToken) {
|
|
53
|
-
var _a;
|
|
54
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
58
|
-
pageInfo.continuationToken = continuationToken;
|
|
59
|
-
pageMap.set(page, pageInfo);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/*
|
|
63
|
-
* Copyright (c) Microsoft Corporation.
|
|
64
|
-
* Licensed under the MIT License.
|
|
65
|
-
*
|
|
66
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
67
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
68
|
-
*/
|
|
69
|
-
/** Known values of {@link Origin} that the service accepts. */
|
|
70
|
-
exports.KnownOrigin = void 0;
|
|
71
|
-
(function (KnownOrigin) {
|
|
72
|
-
/** User */
|
|
73
|
-
KnownOrigin["User"] = "user";
|
|
74
|
-
/** System */
|
|
75
|
-
KnownOrigin["System"] = "system";
|
|
76
|
-
/** UserSystem */
|
|
77
|
-
KnownOrigin["UserSystem"] = "user,system";
|
|
78
|
-
})(exports.KnownOrigin || (exports.KnownOrigin = {}));
|
|
79
|
-
/** Known values of {@link ActionType} that the service accepts. */
|
|
80
|
-
exports.KnownActionType = void 0;
|
|
81
|
-
(function (KnownActionType) {
|
|
82
|
-
/** Internal */
|
|
83
|
-
KnownActionType["Internal"] = "Internal";
|
|
84
|
-
})(exports.KnownActionType || (exports.KnownActionType = {}));
|
|
85
|
-
/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
|
|
86
|
-
exports.KnownManagedServiceIdentityType = void 0;
|
|
87
|
-
(function (KnownManagedServiceIdentityType) {
|
|
88
|
-
/** None */
|
|
89
|
-
KnownManagedServiceIdentityType["None"] = "None";
|
|
90
|
-
/** SystemAssigned */
|
|
91
|
-
KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
92
|
-
/** UserAssigned */
|
|
93
|
-
KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned";
|
|
94
|
-
/** SystemAssignedUserAssigned */
|
|
95
|
-
KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned,UserAssigned";
|
|
96
|
-
})(exports.KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = {}));
|
|
97
|
-
/** Known values of {@link StorageTaskOperationName} that the service accepts. */
|
|
98
|
-
exports.KnownStorageTaskOperationName = void 0;
|
|
99
|
-
(function (KnownStorageTaskOperationName) {
|
|
100
|
-
/** SetBlobTier */
|
|
101
|
-
KnownStorageTaskOperationName["SetBlobTier"] = "SetBlobTier";
|
|
102
|
-
/** SetBlobTags */
|
|
103
|
-
KnownStorageTaskOperationName["SetBlobTags"] = "SetBlobTags";
|
|
104
|
-
/** SetBlobImmutabilityPolicy */
|
|
105
|
-
KnownStorageTaskOperationName["SetBlobImmutabilityPolicy"] = "SetBlobImmutabilityPolicy";
|
|
106
|
-
/** SetBlobLegalHold */
|
|
107
|
-
KnownStorageTaskOperationName["SetBlobLegalHold"] = "SetBlobLegalHold";
|
|
108
|
-
/** SetBlobExpiry */
|
|
109
|
-
KnownStorageTaskOperationName["SetBlobExpiry"] = "SetBlobExpiry";
|
|
110
|
-
/** DeleteBlob */
|
|
111
|
-
KnownStorageTaskOperationName["DeleteBlob"] = "DeleteBlob";
|
|
112
|
-
/** UndeleteBlob */
|
|
113
|
-
KnownStorageTaskOperationName["UndeleteBlob"] = "UndeleteBlob";
|
|
114
|
-
})(exports.KnownStorageTaskOperationName || (exports.KnownStorageTaskOperationName = {}));
|
|
115
|
-
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
116
|
-
exports.KnownCreatedByType = void 0;
|
|
117
|
-
(function (KnownCreatedByType) {
|
|
118
|
-
/** User */
|
|
119
|
-
KnownCreatedByType["User"] = "User";
|
|
120
|
-
/** Application */
|
|
121
|
-
KnownCreatedByType["Application"] = "Application";
|
|
122
|
-
/** ManagedIdentity */
|
|
123
|
-
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
124
|
-
/** Key */
|
|
125
|
-
KnownCreatedByType["Key"] = "Key";
|
|
126
|
-
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
127
|
-
/** Known values of {@link RunStatusEnum} that the service accepts. */
|
|
128
|
-
exports.KnownRunStatusEnum = void 0;
|
|
129
|
-
(function (KnownRunStatusEnum) {
|
|
130
|
-
/** InProgress */
|
|
131
|
-
KnownRunStatusEnum["InProgress"] = "InProgress";
|
|
132
|
-
/** Finished */
|
|
133
|
-
KnownRunStatusEnum["Finished"] = "Finished";
|
|
134
|
-
})(exports.KnownRunStatusEnum || (exports.KnownRunStatusEnum = {}));
|
|
135
|
-
/** Known values of {@link RunResult} that the service accepts. */
|
|
136
|
-
exports.KnownRunResult = void 0;
|
|
137
|
-
(function (KnownRunResult) {
|
|
138
|
-
/** Succeeded */
|
|
139
|
-
KnownRunResult["Succeeded"] = "Succeeded";
|
|
140
|
-
/** Failed */
|
|
141
|
-
KnownRunResult["Failed"] = "Failed";
|
|
142
|
-
})(exports.KnownRunResult || (exports.KnownRunResult = {}));
|
|
143
|
-
/** Known values of {@link MatchedBlockName} that the service accepts. */
|
|
144
|
-
exports.KnownMatchedBlockName = void 0;
|
|
145
|
-
(function (KnownMatchedBlockName) {
|
|
146
|
-
/** If */
|
|
147
|
-
KnownMatchedBlockName["If"] = "If";
|
|
148
|
-
/** Else */
|
|
149
|
-
KnownMatchedBlockName["Else"] = "Else";
|
|
150
|
-
/** None */
|
|
151
|
-
KnownMatchedBlockName["None"] = "None";
|
|
152
|
-
})(exports.KnownMatchedBlockName || (exports.KnownMatchedBlockName = {}));
|
|
153
|
-
|
|
154
|
-
/*
|
|
155
|
-
* Copyright (c) Microsoft Corporation.
|
|
156
|
-
* Licensed under the MIT License.
|
|
157
|
-
*
|
|
158
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
159
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
160
|
-
*/
|
|
161
|
-
const OperationListResult = {
|
|
162
|
-
type: {
|
|
163
|
-
name: "Composite",
|
|
164
|
-
className: "OperationListResult",
|
|
165
|
-
modelProperties: {
|
|
166
|
-
value: {
|
|
167
|
-
serializedName: "value",
|
|
168
|
-
readOnly: true,
|
|
169
|
-
type: {
|
|
170
|
-
name: "Sequence",
|
|
171
|
-
element: {
|
|
172
|
-
type: {
|
|
173
|
-
name: "Composite",
|
|
174
|
-
className: "Operation",
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
},
|
|
178
|
-
},
|
|
179
|
-
nextLink: {
|
|
180
|
-
serializedName: "nextLink",
|
|
181
|
-
readOnly: true,
|
|
182
|
-
type: {
|
|
183
|
-
name: "String",
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
};
|
|
189
|
-
const Operation = {
|
|
190
|
-
type: {
|
|
191
|
-
name: "Composite",
|
|
192
|
-
className: "Operation",
|
|
193
|
-
modelProperties: {
|
|
194
|
-
name: {
|
|
195
|
-
serializedName: "name",
|
|
196
|
-
readOnly: true,
|
|
197
|
-
type: {
|
|
198
|
-
name: "String",
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
|
-
isDataAction: {
|
|
202
|
-
serializedName: "isDataAction",
|
|
203
|
-
readOnly: true,
|
|
204
|
-
type: {
|
|
205
|
-
name: "Boolean",
|
|
206
|
-
},
|
|
207
|
-
},
|
|
208
|
-
display: {
|
|
209
|
-
serializedName: "display",
|
|
210
|
-
type: {
|
|
211
|
-
name: "Composite",
|
|
212
|
-
className: "OperationDisplay",
|
|
213
|
-
},
|
|
214
|
-
},
|
|
215
|
-
origin: {
|
|
216
|
-
serializedName: "origin",
|
|
217
|
-
readOnly: true,
|
|
218
|
-
type: {
|
|
219
|
-
name: "String",
|
|
220
|
-
},
|
|
221
|
-
},
|
|
222
|
-
actionType: {
|
|
223
|
-
serializedName: "actionType",
|
|
224
|
-
readOnly: true,
|
|
225
|
-
type: {
|
|
226
|
-
name: "String",
|
|
227
|
-
},
|
|
228
|
-
},
|
|
229
|
-
},
|
|
230
|
-
},
|
|
231
|
-
};
|
|
232
|
-
const OperationDisplay = {
|
|
233
|
-
type: {
|
|
234
|
-
name: "Composite",
|
|
235
|
-
className: "OperationDisplay",
|
|
236
|
-
modelProperties: {
|
|
237
|
-
provider: {
|
|
238
|
-
serializedName: "provider",
|
|
239
|
-
readOnly: true,
|
|
240
|
-
type: {
|
|
241
|
-
name: "String",
|
|
242
|
-
},
|
|
243
|
-
},
|
|
244
|
-
resource: {
|
|
245
|
-
serializedName: "resource",
|
|
246
|
-
readOnly: true,
|
|
247
|
-
type: {
|
|
248
|
-
name: "String",
|
|
249
|
-
},
|
|
250
|
-
},
|
|
251
|
-
operation: {
|
|
252
|
-
serializedName: "operation",
|
|
253
|
-
readOnly: true,
|
|
254
|
-
type: {
|
|
255
|
-
name: "String",
|
|
256
|
-
},
|
|
257
|
-
},
|
|
258
|
-
description: {
|
|
259
|
-
serializedName: "description",
|
|
260
|
-
readOnly: true,
|
|
261
|
-
type: {
|
|
262
|
-
name: "String",
|
|
263
|
-
},
|
|
264
|
-
},
|
|
265
|
-
},
|
|
266
|
-
},
|
|
267
|
-
};
|
|
268
|
-
const ErrorResponse = {
|
|
269
|
-
type: {
|
|
270
|
-
name: "Composite",
|
|
271
|
-
className: "ErrorResponse",
|
|
272
|
-
modelProperties: {
|
|
273
|
-
error: {
|
|
274
|
-
serializedName: "error",
|
|
275
|
-
type: {
|
|
276
|
-
name: "Composite",
|
|
277
|
-
className: "ErrorDetail",
|
|
278
|
-
},
|
|
279
|
-
},
|
|
280
|
-
},
|
|
281
|
-
},
|
|
282
|
-
};
|
|
283
|
-
const ErrorDetail = {
|
|
284
|
-
type: {
|
|
285
|
-
name: "Composite",
|
|
286
|
-
className: "ErrorDetail",
|
|
287
|
-
modelProperties: {
|
|
288
|
-
code: {
|
|
289
|
-
serializedName: "code",
|
|
290
|
-
readOnly: true,
|
|
291
|
-
type: {
|
|
292
|
-
name: "String",
|
|
293
|
-
},
|
|
294
|
-
},
|
|
295
|
-
message: {
|
|
296
|
-
serializedName: "message",
|
|
297
|
-
readOnly: true,
|
|
298
|
-
type: {
|
|
299
|
-
name: "String",
|
|
300
|
-
},
|
|
301
|
-
},
|
|
302
|
-
target: {
|
|
303
|
-
serializedName: "target",
|
|
304
|
-
readOnly: true,
|
|
305
|
-
type: {
|
|
306
|
-
name: "String",
|
|
307
|
-
},
|
|
308
|
-
},
|
|
309
|
-
details: {
|
|
310
|
-
serializedName: "details",
|
|
311
|
-
readOnly: true,
|
|
312
|
-
type: {
|
|
313
|
-
name: "Sequence",
|
|
314
|
-
element: {
|
|
315
|
-
type: {
|
|
316
|
-
name: "Composite",
|
|
317
|
-
className: "ErrorDetail",
|
|
318
|
-
},
|
|
319
|
-
},
|
|
320
|
-
},
|
|
321
|
-
},
|
|
322
|
-
additionalInfo: {
|
|
323
|
-
serializedName: "additionalInfo",
|
|
324
|
-
readOnly: true,
|
|
325
|
-
type: {
|
|
326
|
-
name: "Sequence",
|
|
327
|
-
element: {
|
|
328
|
-
type: {
|
|
329
|
-
name: "Composite",
|
|
330
|
-
className: "ErrorAdditionalInfo",
|
|
331
|
-
},
|
|
332
|
-
},
|
|
333
|
-
},
|
|
334
|
-
},
|
|
335
|
-
},
|
|
336
|
-
},
|
|
337
|
-
};
|
|
338
|
-
const ErrorAdditionalInfo = {
|
|
339
|
-
type: {
|
|
340
|
-
name: "Composite",
|
|
341
|
-
className: "ErrorAdditionalInfo",
|
|
342
|
-
modelProperties: {
|
|
343
|
-
type: {
|
|
344
|
-
serializedName: "type",
|
|
345
|
-
readOnly: true,
|
|
346
|
-
type: {
|
|
347
|
-
name: "String",
|
|
348
|
-
},
|
|
349
|
-
},
|
|
350
|
-
info: {
|
|
351
|
-
serializedName: "info",
|
|
352
|
-
readOnly: true,
|
|
353
|
-
type: {
|
|
354
|
-
name: "Dictionary",
|
|
355
|
-
value: { type: { name: "any" } },
|
|
356
|
-
},
|
|
357
|
-
},
|
|
358
|
-
},
|
|
359
|
-
},
|
|
360
|
-
};
|
|
361
|
-
const ManagedServiceIdentity = {
|
|
362
|
-
type: {
|
|
363
|
-
name: "Composite",
|
|
364
|
-
className: "ManagedServiceIdentity",
|
|
365
|
-
modelProperties: {
|
|
366
|
-
principalId: {
|
|
367
|
-
serializedName: "principalId",
|
|
368
|
-
readOnly: true,
|
|
369
|
-
type: {
|
|
370
|
-
name: "Uuid",
|
|
371
|
-
},
|
|
372
|
-
},
|
|
373
|
-
tenantId: {
|
|
374
|
-
serializedName: "tenantId",
|
|
375
|
-
readOnly: true,
|
|
376
|
-
type: {
|
|
377
|
-
name: "Uuid",
|
|
378
|
-
},
|
|
379
|
-
},
|
|
380
|
-
type: {
|
|
381
|
-
serializedName: "type",
|
|
382
|
-
required: true,
|
|
383
|
-
type: {
|
|
384
|
-
name: "String",
|
|
385
|
-
},
|
|
386
|
-
},
|
|
387
|
-
userAssignedIdentities: {
|
|
388
|
-
serializedName: "userAssignedIdentities",
|
|
389
|
-
type: {
|
|
390
|
-
name: "Dictionary",
|
|
391
|
-
value: {
|
|
392
|
-
type: { name: "Composite", className: "UserAssignedIdentity" },
|
|
393
|
-
},
|
|
394
|
-
},
|
|
395
|
-
},
|
|
396
|
-
},
|
|
397
|
-
},
|
|
398
|
-
};
|
|
399
|
-
const UserAssignedIdentity = {
|
|
400
|
-
type: {
|
|
401
|
-
name: "Composite",
|
|
402
|
-
className: "UserAssignedIdentity",
|
|
403
|
-
modelProperties: {
|
|
404
|
-
principalId: {
|
|
405
|
-
serializedName: "principalId",
|
|
406
|
-
readOnly: true,
|
|
407
|
-
type: {
|
|
408
|
-
name: "Uuid",
|
|
409
|
-
},
|
|
410
|
-
},
|
|
411
|
-
clientId: {
|
|
412
|
-
serializedName: "clientId",
|
|
413
|
-
readOnly: true,
|
|
414
|
-
type: {
|
|
415
|
-
name: "Uuid",
|
|
416
|
-
},
|
|
417
|
-
},
|
|
418
|
-
},
|
|
419
|
-
},
|
|
420
|
-
};
|
|
421
|
-
const StorageTaskProperties = {
|
|
422
|
-
type: {
|
|
423
|
-
name: "Composite",
|
|
424
|
-
className: "StorageTaskProperties",
|
|
425
|
-
modelProperties: {
|
|
426
|
-
taskVersion: {
|
|
427
|
-
constraints: {
|
|
428
|
-
InclusiveMaximum: 1,
|
|
429
|
-
InclusiveMinimum: 1,
|
|
430
|
-
},
|
|
431
|
-
serializedName: "taskVersion",
|
|
432
|
-
readOnly: true,
|
|
433
|
-
type: {
|
|
434
|
-
name: "Number",
|
|
435
|
-
},
|
|
436
|
-
},
|
|
437
|
-
enabled: {
|
|
438
|
-
serializedName: "enabled",
|
|
439
|
-
required: true,
|
|
440
|
-
type: {
|
|
441
|
-
name: "Boolean",
|
|
442
|
-
},
|
|
443
|
-
},
|
|
444
|
-
description: {
|
|
445
|
-
serializedName: "description",
|
|
446
|
-
required: true,
|
|
447
|
-
type: {
|
|
448
|
-
name: "String",
|
|
449
|
-
},
|
|
450
|
-
},
|
|
451
|
-
action: {
|
|
452
|
-
serializedName: "action",
|
|
453
|
-
type: {
|
|
454
|
-
name: "Composite",
|
|
455
|
-
className: "StorageTaskAction",
|
|
456
|
-
},
|
|
457
|
-
},
|
|
458
|
-
provisioningState: {
|
|
459
|
-
serializedName: "provisioningState",
|
|
460
|
-
readOnly: true,
|
|
461
|
-
type: {
|
|
462
|
-
name: "Enum",
|
|
463
|
-
allowedValues: [
|
|
464
|
-
"ValidateSubscriptionQuotaBegin",
|
|
465
|
-
"ValidateSubscriptionQuotaEnd",
|
|
466
|
-
"Creating",
|
|
467
|
-
"Succeeded",
|
|
468
|
-
"Deleting",
|
|
469
|
-
"Canceled",
|
|
470
|
-
"Failed",
|
|
471
|
-
],
|
|
472
|
-
},
|
|
473
|
-
},
|
|
474
|
-
creationTimeInUtc: {
|
|
475
|
-
serializedName: "creationTimeInUtc",
|
|
476
|
-
readOnly: true,
|
|
477
|
-
type: {
|
|
478
|
-
name: "DateTime",
|
|
479
|
-
},
|
|
480
|
-
},
|
|
481
|
-
},
|
|
482
|
-
},
|
|
483
|
-
};
|
|
484
|
-
const StorageTaskAction = {
|
|
485
|
-
type: {
|
|
486
|
-
name: "Composite",
|
|
487
|
-
className: "StorageTaskAction",
|
|
488
|
-
modelProperties: {
|
|
489
|
-
if: {
|
|
490
|
-
serializedName: "if",
|
|
491
|
-
type: {
|
|
492
|
-
name: "Composite",
|
|
493
|
-
className: "IfCondition",
|
|
494
|
-
},
|
|
495
|
-
},
|
|
496
|
-
else: {
|
|
497
|
-
serializedName: "else",
|
|
498
|
-
type: {
|
|
499
|
-
name: "Composite",
|
|
500
|
-
className: "ElseCondition",
|
|
501
|
-
},
|
|
502
|
-
},
|
|
503
|
-
},
|
|
504
|
-
},
|
|
505
|
-
};
|
|
506
|
-
const IfCondition = {
|
|
507
|
-
type: {
|
|
508
|
-
name: "Composite",
|
|
509
|
-
className: "IfCondition",
|
|
510
|
-
modelProperties: {
|
|
511
|
-
condition: {
|
|
512
|
-
serializedName: "condition",
|
|
513
|
-
required: true,
|
|
514
|
-
type: {
|
|
515
|
-
name: "String",
|
|
516
|
-
},
|
|
517
|
-
},
|
|
518
|
-
operations: {
|
|
519
|
-
serializedName: "operations",
|
|
520
|
-
required: true,
|
|
521
|
-
type: {
|
|
522
|
-
name: "Sequence",
|
|
523
|
-
element: {
|
|
524
|
-
type: {
|
|
525
|
-
name: "Composite",
|
|
526
|
-
className: "StorageTaskOperation",
|
|
527
|
-
},
|
|
528
|
-
},
|
|
529
|
-
},
|
|
530
|
-
},
|
|
531
|
-
},
|
|
532
|
-
},
|
|
533
|
-
};
|
|
534
|
-
const StorageTaskOperation = {
|
|
535
|
-
type: {
|
|
536
|
-
name: "Composite",
|
|
537
|
-
className: "StorageTaskOperation",
|
|
538
|
-
modelProperties: {
|
|
539
|
-
name: {
|
|
540
|
-
serializedName: "name",
|
|
541
|
-
required: true,
|
|
542
|
-
type: {
|
|
543
|
-
name: "String",
|
|
544
|
-
},
|
|
545
|
-
},
|
|
546
|
-
parameters: {
|
|
547
|
-
serializedName: "parameters",
|
|
548
|
-
type: {
|
|
549
|
-
name: "Dictionary",
|
|
550
|
-
value: { type: { name: "String" } },
|
|
551
|
-
},
|
|
552
|
-
},
|
|
553
|
-
onSuccess: {
|
|
554
|
-
defaultValue: "continue",
|
|
555
|
-
isConstant: true,
|
|
556
|
-
serializedName: "onSuccess",
|
|
557
|
-
type: {
|
|
558
|
-
name: "String",
|
|
559
|
-
},
|
|
560
|
-
},
|
|
561
|
-
onFailure: {
|
|
562
|
-
defaultValue: "break",
|
|
563
|
-
isConstant: true,
|
|
564
|
-
serializedName: "onFailure",
|
|
565
|
-
type: {
|
|
566
|
-
name: "String",
|
|
567
|
-
},
|
|
568
|
-
},
|
|
569
|
-
},
|
|
570
|
-
},
|
|
571
|
-
};
|
|
572
|
-
const ElseCondition = {
|
|
573
|
-
type: {
|
|
574
|
-
name: "Composite",
|
|
575
|
-
className: "ElseCondition",
|
|
576
|
-
modelProperties: {
|
|
577
|
-
operations: {
|
|
578
|
-
serializedName: "operations",
|
|
579
|
-
required: true,
|
|
580
|
-
type: {
|
|
581
|
-
name: "Sequence",
|
|
582
|
-
element: {
|
|
583
|
-
type: {
|
|
584
|
-
name: "Composite",
|
|
585
|
-
className: "StorageTaskOperation",
|
|
586
|
-
},
|
|
587
|
-
},
|
|
588
|
-
},
|
|
589
|
-
},
|
|
590
|
-
},
|
|
591
|
-
},
|
|
592
|
-
};
|
|
593
|
-
const Resource = {
|
|
594
|
-
type: {
|
|
595
|
-
name: "Composite",
|
|
596
|
-
className: "Resource",
|
|
597
|
-
modelProperties: {
|
|
598
|
-
id: {
|
|
599
|
-
serializedName: "id",
|
|
600
|
-
readOnly: true,
|
|
601
|
-
type: {
|
|
602
|
-
name: "String",
|
|
603
|
-
},
|
|
604
|
-
},
|
|
605
|
-
name: {
|
|
606
|
-
serializedName: "name",
|
|
607
|
-
readOnly: true,
|
|
608
|
-
type: {
|
|
609
|
-
name: "String",
|
|
610
|
-
},
|
|
611
|
-
},
|
|
612
|
-
type: {
|
|
613
|
-
serializedName: "type",
|
|
614
|
-
readOnly: true,
|
|
615
|
-
type: {
|
|
616
|
-
name: "String",
|
|
617
|
-
},
|
|
618
|
-
},
|
|
619
|
-
systemData: {
|
|
620
|
-
serializedName: "systemData",
|
|
621
|
-
type: {
|
|
622
|
-
name: "Composite",
|
|
623
|
-
className: "SystemData",
|
|
624
|
-
},
|
|
625
|
-
},
|
|
626
|
-
},
|
|
627
|
-
},
|
|
628
|
-
};
|
|
629
|
-
const SystemData = {
|
|
630
|
-
type: {
|
|
631
|
-
name: "Composite",
|
|
632
|
-
className: "SystemData",
|
|
633
|
-
modelProperties: {
|
|
634
|
-
createdBy: {
|
|
635
|
-
serializedName: "createdBy",
|
|
636
|
-
type: {
|
|
637
|
-
name: "String",
|
|
638
|
-
},
|
|
639
|
-
},
|
|
640
|
-
createdByType: {
|
|
641
|
-
serializedName: "createdByType",
|
|
642
|
-
type: {
|
|
643
|
-
name: "String",
|
|
644
|
-
},
|
|
645
|
-
},
|
|
646
|
-
createdAt: {
|
|
647
|
-
serializedName: "createdAt",
|
|
648
|
-
type: {
|
|
649
|
-
name: "DateTime",
|
|
650
|
-
},
|
|
651
|
-
},
|
|
652
|
-
lastModifiedBy: {
|
|
653
|
-
serializedName: "lastModifiedBy",
|
|
654
|
-
type: {
|
|
655
|
-
name: "String",
|
|
656
|
-
},
|
|
657
|
-
},
|
|
658
|
-
lastModifiedByType: {
|
|
659
|
-
serializedName: "lastModifiedByType",
|
|
660
|
-
type: {
|
|
661
|
-
name: "String",
|
|
662
|
-
},
|
|
663
|
-
},
|
|
664
|
-
lastModifiedAt: {
|
|
665
|
-
serializedName: "lastModifiedAt",
|
|
666
|
-
type: {
|
|
667
|
-
name: "DateTime",
|
|
668
|
-
},
|
|
669
|
-
},
|
|
670
|
-
},
|
|
671
|
-
},
|
|
672
|
-
};
|
|
673
|
-
const StorageTaskUpdateParameters = {
|
|
674
|
-
type: {
|
|
675
|
-
name: "Composite",
|
|
676
|
-
className: "StorageTaskUpdateParameters",
|
|
677
|
-
modelProperties: {
|
|
678
|
-
identity: {
|
|
679
|
-
serializedName: "identity",
|
|
680
|
-
type: {
|
|
681
|
-
name: "Composite",
|
|
682
|
-
className: "ManagedServiceIdentity",
|
|
683
|
-
},
|
|
684
|
-
},
|
|
685
|
-
tags: {
|
|
686
|
-
serializedName: "tags",
|
|
687
|
-
type: {
|
|
688
|
-
name: "Dictionary",
|
|
689
|
-
value: { type: { name: "String" } },
|
|
690
|
-
},
|
|
691
|
-
},
|
|
692
|
-
properties: {
|
|
693
|
-
serializedName: "properties",
|
|
694
|
-
type: {
|
|
695
|
-
name: "Composite",
|
|
696
|
-
className: "StorageTaskProperties",
|
|
697
|
-
},
|
|
698
|
-
},
|
|
699
|
-
},
|
|
700
|
-
},
|
|
701
|
-
};
|
|
702
|
-
const StorageTasksListResult = {
|
|
703
|
-
type: {
|
|
704
|
-
name: "Composite",
|
|
705
|
-
className: "StorageTasksListResult",
|
|
706
|
-
modelProperties: {
|
|
707
|
-
value: {
|
|
708
|
-
serializedName: "value",
|
|
709
|
-
readOnly: true,
|
|
710
|
-
type: {
|
|
711
|
-
name: "Sequence",
|
|
712
|
-
element: {
|
|
713
|
-
type: {
|
|
714
|
-
name: "Composite",
|
|
715
|
-
className: "StorageTask",
|
|
716
|
-
},
|
|
717
|
-
},
|
|
718
|
-
},
|
|
719
|
-
},
|
|
720
|
-
nextLink: {
|
|
721
|
-
serializedName: "nextLink",
|
|
722
|
-
readOnly: true,
|
|
723
|
-
type: {
|
|
724
|
-
name: "String",
|
|
725
|
-
},
|
|
726
|
-
},
|
|
727
|
-
},
|
|
728
|
-
},
|
|
729
|
-
};
|
|
730
|
-
const StorageTaskAssignmentsListResult = {
|
|
731
|
-
type: {
|
|
732
|
-
name: "Composite",
|
|
733
|
-
className: "StorageTaskAssignmentsListResult",
|
|
734
|
-
modelProperties: {
|
|
735
|
-
value: {
|
|
736
|
-
serializedName: "value",
|
|
737
|
-
readOnly: true,
|
|
738
|
-
type: {
|
|
739
|
-
name: "Sequence",
|
|
740
|
-
element: {
|
|
741
|
-
type: {
|
|
742
|
-
name: "Composite",
|
|
743
|
-
className: "StorageTaskAssignment",
|
|
744
|
-
},
|
|
745
|
-
},
|
|
746
|
-
},
|
|
747
|
-
},
|
|
748
|
-
nextLink: {
|
|
749
|
-
serializedName: "nextLink",
|
|
750
|
-
readOnly: true,
|
|
751
|
-
type: {
|
|
752
|
-
name: "String",
|
|
753
|
-
},
|
|
754
|
-
},
|
|
755
|
-
},
|
|
756
|
-
},
|
|
757
|
-
};
|
|
758
|
-
const StorageTaskAssignment = {
|
|
759
|
-
type: {
|
|
760
|
-
name: "Composite",
|
|
761
|
-
className: "StorageTaskAssignment",
|
|
762
|
-
modelProperties: {
|
|
763
|
-
id: {
|
|
764
|
-
serializedName: "id",
|
|
765
|
-
readOnly: true,
|
|
766
|
-
type: {
|
|
767
|
-
name: "String",
|
|
768
|
-
},
|
|
769
|
-
},
|
|
770
|
-
},
|
|
771
|
-
},
|
|
772
|
-
};
|
|
773
|
-
const StorageTaskReportSummary = {
|
|
774
|
-
type: {
|
|
775
|
-
name: "Composite",
|
|
776
|
-
className: "StorageTaskReportSummary",
|
|
777
|
-
modelProperties: {
|
|
778
|
-
value: {
|
|
779
|
-
serializedName: "value",
|
|
780
|
-
readOnly: true,
|
|
781
|
-
type: {
|
|
782
|
-
name: "Sequence",
|
|
783
|
-
element: {
|
|
784
|
-
type: {
|
|
785
|
-
name: "Composite",
|
|
786
|
-
className: "StorageTaskReportInstance",
|
|
787
|
-
},
|
|
788
|
-
},
|
|
789
|
-
},
|
|
790
|
-
},
|
|
791
|
-
nextLink: {
|
|
792
|
-
serializedName: "nextLink",
|
|
793
|
-
readOnly: true,
|
|
794
|
-
type: {
|
|
795
|
-
name: "String",
|
|
796
|
-
},
|
|
797
|
-
},
|
|
798
|
-
},
|
|
799
|
-
},
|
|
800
|
-
};
|
|
801
|
-
const StorageTaskReportProperties = {
|
|
802
|
-
type: {
|
|
803
|
-
name: "Composite",
|
|
804
|
-
className: "StorageTaskReportProperties",
|
|
805
|
-
modelProperties: {
|
|
806
|
-
taskAssignmentId: {
|
|
807
|
-
serializedName: "taskAssignmentId",
|
|
808
|
-
readOnly: true,
|
|
809
|
-
type: {
|
|
810
|
-
name: "String",
|
|
811
|
-
},
|
|
812
|
-
},
|
|
813
|
-
storageAccountId: {
|
|
814
|
-
serializedName: "storageAccountId",
|
|
815
|
-
readOnly: true,
|
|
816
|
-
type: {
|
|
817
|
-
name: "String",
|
|
818
|
-
},
|
|
819
|
-
},
|
|
820
|
-
startTime: {
|
|
821
|
-
serializedName: "startTime",
|
|
822
|
-
readOnly: true,
|
|
823
|
-
type: {
|
|
824
|
-
name: "String",
|
|
825
|
-
},
|
|
826
|
-
},
|
|
827
|
-
finishTime: {
|
|
828
|
-
serializedName: "finishTime",
|
|
829
|
-
readOnly: true,
|
|
830
|
-
type: {
|
|
831
|
-
name: "String",
|
|
832
|
-
},
|
|
833
|
-
},
|
|
834
|
-
objectsTargetedCount: {
|
|
835
|
-
serializedName: "objectsTargetedCount",
|
|
836
|
-
readOnly: true,
|
|
837
|
-
type: {
|
|
838
|
-
name: "String",
|
|
839
|
-
},
|
|
840
|
-
},
|
|
841
|
-
objectsOperatedOnCount: {
|
|
842
|
-
serializedName: "objectsOperatedOnCount",
|
|
843
|
-
readOnly: true,
|
|
844
|
-
type: {
|
|
845
|
-
name: "String",
|
|
846
|
-
},
|
|
847
|
-
},
|
|
848
|
-
objectFailedCount: {
|
|
849
|
-
serializedName: "objectFailedCount",
|
|
850
|
-
readOnly: true,
|
|
851
|
-
type: {
|
|
852
|
-
name: "String",
|
|
853
|
-
},
|
|
854
|
-
},
|
|
855
|
-
objectsSucceededCount: {
|
|
856
|
-
serializedName: "objectsSucceededCount",
|
|
857
|
-
readOnly: true,
|
|
858
|
-
type: {
|
|
859
|
-
name: "String",
|
|
860
|
-
},
|
|
861
|
-
},
|
|
862
|
-
runStatusError: {
|
|
863
|
-
serializedName: "runStatusError",
|
|
864
|
-
readOnly: true,
|
|
865
|
-
type: {
|
|
866
|
-
name: "String",
|
|
867
|
-
},
|
|
868
|
-
},
|
|
869
|
-
runStatusEnum: {
|
|
870
|
-
serializedName: "runStatusEnum",
|
|
871
|
-
readOnly: true,
|
|
872
|
-
type: {
|
|
873
|
-
name: "String",
|
|
874
|
-
},
|
|
875
|
-
},
|
|
876
|
-
summaryReportPath: {
|
|
877
|
-
serializedName: "summaryReportPath",
|
|
878
|
-
readOnly: true,
|
|
879
|
-
type: {
|
|
880
|
-
name: "String",
|
|
881
|
-
},
|
|
882
|
-
},
|
|
883
|
-
taskId: {
|
|
884
|
-
serializedName: "taskId",
|
|
885
|
-
readOnly: true,
|
|
886
|
-
type: {
|
|
887
|
-
name: "String",
|
|
888
|
-
},
|
|
889
|
-
},
|
|
890
|
-
taskVersion: {
|
|
891
|
-
serializedName: "taskVersion",
|
|
892
|
-
readOnly: true,
|
|
893
|
-
type: {
|
|
894
|
-
name: "String",
|
|
895
|
-
},
|
|
896
|
-
},
|
|
897
|
-
runResult: {
|
|
898
|
-
serializedName: "runResult",
|
|
899
|
-
readOnly: true,
|
|
900
|
-
type: {
|
|
901
|
-
name: "String",
|
|
902
|
-
},
|
|
903
|
-
},
|
|
904
|
-
},
|
|
905
|
-
},
|
|
906
|
-
};
|
|
907
|
-
const StorageTaskPreviewAction = {
|
|
908
|
-
type: {
|
|
909
|
-
name: "Composite",
|
|
910
|
-
className: "StorageTaskPreviewAction",
|
|
911
|
-
modelProperties: {
|
|
912
|
-
properties: {
|
|
913
|
-
serializedName: "properties",
|
|
914
|
-
type: {
|
|
915
|
-
name: "Composite",
|
|
916
|
-
className: "StorageTaskPreviewActionProperties",
|
|
917
|
-
},
|
|
918
|
-
},
|
|
919
|
-
},
|
|
920
|
-
},
|
|
921
|
-
};
|
|
922
|
-
const StorageTaskPreviewActionProperties = {
|
|
923
|
-
type: {
|
|
924
|
-
name: "Composite",
|
|
925
|
-
className: "StorageTaskPreviewActionProperties",
|
|
926
|
-
modelProperties: {
|
|
927
|
-
container: {
|
|
928
|
-
serializedName: "container",
|
|
929
|
-
type: {
|
|
930
|
-
name: "Composite",
|
|
931
|
-
className: "StorageTaskPreviewContainerProperties",
|
|
932
|
-
},
|
|
933
|
-
},
|
|
934
|
-
blobs: {
|
|
935
|
-
serializedName: "blobs",
|
|
936
|
-
required: true,
|
|
937
|
-
type: {
|
|
938
|
-
name: "Sequence",
|
|
939
|
-
element: {
|
|
940
|
-
type: {
|
|
941
|
-
name: "Composite",
|
|
942
|
-
className: "StorageTaskPreviewBlobProperties",
|
|
943
|
-
},
|
|
944
|
-
},
|
|
945
|
-
},
|
|
946
|
-
},
|
|
947
|
-
action: {
|
|
948
|
-
serializedName: "action",
|
|
949
|
-
type: {
|
|
950
|
-
name: "Composite",
|
|
951
|
-
className: "StorageTaskPreviewActionCondition",
|
|
952
|
-
},
|
|
953
|
-
},
|
|
954
|
-
},
|
|
955
|
-
},
|
|
956
|
-
};
|
|
957
|
-
const StorageTaskPreviewContainerProperties = {
|
|
958
|
-
type: {
|
|
959
|
-
name: "Composite",
|
|
960
|
-
className: "StorageTaskPreviewContainerProperties",
|
|
961
|
-
modelProperties: {
|
|
962
|
-
name: {
|
|
963
|
-
serializedName: "name",
|
|
964
|
-
type: {
|
|
965
|
-
name: "String",
|
|
966
|
-
},
|
|
967
|
-
},
|
|
968
|
-
metadata: {
|
|
969
|
-
serializedName: "metadata",
|
|
970
|
-
type: {
|
|
971
|
-
name: "Sequence",
|
|
972
|
-
element: {
|
|
973
|
-
type: {
|
|
974
|
-
name: "Composite",
|
|
975
|
-
className: "StorageTaskPreviewKeyValueProperties",
|
|
976
|
-
},
|
|
977
|
-
},
|
|
978
|
-
},
|
|
979
|
-
},
|
|
980
|
-
},
|
|
981
|
-
},
|
|
982
|
-
};
|
|
983
|
-
const StorageTaskPreviewKeyValueProperties = {
|
|
984
|
-
type: {
|
|
985
|
-
name: "Composite",
|
|
986
|
-
className: "StorageTaskPreviewKeyValueProperties",
|
|
987
|
-
modelProperties: {
|
|
988
|
-
key: {
|
|
989
|
-
serializedName: "key",
|
|
990
|
-
type: {
|
|
991
|
-
name: "String",
|
|
992
|
-
},
|
|
993
|
-
},
|
|
994
|
-
value: {
|
|
995
|
-
serializedName: "value",
|
|
996
|
-
type: {
|
|
997
|
-
name: "String",
|
|
998
|
-
},
|
|
999
|
-
},
|
|
1000
|
-
},
|
|
1001
|
-
},
|
|
1002
|
-
};
|
|
1003
|
-
const StorageTaskPreviewBlobProperties = {
|
|
1004
|
-
type: {
|
|
1005
|
-
name: "Composite",
|
|
1006
|
-
className: "StorageTaskPreviewBlobProperties",
|
|
1007
|
-
modelProperties: {
|
|
1008
|
-
name: {
|
|
1009
|
-
serializedName: "name",
|
|
1010
|
-
type: {
|
|
1011
|
-
name: "String",
|
|
1012
|
-
},
|
|
1013
|
-
},
|
|
1014
|
-
properties: {
|
|
1015
|
-
serializedName: "properties",
|
|
1016
|
-
type: {
|
|
1017
|
-
name: "Sequence",
|
|
1018
|
-
element: {
|
|
1019
|
-
type: {
|
|
1020
|
-
name: "Composite",
|
|
1021
|
-
className: "StorageTaskPreviewKeyValueProperties",
|
|
1022
|
-
},
|
|
1023
|
-
},
|
|
1024
|
-
},
|
|
1025
|
-
},
|
|
1026
|
-
metadata: {
|
|
1027
|
-
serializedName: "metadata",
|
|
1028
|
-
type: {
|
|
1029
|
-
name: "Sequence",
|
|
1030
|
-
element: {
|
|
1031
|
-
type: {
|
|
1032
|
-
name: "Composite",
|
|
1033
|
-
className: "StorageTaskPreviewKeyValueProperties",
|
|
1034
|
-
},
|
|
1035
|
-
},
|
|
1036
|
-
},
|
|
1037
|
-
},
|
|
1038
|
-
tags: {
|
|
1039
|
-
serializedName: "tags",
|
|
1040
|
-
type: {
|
|
1041
|
-
name: "Sequence",
|
|
1042
|
-
element: {
|
|
1043
|
-
type: {
|
|
1044
|
-
name: "Composite",
|
|
1045
|
-
className: "StorageTaskPreviewKeyValueProperties",
|
|
1046
|
-
},
|
|
1047
|
-
},
|
|
1048
|
-
},
|
|
1049
|
-
},
|
|
1050
|
-
matchedBlock: {
|
|
1051
|
-
serializedName: "matchedBlock",
|
|
1052
|
-
readOnly: true,
|
|
1053
|
-
type: {
|
|
1054
|
-
name: "String",
|
|
1055
|
-
},
|
|
1056
|
-
},
|
|
1057
|
-
},
|
|
1058
|
-
},
|
|
1059
|
-
};
|
|
1060
|
-
const StorageTaskPreviewActionCondition = {
|
|
1061
|
-
type: {
|
|
1062
|
-
name: "Composite",
|
|
1063
|
-
className: "StorageTaskPreviewActionCondition",
|
|
1064
|
-
modelProperties: {
|
|
1065
|
-
if: {
|
|
1066
|
-
serializedName: "if",
|
|
1067
|
-
type: {
|
|
1068
|
-
name: "Composite",
|
|
1069
|
-
className: "StorageTaskPreviewActionIfCondition",
|
|
1070
|
-
},
|
|
1071
|
-
},
|
|
1072
|
-
elseBlockExists: {
|
|
1073
|
-
serializedName: "elseBlockExists",
|
|
1074
|
-
required: true,
|
|
1075
|
-
type: {
|
|
1076
|
-
name: "Boolean",
|
|
1077
|
-
},
|
|
1078
|
-
},
|
|
1079
|
-
},
|
|
1080
|
-
},
|
|
1081
|
-
};
|
|
1082
|
-
const StorageTaskPreviewActionIfCondition = {
|
|
1083
|
-
type: {
|
|
1084
|
-
name: "Composite",
|
|
1085
|
-
className: "StorageTaskPreviewActionIfCondition",
|
|
1086
|
-
modelProperties: {
|
|
1087
|
-
condition: {
|
|
1088
|
-
serializedName: "condition",
|
|
1089
|
-
type: {
|
|
1090
|
-
name: "String",
|
|
1091
|
-
},
|
|
1092
|
-
},
|
|
1093
|
-
},
|
|
1094
|
-
},
|
|
1095
|
-
};
|
|
1096
|
-
const TrackedResource = {
|
|
1097
|
-
type: {
|
|
1098
|
-
name: "Composite",
|
|
1099
|
-
className: "TrackedResource",
|
|
1100
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
1101
|
-
serializedName: "tags",
|
|
1102
|
-
type: {
|
|
1103
|
-
name: "Dictionary",
|
|
1104
|
-
value: { type: { name: "String" } },
|
|
1105
|
-
},
|
|
1106
|
-
}, location: {
|
|
1107
|
-
serializedName: "location",
|
|
1108
|
-
required: true,
|
|
1109
|
-
type: {
|
|
1110
|
-
name: "String",
|
|
1111
|
-
},
|
|
1112
|
-
} }),
|
|
1113
|
-
},
|
|
1114
|
-
};
|
|
1115
|
-
const ProxyResource = {
|
|
1116
|
-
type: {
|
|
1117
|
-
name: "Composite",
|
|
1118
|
-
className: "ProxyResource",
|
|
1119
|
-
modelProperties: Object.assign({}, Resource.type.modelProperties),
|
|
1120
|
-
},
|
|
1121
|
-
};
|
|
1122
|
-
const StorageTask = {
|
|
1123
|
-
type: {
|
|
1124
|
-
name: "Composite",
|
|
1125
|
-
className: "StorageTask",
|
|
1126
|
-
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
|
|
1127
|
-
serializedName: "identity",
|
|
1128
|
-
type: {
|
|
1129
|
-
name: "Composite",
|
|
1130
|
-
className: "ManagedServiceIdentity",
|
|
1131
|
-
},
|
|
1132
|
-
}, properties: {
|
|
1133
|
-
serializedName: "properties",
|
|
1134
|
-
type: {
|
|
1135
|
-
name: "Composite",
|
|
1136
|
-
className: "StorageTaskProperties",
|
|
1137
|
-
},
|
|
1138
|
-
} }),
|
|
1139
|
-
},
|
|
1140
|
-
};
|
|
1141
|
-
const StorageTaskReportInstance = {
|
|
1142
|
-
type: {
|
|
1143
|
-
name: "Composite",
|
|
1144
|
-
className: "StorageTaskReportInstance",
|
|
1145
|
-
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
|
|
1146
|
-
serializedName: "properties",
|
|
1147
|
-
type: {
|
|
1148
|
-
name: "Composite",
|
|
1149
|
-
className: "StorageTaskReportProperties",
|
|
1150
|
-
},
|
|
1151
|
-
} }),
|
|
1152
|
-
},
|
|
1153
|
-
};
|
|
1154
|
-
const StorageTasksCreateHeaders = {
|
|
1155
|
-
type: {
|
|
1156
|
-
name: "Composite",
|
|
1157
|
-
className: "StorageTasksCreateHeaders",
|
|
1158
|
-
modelProperties: {
|
|
1159
|
-
location: {
|
|
1160
|
-
serializedName: "location",
|
|
1161
|
-
type: {
|
|
1162
|
-
name: "String",
|
|
1163
|
-
},
|
|
1164
|
-
},
|
|
1165
|
-
},
|
|
1166
|
-
},
|
|
1167
|
-
};
|
|
1168
|
-
const StorageTasksDeleteHeaders = {
|
|
1169
|
-
type: {
|
|
1170
|
-
name: "Composite",
|
|
1171
|
-
className: "StorageTasksDeleteHeaders",
|
|
1172
|
-
modelProperties: {
|
|
1173
|
-
location: {
|
|
1174
|
-
serializedName: "location",
|
|
1175
|
-
type: {
|
|
1176
|
-
name: "String",
|
|
1177
|
-
},
|
|
1178
|
-
},
|
|
1179
|
-
},
|
|
1180
|
-
},
|
|
1181
|
-
};
|
|
1182
|
-
const StorageTasksUpdateHeaders = {
|
|
1183
|
-
type: {
|
|
1184
|
-
name: "Composite",
|
|
1185
|
-
className: "StorageTasksUpdateHeaders",
|
|
1186
|
-
modelProperties: {
|
|
1187
|
-
location: {
|
|
1188
|
-
serializedName: "location",
|
|
1189
|
-
type: {
|
|
1190
|
-
name: "String",
|
|
1191
|
-
},
|
|
1192
|
-
},
|
|
1193
|
-
},
|
|
1194
|
-
},
|
|
1195
|
-
};
|
|
1196
|
-
|
|
1197
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1198
|
-
__proto__: null,
|
|
1199
|
-
ElseCondition: ElseCondition,
|
|
1200
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1201
|
-
ErrorDetail: ErrorDetail,
|
|
1202
|
-
ErrorResponse: ErrorResponse,
|
|
1203
|
-
IfCondition: IfCondition,
|
|
1204
|
-
ManagedServiceIdentity: ManagedServiceIdentity,
|
|
1205
|
-
Operation: Operation,
|
|
1206
|
-
OperationDisplay: OperationDisplay,
|
|
1207
|
-
OperationListResult: OperationListResult,
|
|
1208
|
-
ProxyResource: ProxyResource,
|
|
1209
|
-
Resource: Resource,
|
|
1210
|
-
StorageTask: StorageTask,
|
|
1211
|
-
StorageTaskAction: StorageTaskAction,
|
|
1212
|
-
StorageTaskAssignment: StorageTaskAssignment,
|
|
1213
|
-
StorageTaskAssignmentsListResult: StorageTaskAssignmentsListResult,
|
|
1214
|
-
StorageTaskOperation: StorageTaskOperation,
|
|
1215
|
-
StorageTaskPreviewAction: StorageTaskPreviewAction,
|
|
1216
|
-
StorageTaskPreviewActionCondition: StorageTaskPreviewActionCondition,
|
|
1217
|
-
StorageTaskPreviewActionIfCondition: StorageTaskPreviewActionIfCondition,
|
|
1218
|
-
StorageTaskPreviewActionProperties: StorageTaskPreviewActionProperties,
|
|
1219
|
-
StorageTaskPreviewBlobProperties: StorageTaskPreviewBlobProperties,
|
|
1220
|
-
StorageTaskPreviewContainerProperties: StorageTaskPreviewContainerProperties,
|
|
1221
|
-
StorageTaskPreviewKeyValueProperties: StorageTaskPreviewKeyValueProperties,
|
|
1222
|
-
StorageTaskProperties: StorageTaskProperties,
|
|
1223
|
-
StorageTaskReportInstance: StorageTaskReportInstance,
|
|
1224
|
-
StorageTaskReportProperties: StorageTaskReportProperties,
|
|
1225
|
-
StorageTaskReportSummary: StorageTaskReportSummary,
|
|
1226
|
-
StorageTaskUpdateParameters: StorageTaskUpdateParameters,
|
|
1227
|
-
StorageTasksCreateHeaders: StorageTasksCreateHeaders,
|
|
1228
|
-
StorageTasksDeleteHeaders: StorageTasksDeleteHeaders,
|
|
1229
|
-
StorageTasksListResult: StorageTasksListResult,
|
|
1230
|
-
StorageTasksUpdateHeaders: StorageTasksUpdateHeaders,
|
|
1231
|
-
SystemData: SystemData,
|
|
1232
|
-
TrackedResource: TrackedResource,
|
|
1233
|
-
UserAssignedIdentity: UserAssignedIdentity
|
|
1234
|
-
});
|
|
1235
|
-
|
|
1236
|
-
/*
|
|
1237
|
-
* Copyright (c) Microsoft Corporation.
|
|
1238
|
-
* Licensed under the MIT License.
|
|
1239
|
-
*
|
|
1240
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1241
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1242
|
-
*/
|
|
1243
|
-
const accept = {
|
|
1244
|
-
parameterPath: "accept",
|
|
1245
|
-
mapper: {
|
|
1246
|
-
defaultValue: "application/json",
|
|
1247
|
-
isConstant: true,
|
|
1248
|
-
serializedName: "Accept",
|
|
1249
|
-
type: {
|
|
1250
|
-
name: "String",
|
|
1251
|
-
},
|
|
1252
|
-
},
|
|
1253
|
-
};
|
|
1254
|
-
const $host = {
|
|
1255
|
-
parameterPath: "$host",
|
|
1256
|
-
mapper: {
|
|
1257
|
-
serializedName: "$host",
|
|
1258
|
-
required: true,
|
|
1259
|
-
type: {
|
|
1260
|
-
name: "String",
|
|
1261
|
-
},
|
|
1262
|
-
},
|
|
1263
|
-
skipEncoding: true,
|
|
1264
|
-
};
|
|
1265
|
-
const apiVersion = {
|
|
1266
|
-
parameterPath: "apiVersion",
|
|
1267
|
-
mapper: {
|
|
1268
|
-
defaultValue: "2023-01-01",
|
|
1269
|
-
isConstant: true,
|
|
1270
|
-
serializedName: "api-version",
|
|
1271
|
-
type: {
|
|
1272
|
-
name: "String",
|
|
1273
|
-
},
|
|
1274
|
-
},
|
|
1275
|
-
};
|
|
1276
|
-
const nextLink = {
|
|
1277
|
-
parameterPath: "nextLink",
|
|
1278
|
-
mapper: {
|
|
1279
|
-
serializedName: "nextLink",
|
|
1280
|
-
required: true,
|
|
1281
|
-
type: {
|
|
1282
|
-
name: "String",
|
|
1283
|
-
},
|
|
1284
|
-
},
|
|
1285
|
-
skipEncoding: true,
|
|
1286
|
-
};
|
|
1287
|
-
const contentType = {
|
|
1288
|
-
parameterPath: ["options", "contentType"],
|
|
1289
|
-
mapper: {
|
|
1290
|
-
defaultValue: "application/json",
|
|
1291
|
-
isConstant: true,
|
|
1292
|
-
serializedName: "Content-Type",
|
|
1293
|
-
type: {
|
|
1294
|
-
name: "String",
|
|
1295
|
-
},
|
|
1296
|
-
},
|
|
1297
|
-
};
|
|
1298
|
-
const parameters = {
|
|
1299
|
-
parameterPath: "parameters",
|
|
1300
|
-
mapper: StorageTask,
|
|
1301
|
-
};
|
|
1302
|
-
const resourceGroupName = {
|
|
1303
|
-
parameterPath: "resourceGroupName",
|
|
1304
|
-
mapper: {
|
|
1305
|
-
constraints: {
|
|
1306
|
-
MaxLength: 90,
|
|
1307
|
-
MinLength: 1,
|
|
1308
|
-
},
|
|
1309
|
-
serializedName: "resourceGroupName",
|
|
1310
|
-
required: true,
|
|
1311
|
-
type: {
|
|
1312
|
-
name: "String",
|
|
1313
|
-
},
|
|
1314
|
-
},
|
|
1315
|
-
};
|
|
1316
|
-
const storageTaskName = {
|
|
1317
|
-
parameterPath: "storageTaskName",
|
|
1318
|
-
mapper: {
|
|
1319
|
-
constraints: {
|
|
1320
|
-
Pattern: new RegExp("^[a-z0-9]{3,18}$"),
|
|
1321
|
-
MaxLength: 18,
|
|
1322
|
-
MinLength: 3,
|
|
1323
|
-
},
|
|
1324
|
-
serializedName: "storageTaskName",
|
|
1325
|
-
required: true,
|
|
1326
|
-
type: {
|
|
1327
|
-
name: "String",
|
|
1328
|
-
},
|
|
1329
|
-
},
|
|
1330
|
-
};
|
|
1331
|
-
const subscriptionId = {
|
|
1332
|
-
parameterPath: "subscriptionId",
|
|
1333
|
-
mapper: {
|
|
1334
|
-
serializedName: "subscriptionId",
|
|
1335
|
-
required: true,
|
|
1336
|
-
type: {
|
|
1337
|
-
name: "Uuid",
|
|
1338
|
-
},
|
|
1339
|
-
},
|
|
1340
|
-
};
|
|
1341
|
-
const parameters1 = {
|
|
1342
|
-
parameterPath: "parameters",
|
|
1343
|
-
mapper: StorageTaskUpdateParameters,
|
|
1344
|
-
};
|
|
1345
|
-
const parameters2 = {
|
|
1346
|
-
parameterPath: "parameters",
|
|
1347
|
-
mapper: StorageTaskPreviewAction,
|
|
1348
|
-
};
|
|
1349
|
-
const location = {
|
|
1350
|
-
parameterPath: "location",
|
|
1351
|
-
mapper: {
|
|
1352
|
-
serializedName: "location",
|
|
1353
|
-
required: true,
|
|
1354
|
-
type: {
|
|
1355
|
-
name: "String",
|
|
1356
|
-
},
|
|
1357
|
-
},
|
|
1358
|
-
};
|
|
1359
|
-
const maxpagesize = {
|
|
1360
|
-
parameterPath: ["options", "maxpagesize"],
|
|
1361
|
-
mapper: {
|
|
1362
|
-
serializedName: "$maxpagesize",
|
|
1363
|
-
type: {
|
|
1364
|
-
name: "String",
|
|
1365
|
-
},
|
|
1366
|
-
},
|
|
1367
|
-
};
|
|
1368
|
-
const filter = {
|
|
1369
|
-
parameterPath: ["options", "filter"],
|
|
1370
|
-
mapper: {
|
|
1371
|
-
serializedName: "$filter",
|
|
1372
|
-
type: {
|
|
1373
|
-
name: "String",
|
|
1374
|
-
},
|
|
1375
|
-
},
|
|
1376
|
-
};
|
|
1377
|
-
|
|
1378
|
-
/*
|
|
1379
|
-
* Copyright (c) Microsoft Corporation.
|
|
1380
|
-
* Licensed under the MIT License.
|
|
1381
|
-
*
|
|
1382
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1383
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1384
|
-
*/
|
|
1385
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1386
|
-
/** Class containing Operations operations. */
|
|
1387
|
-
class OperationsImpl {
|
|
1388
|
-
/**
|
|
1389
|
-
* Initialize a new instance of the class Operations class.
|
|
1390
|
-
* @param client Reference to the service client
|
|
1391
|
-
*/
|
|
1392
|
-
constructor(client) {
|
|
1393
|
-
this.client = client;
|
|
1394
|
-
}
|
|
1395
|
-
/**
|
|
1396
|
-
* Lists all of the available Storage Actions Rest API operations.
|
|
1397
|
-
* @param options The options parameters.
|
|
1398
|
-
*/
|
|
1399
|
-
list(options) {
|
|
1400
|
-
const iter = this.listPagingAll(options);
|
|
1401
|
-
return {
|
|
1402
|
-
next() {
|
|
1403
|
-
return iter.next();
|
|
1404
|
-
},
|
|
1405
|
-
[Symbol.asyncIterator]() {
|
|
1406
|
-
return this;
|
|
1407
|
-
},
|
|
1408
|
-
byPage: (settings) => {
|
|
1409
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1410
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1411
|
-
}
|
|
1412
|
-
return this.listPagingPage(options, settings);
|
|
1413
|
-
},
|
|
1414
|
-
};
|
|
1415
|
-
}
|
|
1416
|
-
listPagingPage(options, settings) {
|
|
1417
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1418
|
-
let result;
|
|
1419
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1420
|
-
if (!continuationToken) {
|
|
1421
|
-
result = yield tslib.__await(this._list(options));
|
|
1422
|
-
let page = result.value || [];
|
|
1423
|
-
continuationToken = result.nextLink;
|
|
1424
|
-
setContinuationToken(page, continuationToken);
|
|
1425
|
-
yield yield tslib.__await(page);
|
|
1426
|
-
}
|
|
1427
|
-
while (continuationToken) {
|
|
1428
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1429
|
-
continuationToken = result.nextLink;
|
|
1430
|
-
let page = result.value || [];
|
|
1431
|
-
setContinuationToken(page, continuationToken);
|
|
1432
|
-
yield yield tslib.__await(page);
|
|
1433
|
-
}
|
|
1434
|
-
});
|
|
1435
|
-
}
|
|
1436
|
-
listPagingAll(options) {
|
|
1437
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1438
|
-
var _a, e_1, _b, _c;
|
|
1439
|
-
try {
|
|
1440
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1441
|
-
_c = _f.value;
|
|
1442
|
-
_d = false;
|
|
1443
|
-
const page = _c;
|
|
1444
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1448
|
-
finally {
|
|
1449
|
-
try {
|
|
1450
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1451
|
-
}
|
|
1452
|
-
finally { if (e_1) throw e_1.error; }
|
|
1453
|
-
}
|
|
1454
|
-
});
|
|
1455
|
-
}
|
|
1456
|
-
/**
|
|
1457
|
-
* Lists all of the available Storage Actions Rest API operations.
|
|
1458
|
-
* @param options The options parameters.
|
|
1459
|
-
*/
|
|
1460
|
-
_list(options) {
|
|
1461
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
1462
|
-
}
|
|
1463
|
-
/**
|
|
1464
|
-
* ListNext
|
|
1465
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1466
|
-
* @param options The options parameters.
|
|
1467
|
-
*/
|
|
1468
|
-
_listNext(nextLink, options) {
|
|
1469
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
// Operation Specifications
|
|
1473
|
-
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1474
|
-
const listOperationSpec$2 = {
|
|
1475
|
-
path: "/providers/Microsoft.StorageActions/operations",
|
|
1476
|
-
httpMethod: "GET",
|
|
1477
|
-
responses: {
|
|
1478
|
-
200: {
|
|
1479
|
-
bodyMapper: OperationListResult,
|
|
1480
|
-
},
|
|
1481
|
-
default: {
|
|
1482
|
-
bodyMapper: ErrorResponse,
|
|
1483
|
-
},
|
|
1484
|
-
},
|
|
1485
|
-
queryParameters: [apiVersion],
|
|
1486
|
-
urlParameters: [$host],
|
|
1487
|
-
headerParameters: [accept],
|
|
1488
|
-
serializer: serializer$3,
|
|
1489
|
-
};
|
|
1490
|
-
const listNextOperationSpec$2 = {
|
|
1491
|
-
path: "{nextLink}",
|
|
1492
|
-
httpMethod: "GET",
|
|
1493
|
-
responses: {
|
|
1494
|
-
200: {
|
|
1495
|
-
bodyMapper: OperationListResult,
|
|
1496
|
-
},
|
|
1497
|
-
default: {
|
|
1498
|
-
bodyMapper: ErrorResponse,
|
|
1499
|
-
},
|
|
1500
|
-
},
|
|
1501
|
-
urlParameters: [$host, nextLink],
|
|
1502
|
-
headerParameters: [accept],
|
|
1503
|
-
serializer: serializer$3,
|
|
1504
|
-
};
|
|
1505
|
-
|
|
1506
|
-
/*
|
|
1507
|
-
* Copyright (c) Microsoft Corporation.
|
|
1508
|
-
* Licensed under the MIT License.
|
|
1509
|
-
*
|
|
1510
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1511
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1512
|
-
*/
|
|
1513
|
-
function createLroSpec(inputs) {
|
|
1514
|
-
const { args, spec, sendOperationFn } = inputs;
|
|
1515
|
-
return {
|
|
1516
|
-
requestMethod: spec.httpMethod,
|
|
1517
|
-
requestPath: spec.path,
|
|
1518
|
-
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
1519
|
-
sendPollRequest: (path, options) => {
|
|
1520
|
-
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
1521
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
1522
|
-
},
|
|
1523
|
-
};
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
|
-
/*
|
|
1527
|
-
* Copyright (c) Microsoft Corporation.
|
|
1528
|
-
* Licensed under the MIT License.
|
|
1529
|
-
*
|
|
1530
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1531
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1532
|
-
*/
|
|
1533
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1534
|
-
/** Class containing StorageTasks operations. */
|
|
1535
|
-
class StorageTasksImpl {
|
|
1536
|
-
/**
|
|
1537
|
-
* Initialize a new instance of the class StorageTasks class.
|
|
1538
|
-
* @param client Reference to the service client
|
|
1539
|
-
*/
|
|
1540
|
-
constructor(client) {
|
|
1541
|
-
this.client = client;
|
|
1542
|
-
}
|
|
1543
|
-
/**
|
|
1544
|
-
* Lists all the storage tasks available under the subscription.
|
|
1545
|
-
* @param options The options parameters.
|
|
1546
|
-
*/
|
|
1547
|
-
listBySubscription(options) {
|
|
1548
|
-
const iter = this.listBySubscriptionPagingAll(options);
|
|
1549
|
-
return {
|
|
1550
|
-
next() {
|
|
1551
|
-
return iter.next();
|
|
1552
|
-
},
|
|
1553
|
-
[Symbol.asyncIterator]() {
|
|
1554
|
-
return this;
|
|
1555
|
-
},
|
|
1556
|
-
byPage: (settings) => {
|
|
1557
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1558
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1559
|
-
}
|
|
1560
|
-
return this.listBySubscriptionPagingPage(options, settings);
|
|
1561
|
-
},
|
|
1562
|
-
};
|
|
1563
|
-
}
|
|
1564
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
1565
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1566
|
-
let result;
|
|
1567
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1568
|
-
if (!continuationToken) {
|
|
1569
|
-
result = yield tslib.__await(this._listBySubscription(options));
|
|
1570
|
-
let page = result.value || [];
|
|
1571
|
-
continuationToken = result.nextLink;
|
|
1572
|
-
setContinuationToken(page, continuationToken);
|
|
1573
|
-
yield yield tslib.__await(page);
|
|
1574
|
-
}
|
|
1575
|
-
while (continuationToken) {
|
|
1576
|
-
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1577
|
-
continuationToken = result.nextLink;
|
|
1578
|
-
let page = result.value || [];
|
|
1579
|
-
setContinuationToken(page, continuationToken);
|
|
1580
|
-
yield yield tslib.__await(page);
|
|
1581
|
-
}
|
|
1582
|
-
});
|
|
1583
|
-
}
|
|
1584
|
-
listBySubscriptionPagingAll(options) {
|
|
1585
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1586
|
-
var _a, e_1, _b, _c;
|
|
1587
|
-
try {
|
|
1588
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1589
|
-
_c = _f.value;
|
|
1590
|
-
_d = false;
|
|
1591
|
-
const page = _c;
|
|
1592
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1593
|
-
}
|
|
1594
|
-
}
|
|
1595
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1596
|
-
finally {
|
|
1597
|
-
try {
|
|
1598
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1599
|
-
}
|
|
1600
|
-
finally { if (e_1) throw e_1.error; }
|
|
1601
|
-
}
|
|
1602
|
-
});
|
|
1603
|
-
}
|
|
1604
|
-
/**
|
|
1605
|
-
* Lists all the storage tasks available under the given resource group.
|
|
1606
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1607
|
-
* @param options The options parameters.
|
|
1608
|
-
*/
|
|
1609
|
-
listByResourceGroup(resourceGroupName, options) {
|
|
1610
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1611
|
-
return {
|
|
1612
|
-
next() {
|
|
1613
|
-
return iter.next();
|
|
1614
|
-
},
|
|
1615
|
-
[Symbol.asyncIterator]() {
|
|
1616
|
-
return this;
|
|
1617
|
-
},
|
|
1618
|
-
byPage: (settings) => {
|
|
1619
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1620
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1621
|
-
}
|
|
1622
|
-
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1623
|
-
},
|
|
1624
|
-
};
|
|
1625
|
-
}
|
|
1626
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1627
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1628
|
-
let result;
|
|
1629
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1630
|
-
if (!continuationToken) {
|
|
1631
|
-
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1632
|
-
let page = result.value || [];
|
|
1633
|
-
continuationToken = result.nextLink;
|
|
1634
|
-
setContinuationToken(page, continuationToken);
|
|
1635
|
-
yield yield tslib.__await(page);
|
|
1636
|
-
}
|
|
1637
|
-
while (continuationToken) {
|
|
1638
|
-
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1639
|
-
continuationToken = result.nextLink;
|
|
1640
|
-
let page = result.value || [];
|
|
1641
|
-
setContinuationToken(page, continuationToken);
|
|
1642
|
-
yield yield tslib.__await(page);
|
|
1643
|
-
}
|
|
1644
|
-
});
|
|
1645
|
-
}
|
|
1646
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1647
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1648
|
-
var _a, e_2, _b, _c;
|
|
1649
|
-
try {
|
|
1650
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1651
|
-
_c = _f.value;
|
|
1652
|
-
_d = false;
|
|
1653
|
-
const page = _c;
|
|
1654
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1658
|
-
finally {
|
|
1659
|
-
try {
|
|
1660
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1661
|
-
}
|
|
1662
|
-
finally { if (e_2) throw e_2.error; }
|
|
1663
|
-
}
|
|
1664
|
-
});
|
|
1665
|
-
}
|
|
1666
|
-
/**
|
|
1667
|
-
* Asynchronously creates a new storage task resource with the specified parameters. If a storage task
|
|
1668
|
-
* is already created and a subsequent create request is issued with different properties, the storage
|
|
1669
|
-
* task properties will be updated. If a storage task is already created and a subsequent create or
|
|
1670
|
-
* update request is issued with the exact same set of properties, the request will succeed.
|
|
1671
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1672
|
-
* @param storageTaskName The name of the storage task within the specified resource group. Storage
|
|
1673
|
-
* task names must be between 3 and 18 characters in length and use numbers and lower-case letters
|
|
1674
|
-
* only.
|
|
1675
|
-
* @param parameters The parameters to create a Storage Task.
|
|
1676
|
-
* @param options The options parameters.
|
|
1677
|
-
*/
|
|
1678
|
-
beginCreate(resourceGroupName, storageTaskName, parameters, options) {
|
|
1679
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1680
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1681
|
-
return this.client.sendOperationRequest(args, spec);
|
|
1682
|
-
});
|
|
1683
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1684
|
-
var _a;
|
|
1685
|
-
let currentRawResponse = undefined;
|
|
1686
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1687
|
-
const callback = (rawResponse, flatResponse) => {
|
|
1688
|
-
currentRawResponse = rawResponse;
|
|
1689
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1690
|
-
};
|
|
1691
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1692
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1693
|
-
return {
|
|
1694
|
-
flatResponse,
|
|
1695
|
-
rawResponse: {
|
|
1696
|
-
statusCode: currentRawResponse.status,
|
|
1697
|
-
body: currentRawResponse.parsedBody,
|
|
1698
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
1699
|
-
},
|
|
1700
|
-
};
|
|
1701
|
-
});
|
|
1702
|
-
const lro = createLroSpec({
|
|
1703
|
-
sendOperationFn,
|
|
1704
|
-
args: { resourceGroupName, storageTaskName, parameters, options },
|
|
1705
|
-
spec: createOperationSpec,
|
|
1706
|
-
});
|
|
1707
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1708
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1709
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1710
|
-
resourceLocationConfig: "location",
|
|
1711
|
-
});
|
|
1712
|
-
yield poller.poll();
|
|
1713
|
-
return poller;
|
|
1714
|
-
});
|
|
1715
|
-
}
|
|
1716
|
-
/**
|
|
1717
|
-
* Asynchronously creates a new storage task resource with the specified parameters. If a storage task
|
|
1718
|
-
* is already created and a subsequent create request is issued with different properties, the storage
|
|
1719
|
-
* task properties will be updated. If a storage task is already created and a subsequent create or
|
|
1720
|
-
* update request is issued with the exact same set of properties, the request will succeed.
|
|
1721
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1722
|
-
* @param storageTaskName The name of the storage task within the specified resource group. Storage
|
|
1723
|
-
* task names must be between 3 and 18 characters in length and use numbers and lower-case letters
|
|
1724
|
-
* only.
|
|
1725
|
-
* @param parameters The parameters to create a Storage Task.
|
|
1726
|
-
* @param options The options parameters.
|
|
1727
|
-
*/
|
|
1728
|
-
beginCreateAndWait(resourceGroupName, storageTaskName, parameters, options) {
|
|
1729
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1730
|
-
const poller = yield this.beginCreate(resourceGroupName, storageTaskName, parameters, options);
|
|
1731
|
-
return poller.pollUntilDone();
|
|
1732
|
-
});
|
|
1733
|
-
}
|
|
1734
|
-
/**
|
|
1735
|
-
* Delete the storage task resource.
|
|
1736
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1737
|
-
* @param storageTaskName The name of the storage task within the specified resource group. Storage
|
|
1738
|
-
* task names must be between 3 and 18 characters in length and use numbers and lower-case letters
|
|
1739
|
-
* only.
|
|
1740
|
-
* @param options The options parameters.
|
|
1741
|
-
*/
|
|
1742
|
-
beginDelete(resourceGroupName, storageTaskName, options) {
|
|
1743
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1744
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1745
|
-
return this.client.sendOperationRequest(args, spec);
|
|
1746
|
-
});
|
|
1747
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1748
|
-
var _a;
|
|
1749
|
-
let currentRawResponse = undefined;
|
|
1750
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1751
|
-
const callback = (rawResponse, flatResponse) => {
|
|
1752
|
-
currentRawResponse = rawResponse;
|
|
1753
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1754
|
-
};
|
|
1755
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1756
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1757
|
-
return {
|
|
1758
|
-
flatResponse,
|
|
1759
|
-
rawResponse: {
|
|
1760
|
-
statusCode: currentRawResponse.status,
|
|
1761
|
-
body: currentRawResponse.parsedBody,
|
|
1762
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
1763
|
-
},
|
|
1764
|
-
};
|
|
1765
|
-
});
|
|
1766
|
-
const lro = createLroSpec({
|
|
1767
|
-
sendOperationFn,
|
|
1768
|
-
args: { resourceGroupName, storageTaskName, options },
|
|
1769
|
-
spec: deleteOperationSpec,
|
|
1770
|
-
});
|
|
1771
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1772
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1773
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1774
|
-
resourceLocationConfig: "location",
|
|
1775
|
-
});
|
|
1776
|
-
yield poller.poll();
|
|
1777
|
-
return poller;
|
|
1778
|
-
});
|
|
1779
|
-
}
|
|
1780
|
-
/**
|
|
1781
|
-
* Delete the storage task resource.
|
|
1782
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1783
|
-
* @param storageTaskName The name of the storage task within the specified resource group. Storage
|
|
1784
|
-
* task names must be between 3 and 18 characters in length and use numbers and lower-case letters
|
|
1785
|
-
* only.
|
|
1786
|
-
* @param options The options parameters.
|
|
1787
|
-
*/
|
|
1788
|
-
beginDeleteAndWait(resourceGroupName, storageTaskName, options) {
|
|
1789
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1790
|
-
const poller = yield this.beginDelete(resourceGroupName, storageTaskName, options);
|
|
1791
|
-
return poller.pollUntilDone();
|
|
1792
|
-
});
|
|
1793
|
-
}
|
|
1794
|
-
/**
|
|
1795
|
-
* Get the storage task properties
|
|
1796
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1797
|
-
* @param storageTaskName The name of the storage task within the specified resource group. Storage
|
|
1798
|
-
* task names must be between 3 and 18 characters in length and use numbers and lower-case letters
|
|
1799
|
-
* only.
|
|
1800
|
-
* @param options The options parameters.
|
|
1801
|
-
*/
|
|
1802
|
-
get(resourceGroupName, storageTaskName, options) {
|
|
1803
|
-
return this.client.sendOperationRequest({ resourceGroupName, storageTaskName, options }, getOperationSpec);
|
|
1804
|
-
}
|
|
1805
|
-
/**
|
|
1806
|
-
* Update storage task properties
|
|
1807
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1808
|
-
* @param storageTaskName The name of the storage task within the specified resource group. Storage
|
|
1809
|
-
* task names must be between 3 and 18 characters in length and use numbers and lower-case letters
|
|
1810
|
-
* only.
|
|
1811
|
-
* @param parameters The parameters to provide to update the storage task resource.
|
|
1812
|
-
* @param options The options parameters.
|
|
1813
|
-
*/
|
|
1814
|
-
beginUpdate(resourceGroupName, storageTaskName, parameters, options) {
|
|
1815
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1816
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1817
|
-
return this.client.sendOperationRequest(args, spec);
|
|
1818
|
-
});
|
|
1819
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1820
|
-
var _a;
|
|
1821
|
-
let currentRawResponse = undefined;
|
|
1822
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1823
|
-
const callback = (rawResponse, flatResponse) => {
|
|
1824
|
-
currentRawResponse = rawResponse;
|
|
1825
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1826
|
-
};
|
|
1827
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1828
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1829
|
-
return {
|
|
1830
|
-
flatResponse,
|
|
1831
|
-
rawResponse: {
|
|
1832
|
-
statusCode: currentRawResponse.status,
|
|
1833
|
-
body: currentRawResponse.parsedBody,
|
|
1834
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
1835
|
-
},
|
|
1836
|
-
};
|
|
1837
|
-
});
|
|
1838
|
-
const lro = createLroSpec({
|
|
1839
|
-
sendOperationFn,
|
|
1840
|
-
args: { resourceGroupName, storageTaskName, parameters, options },
|
|
1841
|
-
spec: updateOperationSpec,
|
|
1842
|
-
});
|
|
1843
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1844
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1845
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1846
|
-
resourceLocationConfig: "location",
|
|
1847
|
-
});
|
|
1848
|
-
yield poller.poll();
|
|
1849
|
-
return poller;
|
|
1850
|
-
});
|
|
1851
|
-
}
|
|
1852
|
-
/**
|
|
1853
|
-
* Update storage task properties
|
|
1854
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1855
|
-
* @param storageTaskName The name of the storage task within the specified resource group. Storage
|
|
1856
|
-
* task names must be between 3 and 18 characters in length and use numbers and lower-case letters
|
|
1857
|
-
* only.
|
|
1858
|
-
* @param parameters The parameters to provide to update the storage task resource.
|
|
1859
|
-
* @param options The options parameters.
|
|
1860
|
-
*/
|
|
1861
|
-
beginUpdateAndWait(resourceGroupName, storageTaskName, parameters, options) {
|
|
1862
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1863
|
-
const poller = yield this.beginUpdate(resourceGroupName, storageTaskName, parameters, options);
|
|
1864
|
-
return poller.pollUntilDone();
|
|
1865
|
-
});
|
|
1866
|
-
}
|
|
1867
|
-
/**
|
|
1868
|
-
* Lists all the storage tasks available under the subscription.
|
|
1869
|
-
* @param options The options parameters.
|
|
1870
|
-
*/
|
|
1871
|
-
_listBySubscription(options) {
|
|
1872
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
1873
|
-
}
|
|
1874
|
-
/**
|
|
1875
|
-
* Lists all the storage tasks available under the given resource group.
|
|
1876
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1877
|
-
* @param options The options parameters.
|
|
1878
|
-
*/
|
|
1879
|
-
_listByResourceGroup(resourceGroupName, options) {
|
|
1880
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
1881
|
-
}
|
|
1882
|
-
/**
|
|
1883
|
-
* Runs the input conditions against input object metadata properties and designates matched objects in
|
|
1884
|
-
* response.
|
|
1885
|
-
* @param location The location to perform preview of the actions.
|
|
1886
|
-
* @param parameters The parameters to preview action condition.
|
|
1887
|
-
* @param options The options parameters.
|
|
1888
|
-
*/
|
|
1889
|
-
previewActions(location, parameters, options) {
|
|
1890
|
-
return this.client.sendOperationRequest({ location, parameters, options }, previewActionsOperationSpec);
|
|
1891
|
-
}
|
|
1892
|
-
/**
|
|
1893
|
-
* ListBySubscriptionNext
|
|
1894
|
-
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
1895
|
-
* @param options The options parameters.
|
|
1896
|
-
*/
|
|
1897
|
-
_listBySubscriptionNext(nextLink, options) {
|
|
1898
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
1899
|
-
}
|
|
1900
|
-
/**
|
|
1901
|
-
* ListByResourceGroupNext
|
|
1902
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1903
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
1904
|
-
* @param options The options parameters.
|
|
1905
|
-
*/
|
|
1906
|
-
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1907
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
1908
|
-
}
|
|
1909
|
-
}
|
|
1910
|
-
// Operation Specifications
|
|
1911
|
-
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1912
|
-
const createOperationSpec = {
|
|
1913
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageActions/storageTasks/{storageTaskName}",
|
|
1914
|
-
httpMethod: "PUT",
|
|
1915
|
-
responses: {
|
|
1916
|
-
200: {
|
|
1917
|
-
bodyMapper: StorageTask,
|
|
1918
|
-
},
|
|
1919
|
-
201: {
|
|
1920
|
-
bodyMapper: StorageTask,
|
|
1921
|
-
},
|
|
1922
|
-
202: {
|
|
1923
|
-
bodyMapper: StorageTask,
|
|
1924
|
-
},
|
|
1925
|
-
204: {
|
|
1926
|
-
bodyMapper: StorageTask,
|
|
1927
|
-
},
|
|
1928
|
-
default: {
|
|
1929
|
-
bodyMapper: ErrorResponse,
|
|
1930
|
-
},
|
|
1931
|
-
},
|
|
1932
|
-
requestBody: parameters,
|
|
1933
|
-
queryParameters: [apiVersion],
|
|
1934
|
-
urlParameters: [
|
|
1935
|
-
$host,
|
|
1936
|
-
resourceGroupName,
|
|
1937
|
-
storageTaskName,
|
|
1938
|
-
subscriptionId,
|
|
1939
|
-
],
|
|
1940
|
-
headerParameters: [accept, contentType],
|
|
1941
|
-
mediaType: "json",
|
|
1942
|
-
serializer: serializer$2,
|
|
1943
|
-
};
|
|
1944
|
-
const deleteOperationSpec = {
|
|
1945
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageActions/storageTasks/{storageTaskName}",
|
|
1946
|
-
httpMethod: "DELETE",
|
|
1947
|
-
responses: {
|
|
1948
|
-
200: {
|
|
1949
|
-
headersMapper: StorageTasksDeleteHeaders,
|
|
1950
|
-
},
|
|
1951
|
-
201: {
|
|
1952
|
-
headersMapper: StorageTasksDeleteHeaders,
|
|
1953
|
-
},
|
|
1954
|
-
202: {
|
|
1955
|
-
headersMapper: StorageTasksDeleteHeaders,
|
|
1956
|
-
},
|
|
1957
|
-
204: {
|
|
1958
|
-
headersMapper: StorageTasksDeleteHeaders,
|
|
1959
|
-
},
|
|
1960
|
-
default: {
|
|
1961
|
-
bodyMapper: ErrorResponse,
|
|
1962
|
-
},
|
|
1963
|
-
},
|
|
1964
|
-
queryParameters: [apiVersion],
|
|
1965
|
-
urlParameters: [
|
|
1966
|
-
$host,
|
|
1967
|
-
resourceGroupName,
|
|
1968
|
-
storageTaskName,
|
|
1969
|
-
subscriptionId,
|
|
1970
|
-
],
|
|
1971
|
-
headerParameters: [accept],
|
|
1972
|
-
serializer: serializer$2,
|
|
1973
|
-
};
|
|
1974
|
-
const getOperationSpec = {
|
|
1975
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageActions/storageTasks/{storageTaskName}",
|
|
1976
|
-
httpMethod: "GET",
|
|
1977
|
-
responses: {
|
|
1978
|
-
200: {
|
|
1979
|
-
bodyMapper: StorageTask,
|
|
1980
|
-
},
|
|
1981
|
-
default: {
|
|
1982
|
-
bodyMapper: ErrorResponse,
|
|
1983
|
-
},
|
|
1984
|
-
},
|
|
1985
|
-
queryParameters: [apiVersion],
|
|
1986
|
-
urlParameters: [
|
|
1987
|
-
$host,
|
|
1988
|
-
resourceGroupName,
|
|
1989
|
-
storageTaskName,
|
|
1990
|
-
subscriptionId,
|
|
1991
|
-
],
|
|
1992
|
-
headerParameters: [accept],
|
|
1993
|
-
serializer: serializer$2,
|
|
1994
|
-
};
|
|
1995
|
-
const updateOperationSpec = {
|
|
1996
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageActions/storageTasks/{storageTaskName}",
|
|
1997
|
-
httpMethod: "PATCH",
|
|
1998
|
-
responses: {
|
|
1999
|
-
200: {
|
|
2000
|
-
bodyMapper: StorageTask,
|
|
2001
|
-
},
|
|
2002
|
-
201: {
|
|
2003
|
-
bodyMapper: StorageTask,
|
|
2004
|
-
},
|
|
2005
|
-
202: {
|
|
2006
|
-
bodyMapper: StorageTask,
|
|
2007
|
-
},
|
|
2008
|
-
204: {
|
|
2009
|
-
bodyMapper: StorageTask,
|
|
2010
|
-
},
|
|
2011
|
-
default: {
|
|
2012
|
-
bodyMapper: ErrorResponse,
|
|
2013
|
-
},
|
|
2014
|
-
},
|
|
2015
|
-
requestBody: parameters1,
|
|
2016
|
-
queryParameters: [apiVersion],
|
|
2017
|
-
urlParameters: [
|
|
2018
|
-
$host,
|
|
2019
|
-
resourceGroupName,
|
|
2020
|
-
storageTaskName,
|
|
2021
|
-
subscriptionId,
|
|
2022
|
-
],
|
|
2023
|
-
headerParameters: [accept, contentType],
|
|
2024
|
-
mediaType: "json",
|
|
2025
|
-
serializer: serializer$2,
|
|
2026
|
-
};
|
|
2027
|
-
const listBySubscriptionOperationSpec = {
|
|
2028
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageActions/storageTasks",
|
|
2029
|
-
httpMethod: "GET",
|
|
2030
|
-
responses: {
|
|
2031
|
-
200: {
|
|
2032
|
-
bodyMapper: StorageTasksListResult,
|
|
2033
|
-
},
|
|
2034
|
-
default: {
|
|
2035
|
-
bodyMapper: ErrorResponse,
|
|
2036
|
-
},
|
|
2037
|
-
},
|
|
2038
|
-
queryParameters: [apiVersion],
|
|
2039
|
-
urlParameters: [$host, subscriptionId],
|
|
2040
|
-
headerParameters: [accept],
|
|
2041
|
-
serializer: serializer$2,
|
|
2042
|
-
};
|
|
2043
|
-
const listByResourceGroupOperationSpec = {
|
|
2044
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageActions/storageTasks",
|
|
2045
|
-
httpMethod: "GET",
|
|
2046
|
-
responses: {
|
|
2047
|
-
200: {
|
|
2048
|
-
bodyMapper: StorageTasksListResult,
|
|
2049
|
-
},
|
|
2050
|
-
default: {
|
|
2051
|
-
bodyMapper: ErrorResponse,
|
|
2052
|
-
},
|
|
2053
|
-
},
|
|
2054
|
-
queryParameters: [apiVersion],
|
|
2055
|
-
urlParameters: [
|
|
2056
|
-
$host,
|
|
2057
|
-
resourceGroupName,
|
|
2058
|
-
subscriptionId,
|
|
2059
|
-
],
|
|
2060
|
-
headerParameters: [accept],
|
|
2061
|
-
serializer: serializer$2,
|
|
2062
|
-
};
|
|
2063
|
-
const previewActionsOperationSpec = {
|
|
2064
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageActions/locations/{location}/previewActions",
|
|
2065
|
-
httpMethod: "POST",
|
|
2066
|
-
responses: {
|
|
2067
|
-
200: {
|
|
2068
|
-
bodyMapper: StorageTaskPreviewAction,
|
|
2069
|
-
},
|
|
2070
|
-
default: {
|
|
2071
|
-
bodyMapper: ErrorResponse,
|
|
2072
|
-
},
|
|
2073
|
-
},
|
|
2074
|
-
requestBody: parameters2,
|
|
2075
|
-
queryParameters: [apiVersion],
|
|
2076
|
-
urlParameters: [
|
|
2077
|
-
$host,
|
|
2078
|
-
subscriptionId,
|
|
2079
|
-
location,
|
|
2080
|
-
],
|
|
2081
|
-
headerParameters: [accept, contentType],
|
|
2082
|
-
mediaType: "json",
|
|
2083
|
-
serializer: serializer$2,
|
|
2084
|
-
};
|
|
2085
|
-
const listBySubscriptionNextOperationSpec = {
|
|
2086
|
-
path: "{nextLink}",
|
|
2087
|
-
httpMethod: "GET",
|
|
2088
|
-
responses: {
|
|
2089
|
-
200: {
|
|
2090
|
-
bodyMapper: StorageTasksListResult,
|
|
2091
|
-
},
|
|
2092
|
-
default: {
|
|
2093
|
-
bodyMapper: ErrorResponse,
|
|
2094
|
-
},
|
|
2095
|
-
},
|
|
2096
|
-
urlParameters: [
|
|
2097
|
-
$host,
|
|
2098
|
-
nextLink,
|
|
2099
|
-
subscriptionId,
|
|
2100
|
-
],
|
|
2101
|
-
headerParameters: [accept],
|
|
2102
|
-
serializer: serializer$2,
|
|
2103
|
-
};
|
|
2104
|
-
const listByResourceGroupNextOperationSpec = {
|
|
2105
|
-
path: "{nextLink}",
|
|
2106
|
-
httpMethod: "GET",
|
|
2107
|
-
responses: {
|
|
2108
|
-
200: {
|
|
2109
|
-
bodyMapper: StorageTasksListResult,
|
|
2110
|
-
},
|
|
2111
|
-
default: {
|
|
2112
|
-
bodyMapper: ErrorResponse,
|
|
2113
|
-
},
|
|
2114
|
-
},
|
|
2115
|
-
urlParameters: [
|
|
2116
|
-
$host,
|
|
2117
|
-
nextLink,
|
|
2118
|
-
resourceGroupName,
|
|
2119
|
-
subscriptionId,
|
|
2120
|
-
],
|
|
2121
|
-
headerParameters: [accept],
|
|
2122
|
-
serializer: serializer$2,
|
|
2123
|
-
};
|
|
2124
|
-
|
|
2125
|
-
/*
|
|
2126
|
-
* Copyright (c) Microsoft Corporation.
|
|
2127
|
-
* Licensed under the MIT License.
|
|
2128
|
-
*
|
|
2129
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2130
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2131
|
-
*/
|
|
2132
|
-
/// <reference lib="esnext.asynciterable" />
|
|
2133
|
-
/** Class containing StorageTaskAssignmentOperations operations. */
|
|
2134
|
-
class StorageTaskAssignmentOperationsImpl {
|
|
2135
|
-
/**
|
|
2136
|
-
* Initialize a new instance of the class StorageTaskAssignmentOperations class.
|
|
2137
|
-
* @param client Reference to the service client
|
|
2138
|
-
*/
|
|
2139
|
-
constructor(client) {
|
|
2140
|
-
this.client = client;
|
|
2141
|
-
}
|
|
2142
|
-
/**
|
|
2143
|
-
* Lists all the storage tasks available under the given resource group.
|
|
2144
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2145
|
-
* @param storageTaskName The name of the storage task within the specified resource group. Storage
|
|
2146
|
-
* task names must be between 3 and 18 characters in length and use numbers and lower-case letters
|
|
2147
|
-
* only.
|
|
2148
|
-
* @param options The options parameters.
|
|
2149
|
-
*/
|
|
2150
|
-
list(resourceGroupName, storageTaskName, options) {
|
|
2151
|
-
const iter = this.listPagingAll(resourceGroupName, storageTaskName, options);
|
|
2152
|
-
return {
|
|
2153
|
-
next() {
|
|
2154
|
-
return iter.next();
|
|
2155
|
-
},
|
|
2156
|
-
[Symbol.asyncIterator]() {
|
|
2157
|
-
return this;
|
|
2158
|
-
},
|
|
2159
|
-
byPage: (settings) => {
|
|
2160
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2161
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2162
|
-
}
|
|
2163
|
-
return this.listPagingPage(resourceGroupName, storageTaskName, options, settings);
|
|
2164
|
-
},
|
|
2165
|
-
};
|
|
2166
|
-
}
|
|
2167
|
-
listPagingPage(resourceGroupName, storageTaskName, options, settings) {
|
|
2168
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2169
|
-
let result;
|
|
2170
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2171
|
-
if (!continuationToken) {
|
|
2172
|
-
result = yield tslib.__await(this._list(resourceGroupName, storageTaskName, options));
|
|
2173
|
-
let page = result.value || [];
|
|
2174
|
-
continuationToken = result.nextLink;
|
|
2175
|
-
setContinuationToken(page, continuationToken);
|
|
2176
|
-
yield yield tslib.__await(page);
|
|
2177
|
-
}
|
|
2178
|
-
while (continuationToken) {
|
|
2179
|
-
result = yield tslib.__await(this._listNext(resourceGroupName, storageTaskName, continuationToken, options));
|
|
2180
|
-
continuationToken = result.nextLink;
|
|
2181
|
-
let page = result.value || [];
|
|
2182
|
-
setContinuationToken(page, continuationToken);
|
|
2183
|
-
yield yield tslib.__await(page);
|
|
2184
|
-
}
|
|
2185
|
-
});
|
|
2186
|
-
}
|
|
2187
|
-
listPagingAll(resourceGroupName, storageTaskName, options) {
|
|
2188
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2189
|
-
var _a, e_1, _b, _c;
|
|
2190
|
-
try {
|
|
2191
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, storageTaskName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2192
|
-
_c = _f.value;
|
|
2193
|
-
_d = false;
|
|
2194
|
-
const page = _c;
|
|
2195
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2196
|
-
}
|
|
2197
|
-
}
|
|
2198
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2199
|
-
finally {
|
|
2200
|
-
try {
|
|
2201
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2202
|
-
}
|
|
2203
|
-
finally { if (e_1) throw e_1.error; }
|
|
2204
|
-
}
|
|
2205
|
-
});
|
|
2206
|
-
}
|
|
2207
|
-
/**
|
|
2208
|
-
* Lists all the storage tasks available under the given resource group.
|
|
2209
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2210
|
-
* @param storageTaskName The name of the storage task within the specified resource group. Storage
|
|
2211
|
-
* task names must be between 3 and 18 characters in length and use numbers and lower-case letters
|
|
2212
|
-
* only.
|
|
2213
|
-
* @param options The options parameters.
|
|
2214
|
-
*/
|
|
2215
|
-
_list(resourceGroupName, storageTaskName, options) {
|
|
2216
|
-
return this.client.sendOperationRequest({ resourceGroupName, storageTaskName, options }, listOperationSpec$1);
|
|
2217
|
-
}
|
|
2218
|
-
/**
|
|
2219
|
-
* ListNext
|
|
2220
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2221
|
-
* @param storageTaskName The name of the storage task within the specified resource group. Storage
|
|
2222
|
-
* task names must be between 3 and 18 characters in length and use numbers and lower-case letters
|
|
2223
|
-
* only.
|
|
2224
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
2225
|
-
* @param options The options parameters.
|
|
2226
|
-
*/
|
|
2227
|
-
_listNext(resourceGroupName, storageTaskName, nextLink, options) {
|
|
2228
|
-
return this.client.sendOperationRequest({ resourceGroupName, storageTaskName, nextLink, options }, listNextOperationSpec$1);
|
|
2229
|
-
}
|
|
2230
|
-
}
|
|
2231
|
-
// Operation Specifications
|
|
2232
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2233
|
-
const listOperationSpec$1 = {
|
|
2234
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageActions/storageTasks/{storageTaskName}/storageTaskAssignments",
|
|
2235
|
-
httpMethod: "GET",
|
|
2236
|
-
responses: {
|
|
2237
|
-
200: {
|
|
2238
|
-
bodyMapper: StorageTaskAssignmentsListResult,
|
|
2239
|
-
},
|
|
2240
|
-
default: {
|
|
2241
|
-
bodyMapper: ErrorResponse,
|
|
2242
|
-
},
|
|
2243
|
-
},
|
|
2244
|
-
queryParameters: [apiVersion, maxpagesize],
|
|
2245
|
-
urlParameters: [
|
|
2246
|
-
$host,
|
|
2247
|
-
resourceGroupName,
|
|
2248
|
-
storageTaskName,
|
|
2249
|
-
subscriptionId,
|
|
2250
|
-
],
|
|
2251
|
-
headerParameters: [accept],
|
|
2252
|
-
serializer: serializer$1,
|
|
2253
|
-
};
|
|
2254
|
-
const listNextOperationSpec$1 = {
|
|
2255
|
-
path: "{nextLink}",
|
|
2256
|
-
httpMethod: "GET",
|
|
2257
|
-
responses: {
|
|
2258
|
-
200: {
|
|
2259
|
-
bodyMapper: StorageTaskAssignmentsListResult,
|
|
2260
|
-
},
|
|
2261
|
-
default: {
|
|
2262
|
-
bodyMapper: ErrorResponse,
|
|
2263
|
-
},
|
|
2264
|
-
},
|
|
2265
|
-
urlParameters: [
|
|
2266
|
-
$host,
|
|
2267
|
-
nextLink,
|
|
2268
|
-
resourceGroupName,
|
|
2269
|
-
storageTaskName,
|
|
2270
|
-
subscriptionId,
|
|
2271
|
-
],
|
|
2272
|
-
headerParameters: [accept],
|
|
2273
|
-
serializer: serializer$1,
|
|
2274
|
-
};
|
|
2275
|
-
|
|
2276
|
-
/*
|
|
2277
|
-
* Copyright (c) Microsoft Corporation.
|
|
2278
|
-
* Licensed under the MIT License.
|
|
2279
|
-
*
|
|
2280
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2281
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2282
|
-
*/
|
|
2283
|
-
/// <reference lib="esnext.asynciterable" />
|
|
2284
|
-
/** Class containing StorageTasksReport operations. */
|
|
2285
|
-
class StorageTasksReportImpl {
|
|
2286
|
-
/**
|
|
2287
|
-
* Initialize a new instance of the class StorageTasksReport class.
|
|
2288
|
-
* @param client Reference to the service client
|
|
2289
|
-
*/
|
|
2290
|
-
constructor(client) {
|
|
2291
|
-
this.client = client;
|
|
2292
|
-
}
|
|
2293
|
-
/**
|
|
2294
|
-
* Fetch the storage tasks run report summary for each assignment.
|
|
2295
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2296
|
-
* @param storageTaskName The name of the storage task within the specified resource group. Storage
|
|
2297
|
-
* task names must be between 3 and 18 characters in length and use numbers and lower-case letters
|
|
2298
|
-
* only.
|
|
2299
|
-
* @param options The options parameters.
|
|
2300
|
-
*/
|
|
2301
|
-
list(resourceGroupName, storageTaskName, options) {
|
|
2302
|
-
const iter = this.listPagingAll(resourceGroupName, storageTaskName, options);
|
|
2303
|
-
return {
|
|
2304
|
-
next() {
|
|
2305
|
-
return iter.next();
|
|
2306
|
-
},
|
|
2307
|
-
[Symbol.asyncIterator]() {
|
|
2308
|
-
return this;
|
|
2309
|
-
},
|
|
2310
|
-
byPage: (settings) => {
|
|
2311
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2312
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2313
|
-
}
|
|
2314
|
-
return this.listPagingPage(resourceGroupName, storageTaskName, options, settings);
|
|
2315
|
-
},
|
|
2316
|
-
};
|
|
2317
|
-
}
|
|
2318
|
-
listPagingPage(resourceGroupName, storageTaskName, options, settings) {
|
|
2319
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2320
|
-
let result;
|
|
2321
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2322
|
-
if (!continuationToken) {
|
|
2323
|
-
result = yield tslib.__await(this._list(resourceGroupName, storageTaskName, options));
|
|
2324
|
-
let page = result.value || [];
|
|
2325
|
-
continuationToken = result.nextLink;
|
|
2326
|
-
setContinuationToken(page, continuationToken);
|
|
2327
|
-
yield yield tslib.__await(page);
|
|
2328
|
-
}
|
|
2329
|
-
while (continuationToken) {
|
|
2330
|
-
result = yield tslib.__await(this._listNext(resourceGroupName, storageTaskName, continuationToken, options));
|
|
2331
|
-
continuationToken = result.nextLink;
|
|
2332
|
-
let page = result.value || [];
|
|
2333
|
-
setContinuationToken(page, continuationToken);
|
|
2334
|
-
yield yield tslib.__await(page);
|
|
2335
|
-
}
|
|
2336
|
-
});
|
|
2337
|
-
}
|
|
2338
|
-
listPagingAll(resourceGroupName, storageTaskName, options) {
|
|
2339
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2340
|
-
var _a, e_1, _b, _c;
|
|
2341
|
-
try {
|
|
2342
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, storageTaskName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2343
|
-
_c = _f.value;
|
|
2344
|
-
_d = false;
|
|
2345
|
-
const page = _c;
|
|
2346
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2347
|
-
}
|
|
2348
|
-
}
|
|
2349
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2350
|
-
finally {
|
|
2351
|
-
try {
|
|
2352
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2353
|
-
}
|
|
2354
|
-
finally { if (e_1) throw e_1.error; }
|
|
2355
|
-
}
|
|
2356
|
-
});
|
|
2357
|
-
}
|
|
2358
|
-
/**
|
|
2359
|
-
* Fetch the storage tasks run report summary for each assignment.
|
|
2360
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2361
|
-
* @param storageTaskName The name of the storage task within the specified resource group. Storage
|
|
2362
|
-
* task names must be between 3 and 18 characters in length and use numbers and lower-case letters
|
|
2363
|
-
* only.
|
|
2364
|
-
* @param options The options parameters.
|
|
2365
|
-
*/
|
|
2366
|
-
_list(resourceGroupName, storageTaskName, options) {
|
|
2367
|
-
return this.client.sendOperationRequest({ resourceGroupName, storageTaskName, options }, listOperationSpec);
|
|
2368
|
-
}
|
|
2369
|
-
/**
|
|
2370
|
-
* ListNext
|
|
2371
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2372
|
-
* @param storageTaskName The name of the storage task within the specified resource group. Storage
|
|
2373
|
-
* task names must be between 3 and 18 characters in length and use numbers and lower-case letters
|
|
2374
|
-
* only.
|
|
2375
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
2376
|
-
* @param options The options parameters.
|
|
2377
|
-
*/
|
|
2378
|
-
_listNext(resourceGroupName, storageTaskName, nextLink, options) {
|
|
2379
|
-
return this.client.sendOperationRequest({ resourceGroupName, storageTaskName, nextLink, options }, listNextOperationSpec);
|
|
2380
|
-
}
|
|
2381
|
-
}
|
|
2382
|
-
// Operation Specifications
|
|
2383
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2384
|
-
const listOperationSpec = {
|
|
2385
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageActions/storageTasks/{storageTaskName}/reports",
|
|
2386
|
-
httpMethod: "GET",
|
|
2387
|
-
responses: {
|
|
2388
|
-
200: {
|
|
2389
|
-
bodyMapper: StorageTaskReportSummary,
|
|
2390
|
-
},
|
|
2391
|
-
default: {
|
|
2392
|
-
bodyMapper: ErrorResponse,
|
|
2393
|
-
},
|
|
2394
|
-
},
|
|
2395
|
-
queryParameters: [
|
|
2396
|
-
apiVersion,
|
|
2397
|
-
maxpagesize,
|
|
2398
|
-
filter,
|
|
2399
|
-
],
|
|
2400
|
-
urlParameters: [
|
|
2401
|
-
$host,
|
|
2402
|
-
resourceGroupName,
|
|
2403
|
-
storageTaskName,
|
|
2404
|
-
subscriptionId,
|
|
2405
|
-
],
|
|
2406
|
-
headerParameters: [accept],
|
|
2407
|
-
serializer,
|
|
2408
|
-
};
|
|
2409
|
-
const listNextOperationSpec = {
|
|
2410
|
-
path: "{nextLink}",
|
|
2411
|
-
httpMethod: "GET",
|
|
2412
|
-
responses: {
|
|
2413
|
-
200: {
|
|
2414
|
-
bodyMapper: StorageTaskReportSummary,
|
|
2415
|
-
},
|
|
2416
|
-
default: {
|
|
2417
|
-
bodyMapper: ErrorResponse,
|
|
2418
|
-
},
|
|
2419
|
-
},
|
|
2420
|
-
urlParameters: [
|
|
2421
|
-
$host,
|
|
2422
|
-
nextLink,
|
|
2423
|
-
resourceGroupName,
|
|
2424
|
-
storageTaskName,
|
|
2425
|
-
subscriptionId,
|
|
2426
|
-
],
|
|
2427
|
-
headerParameters: [accept],
|
|
2428
|
-
serializer,
|
|
2429
|
-
};
|
|
2430
|
-
|
|
2431
|
-
/*
|
|
2432
|
-
* Copyright (c) Microsoft Corporation.
|
|
2433
|
-
* Licensed under the MIT License.
|
|
2434
|
-
*
|
|
2435
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2436
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2437
|
-
*/
|
|
2438
|
-
class StorageActionsManagementClient extends coreClient__namespace.ServiceClient {
|
|
2439
|
-
/**
|
|
2440
|
-
* Initializes a new instance of the StorageActionsManagementClient class.
|
|
2441
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
2442
|
-
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
|
|
2443
|
-
* @param options The parameter options
|
|
2444
|
-
*/
|
|
2445
|
-
constructor(credentials, subscriptionId, options) {
|
|
2446
|
-
var _a, _b, _c;
|
|
2447
|
-
if (credentials === undefined) {
|
|
2448
|
-
throw new Error("'credentials' cannot be null");
|
|
2449
|
-
}
|
|
2450
|
-
if (subscriptionId === undefined) {
|
|
2451
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
2452
|
-
}
|
|
2453
|
-
// Initializing default values for options
|
|
2454
|
-
if (!options) {
|
|
2455
|
-
options = {};
|
|
2456
|
-
}
|
|
2457
|
-
const defaults = {
|
|
2458
|
-
requestContentType: "application/json; charset=utf-8",
|
|
2459
|
-
credential: credentials,
|
|
2460
|
-
};
|
|
2461
|
-
const packageDetails = `azsdk-js-arm-storageactions/1.0.0-beta.1`;
|
|
2462
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
2463
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
2464
|
-
: `${packageDetails}`;
|
|
2465
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
2466
|
-
userAgentPrefix,
|
|
2467
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
2468
|
-
super(optionsWithDefaults);
|
|
2469
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
|
2470
|
-
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
2471
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
2472
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
2473
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
2474
|
-
}
|
|
2475
|
-
if (!options ||
|
|
2476
|
-
!options.pipeline ||
|
|
2477
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
2478
|
-
!bearerTokenAuthenticationPolicyFound) {
|
|
2479
|
-
this.pipeline.removePolicy({
|
|
2480
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName,
|
|
2481
|
-
});
|
|
2482
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
2483
|
-
credential: credentials,
|
|
2484
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
2485
|
-
challengeCallbacks: {
|
|
2486
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
2487
|
-
},
|
|
2488
|
-
}));
|
|
2489
|
-
}
|
|
2490
|
-
// Parameter assignments
|
|
2491
|
-
this.subscriptionId = subscriptionId;
|
|
2492
|
-
// Assigning values to Constant parameters
|
|
2493
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
2494
|
-
this.apiVersion = options.apiVersion || "2023-01-01";
|
|
2495
|
-
this.operations = new OperationsImpl(this);
|
|
2496
|
-
this.storageTasks = new StorageTasksImpl(this);
|
|
2497
|
-
this.storageTaskAssignmentOperations =
|
|
2498
|
-
new StorageTaskAssignmentOperationsImpl(this);
|
|
2499
|
-
this.storageTasksReport = new StorageTasksReportImpl(this);
|
|
2500
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
2501
|
-
}
|
|
2502
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
2503
|
-
addCustomApiVersionPolicy(apiVersion) {
|
|
2504
|
-
if (!apiVersion) {
|
|
2505
|
-
return;
|
|
2506
|
-
}
|
|
2507
|
-
const apiVersionPolicy = {
|
|
2508
|
-
name: "CustomApiVersionPolicy",
|
|
2509
|
-
sendRequest(request, next) {
|
|
2510
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2511
|
-
const param = request.url.split("?");
|
|
2512
|
-
if (param.length > 1) {
|
|
2513
|
-
const newParams = param[1].split("&").map((item) => {
|
|
2514
|
-
if (item.indexOf("api-version") > -1) {
|
|
2515
|
-
return "api-version=" + apiVersion;
|
|
2516
|
-
}
|
|
2517
|
-
else {
|
|
2518
|
-
return item;
|
|
2519
|
-
}
|
|
2520
|
-
});
|
|
2521
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
2522
|
-
}
|
|
2523
|
-
return next(request);
|
|
2524
|
-
});
|
|
2525
|
-
},
|
|
2526
|
-
};
|
|
2527
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
2528
|
-
}
|
|
2529
|
-
}
|
|
2530
|
-
|
|
2531
|
-
exports.StorageActionsManagementClient = StorageActionsManagementClient;
|
|
2532
|
-
exports.getContinuationToken = getContinuationToken;
|
|
2533
|
-
//# sourceMappingURL=index.js.map
|