@azure/arm-computeschedule 1.1.0 → 1.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/browser/api/computeScheduleContext.d.ts +3 -0
- package/dist/browser/api/computeScheduleContext.js +18 -11
- package/dist/browser/api/computeScheduleContext.js.map +1 -1
- package/dist/browser/api/occurrenceExtension/index.d.ts +3 -0
- package/dist/browser/api/occurrenceExtension/index.js +4 -0
- package/dist/browser/api/occurrenceExtension/index.js.map +1 -0
- package/dist/browser/api/occurrenceExtension/operations.d.ts +10 -0
- package/dist/browser/api/occurrenceExtension/operations.js +39 -0
- package/dist/browser/api/occurrenceExtension/operations.js.map +1 -0
- package/dist/browser/api/occurrenceExtension/options.d.ts +5 -0
- package/dist/browser/api/occurrenceExtension/options.js +4 -0
- package/dist/browser/api/occurrenceExtension/options.js.map +1 -0
- package/dist/browser/api/occurrences/index.d.ts +3 -0
- package/dist/browser/api/occurrences/index.js +4 -0
- package/dist/browser/api/occurrences/index.js.map +1 -0
- package/dist/browser/api/occurrences/operations.d.ts +27 -0
- package/dist/browser/api/occurrences/operations.js +177 -0
- package/dist/browser/api/occurrences/operations.js.map +1 -0
- package/dist/browser/api/occurrences/options.d.ts +19 -0
- package/dist/browser/api/occurrences/options.js +4 -0
- package/dist/browser/api/occurrences/options.js.map +1 -0
- package/dist/browser/api/operations/operations.d.ts +1 -1
- package/dist/browser/api/operations/operations.js +8 -3
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/scheduledActionExtension/index.d.ts +3 -0
- package/dist/browser/api/scheduledActionExtension/index.js +4 -0
- package/dist/browser/api/scheduledActionExtension/index.js.map +1 -0
- package/dist/browser/api/scheduledActionExtension/operations.d.ts +10 -0
- package/dist/browser/api/scheduledActionExtension/operations.js +39 -0
- package/dist/browser/api/scheduledActionExtension/operations.js.map +1 -0
- package/dist/browser/api/scheduledActionExtension/options.d.ts +5 -0
- package/dist/browser/api/scheduledActionExtension/options.js +4 -0
- package/dist/browser/api/scheduledActionExtension/options.js.map +1 -0
- package/dist/browser/api/scheduledActions/index.d.ts +2 -2
- package/dist/browser/api/scheduledActions/index.js +1 -1
- package/dist/browser/api/scheduledActions/index.js.map +1 -1
- package/dist/browser/api/scheduledActions/operations.d.ts +65 -2
- package/dist/browser/api/scheduledActions/operations.js +598 -34
- package/dist/browser/api/scheduledActions/operations.js.map +1 -1
- package/dist/browser/api/scheduledActions/options.d.ts +46 -0
- package/dist/browser/api/scheduledActions/options.js.map +1 -1
- package/dist/browser/classic/index.d.ts +3 -0
- package/dist/browser/classic/index.js.map +1 -1
- package/dist/browser/classic/occurrenceExtension/index.d.ts +11 -0
- package/dist/browser/classic/occurrenceExtension/index.js +14 -0
- package/dist/browser/classic/occurrenceExtension/index.js.map +1 -0
- package/dist/browser/classic/occurrences/index.d.ts +20 -0
- package/dist/browser/classic/occurrences/index.js +18 -0
- package/dist/browser/classic/occurrences/index.js.map +1 -0
- package/dist/browser/classic/operations/index.d.ts +1 -1
- package/dist/browser/classic/operations/index.js +3 -1
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/classic/scheduledActionExtension/index.d.ts +11 -0
- package/dist/browser/classic/scheduledActionExtension/index.js +14 -0
- package/dist/browser/classic/scheduledActionExtension/index.js.map +1 -0
- package/dist/browser/classic/scheduledActions/index.d.ts +37 -2
- package/dist/browser/classic/scheduledActions/index.js +18 -2
- package/dist/browser/classic/scheduledActions/index.js.map +1 -1
- package/dist/browser/computeScheduleClient.d.ts +11 -2
- package/dist/browser/computeScheduleClient.js +25 -4
- package/dist/browser/computeScheduleClient.js.map +1 -1
- package/dist/browser/index.d.ts +9 -3
- package/dist/browser/index.js +4 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -1
- package/dist/browser/models/index.js +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +619 -1
- package/dist/browser/models/models.js +581 -0
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.js +97 -0
- package/dist/browser/restorePollerHelpers.js.map +1 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js +29 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.js +31 -50
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/browser/static-helpers/pollingHelpers.js +79 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.js +2 -2
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/api/computeScheduleContext.d.ts +3 -0
- package/dist/commonjs/api/computeScheduleContext.js +18 -11
- package/dist/commonjs/api/computeScheduleContext.js.map +1 -1
- package/dist/commonjs/api/occurrenceExtension/index.d.ts +3 -0
- package/dist/commonjs/api/occurrenceExtension/index.js +8 -0
- package/dist/commonjs/api/occurrenceExtension/index.js.map +1 -0
- package/dist/commonjs/api/occurrenceExtension/operations.d.ts +10 -0
- package/dist/commonjs/api/occurrenceExtension/operations.js +44 -0
- package/dist/commonjs/api/occurrenceExtension/operations.js.map +1 -0
- package/dist/commonjs/api/occurrenceExtension/options.d.ts +5 -0
- package/dist/commonjs/api/occurrenceExtension/options.js +5 -0
- package/dist/commonjs/api/occurrenceExtension/options.js.map +1 -0
- package/dist/commonjs/api/occurrences/index.d.ts +3 -0
- package/dist/commonjs/api/occurrences/index.js +12 -0
- package/dist/commonjs/api/occurrences/index.js.map +1 -0
- package/dist/commonjs/api/occurrences/operations.d.ts +27 -0
- package/dist/commonjs/api/occurrences/operations.js +194 -0
- package/dist/commonjs/api/occurrences/operations.js.map +1 -0
- package/dist/commonjs/api/occurrences/options.d.ts +19 -0
- package/dist/commonjs/api/occurrences/options.js +5 -0
- package/dist/commonjs/api/occurrences/options.js.map +1 -0
- package/dist/commonjs/api/operations/operations.d.ts +1 -1
- package/dist/commonjs/api/operations/operations.js +8 -3
- package/dist/commonjs/api/operations/operations.js.map +1 -1
- package/dist/commonjs/api/scheduledActionExtension/index.d.ts +3 -0
- package/dist/commonjs/api/scheduledActionExtension/index.js +8 -0
- package/dist/commonjs/api/scheduledActionExtension/index.js.map +1 -0
- package/dist/commonjs/api/scheduledActionExtension/operations.d.ts +10 -0
- package/dist/commonjs/api/scheduledActionExtension/operations.js +44 -0
- package/dist/commonjs/api/scheduledActionExtension/operations.js.map +1 -0
- package/dist/commonjs/api/scheduledActionExtension/options.d.ts +5 -0
- package/dist/commonjs/api/scheduledActionExtension/options.js +5 -0
- package/dist/commonjs/api/scheduledActionExtension/options.js.map +1 -0
- package/dist/commonjs/api/scheduledActions/index.d.ts +2 -2
- package/dist/commonjs/api/scheduledActions/index.js +15 -1
- package/dist/commonjs/api/scheduledActions/index.js.map +1 -1
- package/dist/commonjs/api/scheduledActions/operations.d.ts +65 -2
- package/dist/commonjs/api/scheduledActions/operations.js +639 -33
- package/dist/commonjs/api/scheduledActions/operations.js.map +1 -1
- package/dist/commonjs/api/scheduledActions/options.d.ts +46 -0
- package/dist/commonjs/api/scheduledActions/options.js.map +1 -1
- package/dist/commonjs/classic/index.d.ts +3 -0
- package/dist/commonjs/classic/index.js.map +1 -1
- package/dist/commonjs/classic/occurrenceExtension/index.d.ts +11 -0
- package/dist/commonjs/classic/occurrenceExtension/index.js +17 -0
- package/dist/commonjs/classic/occurrenceExtension/index.js.map +1 -0
- package/dist/commonjs/classic/occurrences/index.d.ts +20 -0
- package/dist/commonjs/classic/occurrences/index.js +21 -0
- package/dist/commonjs/classic/occurrences/index.js.map +1 -0
- package/dist/commonjs/classic/operations/index.d.ts +1 -1
- package/dist/commonjs/classic/operations/index.js +3 -1
- package/dist/commonjs/classic/operations/index.js.map +1 -1
- package/dist/commonjs/classic/scheduledActionExtension/index.d.ts +11 -0
- package/dist/commonjs/classic/scheduledActionExtension/index.js +17 -0
- package/dist/commonjs/classic/scheduledActionExtension/index.js.map +1 -0
- package/dist/commonjs/classic/scheduledActions/index.d.ts +37 -2
- package/dist/commonjs/classic/scheduledActions/index.js +17 -1
- package/dist/commonjs/classic/scheduledActions/index.js.map +1 -1
- package/dist/commonjs/computeScheduleClient.d.ts +11 -2
- package/dist/commonjs/computeScheduleClient.js +28 -7
- package/dist/commonjs/computeScheduleClient.js.map +1 -1
- package/dist/commonjs/index.d.ts +9 -3
- package/dist/commonjs/index.js +16 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -1
- package/dist/commonjs/models/index.js +12 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +619 -1
- package/dist/commonjs/models/models.js +635 -1
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.js +100 -0
- package/dist/commonjs/restorePollerHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +33 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +31 -50
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +82 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +2 -2
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/api/computeScheduleContext.d.ts +3 -0
- package/dist/esm/api/computeScheduleContext.js +18 -11
- package/dist/esm/api/computeScheduleContext.js.map +1 -1
- package/dist/esm/api/occurrenceExtension/index.d.ts +3 -0
- package/dist/esm/api/occurrenceExtension/index.js +4 -0
- package/dist/esm/api/occurrenceExtension/index.js.map +1 -0
- package/dist/esm/api/occurrenceExtension/operations.d.ts +10 -0
- package/dist/esm/api/occurrenceExtension/operations.js +39 -0
- package/dist/esm/api/occurrenceExtension/operations.js.map +1 -0
- package/dist/esm/api/occurrenceExtension/options.d.ts +5 -0
- package/dist/esm/api/occurrenceExtension/options.js +4 -0
- package/dist/esm/api/occurrenceExtension/options.js.map +1 -0
- package/dist/esm/api/occurrences/index.d.ts +3 -0
- package/dist/esm/api/occurrences/index.js +4 -0
- package/dist/esm/api/occurrences/index.js.map +1 -0
- package/dist/esm/api/occurrences/operations.d.ts +27 -0
- package/dist/esm/api/occurrences/operations.js +177 -0
- package/dist/esm/api/occurrences/operations.js.map +1 -0
- package/dist/esm/api/occurrences/options.d.ts +19 -0
- package/dist/esm/api/occurrences/options.js +4 -0
- package/dist/esm/api/occurrences/options.js.map +1 -0
- package/dist/esm/api/operations/operations.d.ts +1 -1
- package/dist/esm/api/operations/operations.js +8 -3
- package/dist/esm/api/operations/operations.js.map +1 -1
- package/dist/esm/api/scheduledActionExtension/index.d.ts +3 -0
- package/dist/esm/api/scheduledActionExtension/index.js +4 -0
- package/dist/esm/api/scheduledActionExtension/index.js.map +1 -0
- package/dist/esm/api/scheduledActionExtension/operations.d.ts +10 -0
- package/dist/esm/api/scheduledActionExtension/operations.js +39 -0
- package/dist/esm/api/scheduledActionExtension/operations.js.map +1 -0
- package/dist/esm/api/scheduledActionExtension/options.d.ts +5 -0
- package/dist/esm/api/scheduledActionExtension/options.js +4 -0
- package/dist/esm/api/scheduledActionExtension/options.js.map +1 -0
- package/dist/esm/api/scheduledActions/index.d.ts +2 -2
- package/dist/esm/api/scheduledActions/index.js +1 -1
- package/dist/esm/api/scheduledActions/index.js.map +1 -1
- package/dist/esm/api/scheduledActions/operations.d.ts +65 -2
- package/dist/esm/api/scheduledActions/operations.js +598 -34
- package/dist/esm/api/scheduledActions/operations.js.map +1 -1
- package/dist/esm/api/scheduledActions/options.d.ts +46 -0
- package/dist/esm/api/scheduledActions/options.js.map +1 -1
- package/dist/esm/classic/index.d.ts +3 -0
- package/dist/esm/classic/index.js.map +1 -1
- package/dist/esm/classic/occurrenceExtension/index.d.ts +11 -0
- package/dist/esm/classic/occurrenceExtension/index.js +14 -0
- package/dist/esm/classic/occurrenceExtension/index.js.map +1 -0
- package/dist/esm/classic/occurrences/index.d.ts +20 -0
- package/dist/esm/classic/occurrences/index.js +18 -0
- package/dist/esm/classic/occurrences/index.js.map +1 -0
- package/dist/esm/classic/operations/index.d.ts +1 -1
- package/dist/esm/classic/operations/index.js +3 -1
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/classic/scheduledActionExtension/index.d.ts +11 -0
- package/dist/esm/classic/scheduledActionExtension/index.js +14 -0
- package/dist/esm/classic/scheduledActionExtension/index.js.map +1 -0
- package/dist/esm/classic/scheduledActions/index.d.ts +37 -2
- package/dist/esm/classic/scheduledActions/index.js +18 -2
- package/dist/esm/classic/scheduledActions/index.js.map +1 -1
- package/dist/esm/computeScheduleClient.d.ts +11 -2
- package/dist/esm/computeScheduleClient.js +25 -4
- package/dist/esm/computeScheduleClient.js.map +1 -1
- package/dist/esm/index.d.ts +9 -3
- package/dist/esm/index.js +4 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +619 -1
- package/dist/esm/models/models.js +581 -0
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.js +97 -0
- package/dist/esm/restorePollerHelpers.js.map +1 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js +29 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.js +31 -50
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/esm/static-helpers/pollingHelpers.js +79 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.js +2 -2
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
- package/dist/react-native/api/computeScheduleContext.d.ts +3 -0
- package/dist/react-native/api/computeScheduleContext.js +18 -11
- package/dist/react-native/api/computeScheduleContext.js.map +1 -1
- package/dist/react-native/api/occurrenceExtension/index.d.ts +3 -0
- package/dist/react-native/api/occurrenceExtension/index.js +4 -0
- package/dist/react-native/api/occurrenceExtension/index.js.map +1 -0
- package/dist/react-native/api/occurrenceExtension/operations.d.ts +10 -0
- package/dist/react-native/api/occurrenceExtension/operations.js +39 -0
- package/dist/react-native/api/occurrenceExtension/operations.js.map +1 -0
- package/dist/react-native/api/occurrenceExtension/options.d.ts +5 -0
- package/dist/react-native/api/occurrenceExtension/options.js +4 -0
- package/dist/react-native/api/occurrenceExtension/options.js.map +1 -0
- package/dist/react-native/api/occurrences/index.d.ts +3 -0
- package/dist/react-native/api/occurrences/index.js +4 -0
- package/dist/react-native/api/occurrences/index.js.map +1 -0
- package/dist/react-native/api/occurrences/operations.d.ts +27 -0
- package/dist/react-native/api/occurrences/operations.js +177 -0
- package/dist/react-native/api/occurrences/operations.js.map +1 -0
- package/dist/react-native/api/occurrences/options.d.ts +19 -0
- package/dist/react-native/api/occurrences/options.js +4 -0
- package/dist/react-native/api/occurrences/options.js.map +1 -0
- package/dist/react-native/api/operations/operations.d.ts +1 -1
- package/dist/react-native/api/operations/operations.js +8 -3
- package/dist/react-native/api/operations/operations.js.map +1 -1
- package/dist/react-native/api/scheduledActionExtension/index.d.ts +3 -0
- package/dist/react-native/api/scheduledActionExtension/index.js +4 -0
- package/dist/react-native/api/scheduledActionExtension/index.js.map +1 -0
- package/dist/react-native/api/scheduledActionExtension/operations.d.ts +10 -0
- package/dist/react-native/api/scheduledActionExtension/operations.js +39 -0
- package/dist/react-native/api/scheduledActionExtension/operations.js.map +1 -0
- package/dist/react-native/api/scheduledActionExtension/options.d.ts +5 -0
- package/dist/react-native/api/scheduledActionExtension/options.js +4 -0
- package/dist/react-native/api/scheduledActionExtension/options.js.map +1 -0
- package/dist/react-native/api/scheduledActions/index.d.ts +2 -2
- package/dist/react-native/api/scheduledActions/index.js +1 -1
- package/dist/react-native/api/scheduledActions/index.js.map +1 -1
- package/dist/react-native/api/scheduledActions/operations.d.ts +65 -2
- package/dist/react-native/api/scheduledActions/operations.js +598 -34
- package/dist/react-native/api/scheduledActions/operations.js.map +1 -1
- package/dist/react-native/api/scheduledActions/options.d.ts +46 -0
- package/dist/react-native/api/scheduledActions/options.js.map +1 -1
- package/dist/react-native/classic/index.d.ts +3 -0
- package/dist/react-native/classic/index.js.map +1 -1
- package/dist/react-native/classic/occurrenceExtension/index.d.ts +11 -0
- package/dist/react-native/classic/occurrenceExtension/index.js +14 -0
- package/dist/react-native/classic/occurrenceExtension/index.js.map +1 -0
- package/dist/react-native/classic/occurrences/index.d.ts +20 -0
- package/dist/react-native/classic/occurrences/index.js +18 -0
- package/dist/react-native/classic/occurrences/index.js.map +1 -0
- package/dist/react-native/classic/operations/index.d.ts +1 -1
- package/dist/react-native/classic/operations/index.js +3 -1
- package/dist/react-native/classic/operations/index.js.map +1 -1
- package/dist/react-native/classic/scheduledActionExtension/index.d.ts +11 -0
- package/dist/react-native/classic/scheduledActionExtension/index.js +14 -0
- package/dist/react-native/classic/scheduledActionExtension/index.js.map +1 -0
- package/dist/react-native/classic/scheduledActions/index.d.ts +37 -2
- package/dist/react-native/classic/scheduledActions/index.js +18 -2
- package/dist/react-native/classic/scheduledActions/index.js.map +1 -1
- package/dist/react-native/computeScheduleClient.d.ts +11 -2
- package/dist/react-native/computeScheduleClient.js +25 -4
- package/dist/react-native/computeScheduleClient.js.map +1 -1
- package/dist/react-native/index.d.ts +9 -3
- package/dist/react-native/index.js +4 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -1
- package/dist/react-native/models/index.js +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +619 -1
- package/dist/react-native/models/models.js +581 -0
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.d.ts +21 -0
- package/dist/react-native/restorePollerHelpers.js +97 -0
- package/dist/react-native/restorePollerHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.js +29 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +31 -50
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/react-native/static-helpers/pollingHelpers.js +79 -0
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.js +2 -2
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
- package/package.json +95 -42
- package/CHANGELOG.md +0 -26
- package/review/arm-computeschedule-api-operations.api.md +0 -19
- package/review/arm-computeschedule-api-scheduledActions.api.md +0 -89
- package/review/arm-computeschedule-api.api.md +0 -27
- package/review/arm-computeschedule-models.api.md +0 -334
- package/review/arm-computeschedule.api.md +0 -437
|
@@ -1,20 +1,514 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { errorResponseDeserializer, submitDeallocateRequestSerializer, deallocateResourceOperationResponseDeserializer, submitHibernateRequestSerializer, hibernateResourceOperationResponseDeserializer, submitStartRequestSerializer, startResourceOperationResponseDeserializer, executeDeallocateRequestSerializer, executeHibernateRequestSerializer, executeStartRequestSerializer, executeCreateRequestSerializer, createResourceOperationResponseDeserializer, executeDeleteRequestSerializer, deleteResourceOperationResponseDeserializer, getOperationStatusRequestSerializer, getOperationStatusResponseDeserializer, cancelOperationsRequestSerializer, cancelOperationsResponseDeserializer, getOperationErrorsRequestSerializer, getOperationErrorsResponseDeserializer, } from "../../models/models.js";
|
|
3
|
+
import { errorResponseDeserializer, submitDeallocateRequestSerializer, deallocateResourceOperationResponseDeserializer, submitHibernateRequestSerializer, hibernateResourceOperationResponseDeserializer, submitStartRequestSerializer, startResourceOperationResponseDeserializer, executeDeallocateRequestSerializer, executeHibernateRequestSerializer, executeStartRequestSerializer, executeCreateRequestSerializer, createResourceOperationResponseDeserializer, executeDeleteRequestSerializer, deleteResourceOperationResponseDeserializer, getOperationStatusRequestSerializer, getOperationStatusResponseDeserializer, cancelOperationsRequestSerializer, cancelOperationsResponseDeserializer, getOperationErrorsRequestSerializer, getOperationErrorsResponseDeserializer, scheduledActionSerializer, scheduledActionDeserializer, scheduledActionUpdateSerializer, _scheduledActionListResultDeserializer, _resourceListResponseDeserializer, resourceAttachRequestSerializer, recurringActionsResourceOperationResultDeserializer, resourceDetachRequestSerializer, resourcePatchRequestSerializer, cancelOccurrenceRequestSerializer, occurrenceDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
|
|
4
6
|
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
5
7
|
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
8
|
+
export function _triggerManualOccurrenceSend(context, resourceGroupName, scheduledActionName, options = {
|
|
9
|
+
requestOptions: {},
|
|
10
|
+
}) {
|
|
11
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ComputeSchedule/scheduledActions/{scheduledActionName}/triggerManualOccurrence{?api%2Dversion}", {
|
|
12
|
+
subscriptionId: context.subscriptionId,
|
|
13
|
+
resourceGroupName: resourceGroupName,
|
|
14
|
+
scheduledActionName: scheduledActionName,
|
|
15
|
+
"api%2Dversion": context.apiVersion,
|
|
16
|
+
}, {
|
|
17
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
18
|
+
});
|
|
19
|
+
return context.path(path).post({
|
|
20
|
+
...operationOptionsToRequestParameters(options),
|
|
21
|
+
headers: {
|
|
22
|
+
accept: "application/json",
|
|
23
|
+
...options.requestOptions?.headers,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export async function _triggerManualOccurrenceDeserialize(result) {
|
|
28
|
+
const expectedStatuses = ["200"];
|
|
29
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
30
|
+
const error = createRestError(result);
|
|
31
|
+
error.details = errorResponseDeserializer(result.body);
|
|
32
|
+
throw error;
|
|
33
|
+
}
|
|
34
|
+
return occurrenceDeserializer(result.body);
|
|
35
|
+
}
|
|
36
|
+
/** A synchronous resource action. */
|
|
37
|
+
export async function triggerManualOccurrence(context, resourceGroupName, scheduledActionName, options = {
|
|
38
|
+
requestOptions: {},
|
|
39
|
+
}) {
|
|
40
|
+
const result = await _triggerManualOccurrenceSend(context, resourceGroupName, scheduledActionName, options);
|
|
41
|
+
return _triggerManualOccurrenceDeserialize(result);
|
|
42
|
+
}
|
|
43
|
+
export function _cancelNextOccurrenceSend(context, resourceGroupName, scheduledActionName, body, options = {
|
|
44
|
+
requestOptions: {},
|
|
45
|
+
}) {
|
|
46
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ComputeSchedule/scheduledActions/{scheduledActionName}/cancelNextOccurrence{?api%2Dversion}", {
|
|
47
|
+
subscriptionId: context.subscriptionId,
|
|
48
|
+
resourceGroupName: resourceGroupName,
|
|
49
|
+
scheduledActionName: scheduledActionName,
|
|
50
|
+
"api%2Dversion": context.apiVersion,
|
|
51
|
+
}, {
|
|
52
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
53
|
+
});
|
|
54
|
+
return context.path(path).post({
|
|
55
|
+
...operationOptionsToRequestParameters(options),
|
|
56
|
+
contentType: "application/json",
|
|
57
|
+
headers: {
|
|
58
|
+
accept: "application/json",
|
|
59
|
+
...options.requestOptions?.headers,
|
|
60
|
+
},
|
|
61
|
+
body: cancelOccurrenceRequestSerializer(body),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
export async function _cancelNextOccurrenceDeserialize(result) {
|
|
65
|
+
const expectedStatuses = ["200"];
|
|
66
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
67
|
+
const error = createRestError(result);
|
|
68
|
+
error.details = errorResponseDeserializer(result.body);
|
|
69
|
+
throw error;
|
|
70
|
+
}
|
|
71
|
+
return recurringActionsResourceOperationResultDeserializer(result.body);
|
|
72
|
+
}
|
|
73
|
+
/** A synchronous resource action. */
|
|
74
|
+
export async function cancelNextOccurrence(context, resourceGroupName, scheduledActionName, body, options = {
|
|
75
|
+
requestOptions: {},
|
|
76
|
+
}) {
|
|
77
|
+
const result = await _cancelNextOccurrenceSend(context, resourceGroupName, scheduledActionName, body, options);
|
|
78
|
+
return _cancelNextOccurrenceDeserialize(result);
|
|
79
|
+
}
|
|
80
|
+
export function _enableSend(context, resourceGroupName, scheduledActionName, options = { requestOptions: {} }) {
|
|
81
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ComputeSchedule/scheduledActions/{scheduledActionName}/enable{?api%2Dversion}", {
|
|
82
|
+
subscriptionId: context.subscriptionId,
|
|
83
|
+
resourceGroupName: resourceGroupName,
|
|
84
|
+
scheduledActionName: scheduledActionName,
|
|
85
|
+
"api%2Dversion": context.apiVersion,
|
|
86
|
+
}, {
|
|
87
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
88
|
+
});
|
|
89
|
+
return context.path(path).post({
|
|
90
|
+
...operationOptionsToRequestParameters(options),
|
|
91
|
+
headers: {
|
|
92
|
+
accept: "application/json",
|
|
93
|
+
...options.requestOptions?.headers,
|
|
94
|
+
},
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
export async function _enableDeserialize(result) {
|
|
98
|
+
const expectedStatuses = ["200"];
|
|
99
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
100
|
+
const error = createRestError(result);
|
|
101
|
+
error.details = errorResponseDeserializer(result.body);
|
|
102
|
+
throw error;
|
|
103
|
+
}
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
/** A synchronous resource action. */
|
|
107
|
+
export async function enable(context, resourceGroupName, scheduledActionName, options = { requestOptions: {} }) {
|
|
108
|
+
const result = await _enableSend(context, resourceGroupName, scheduledActionName, options);
|
|
109
|
+
return _enableDeserialize(result);
|
|
110
|
+
}
|
|
111
|
+
export function _disableSend(context, resourceGroupName, scheduledActionName, options = { requestOptions: {} }) {
|
|
112
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ComputeSchedule/scheduledActions/{scheduledActionName}/disable{?api%2Dversion}", {
|
|
113
|
+
subscriptionId: context.subscriptionId,
|
|
114
|
+
resourceGroupName: resourceGroupName,
|
|
115
|
+
scheduledActionName: scheduledActionName,
|
|
116
|
+
"api%2Dversion": context.apiVersion,
|
|
117
|
+
}, {
|
|
118
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
119
|
+
});
|
|
120
|
+
return context.path(path).post({
|
|
121
|
+
...operationOptionsToRequestParameters(options),
|
|
122
|
+
headers: {
|
|
123
|
+
accept: "application/json",
|
|
124
|
+
...options.requestOptions?.headers,
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
export async function _disableDeserialize(result) {
|
|
129
|
+
const expectedStatuses = ["200"];
|
|
130
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
131
|
+
const error = createRestError(result);
|
|
132
|
+
error.details = errorResponseDeserializer(result.body);
|
|
133
|
+
throw error;
|
|
134
|
+
}
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
/** A synchronous resource action. */
|
|
138
|
+
export async function disable(context, resourceGroupName, scheduledActionName, options = { requestOptions: {} }) {
|
|
139
|
+
const result = await _disableSend(context, resourceGroupName, scheduledActionName, options);
|
|
140
|
+
return _disableDeserialize(result);
|
|
141
|
+
}
|
|
142
|
+
export function _patchResourcesSend(context, resourceGroupName, scheduledActionName, body, options = {
|
|
143
|
+
requestOptions: {},
|
|
144
|
+
}) {
|
|
145
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ComputeSchedule/scheduledActions/{scheduledActionName}/patchResources{?api%2Dversion}", {
|
|
146
|
+
subscriptionId: context.subscriptionId,
|
|
147
|
+
resourceGroupName: resourceGroupName,
|
|
148
|
+
scheduledActionName: scheduledActionName,
|
|
149
|
+
"api%2Dversion": context.apiVersion,
|
|
150
|
+
}, {
|
|
151
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
152
|
+
});
|
|
153
|
+
return context.path(path).post({
|
|
154
|
+
...operationOptionsToRequestParameters(options),
|
|
155
|
+
contentType: "application/json",
|
|
156
|
+
headers: {
|
|
157
|
+
accept: "application/json",
|
|
158
|
+
...options.requestOptions?.headers,
|
|
159
|
+
},
|
|
160
|
+
body: resourcePatchRequestSerializer(body),
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
export async function _patchResourcesDeserialize(result) {
|
|
164
|
+
const expectedStatuses = ["200"];
|
|
165
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
166
|
+
const error = createRestError(result);
|
|
167
|
+
error.details = errorResponseDeserializer(result.body);
|
|
168
|
+
throw error;
|
|
169
|
+
}
|
|
170
|
+
return recurringActionsResourceOperationResultDeserializer(result.body);
|
|
171
|
+
}
|
|
172
|
+
/** A synchronous resource action. */
|
|
173
|
+
export async function patchResources(context, resourceGroupName, scheduledActionName, body, options = {
|
|
174
|
+
requestOptions: {},
|
|
175
|
+
}) {
|
|
176
|
+
const result = await _patchResourcesSend(context, resourceGroupName, scheduledActionName, body, options);
|
|
177
|
+
return _patchResourcesDeserialize(result);
|
|
178
|
+
}
|
|
179
|
+
export function _detachResourcesSend(context, resourceGroupName, scheduledActionName, body, options = {
|
|
180
|
+
requestOptions: {},
|
|
181
|
+
}) {
|
|
182
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ComputeSchedule/scheduledActions/{scheduledActionName}/detachResources{?api%2Dversion}", {
|
|
183
|
+
subscriptionId: context.subscriptionId,
|
|
184
|
+
resourceGroupName: resourceGroupName,
|
|
185
|
+
scheduledActionName: scheduledActionName,
|
|
186
|
+
"api%2Dversion": context.apiVersion,
|
|
187
|
+
}, {
|
|
188
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
189
|
+
});
|
|
190
|
+
return context.path(path).post({
|
|
191
|
+
...operationOptionsToRequestParameters(options),
|
|
192
|
+
contentType: "application/json",
|
|
193
|
+
headers: {
|
|
194
|
+
accept: "application/json",
|
|
195
|
+
...options.requestOptions?.headers,
|
|
196
|
+
},
|
|
197
|
+
body: resourceDetachRequestSerializer(body),
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
export async function _detachResourcesDeserialize(result) {
|
|
201
|
+
const expectedStatuses = ["200"];
|
|
202
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
203
|
+
const error = createRestError(result);
|
|
204
|
+
error.details = errorResponseDeserializer(result.body);
|
|
205
|
+
throw error;
|
|
206
|
+
}
|
|
207
|
+
return recurringActionsResourceOperationResultDeserializer(result.body);
|
|
208
|
+
}
|
|
209
|
+
/** A synchronous resource action. */
|
|
210
|
+
export async function detachResources(context, resourceGroupName, scheduledActionName, body, options = {
|
|
211
|
+
requestOptions: {},
|
|
212
|
+
}) {
|
|
213
|
+
const result = await _detachResourcesSend(context, resourceGroupName, scheduledActionName, body, options);
|
|
214
|
+
return _detachResourcesDeserialize(result);
|
|
215
|
+
}
|
|
216
|
+
export function _attachResourcesSend(context, resourceGroupName, scheduledActionName, body, options = {
|
|
217
|
+
requestOptions: {},
|
|
218
|
+
}) {
|
|
219
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ComputeSchedule/scheduledActions/{scheduledActionName}/attachResources{?api%2Dversion}", {
|
|
220
|
+
subscriptionId: context.subscriptionId,
|
|
221
|
+
resourceGroupName: resourceGroupName,
|
|
222
|
+
scheduledActionName: scheduledActionName,
|
|
223
|
+
"api%2Dversion": context.apiVersion,
|
|
224
|
+
}, {
|
|
225
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
226
|
+
});
|
|
227
|
+
return context.path(path).post({
|
|
228
|
+
...operationOptionsToRequestParameters(options),
|
|
229
|
+
contentType: "application/json",
|
|
230
|
+
headers: {
|
|
231
|
+
accept: "application/json",
|
|
232
|
+
...options.requestOptions?.headers,
|
|
233
|
+
},
|
|
234
|
+
body: resourceAttachRequestSerializer(body),
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
export async function _attachResourcesDeserialize(result) {
|
|
238
|
+
const expectedStatuses = ["200"];
|
|
239
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
240
|
+
const error = createRestError(result);
|
|
241
|
+
error.details = errorResponseDeserializer(result.body);
|
|
242
|
+
throw error;
|
|
243
|
+
}
|
|
244
|
+
return recurringActionsResourceOperationResultDeserializer(result.body);
|
|
245
|
+
}
|
|
246
|
+
/** A synchronous resource action. */
|
|
247
|
+
export async function attachResources(context, resourceGroupName, scheduledActionName, body, options = {
|
|
248
|
+
requestOptions: {},
|
|
249
|
+
}) {
|
|
250
|
+
const result = await _attachResourcesSend(context, resourceGroupName, scheduledActionName, body, options);
|
|
251
|
+
return _attachResourcesDeserialize(result);
|
|
252
|
+
}
|
|
253
|
+
export function _listResourcesSend(context, resourceGroupName, scheduledActionName, options = { requestOptions: {} }) {
|
|
254
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ComputeSchedule/scheduledActions/{scheduledActionName}/resources{?api%2Dversion}", {
|
|
255
|
+
subscriptionId: context.subscriptionId,
|
|
256
|
+
resourceGroupName: resourceGroupName,
|
|
257
|
+
scheduledActionName: scheduledActionName,
|
|
258
|
+
"api%2Dversion": context.apiVersion,
|
|
259
|
+
}, {
|
|
260
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
261
|
+
});
|
|
262
|
+
return context.path(path).get({
|
|
263
|
+
...operationOptionsToRequestParameters(options),
|
|
264
|
+
headers: {
|
|
265
|
+
accept: "application/json",
|
|
266
|
+
...options.requestOptions?.headers,
|
|
267
|
+
},
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
export async function _listResourcesDeserialize(result) {
|
|
271
|
+
const expectedStatuses = ["200"];
|
|
272
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
273
|
+
const error = createRestError(result);
|
|
274
|
+
error.details = errorResponseDeserializer(result.body);
|
|
275
|
+
throw error;
|
|
276
|
+
}
|
|
277
|
+
return _resourceListResponseDeserializer(result.body);
|
|
278
|
+
}
|
|
279
|
+
/** List resources attached to Scheduled Actions */
|
|
280
|
+
export function listResources(context, resourceGroupName, scheduledActionName, options = { requestOptions: {} }) {
|
|
281
|
+
return buildPagedAsyncIterator(context, () => _listResourcesSend(context, resourceGroupName, scheduledActionName, options), _listResourcesDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
282
|
+
}
|
|
283
|
+
export function _listBySubscriptionSend(context, options = {
|
|
284
|
+
requestOptions: {},
|
|
285
|
+
}) {
|
|
286
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/scheduledActions{?api%2Dversion}", {
|
|
287
|
+
subscriptionId: context.subscriptionId,
|
|
288
|
+
"api%2Dversion": context.apiVersion,
|
|
289
|
+
}, {
|
|
290
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
291
|
+
});
|
|
292
|
+
return context.path(path).get({
|
|
293
|
+
...operationOptionsToRequestParameters(options),
|
|
294
|
+
headers: {
|
|
295
|
+
accept: "application/json",
|
|
296
|
+
...options.requestOptions?.headers,
|
|
297
|
+
},
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
export async function _listBySubscriptionDeserialize(result) {
|
|
301
|
+
const expectedStatuses = ["200"];
|
|
302
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
303
|
+
const error = createRestError(result);
|
|
304
|
+
error.details = errorResponseDeserializer(result.body);
|
|
305
|
+
throw error;
|
|
306
|
+
}
|
|
307
|
+
return _scheduledActionListResultDeserializer(result.body);
|
|
308
|
+
}
|
|
309
|
+
/** List ScheduledAction resources by subscription ID */
|
|
310
|
+
export function listBySubscription(context, options = {
|
|
311
|
+
requestOptions: {},
|
|
312
|
+
}) {
|
|
313
|
+
return buildPagedAsyncIterator(context, () => _listBySubscriptionSend(context, options), _listBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
314
|
+
}
|
|
315
|
+
export function _listByResourceGroupSend(context, resourceGroupName, options = {
|
|
316
|
+
requestOptions: {},
|
|
317
|
+
}) {
|
|
318
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ComputeSchedule/scheduledActions{?api%2Dversion}", {
|
|
319
|
+
subscriptionId: context.subscriptionId,
|
|
320
|
+
resourceGroupName: resourceGroupName,
|
|
321
|
+
"api%2Dversion": context.apiVersion,
|
|
322
|
+
}, {
|
|
323
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
324
|
+
});
|
|
325
|
+
return context.path(path).get({
|
|
326
|
+
...operationOptionsToRequestParameters(options),
|
|
327
|
+
headers: {
|
|
328
|
+
accept: "application/json",
|
|
329
|
+
...options.requestOptions?.headers,
|
|
330
|
+
},
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
export async function _listByResourceGroupDeserialize(result) {
|
|
334
|
+
const expectedStatuses = ["200"];
|
|
335
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
336
|
+
const error = createRestError(result);
|
|
337
|
+
error.details = errorResponseDeserializer(result.body);
|
|
338
|
+
throw error;
|
|
339
|
+
}
|
|
340
|
+
return _scheduledActionListResultDeserializer(result.body);
|
|
341
|
+
}
|
|
342
|
+
/** List ScheduledAction resources by resource group */
|
|
343
|
+
export function listByResourceGroup(context, resourceGroupName, options = {
|
|
344
|
+
requestOptions: {},
|
|
345
|
+
}) {
|
|
346
|
+
return buildPagedAsyncIterator(context, () => _listByResourceGroupSend(context, resourceGroupName, options), _listByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
347
|
+
}
|
|
348
|
+
export function _$deleteSend(context, resourceGroupName, scheduledActionName, options = { requestOptions: {} }) {
|
|
349
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ComputeSchedule/scheduledActions/{scheduledActionName}{?api%2Dversion}", {
|
|
350
|
+
subscriptionId: context.subscriptionId,
|
|
351
|
+
resourceGroupName: resourceGroupName,
|
|
352
|
+
scheduledActionName: scheduledActionName,
|
|
353
|
+
"api%2Dversion": context.apiVersion,
|
|
354
|
+
}, {
|
|
355
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
356
|
+
});
|
|
357
|
+
return context.path(path).delete({
|
|
358
|
+
...operationOptionsToRequestParameters(options),
|
|
359
|
+
headers: {
|
|
360
|
+
accept: "application/json",
|
|
361
|
+
...options.requestOptions?.headers,
|
|
362
|
+
},
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
export async function _$deleteDeserialize(result) {
|
|
366
|
+
const expectedStatuses = ["202", "204", "200"];
|
|
367
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
368
|
+
const error = createRestError(result);
|
|
369
|
+
error.details = errorResponseDeserializer(result.body);
|
|
370
|
+
throw error;
|
|
371
|
+
}
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
/** Delete a ScheduledAction */
|
|
375
|
+
/**
|
|
376
|
+
* @fixme delete is a reserved word that cannot be used as an operation name.
|
|
377
|
+
* Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
|
|
378
|
+
* to the operation to override the generated name.
|
|
379
|
+
*/
|
|
380
|
+
export function $delete(context, resourceGroupName, scheduledActionName, options = { requestOptions: {} }) {
|
|
381
|
+
return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], {
|
|
382
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
383
|
+
abortSignal: options?.abortSignal,
|
|
384
|
+
getInitialResponse: () => _$deleteSend(context, resourceGroupName, scheduledActionName, options),
|
|
385
|
+
resourceLocationConfig: "location",
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
export function _updateSend(context, resourceGroupName, scheduledActionName, properties, options = { requestOptions: {} }) {
|
|
389
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ComputeSchedule/scheduledActions/{scheduledActionName}{?api%2Dversion}", {
|
|
390
|
+
subscriptionId: context.subscriptionId,
|
|
391
|
+
resourceGroupName: resourceGroupName,
|
|
392
|
+
scheduledActionName: scheduledActionName,
|
|
393
|
+
"api%2Dversion": context.apiVersion,
|
|
394
|
+
}, {
|
|
395
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
396
|
+
});
|
|
397
|
+
return context.path(path).patch({
|
|
398
|
+
...operationOptionsToRequestParameters(options),
|
|
399
|
+
contentType: "application/json",
|
|
400
|
+
headers: {
|
|
401
|
+
accept: "application/json",
|
|
402
|
+
...options.requestOptions?.headers,
|
|
403
|
+
},
|
|
404
|
+
body: scheduledActionUpdateSerializer(properties),
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
export async function _updateDeserialize(result) {
|
|
408
|
+
const expectedStatuses = ["200"];
|
|
409
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
410
|
+
const error = createRestError(result);
|
|
411
|
+
error.details = errorResponseDeserializer(result.body);
|
|
412
|
+
throw error;
|
|
413
|
+
}
|
|
414
|
+
return scheduledActionDeserializer(result.body);
|
|
415
|
+
}
|
|
416
|
+
/** Update a ScheduledAction */
|
|
417
|
+
export async function update(context, resourceGroupName, scheduledActionName, properties, options = { requestOptions: {} }) {
|
|
418
|
+
const result = await _updateSend(context, resourceGroupName, scheduledActionName, properties, options);
|
|
419
|
+
return _updateDeserialize(result);
|
|
420
|
+
}
|
|
421
|
+
export function _createOrUpdateSend(context, resourceGroupName, scheduledActionName, resource, options = {
|
|
422
|
+
requestOptions: {},
|
|
423
|
+
}) {
|
|
424
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ComputeSchedule/scheduledActions/{scheduledActionName}{?api%2Dversion}", {
|
|
425
|
+
subscriptionId: context.subscriptionId,
|
|
426
|
+
resourceGroupName: resourceGroupName,
|
|
427
|
+
scheduledActionName: scheduledActionName,
|
|
428
|
+
"api%2Dversion": context.apiVersion,
|
|
429
|
+
}, {
|
|
430
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
431
|
+
});
|
|
432
|
+
return context.path(path).put({
|
|
433
|
+
...operationOptionsToRequestParameters(options),
|
|
434
|
+
contentType: "application/json",
|
|
435
|
+
headers: {
|
|
436
|
+
accept: "application/json",
|
|
437
|
+
...options.requestOptions?.headers,
|
|
438
|
+
},
|
|
439
|
+
body: scheduledActionSerializer(resource),
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
export async function _createOrUpdateDeserialize(result) {
|
|
443
|
+
const expectedStatuses = ["200", "201", "202"];
|
|
444
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
445
|
+
const error = createRestError(result);
|
|
446
|
+
error.details = errorResponseDeserializer(result.body);
|
|
447
|
+
throw error;
|
|
448
|
+
}
|
|
449
|
+
return scheduledActionDeserializer(result.body);
|
|
450
|
+
}
|
|
451
|
+
/** Create a ScheduledAction */
|
|
452
|
+
export function createOrUpdate(context, resourceGroupName, scheduledActionName, resource, options = {
|
|
453
|
+
requestOptions: {},
|
|
454
|
+
}) {
|
|
455
|
+
return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
|
|
456
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
457
|
+
abortSignal: options?.abortSignal,
|
|
458
|
+
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, scheduledActionName, resource, options),
|
|
459
|
+
resourceLocationConfig: "azure-async-operation",
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
export function _getSend(context, resourceGroupName, scheduledActionName, options = { requestOptions: {} }) {
|
|
463
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ComputeSchedule/scheduledActions/{scheduledActionName}{?api%2Dversion}", {
|
|
464
|
+
subscriptionId: context.subscriptionId,
|
|
465
|
+
resourceGroupName: resourceGroupName,
|
|
466
|
+
scheduledActionName: scheduledActionName,
|
|
467
|
+
"api%2Dversion": context.apiVersion,
|
|
468
|
+
}, {
|
|
469
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
470
|
+
});
|
|
471
|
+
return context.path(path).get({
|
|
472
|
+
...operationOptionsToRequestParameters(options),
|
|
473
|
+
headers: {
|
|
474
|
+
accept: "application/json",
|
|
475
|
+
...options.requestOptions?.headers,
|
|
476
|
+
},
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
export async function _getDeserialize(result) {
|
|
480
|
+
const expectedStatuses = ["200"];
|
|
481
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
482
|
+
const error = createRestError(result);
|
|
483
|
+
error.details = errorResponseDeserializer(result.body);
|
|
484
|
+
throw error;
|
|
485
|
+
}
|
|
486
|
+
return scheduledActionDeserializer(result.body);
|
|
487
|
+
}
|
|
488
|
+
/** Get a ScheduledAction */
|
|
489
|
+
export async function get(context, resourceGroupName, scheduledActionName, options = { requestOptions: {} }) {
|
|
490
|
+
const result = await _getSend(context, resourceGroupName, scheduledActionName, options);
|
|
491
|
+
return _getDeserialize(result);
|
|
492
|
+
}
|
|
6
493
|
export function _virtualMachinesGetOperationErrorsSend(context, locationparameter, requestBody, options = {
|
|
7
494
|
requestOptions: {},
|
|
8
495
|
}) {
|
|
9
|
-
var _a, _b;
|
|
10
496
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationErrors{?api%2Dversion}", {
|
|
11
497
|
subscriptionId: context.subscriptionId,
|
|
12
498
|
locationparameter: locationparameter,
|
|
13
499
|
"api%2Dversion": context.apiVersion,
|
|
14
500
|
}, {
|
|
15
|
-
allowReserved:
|
|
501
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
502
|
+
});
|
|
503
|
+
return context.path(path).post({
|
|
504
|
+
...operationOptionsToRequestParameters(options),
|
|
505
|
+
contentType: "application/json",
|
|
506
|
+
headers: {
|
|
507
|
+
accept: "application/json",
|
|
508
|
+
...options.requestOptions?.headers,
|
|
509
|
+
},
|
|
510
|
+
body: getOperationErrorsRequestSerializer(requestBody),
|
|
16
511
|
});
|
|
17
|
-
return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: getOperationErrorsRequestSerializer(requestBody) }));
|
|
18
512
|
}
|
|
19
513
|
export async function _virtualMachinesGetOperationErrorsDeserialize(result) {
|
|
20
514
|
const expectedStatuses = ["200"];
|
|
@@ -35,15 +529,22 @@ export async function virtualMachinesGetOperationErrors(context, locationparamet
|
|
|
35
529
|
export function _virtualMachinesCancelOperationsSend(context, locationparameter, requestBody, options = {
|
|
36
530
|
requestOptions: {},
|
|
37
531
|
}) {
|
|
38
|
-
var _a, _b;
|
|
39
532
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesCancelOperations{?api%2Dversion}", {
|
|
40
533
|
subscriptionId: context.subscriptionId,
|
|
41
534
|
locationparameter: locationparameter,
|
|
42
535
|
"api%2Dversion": context.apiVersion,
|
|
43
536
|
}, {
|
|
44
|
-
allowReserved:
|
|
537
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
538
|
+
});
|
|
539
|
+
return context.path(path).post({
|
|
540
|
+
...operationOptionsToRequestParameters(options),
|
|
541
|
+
contentType: "application/json",
|
|
542
|
+
headers: {
|
|
543
|
+
accept: "application/json",
|
|
544
|
+
...options.requestOptions?.headers,
|
|
545
|
+
},
|
|
546
|
+
body: cancelOperationsRequestSerializer(requestBody),
|
|
45
547
|
});
|
|
46
|
-
return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: cancelOperationsRequestSerializer(requestBody) }));
|
|
47
548
|
}
|
|
48
549
|
export async function _virtualMachinesCancelOperationsDeserialize(result) {
|
|
49
550
|
const expectedStatuses = ["200"];
|
|
@@ -64,15 +565,22 @@ export async function virtualMachinesCancelOperations(context, locationparameter
|
|
|
64
565
|
export function _virtualMachinesGetOperationStatusSend(context, locationparameter, requestBody, options = {
|
|
65
566
|
requestOptions: {},
|
|
66
567
|
}) {
|
|
67
|
-
var _a, _b;
|
|
68
568
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationStatus{?api%2Dversion}", {
|
|
69
569
|
subscriptionId: context.subscriptionId,
|
|
70
570
|
locationparameter: locationparameter,
|
|
71
571
|
"api%2Dversion": context.apiVersion,
|
|
72
572
|
}, {
|
|
73
|
-
allowReserved:
|
|
573
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
574
|
+
});
|
|
575
|
+
return context.path(path).post({
|
|
576
|
+
...operationOptionsToRequestParameters(options),
|
|
577
|
+
contentType: "application/json",
|
|
578
|
+
headers: {
|
|
579
|
+
accept: "application/json",
|
|
580
|
+
...options.requestOptions?.headers,
|
|
581
|
+
},
|
|
582
|
+
body: getOperationStatusRequestSerializer(requestBody),
|
|
74
583
|
});
|
|
75
|
-
return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: getOperationStatusRequestSerializer(requestBody) }));
|
|
76
584
|
}
|
|
77
585
|
export async function _virtualMachinesGetOperationStatusDeserialize(result) {
|
|
78
586
|
const expectedStatuses = ["200"];
|
|
@@ -93,15 +601,22 @@ export async function virtualMachinesGetOperationStatus(context, locationparamet
|
|
|
93
601
|
export function _virtualMachinesExecuteDeleteSend(context, locationparameter, requestBody, options = {
|
|
94
602
|
requestOptions: {},
|
|
95
603
|
}) {
|
|
96
|
-
var _a, _b;
|
|
97
604
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDelete{?api%2Dversion}", {
|
|
98
605
|
subscriptionId: context.subscriptionId,
|
|
99
606
|
locationparameter: locationparameter,
|
|
100
607
|
"api%2Dversion": context.apiVersion,
|
|
101
608
|
}, {
|
|
102
|
-
allowReserved:
|
|
609
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
610
|
+
});
|
|
611
|
+
return context.path(path).post({
|
|
612
|
+
...operationOptionsToRequestParameters(options),
|
|
613
|
+
contentType: "application/json",
|
|
614
|
+
headers: {
|
|
615
|
+
accept: "application/json",
|
|
616
|
+
...options.requestOptions?.headers,
|
|
617
|
+
},
|
|
618
|
+
body: executeDeleteRequestSerializer(requestBody),
|
|
103
619
|
});
|
|
104
|
-
return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: executeDeleteRequestSerializer(requestBody) }));
|
|
105
620
|
}
|
|
106
621
|
export async function _virtualMachinesExecuteDeleteDeserialize(result) {
|
|
107
622
|
const expectedStatuses = ["200"];
|
|
@@ -122,15 +637,22 @@ export async function virtualMachinesExecuteDelete(context, locationparameter, r
|
|
|
122
637
|
export function _virtualMachinesExecuteCreateSend(context, locationparameter, requestBody, options = {
|
|
123
638
|
requestOptions: {},
|
|
124
639
|
}) {
|
|
125
|
-
var _a, _b;
|
|
126
640
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteCreate{?api%2Dversion}", {
|
|
127
641
|
subscriptionId: context.subscriptionId,
|
|
128
642
|
locationparameter: locationparameter,
|
|
129
643
|
"api%2Dversion": context.apiVersion,
|
|
130
644
|
}, {
|
|
131
|
-
allowReserved:
|
|
645
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
646
|
+
});
|
|
647
|
+
return context.path(path).post({
|
|
648
|
+
...operationOptionsToRequestParameters(options),
|
|
649
|
+
contentType: "application/json",
|
|
650
|
+
headers: {
|
|
651
|
+
accept: "application/json",
|
|
652
|
+
...options.requestOptions?.headers,
|
|
653
|
+
},
|
|
654
|
+
body: executeCreateRequestSerializer(requestBody),
|
|
132
655
|
});
|
|
133
|
-
return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: executeCreateRequestSerializer(requestBody) }));
|
|
134
656
|
}
|
|
135
657
|
export async function _virtualMachinesExecuteCreateDeserialize(result) {
|
|
136
658
|
const expectedStatuses = ["200"];
|
|
@@ -151,15 +673,22 @@ export async function virtualMachinesExecuteCreate(context, locationparameter, r
|
|
|
151
673
|
export function _virtualMachinesExecuteStartSend(context, locationparameter, requestBody, options = {
|
|
152
674
|
requestOptions: {},
|
|
153
675
|
}) {
|
|
154
|
-
var _a, _b;
|
|
155
676
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteStart{?api%2Dversion}", {
|
|
156
677
|
subscriptionId: context.subscriptionId,
|
|
157
678
|
locationparameter: locationparameter,
|
|
158
679
|
"api%2Dversion": context.apiVersion,
|
|
159
680
|
}, {
|
|
160
|
-
allowReserved:
|
|
681
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
682
|
+
});
|
|
683
|
+
return context.path(path).post({
|
|
684
|
+
...operationOptionsToRequestParameters(options),
|
|
685
|
+
contentType: "application/json",
|
|
686
|
+
headers: {
|
|
687
|
+
accept: "application/json",
|
|
688
|
+
...options.requestOptions?.headers,
|
|
689
|
+
},
|
|
690
|
+
body: executeStartRequestSerializer(requestBody),
|
|
161
691
|
});
|
|
162
|
-
return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: executeStartRequestSerializer(requestBody) }));
|
|
163
692
|
}
|
|
164
693
|
export async function _virtualMachinesExecuteStartDeserialize(result) {
|
|
165
694
|
const expectedStatuses = ["200"];
|
|
@@ -180,15 +709,22 @@ export async function virtualMachinesExecuteStart(context, locationparameter, re
|
|
|
180
709
|
export function _virtualMachinesExecuteHibernateSend(context, locationparameter, requestBody, options = {
|
|
181
710
|
requestOptions: {},
|
|
182
711
|
}) {
|
|
183
|
-
var _a, _b;
|
|
184
712
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteHibernate{?api%2Dversion}", {
|
|
185
713
|
subscriptionId: context.subscriptionId,
|
|
186
714
|
locationparameter: locationparameter,
|
|
187
715
|
"api%2Dversion": context.apiVersion,
|
|
188
716
|
}, {
|
|
189
|
-
allowReserved:
|
|
717
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
718
|
+
});
|
|
719
|
+
return context.path(path).post({
|
|
720
|
+
...operationOptionsToRequestParameters(options),
|
|
721
|
+
contentType: "application/json",
|
|
722
|
+
headers: {
|
|
723
|
+
accept: "application/json",
|
|
724
|
+
...options.requestOptions?.headers,
|
|
725
|
+
},
|
|
726
|
+
body: executeHibernateRequestSerializer(requestBody),
|
|
190
727
|
});
|
|
191
|
-
return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: executeHibernateRequestSerializer(requestBody) }));
|
|
192
728
|
}
|
|
193
729
|
export async function _virtualMachinesExecuteHibernateDeserialize(result) {
|
|
194
730
|
const expectedStatuses = ["200"];
|
|
@@ -209,15 +745,22 @@ export async function virtualMachinesExecuteHibernate(context, locationparameter
|
|
|
209
745
|
export function _virtualMachinesExecuteDeallocateSend(context, locationparameter, requestBody, options = {
|
|
210
746
|
requestOptions: {},
|
|
211
747
|
}) {
|
|
212
|
-
var _a, _b;
|
|
213
748
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDeallocate{?api%2Dversion}", {
|
|
214
749
|
subscriptionId: context.subscriptionId,
|
|
215
750
|
locationparameter: locationparameter,
|
|
216
751
|
"api%2Dversion": context.apiVersion,
|
|
217
752
|
}, {
|
|
218
|
-
allowReserved:
|
|
753
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
754
|
+
});
|
|
755
|
+
return context.path(path).post({
|
|
756
|
+
...operationOptionsToRequestParameters(options),
|
|
757
|
+
contentType: "application/json",
|
|
758
|
+
headers: {
|
|
759
|
+
accept: "application/json",
|
|
760
|
+
...options.requestOptions?.headers,
|
|
761
|
+
},
|
|
762
|
+
body: executeDeallocateRequestSerializer(requestBody),
|
|
219
763
|
});
|
|
220
|
-
return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: executeDeallocateRequestSerializer(requestBody) }));
|
|
221
764
|
}
|
|
222
765
|
export async function _virtualMachinesExecuteDeallocateDeserialize(result) {
|
|
223
766
|
const expectedStatuses = ["200"];
|
|
@@ -238,15 +781,22 @@ export async function virtualMachinesExecuteDeallocate(context, locationparamete
|
|
|
238
781
|
export function _virtualMachinesSubmitStartSend(context, locationparameter, requestBody, options = {
|
|
239
782
|
requestOptions: {},
|
|
240
783
|
}) {
|
|
241
|
-
var _a, _b;
|
|
242
784
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitStart{?api%2Dversion}", {
|
|
243
785
|
subscriptionId: context.subscriptionId,
|
|
244
786
|
locationparameter: locationparameter,
|
|
245
787
|
"api%2Dversion": context.apiVersion,
|
|
246
788
|
}, {
|
|
247
|
-
allowReserved:
|
|
789
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
790
|
+
});
|
|
791
|
+
return context.path(path).post({
|
|
792
|
+
...operationOptionsToRequestParameters(options),
|
|
793
|
+
contentType: "application/json",
|
|
794
|
+
headers: {
|
|
795
|
+
accept: "application/json",
|
|
796
|
+
...options.requestOptions?.headers,
|
|
797
|
+
},
|
|
798
|
+
body: submitStartRequestSerializer(requestBody),
|
|
248
799
|
});
|
|
249
|
-
return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: submitStartRequestSerializer(requestBody) }));
|
|
250
800
|
}
|
|
251
801
|
export async function _virtualMachinesSubmitStartDeserialize(result) {
|
|
252
802
|
const expectedStatuses = ["200"];
|
|
@@ -267,15 +817,22 @@ export async function virtualMachinesSubmitStart(context, locationparameter, req
|
|
|
267
817
|
export function _virtualMachinesSubmitHibernateSend(context, locationparameter, requestBody, options = {
|
|
268
818
|
requestOptions: {},
|
|
269
819
|
}) {
|
|
270
|
-
var _a, _b;
|
|
271
820
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitHibernate{?api%2Dversion}", {
|
|
272
821
|
subscriptionId: context.subscriptionId,
|
|
273
822
|
locationparameter: locationparameter,
|
|
274
823
|
"api%2Dversion": context.apiVersion,
|
|
275
824
|
}, {
|
|
276
|
-
allowReserved:
|
|
825
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
826
|
+
});
|
|
827
|
+
return context.path(path).post({
|
|
828
|
+
...operationOptionsToRequestParameters(options),
|
|
829
|
+
contentType: "application/json",
|
|
830
|
+
headers: {
|
|
831
|
+
accept: "application/json",
|
|
832
|
+
...options.requestOptions?.headers,
|
|
833
|
+
},
|
|
834
|
+
body: submitHibernateRequestSerializer(requestBody),
|
|
277
835
|
});
|
|
278
|
-
return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: submitHibernateRequestSerializer(requestBody) }));
|
|
279
836
|
}
|
|
280
837
|
export async function _virtualMachinesSubmitHibernateDeserialize(result) {
|
|
281
838
|
const expectedStatuses = ["200"];
|
|
@@ -296,15 +853,22 @@ export async function virtualMachinesSubmitHibernate(context, locationparameter,
|
|
|
296
853
|
export function _virtualMachinesSubmitDeallocateSend(context, locationparameter, requestBody, options = {
|
|
297
854
|
requestOptions: {},
|
|
298
855
|
}) {
|
|
299
|
-
var _a, _b;
|
|
300
856
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitDeallocate{?api%2Dversion}", {
|
|
301
857
|
subscriptionId: context.subscriptionId,
|
|
302
858
|
locationparameter: locationparameter,
|
|
303
859
|
"api%2Dversion": context.apiVersion,
|
|
304
860
|
}, {
|
|
305
|
-
allowReserved:
|
|
861
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
862
|
+
});
|
|
863
|
+
return context.path(path).post({
|
|
864
|
+
...operationOptionsToRequestParameters(options),
|
|
865
|
+
contentType: "application/json",
|
|
866
|
+
headers: {
|
|
867
|
+
accept: "application/json",
|
|
868
|
+
...options.requestOptions?.headers,
|
|
869
|
+
},
|
|
870
|
+
body: submitDeallocateRequestSerializer(requestBody),
|
|
306
871
|
});
|
|
307
|
-
return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: submitDeallocateRequestSerializer(requestBody) }));
|
|
308
872
|
}
|
|
309
873
|
export async function _virtualMachinesSubmitDeallocateDeserialize(result) {
|
|
310
874
|
const expectedStatuses = ["200"];
|