@azure/arm-impactreporting 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +115 -0
- package/dist/browser/api/connectors/index.d.ts +26 -0
- package/dist/browser/api/connectors/index.d.ts.map +1 -0
- package/dist/browser/api/connectors/index.js +110 -0
- package/dist/browser/api/connectors/index.js.map +1 -0
- package/dist/browser/api/impactCategories/index.d.ts +13 -0
- package/dist/browser/api/impactCategories/index.d.ts.map +1 -0
- package/dist/browser/api/impactCategories/index.js +53 -0
- package/dist/browser/api/impactCategories/index.js.map +1 -0
- package/dist/browser/api/impactContext.d.ts +17 -0
- package/dist/browser/api/impactContext.d.ts.map +1 -0
- package/dist/browser/api/impactContext.js +34 -0
- package/dist/browser/api/impactContext.js.map +1 -0
- package/dist/browser/api/index.d.ts +8 -0
- package/dist/browser/api/index.d.ts.map +1 -0
- package/dist/browser/api/index.js +9 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/insights/index.d.ts +21 -0
- package/dist/browser/api/insights/index.d.ts.map +1 -0
- package/dist/browser/api/insights/index.js +85 -0
- package/dist/browser/api/insights/index.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +9 -0
- package/dist/browser/api/operations/index.d.ts.map +1 -0
- package/dist/browser/api/operations/index.js +23 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/options.d.ts +56 -0
- package/dist/browser/api/options.d.ts.map +1 -0
- package/dist/browser/api/options.js +4 -0
- package/dist/browser/api/options.js.map +1 -0
- package/dist/browser/api/workloadImpacts/index.d.ts +22 -0
- package/dist/browser/api/workloadImpacts/index.d.ts.map +1 -0
- package/dist/browser/api/workloadImpacts/index.js +94 -0
- package/dist/browser/api/workloadImpacts/index.js.map +1 -0
- package/dist/browser/classic/connectors/index.d.ts +20 -0
- package/dist/browser/classic/connectors/index.d.ts.map +1 -0
- package/dist/browser/classic/connectors/index.js +16 -0
- package/dist/browser/classic/connectors/index.js.map +1 -0
- package/dist/browser/classic/impactCategories/index.d.ts +13 -0
- package/dist/browser/classic/impactCategories/index.d.ts.map +1 -0
- package/dist/browser/classic/impactCategories/index.js +13 -0
- package/dist/browser/classic/impactCategories/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +6 -0
- package/dist/browser/classic/index.d.ts.map +1 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/insights/index.d.ts +17 -0
- package/dist/browser/classic/insights/index.d.ts.map +1 -0
- package/dist/browser/classic/insights/index.js +15 -0
- package/dist/browser/classic/insights/index.js.map +1 -0
- package/dist/browser/classic/operations/index.d.ts +11 -0
- package/dist/browser/classic/operations/index.d.ts.map +1 -0
- package/dist/browser/classic/operations/index.js +12 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/classic/workloadImpacts/index.d.ts +18 -0
- package/dist/browser/classic/workloadImpacts/index.d.ts.map +1 -0
- package/dist/browser/classic/workloadImpacts/index.js +15 -0
- package/dist/browser/classic/workloadImpacts/index.js.map +1 -0
- package/dist/browser/impactClient.d.ts +26 -0
- package/dist/browser/impactClient.d.ts.map +1 -0
- package/dist/browser/impactClient.js +25 -0
- package/dist/browser/impactClient.js.map +1 -0
- package/dist/browser/index.d.ts +8 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +6 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +2 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +4 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/models.d.ts +641 -0
- package/dist/browser/models/models.d.ts.map +1 -0
- package/dist/browser/models/models.js +660 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.d.ts.map +1 -0
- package/dist/browser/restorePollerHelpers.js +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.d.ts.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.js +137 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.js +76 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/api/connectors/index.d.ts +26 -0
- package/dist/commonjs/api/connectors/index.d.ts.map +1 -0
- package/dist/commonjs/api/connectors/index.js +127 -0
- package/dist/commonjs/api/connectors/index.js.map +1 -0
- package/dist/commonjs/api/impactCategories/index.d.ts +13 -0
- package/dist/commonjs/api/impactCategories/index.d.ts.map +1 -0
- package/dist/commonjs/api/impactCategories/index.js +61 -0
- package/dist/commonjs/api/impactCategories/index.js.map +1 -0
- package/dist/commonjs/api/impactContext.d.ts +17 -0
- package/dist/commonjs/api/impactContext.d.ts.map +1 -0
- package/dist/commonjs/api/impactContext.js +37 -0
- package/dist/commonjs/api/impactContext.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +8 -0
- package/dist/commonjs/api/index.d.ts.map +1 -0
- package/dist/commonjs/api/index.js +29 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/insights/index.d.ts +21 -0
- package/dist/commonjs/api/insights/index.d.ts.map +1 -0
- package/dist/commonjs/api/insights/index.js +99 -0
- package/dist/commonjs/api/insights/index.js.map +1 -0
- package/dist/commonjs/api/operations/index.d.ts +9 -0
- package/dist/commonjs/api/operations/index.d.ts.map +1 -0
- package/dist/commonjs/api/operations/index.js +28 -0
- package/dist/commonjs/api/operations/index.js.map +1 -0
- package/dist/commonjs/api/options.d.ts +56 -0
- package/dist/commonjs/api/options.d.ts.map +1 -0
- package/dist/commonjs/api/options.js +5 -0
- package/dist/commonjs/api/options.js.map +1 -0
- package/dist/commonjs/api/workloadImpacts/index.d.ts +22 -0
- package/dist/commonjs/api/workloadImpacts/index.d.ts.map +1 -0
- package/dist/commonjs/api/workloadImpacts/index.js +108 -0
- package/dist/commonjs/api/workloadImpacts/index.js.map +1 -0
- package/dist/commonjs/classic/connectors/index.d.ts +20 -0
- package/dist/commonjs/classic/connectors/index.d.ts.map +1 -0
- package/dist/commonjs/classic/connectors/index.js +19 -0
- package/dist/commonjs/classic/connectors/index.js.map +1 -0
- package/dist/commonjs/classic/impactCategories/index.d.ts +13 -0
- package/dist/commonjs/classic/impactCategories/index.d.ts.map +1 -0
- package/dist/commonjs/classic/impactCategories/index.js +16 -0
- package/dist/commonjs/classic/impactCategories/index.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +6 -0
- package/dist/commonjs/classic/index.d.ts.map +1 -0
- package/dist/commonjs/classic/index.js +5 -0
- package/dist/commonjs/classic/index.js.map +1 -0
- package/dist/commonjs/classic/insights/index.d.ts +17 -0
- package/dist/commonjs/classic/insights/index.d.ts.map +1 -0
- package/dist/commonjs/classic/insights/index.js +18 -0
- package/dist/commonjs/classic/insights/index.js.map +1 -0
- package/dist/commonjs/classic/operations/index.d.ts +11 -0
- package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
- package/dist/commonjs/classic/operations/index.js +15 -0
- package/dist/commonjs/classic/operations/index.js.map +1 -0
- package/dist/commonjs/classic/workloadImpacts/index.d.ts +18 -0
- package/dist/commonjs/classic/workloadImpacts/index.d.ts.map +1 -0
- package/dist/commonjs/classic/workloadImpacts/index.js +18 -0
- package/dist/commonjs/classic/workloadImpacts/index.js.map +1 -0
- package/dist/commonjs/impactClient.d.ts +26 -0
- package/dist/commonjs/impactClient.d.ts.map +1 -0
- package/dist/commonjs/impactClient.js +29 -0
- package/dist/commonjs/impactClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +8 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +22 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +18 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/models.d.ts +641 -0
- package/dist/commonjs/models/models.d.ts.map +1 -0
- package/dist/commonjs/models/models.js +731 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -0
- package/dist/commonjs/restorePollerHelpers.js +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.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +140 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +79 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/api/connectors/index.d.ts +26 -0
- package/dist/esm/api/connectors/index.d.ts.map +1 -0
- package/dist/esm/api/connectors/index.js +110 -0
- package/dist/esm/api/connectors/index.js.map +1 -0
- package/dist/esm/api/impactCategories/index.d.ts +13 -0
- package/dist/esm/api/impactCategories/index.d.ts.map +1 -0
- package/dist/esm/api/impactCategories/index.js +53 -0
- package/dist/esm/api/impactCategories/index.js.map +1 -0
- package/dist/esm/api/impactContext.d.ts +17 -0
- package/dist/esm/api/impactContext.d.ts.map +1 -0
- package/dist/esm/api/impactContext.js +34 -0
- package/dist/esm/api/impactContext.js.map +1 -0
- package/dist/esm/api/index.d.ts +8 -0
- package/dist/esm/api/index.d.ts.map +1 -0
- package/dist/esm/api/index.js +9 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/insights/index.d.ts +21 -0
- package/dist/esm/api/insights/index.d.ts.map +1 -0
- package/dist/esm/api/insights/index.js +85 -0
- package/dist/esm/api/insights/index.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +9 -0
- package/dist/esm/api/operations/index.d.ts.map +1 -0
- package/dist/esm/api/operations/index.js +23 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/options.d.ts +56 -0
- package/dist/esm/api/options.d.ts.map +1 -0
- package/dist/esm/api/options.js +4 -0
- package/dist/esm/api/options.js.map +1 -0
- package/dist/esm/api/workloadImpacts/index.d.ts +22 -0
- package/dist/esm/api/workloadImpacts/index.d.ts.map +1 -0
- package/dist/esm/api/workloadImpacts/index.js +94 -0
- package/dist/esm/api/workloadImpacts/index.js.map +1 -0
- package/dist/esm/classic/connectors/index.d.ts +20 -0
- package/dist/esm/classic/connectors/index.d.ts.map +1 -0
- package/dist/esm/classic/connectors/index.js +16 -0
- package/dist/esm/classic/connectors/index.js.map +1 -0
- package/dist/esm/classic/impactCategories/index.d.ts +13 -0
- package/dist/esm/classic/impactCategories/index.d.ts.map +1 -0
- package/dist/esm/classic/impactCategories/index.js +13 -0
- package/dist/esm/classic/impactCategories/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +6 -0
- package/dist/esm/classic/index.d.ts.map +1 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/insights/index.d.ts +17 -0
- package/dist/esm/classic/insights/index.d.ts.map +1 -0
- package/dist/esm/classic/insights/index.js +15 -0
- package/dist/esm/classic/insights/index.js.map +1 -0
- package/dist/esm/classic/operations/index.d.ts +11 -0
- package/dist/esm/classic/operations/index.d.ts.map +1 -0
- package/dist/esm/classic/operations/index.js +12 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/classic/workloadImpacts/index.d.ts +18 -0
- package/dist/esm/classic/workloadImpacts/index.d.ts.map +1 -0
- package/dist/esm/classic/workloadImpacts/index.js +15 -0
- package/dist/esm/classic/workloadImpacts/index.js.map +1 -0
- package/dist/esm/impactClient.d.ts +26 -0
- package/dist/esm/impactClient.d.ts.map +1 -0
- package/dist/esm/impactClient.js +25 -0
- package/dist/esm/impactClient.js.map +1 -0
- package/dist/esm/index.d.ts +8 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/models.d.ts +641 -0
- package/dist/esm/models/models.d.ts.map +1 -0
- package/dist/esm/models/models.js +660 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.d.ts.map +1 -0
- package/dist/esm/restorePollerHelpers.js +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.d.ts.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.js +137 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.js +76 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/react-native/api/connectors/index.d.ts +26 -0
- package/dist/react-native/api/connectors/index.d.ts.map +1 -0
- package/dist/react-native/api/connectors/index.js +110 -0
- package/dist/react-native/api/connectors/index.js.map +1 -0
- package/dist/react-native/api/impactCategories/index.d.ts +13 -0
- package/dist/react-native/api/impactCategories/index.d.ts.map +1 -0
- package/dist/react-native/api/impactCategories/index.js +53 -0
- package/dist/react-native/api/impactCategories/index.js.map +1 -0
- package/dist/react-native/api/impactContext.d.ts +17 -0
- package/dist/react-native/api/impactContext.d.ts.map +1 -0
- package/dist/react-native/api/impactContext.js +34 -0
- package/dist/react-native/api/impactContext.js.map +1 -0
- package/dist/react-native/api/index.d.ts +8 -0
- package/dist/react-native/api/index.d.ts.map +1 -0
- package/dist/react-native/api/index.js +9 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/api/insights/index.d.ts +21 -0
- package/dist/react-native/api/insights/index.d.ts.map +1 -0
- package/dist/react-native/api/insights/index.js +85 -0
- package/dist/react-native/api/insights/index.js.map +1 -0
- package/dist/react-native/api/operations/index.d.ts +9 -0
- package/dist/react-native/api/operations/index.d.ts.map +1 -0
- package/dist/react-native/api/operations/index.js +23 -0
- package/dist/react-native/api/operations/index.js.map +1 -0
- package/dist/react-native/api/options.d.ts +56 -0
- package/dist/react-native/api/options.d.ts.map +1 -0
- package/dist/react-native/api/options.js +4 -0
- package/dist/react-native/api/options.js.map +1 -0
- package/dist/react-native/api/workloadImpacts/index.d.ts +22 -0
- package/dist/react-native/api/workloadImpacts/index.d.ts.map +1 -0
- package/dist/react-native/api/workloadImpacts/index.js +94 -0
- package/dist/react-native/api/workloadImpacts/index.js.map +1 -0
- package/dist/react-native/classic/connectors/index.d.ts +20 -0
- package/dist/react-native/classic/connectors/index.d.ts.map +1 -0
- package/dist/react-native/classic/connectors/index.js +16 -0
- package/dist/react-native/classic/connectors/index.js.map +1 -0
- package/dist/react-native/classic/impactCategories/index.d.ts +13 -0
- package/dist/react-native/classic/impactCategories/index.d.ts.map +1 -0
- package/dist/react-native/classic/impactCategories/index.js +13 -0
- package/dist/react-native/classic/impactCategories/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +6 -0
- package/dist/react-native/classic/index.d.ts.map +1 -0
- package/dist/react-native/classic/index.js +4 -0
- package/dist/react-native/classic/index.js.map +1 -0
- package/dist/react-native/classic/insights/index.d.ts +17 -0
- package/dist/react-native/classic/insights/index.d.ts.map +1 -0
- package/dist/react-native/classic/insights/index.js +15 -0
- package/dist/react-native/classic/insights/index.js.map +1 -0
- package/dist/react-native/classic/operations/index.d.ts +11 -0
- package/dist/react-native/classic/operations/index.d.ts.map +1 -0
- package/dist/react-native/classic/operations/index.js +12 -0
- package/dist/react-native/classic/operations/index.js.map +1 -0
- package/dist/react-native/classic/workloadImpacts/index.d.ts +18 -0
- package/dist/react-native/classic/workloadImpacts/index.d.ts.map +1 -0
- package/dist/react-native/classic/workloadImpacts/index.js +15 -0
- package/dist/react-native/classic/workloadImpacts/index.js.map +1 -0
- package/dist/react-native/impactClient.d.ts +26 -0
- package/dist/react-native/impactClient.d.ts.map +1 -0
- package/dist/react-native/impactClient.js +25 -0
- package/dist/react-native/impactClient.js.map +1 -0
- package/dist/react-native/index.d.ts +8 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +6 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models/index.d.ts +2 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +4 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/models.d.ts +641 -0
- package/dist/react-native/models/models.d.ts.map +1 -0
- package/dist/react-native/models/models.js +660 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/restorePollerHelpers.d.ts +21 -0
- package/dist/react-native/restorePollerHelpers.d.ts.map +1 -0
- package/dist/react-native/restorePollerHelpers.js +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.d.ts.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +137 -0
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.js +76 -0
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
- package/package.json +164 -0
- package/review/arm-impactreporting-models.api.md +342 -0
- package/review/arm-impactreporting.api.md +497 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/insights/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EACL,yBAAyB,EAEzB,iBAAiB,EACjB,mBAAmB,EAEnB,8BAA8B,GAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,mBAAmB,CACjC,OAAe,EACf,kBAA0B,EAC1B,WAAmB,EACnB,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;;IAE9D,OAAO,OAAO;SACX,IAAI,CACH,wHAAwH,EACxH,OAAO,CAAC,cAAc,EACtB,kBAAkB,EAClB,WAAW,CAC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E,IACtD,CAAC;AACP,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,MAA6B;IACzE,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC;AAED,kEAAkE;AAClE,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,OAAe,EACf,kBAA0B,EAC1B,WAAmB,EACnB,UAAqC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE3D,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACzF,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAC;AACzC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n ImpactContext as Client,\n InsightsCreateOptionalParams,\n InsightsDeleteOptionalParams,\n InsightsGetOptionalParams,\n InsightsListBySubscriptionOptionalParams,\n} from \"../index.js\";\nimport {\n errorResponseDeserializer,\n Insight,\n insightSerializer,\n insightDeserializer,\n _InsightListResult,\n _insightListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _insightsDeleteSend(\n context: Client,\n workloadImpactName: string,\n insightName: string,\n options: InsightsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}\",\n context.subscriptionId,\n workloadImpactName,\n insightName,\n )\n .delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _insightsDeleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete Insight resource, This is Admin only operation */\nexport async function insightsDelete(\n context: Client,\n workloadImpactName: string,\n insightName: string,\n options: InsightsDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _insightsDeleteSend(context, workloadImpactName, insightName, options);\n return _insightsDeleteDeserialize(result);\n}\n\nexport function _insightsCreateSend(\n context: Client,\n workloadImpactName: string,\n insightName: string,\n resource: Insight,\n options: InsightsCreateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}\",\n context.subscriptionId,\n workloadImpactName,\n insightName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n body: insightSerializer(resource),\n });\n}\n\nexport async function _insightsCreateDeserialize(result: PathUncheckedResponse): Promise<Insight> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return insightDeserializer(result.body);\n}\n\n/** Create Insight resource, This is Admin only operation */\nexport async function insightsCreate(\n context: Client,\n workloadImpactName: string,\n insightName: string,\n resource: Insight,\n options: InsightsCreateOptionalParams = { requestOptions: {} },\n): Promise<Insight> {\n const result = await _insightsCreateSend(\n context,\n workloadImpactName,\n insightName,\n resource,\n options,\n );\n return _insightsCreateDeserialize(result);\n}\n\nexport function _insightsListBySubscriptionSend(\n context: Client,\n workloadImpactName: string,\n options: InsightsListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights\",\n context.subscriptionId,\n workloadImpactName,\n )\n .get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _insightsListBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_InsightListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _insightListResultDeserializer(result.body);\n}\n\n/** List Insight resources by workloadImpactName */\nexport function insightsListBySubscription(\n context: Client,\n workloadImpactName: string,\n options: InsightsListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Insight> {\n return buildPagedAsyncIterator(\n context,\n () => _insightsListBySubscriptionSend(context, workloadImpactName, options),\n _insightsListBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _insightsGetSend(\n context: Client,\n workloadImpactName: string,\n insightName: string,\n options: InsightsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}\",\n context.subscriptionId,\n workloadImpactName,\n insightName,\n )\n .get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _insightsGetDeserialize(result: PathUncheckedResponse): Promise<Insight> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return insightDeserializer(result.body);\n}\n\n/** Get Insight resources by workloadImpactName and insightName */\nexport async function insightsGet(\n context: Client,\n workloadImpactName: string,\n insightName: string,\n options: InsightsGetOptionalParams = { requestOptions: {} },\n): Promise<Insight> {\n const result = await _insightsGetSend(context, workloadImpactName, insightName, options);\n return _insightsGetDeserialize(result);\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ImpactContext as Client, OperationsListOptionalParams } from "../index.js";
|
|
2
|
+
import { _OperationListResult, Operation } from "../../models/models.js";
|
|
3
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
5
|
+
export declare function _operationsListSend(context: Client, options?: OperationsListOptionalParams): StreamableMethod;
|
|
6
|
+
export declare function _operationsListDeserialize(result: PathUncheckedResponse): Promise<_OperationListResult>;
|
|
7
|
+
/** List the operations for the provider */
|
|
8
|
+
export declare function operationsList(context: Client, options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AACpF,OAAO,EAEL,oBAAoB,EAEpB,SAAS,EACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,gBAAgB,CASlB;AAED,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAS/B;AAED,2CAA2C;AAC3C,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,0BAA0B,CAAC,SAAS,CAAC,CAQvC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { errorResponseDeserializer, _operationListResultDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
6
|
+
export function _operationsListSend(context, options = { requestOptions: {} }) {
|
|
7
|
+
var _a;
|
|
8
|
+
return context.path("/providers/Microsoft.Impact/operations").get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
9
|
+
}
|
|
10
|
+
export async function _operationsListDeserialize(result) {
|
|
11
|
+
const expectedStatuses = ["200"];
|
|
12
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
13
|
+
const error = createRestError(result);
|
|
14
|
+
error.details = errorResponseDeserializer(result.body);
|
|
15
|
+
throw error;
|
|
16
|
+
}
|
|
17
|
+
return _operationListResultDeserializer(result.body);
|
|
18
|
+
}
|
|
19
|
+
/** List the operations for the provider */
|
|
20
|
+
export function operationsList(context, options = { requestOptions: {} }) {
|
|
21
|
+
return buildPagedAsyncIterator(context, () => _operationsListSend(context, options), _operationsListDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,gCAAgC,GAEjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,mBAAmB,CACjC,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;;IAE9D,OAAO,OAAO,CAAC,IAAI,CAAC,wCAAwC,CAAC,CAAC,GAAG,iCAC5D,mCAAmC,CAAC,OAAO,CAAC,KAC/C,OAAO,kBACL,MAAM,EAAE,kBAAkB,IACvB,MAAA,OAAO,CAAC,cAAc,0CAAE,OAAO,GAEpC,eAAe,EAAE,EAAE,aAAa,EAAE,OAAO,CAAC,UAAU,EAAE,IACtD,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,gCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,cAAc,CAC5B,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,EAC3C,0BAA0B,EAC1B,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ImpactContext as Client, OperationsListOptionalParams } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n _OperationListResult,\n _operationListResultDeserializer,\n Operation,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _operationsListSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context.path(\"/providers/Microsoft.Impact/operations\").get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _operationsListDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function operationsList(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _operationsListSend(context, options),\n _operationsListDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
2
|
+
/** Optional parameters. */
|
|
3
|
+
export interface ConnectorsListBySubscriptionOptionalParams extends OperationOptions {
|
|
4
|
+
}
|
|
5
|
+
/** Optional parameters. */
|
|
6
|
+
export interface ConnectorsDeleteOptionalParams extends OperationOptions {
|
|
7
|
+
}
|
|
8
|
+
/** Optional parameters. */
|
|
9
|
+
export interface ConnectorsUpdateOptionalParams extends OperationOptions {
|
|
10
|
+
}
|
|
11
|
+
/** Optional parameters. */
|
|
12
|
+
export interface ConnectorsCreateOrUpdateOptionalParams extends OperationOptions {
|
|
13
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
14
|
+
updateIntervalInMs?: number;
|
|
15
|
+
}
|
|
16
|
+
/** Optional parameters. */
|
|
17
|
+
export interface ConnectorsGetOptionalParams extends OperationOptions {
|
|
18
|
+
}
|
|
19
|
+
/** Optional parameters. */
|
|
20
|
+
export interface InsightsDeleteOptionalParams extends OperationOptions {
|
|
21
|
+
}
|
|
22
|
+
/** Optional parameters. */
|
|
23
|
+
export interface InsightsCreateOptionalParams extends OperationOptions {
|
|
24
|
+
}
|
|
25
|
+
/** Optional parameters. */
|
|
26
|
+
export interface InsightsListBySubscriptionOptionalParams extends OperationOptions {
|
|
27
|
+
}
|
|
28
|
+
/** Optional parameters. */
|
|
29
|
+
export interface InsightsGetOptionalParams extends OperationOptions {
|
|
30
|
+
}
|
|
31
|
+
/** Optional parameters. */
|
|
32
|
+
export interface ImpactCategoriesListBySubscriptionOptionalParams extends OperationOptions {
|
|
33
|
+
/** Filter by category name */
|
|
34
|
+
categoryName?: string;
|
|
35
|
+
}
|
|
36
|
+
/** Optional parameters. */
|
|
37
|
+
export interface ImpactCategoriesGetOptionalParams extends OperationOptions {
|
|
38
|
+
}
|
|
39
|
+
/** Optional parameters. */
|
|
40
|
+
export interface WorkloadImpactsListBySubscriptionOptionalParams extends OperationOptions {
|
|
41
|
+
}
|
|
42
|
+
/** Optional parameters. */
|
|
43
|
+
export interface WorkloadImpactsDeleteOptionalParams extends OperationOptions {
|
|
44
|
+
}
|
|
45
|
+
/** Optional parameters. */
|
|
46
|
+
export interface WorkloadImpactsGetOptionalParams extends OperationOptions {
|
|
47
|
+
}
|
|
48
|
+
/** Optional parameters. */
|
|
49
|
+
export interface WorkloadImpactsCreateOptionalParams extends OperationOptions {
|
|
50
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
51
|
+
updateIntervalInMs?: number;
|
|
52
|
+
}
|
|
53
|
+
/** Optional parameters. */
|
|
54
|
+
export interface OperationsListOptionalParams extends OperationOptions {
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/api/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,2BAA2B;AAC3B,MAAM,WAAW,0CAA2C,SAAQ,gBAAgB;CAAG;AAEvF,2BAA2B;AAC3B,MAAM,WAAW,8BAA+B,SAAQ,gBAAgB;CAAG;AAE3E,2BAA2B;AAC3B,MAAM,WAAW,8BAA+B,SAAQ,gBAAgB;CAAG;AAE3E,2BAA2B;AAC3B,MAAM,WAAW,sCAAuC,SAAQ,gBAAgB;IAC9E,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,2BAA2B;AAC3B,MAAM,WAAW,2BAA4B,SAAQ,gBAAgB;CAAG;AAExE,2BAA2B;AAC3B,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;CAAG;AAEzE,2BAA2B;AAC3B,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;CAAG;AAEzE,2BAA2B;AAC3B,MAAM,WAAW,wCAAyC,SAAQ,gBAAgB;CAAG;AAErF,2BAA2B;AAC3B,MAAM,WAAW,yBAA0B,SAAQ,gBAAgB;CAAG;AAEtE,2BAA2B;AAC3B,MAAM,WAAW,gDAAiD,SAAQ,gBAAgB;IACxF,8BAA8B;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,2BAA2B;AAC3B,MAAM,WAAW,iCAAkC,SAAQ,gBAAgB;CAAG;AAE9E,2BAA2B;AAC3B,MAAM,WAAW,+CAAgD,SAAQ,gBAAgB;CAAG;AAE5F,2BAA2B;AAC3B,MAAM,WAAW,mCAAoC,SAAQ,gBAAgB;CAAG;AAEhF,2BAA2B;AAC3B,MAAM,WAAW,gCAAiC,SAAQ,gBAAgB;CAAG;AAE7E,2BAA2B;AAC3B,MAAM,WAAW,mCAAoC,SAAQ,gBAAgB;IAC3E,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,2BAA2B;AAC3B,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/api/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface ConnectorsListBySubscriptionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ConnectorsDeleteOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ConnectorsUpdateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ConnectorsCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface ConnectorsGetOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface InsightsDeleteOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface InsightsCreateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface InsightsListBySubscriptionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface InsightsGetOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ImpactCategoriesListBySubscriptionOptionalParams extends OperationOptions {\n /** Filter by category name */\n categoryName?: string;\n}\n\n/** Optional parameters. */\nexport interface ImpactCategoriesGetOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface WorkloadImpactsListBySubscriptionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface WorkloadImpactsDeleteOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface WorkloadImpactsGetOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface WorkloadImpactsCreateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ImpactContext as Client, WorkloadImpactsCreateOptionalParams, WorkloadImpactsDeleteOptionalParams, WorkloadImpactsGetOptionalParams, WorkloadImpactsListBySubscriptionOptionalParams } from "../index.js";
|
|
2
|
+
import { WorkloadImpact, _WorkloadImpactListResult } from "../../models/models.js";
|
|
3
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
5
|
+
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
6
|
+
export declare function _workloadImpactsListBySubscriptionSend(context: Client, options?: WorkloadImpactsListBySubscriptionOptionalParams): StreamableMethod;
|
|
7
|
+
export declare function _workloadImpactsListBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_WorkloadImpactListResult>;
|
|
8
|
+
/** List WorkloadImpact resources by subscription ID */
|
|
9
|
+
export declare function workloadImpactsListBySubscription(context: Client, options?: WorkloadImpactsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<WorkloadImpact>;
|
|
10
|
+
export declare function _workloadImpactsDeleteSend(context: Client, workloadImpactName: string, options?: WorkloadImpactsDeleteOptionalParams): StreamableMethod;
|
|
11
|
+
export declare function _workloadImpactsDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
12
|
+
/** Delete a WorkloadImpact */
|
|
13
|
+
export declare function workloadImpactsDelete(context: Client, workloadImpactName: string, options?: WorkloadImpactsDeleteOptionalParams): Promise<void>;
|
|
14
|
+
export declare function _workloadImpactsGetSend(context: Client, workloadImpactName: string, options?: WorkloadImpactsGetOptionalParams): StreamableMethod;
|
|
15
|
+
export declare function _workloadImpactsGetDeserialize(result: PathUncheckedResponse): Promise<WorkloadImpact>;
|
|
16
|
+
/** Get a WorkloadImpact */
|
|
17
|
+
export declare function workloadImpactsGet(context: Client, workloadImpactName: string, options?: WorkloadImpactsGetOptionalParams): Promise<WorkloadImpact>;
|
|
18
|
+
export declare function _workloadImpactsCreateSend(context: Client, workloadImpactName: string, resource: WorkloadImpact, options?: WorkloadImpactsCreateOptionalParams): StreamableMethod;
|
|
19
|
+
export declare function _workloadImpactsCreateDeserialize(result: PathUncheckedResponse): Promise<WorkloadImpact>;
|
|
20
|
+
/** Create a WorkloadImpact */
|
|
21
|
+
export declare function workloadImpactsCreate(context: Client, workloadImpactName: string, resource: WorkloadImpact, options?: WorkloadImpactsCreateOptionalParams): PollerLike<OperationState<WorkloadImpact>, WorkloadImpact>;
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/workloadImpacts/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,aAAa,IAAI,MAAM,EACvB,mCAAmC,EACnC,mCAAmC,EACnC,gCAAgC,EAChC,+CAA+C,EAChD,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,cAAc,EAGd,yBAAyB,EAE1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAu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AQ,EAAE,cAAc,EACxB,OAAO,GAAE,mCAA4D,GACpE,gBAAgB,CAiBlB;AAED,wBAAsB,iCAAiC,CACrD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,cAAc,CAAC,CASzB;AAED,8BAA8B;AAC9B,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,MAAM,EACf,kBAAkB,EAAE,MAAM,EAC1B,QAAQ,EAAE,cAAc,EACxB,OAAO,GAAE,mCAA4D,GACpE,UAAU,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC,CAQ5D"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { errorResponseDeserializer, workloadImpactSerializer, workloadImpactDeserializer, _workloadImpactListResultDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
|
|
6
|
+
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
7
|
+
export function _workloadImpactsListBySubscriptionSend(context, options = {
|
|
8
|
+
requestOptions: {},
|
|
9
|
+
}) {
|
|
10
|
+
var _a;
|
|
11
|
+
return context
|
|
12
|
+
.path("/subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts", context.subscriptionId)
|
|
13
|
+
.get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
14
|
+
}
|
|
15
|
+
export async function _workloadImpactsListBySubscriptionDeserialize(result) {
|
|
16
|
+
const expectedStatuses = ["200"];
|
|
17
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
18
|
+
const error = createRestError(result);
|
|
19
|
+
error.details = errorResponseDeserializer(result.body);
|
|
20
|
+
throw error;
|
|
21
|
+
}
|
|
22
|
+
return _workloadImpactListResultDeserializer(result.body);
|
|
23
|
+
}
|
|
24
|
+
/** List WorkloadImpact resources by subscription ID */
|
|
25
|
+
export function workloadImpactsListBySubscription(context, options = {
|
|
26
|
+
requestOptions: {},
|
|
27
|
+
}) {
|
|
28
|
+
return buildPagedAsyncIterator(context, () => _workloadImpactsListBySubscriptionSend(context, options), _workloadImpactsListBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
29
|
+
}
|
|
30
|
+
export function _workloadImpactsDeleteSend(context, workloadImpactName, options = { requestOptions: {} }) {
|
|
31
|
+
var _a;
|
|
32
|
+
return context
|
|
33
|
+
.path("/subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}", context.subscriptionId, workloadImpactName)
|
|
34
|
+
.delete(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
35
|
+
}
|
|
36
|
+
export async function _workloadImpactsDeleteDeserialize(result) {
|
|
37
|
+
const expectedStatuses = ["200", "204"];
|
|
38
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
39
|
+
const error = createRestError(result);
|
|
40
|
+
error.details = errorResponseDeserializer(result.body);
|
|
41
|
+
throw error;
|
|
42
|
+
}
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
/** Delete a WorkloadImpact */
|
|
46
|
+
export async function workloadImpactsDelete(context, workloadImpactName, options = { requestOptions: {} }) {
|
|
47
|
+
const result = await _workloadImpactsDeleteSend(context, workloadImpactName, options);
|
|
48
|
+
return _workloadImpactsDeleteDeserialize(result);
|
|
49
|
+
}
|
|
50
|
+
export function _workloadImpactsGetSend(context, workloadImpactName, options = { requestOptions: {} }) {
|
|
51
|
+
var _a;
|
|
52
|
+
return context
|
|
53
|
+
.path("/subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}", context.subscriptionId, workloadImpactName)
|
|
54
|
+
.get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
55
|
+
}
|
|
56
|
+
export async function _workloadImpactsGetDeserialize(result) {
|
|
57
|
+
const expectedStatuses = ["200"];
|
|
58
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
59
|
+
const error = createRestError(result);
|
|
60
|
+
error.details = errorResponseDeserializer(result.body);
|
|
61
|
+
throw error;
|
|
62
|
+
}
|
|
63
|
+
return workloadImpactDeserializer(result.body);
|
|
64
|
+
}
|
|
65
|
+
/** Get a WorkloadImpact */
|
|
66
|
+
export async function workloadImpactsGet(context, workloadImpactName, options = { requestOptions: {} }) {
|
|
67
|
+
const result = await _workloadImpactsGetSend(context, workloadImpactName, options);
|
|
68
|
+
return _workloadImpactsGetDeserialize(result);
|
|
69
|
+
}
|
|
70
|
+
export function _workloadImpactsCreateSend(context, workloadImpactName, resource, options = { requestOptions: {} }) {
|
|
71
|
+
var _a;
|
|
72
|
+
return context
|
|
73
|
+
.path("/subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}", context.subscriptionId, workloadImpactName)
|
|
74
|
+
.put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion }, body: workloadImpactSerializer(resource) }));
|
|
75
|
+
}
|
|
76
|
+
export async function _workloadImpactsCreateDeserialize(result) {
|
|
77
|
+
const expectedStatuses = ["200", "201"];
|
|
78
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
79
|
+
const error = createRestError(result);
|
|
80
|
+
error.details = errorResponseDeserializer(result.body);
|
|
81
|
+
throw error;
|
|
82
|
+
}
|
|
83
|
+
return workloadImpactDeserializer(result.body);
|
|
84
|
+
}
|
|
85
|
+
/** Create a WorkloadImpact */
|
|
86
|
+
export function workloadImpactsCreate(context, workloadImpactName, resource, options = { requestOptions: {} }) {
|
|
87
|
+
return getLongRunningPoller(context, _workloadImpactsCreateDeserialize, ["200", "201"], {
|
|
88
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
89
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
90
|
+
getInitialResponse: () => _workloadImpactsCreateSend(context, workloadImpactName, resource, options),
|
|
91
|
+
resourceLocationConfig: "azure-async-operation",
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/workloadImpacts/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EACL,yBAAyB,EAEzB,wBAAwB,EACxB,0BAA0B,EAE1B,qCAAqC,GACtC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,sCAAsC,CACpD,OAAe,EACf,UAA2D;IACzD,cAAc,EAAE,EAAE;CACnB;;IAED,OAAO,OAAO;SACX,IAAI,CACH,4EAA4E,EAC5E,OAAO,CAAC,cAAc,CACvB;SACA,GAAG,iCACC,mCAAmC,CAAC,OAAO,CAAC,KAC/C,OAAO,kBACL,MAAM,EAAE,kBAAkB,IACvB,MAAA,OAAO,CAAC,cAAc,0CAAE,OAAO,GAEpC,eAAe,EAAE,EAAE,aAAa,EAAE,OAA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,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,0BAA0B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACjD,CAAC;AAED,8BAA8B;AAC9B,MAAM,UAAU,qBAAqB,CACnC,OAAe,EACf,kBAA0B,EAC1B,QAAwB,EACxB,UAA+C,EAAE,cAAc,EAAE,EAAE,EAAE;IAErE,OAAO,oBAAoB,CAAC,OAAO,EAAE,iCAAiC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE;QACtF,kBAAkB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB;QAC/C,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;QACjC,kBAAkB,EAAE,GAAG,EAAE,CACvB,0BAA0B,CAAC,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,OAAO,CAAC;QAC5E,sBAAsB,EAAE,uBAAuB;KAChD,CAA+D,CAAC;AACnE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n ImpactContext as Client,\n WorkloadImpactsCreateOptionalParams,\n WorkloadImpactsDeleteOptionalParams,\n WorkloadImpactsGetOptionalParams,\n WorkloadImpactsListBySubscriptionOptionalParams,\n} from \"../index.js\";\nimport {\n errorResponseDeserializer,\n WorkloadImpact,\n workloadImpactSerializer,\n workloadImpactDeserializer,\n _WorkloadImpactListResult,\n _workloadImpactListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _workloadImpactsListBySubscriptionSend(\n context: Client,\n options: WorkloadImpactsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts\",\n context.subscriptionId,\n )\n .get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _workloadImpactsListBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_WorkloadImpactListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _workloadImpactListResultDeserializer(result.body);\n}\n\n/** List WorkloadImpact resources by subscription ID */\nexport function workloadImpactsListBySubscription(\n context: Client,\n options: WorkloadImpactsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<WorkloadImpact> {\n return buildPagedAsyncIterator(\n context,\n () => _workloadImpactsListBySubscriptionSend(context, options),\n _workloadImpactsListBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _workloadImpactsDeleteSend(\n context: Client,\n workloadImpactName: string,\n options: WorkloadImpactsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}\",\n context.subscriptionId,\n workloadImpactName,\n )\n .delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _workloadImpactsDeleteDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete a WorkloadImpact */\nexport async function workloadImpactsDelete(\n context: Client,\n workloadImpactName: string,\n options: WorkloadImpactsDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _workloadImpactsDeleteSend(context, workloadImpactName, options);\n return _workloadImpactsDeleteDeserialize(result);\n}\n\nexport function _workloadImpactsGetSend(\n context: Client,\n workloadImpactName: string,\n options: WorkloadImpactsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}\",\n context.subscriptionId,\n workloadImpactName,\n )\n .get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _workloadImpactsGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<WorkloadImpact> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return workloadImpactDeserializer(result.body);\n}\n\n/** Get a WorkloadImpact */\nexport async function workloadImpactsGet(\n context: Client,\n workloadImpactName: string,\n options: WorkloadImpactsGetOptionalParams = { requestOptions: {} },\n): Promise<WorkloadImpact> {\n const result = await _workloadImpactsGetSend(context, workloadImpactName, options);\n return _workloadImpactsGetDeserialize(result);\n}\n\nexport function _workloadImpactsCreateSend(\n context: Client,\n workloadImpactName: string,\n resource: WorkloadImpact,\n options: WorkloadImpactsCreateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}\",\n context.subscriptionId,\n workloadImpactName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n body: workloadImpactSerializer(resource),\n });\n}\n\nexport async function _workloadImpactsCreateDeserialize(\n result: PathUncheckedResponse,\n): Promise<WorkloadImpact> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return workloadImpactDeserializer(result.body);\n}\n\n/** Create a WorkloadImpact */\nexport function workloadImpactsCreate(\n context: Client,\n workloadImpactName: string,\n resource: WorkloadImpact,\n options: WorkloadImpactsCreateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<WorkloadImpact>, WorkloadImpact> {\n return getLongRunningPoller(context, _workloadImpactsCreateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _workloadImpactsCreateSend(context, workloadImpactName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<WorkloadImpact>, WorkloadImpact>;\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ImpactContext } from "../../api/impactContext.js";
|
|
2
|
+
import { Connector, ConnectorUpdate } from "../../models/models.js";
|
|
3
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
5
|
+
import { ConnectorsListBySubscriptionOptionalParams, ConnectorsDeleteOptionalParams, ConnectorsUpdateOptionalParams, ConnectorsCreateOrUpdateOptionalParams, ConnectorsGetOptionalParams } from "../../api/options.js";
|
|
6
|
+
/** Interface representing a Connectors operations. */
|
|
7
|
+
export interface ConnectorsOperations {
|
|
8
|
+
/** List Connector resources by subscription ID */
|
|
9
|
+
listBySubscription: (options?: ConnectorsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator<Connector>;
|
|
10
|
+
/** Delete a Connector */
|
|
11
|
+
delete: (connectorName: string, options?: ConnectorsDeleteOptionalParams) => Promise<void>;
|
|
12
|
+
/** Update a Connector */
|
|
13
|
+
update: (connectorName: string, properties: ConnectorUpdate, options?: ConnectorsUpdateOptionalParams) => Promise<Connector>;
|
|
14
|
+
/** Create a Connector */
|
|
15
|
+
createOrUpdate: (connectorName: string, resource: Connector, options?: ConnectorsCreateOrUpdateOptionalParams) => PollerLike<OperationState<Connector>, Connector>;
|
|
16
|
+
/** Get a Connector */
|
|
17
|
+
get: (connectorName: string, options?: ConnectorsGetOptionalParams) => Promise<Connector>;
|
|
18
|
+
}
|
|
19
|
+
export declare function _getConnectorsOperations(context: ImpactContext): ConnectorsOperations;
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/connectors/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAQ3D,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EACL,0CAA0C,EAC1C,8BAA8B,EAC9B,8BAA8B,EAC9B,sCAAsC,EACtC,2BAA2B,EAC5B,MAAM,sBAAsB,CAAC;AAE9B,sDAAsD;AACtD,MAAM,WAAW,oBAAoB;IACnC,kDAAkD;IAClD,kBAAkB,EAAE,CAClB,OAAO,CAAC,EAAE,0CAA0C,KACjD,0BAA0B,CAAC,SAAS,CAAC,CAAC;IAC3C,yBAAyB;IACzB,MAAM,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,8BAA8B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3F,yBAAyB;IACzB,MAAM,EAAE,CACN,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,eAAe,EAC3B,OAAO,CAAC,EAAE,8BAA8B,KACrC,OAAO,CAAC,SAAS,CAAC,CAAC;IACxB,yBAAyB;IACzB,cAAc,EAAE,CACd,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,SAAS,EACnB,OAAO,CAAC,EAAE,sCAAsC,KAC7C,UAAU,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC;IACtD,sBAAsB;IACtB,GAAG,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,2BAA2B,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;CAC3F;AAuBD,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,aAAa,GAAG,oBAAoB,CAIrF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { connectorsListBySubscription, connectorsDelete, connectorsUpdate, connectorsCreateOrUpdate, connectorsGet, } from "../../api/connectors/index.js";
|
|
4
|
+
function _getConnectors(context) {
|
|
5
|
+
return {
|
|
6
|
+
listBySubscription: (options) => connectorsListBySubscription(context, options),
|
|
7
|
+
delete: (connectorName, options) => connectorsDelete(context, connectorName, options),
|
|
8
|
+
update: (connectorName, properties, options) => connectorsUpdate(context, connectorName, properties, options),
|
|
9
|
+
createOrUpdate: (connectorName, resource, options) => connectorsCreateOrUpdate(context, connectorName, resource, options),
|
|
10
|
+
get: (connectorName, options) => connectorsGet(context, connectorName, options),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export function _getConnectorsOperations(context) {
|
|
14
|
+
return Object.assign({}, _getConnectors(context));
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/connectors/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,4BAA4B,EAC5B,gBAAgB,EAChB,gBAAgB,EAChB,wBAAwB,EACxB,aAAa,GACd,MAAM,+BAA+B,CAAC;AAoCvC,SAAS,cAAc,CAAC,OAAsB;IAC5C,OAAO;QACL,kBAAkB,EAAE,CAAC,OAAoD,EAAE,EAAE,CAC3E,4BAA4B,CAAC,OAAO,EAAE,OAAO,CAAC;QAChD,MAAM,EAAE,CAAC,aAAqB,EAAE,OAAwC,EAAE,EAAE,CAC1E,gBAAgB,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;QACnD,MAAM,EAAE,CACN,aAAqB,EACrB,UAA2B,EAC3B,OAAwC,EACxC,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,CAAC;QAClE,cAAc,EAAE,CACd,aAAqB,EACrB,QAAmB,EACnB,OAAgD,EAChD,EAAE,CAAC,wBAAwB,CAAC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,CAAC;QACxE,GAAG,EAAE,CAAC,aAAqB,EAAE,OAAqC,EAAE,EAAE,CACpE,aAAa,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;KACjD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,OAAsB;IAC7D,yBACK,cAAc,CAAC,OAAO,CAAC,EAC1B;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ImpactContext } from \"../../api/impactContext.js\";\nimport {\n connectorsListBySubscription,\n connectorsDelete,\n connectorsUpdate,\n connectorsCreateOrUpdate,\n connectorsGet,\n} from \"../../api/connectors/index.js\";\nimport { Connector, ConnectorUpdate } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n ConnectorsListBySubscriptionOptionalParams,\n ConnectorsDeleteOptionalParams,\n ConnectorsUpdateOptionalParams,\n ConnectorsCreateOrUpdateOptionalParams,\n ConnectorsGetOptionalParams,\n} from \"../../api/options.js\";\n\n/** Interface representing a Connectors operations. */\nexport interface ConnectorsOperations {\n /** List Connector resources by subscription ID */\n listBySubscription: (\n options?: ConnectorsListBySubscriptionOptionalParams,\n ) => PagedAsyncIterableIterator<Connector>;\n /** Delete a Connector */\n delete: (connectorName: string, options?: ConnectorsDeleteOptionalParams) => Promise<void>;\n /** Update a Connector */\n update: (\n connectorName: string,\n properties: ConnectorUpdate,\n options?: ConnectorsUpdateOptionalParams,\n ) => Promise<Connector>;\n /** Create a Connector */\n createOrUpdate: (\n connectorName: string,\n resource: Connector,\n options?: ConnectorsCreateOrUpdateOptionalParams,\n ) => PollerLike<OperationState<Connector>, Connector>;\n /** Get a Connector */\n get: (connectorName: string, options?: ConnectorsGetOptionalParams) => Promise<Connector>;\n}\n\nfunction _getConnectors(context: ImpactContext) {\n return {\n listBySubscription: (options?: ConnectorsListBySubscriptionOptionalParams) =>\n connectorsListBySubscription(context, options),\n delete: (connectorName: string, options?: ConnectorsDeleteOptionalParams) =>\n connectorsDelete(context, connectorName, options),\n update: (\n connectorName: string,\n properties: ConnectorUpdate,\n options?: ConnectorsUpdateOptionalParams,\n ) => connectorsUpdate(context, connectorName, properties, options),\n createOrUpdate: (\n connectorName: string,\n resource: Connector,\n options?: ConnectorsCreateOrUpdateOptionalParams,\n ) => connectorsCreateOrUpdate(context, connectorName, resource, options),\n get: (connectorName: string, options?: ConnectorsGetOptionalParams) =>\n connectorsGet(context, connectorName, options),\n };\n}\n\nexport function _getConnectorsOperations(context: ImpactContext): ConnectorsOperations {\n return {\n ..._getConnectors(context),\n };\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ImpactContext } from "../../api/impactContext.js";
|
|
2
|
+
import { ImpactCategory } from "../../models/models.js";
|
|
3
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import { ImpactCategoriesListBySubscriptionOptionalParams, ImpactCategoriesGetOptionalParams } from "../../api/options.js";
|
|
5
|
+
/** Interface representing a ImpactCategories operations. */
|
|
6
|
+
export interface ImpactCategoriesOperations {
|
|
7
|
+
/** List ImpactCategory resources by subscription */
|
|
8
|
+
listBySubscription: (resourceType: string, options?: ImpactCategoriesListBySubscriptionOptionalParams) => PagedAsyncIterableIterator<ImpactCategory>;
|
|
9
|
+
/** Get a ImpactCategory */
|
|
10
|
+
get: (impactCategoryName: string, options?: ImpactCategoriesGetOptionalParams) => Promise<ImpactCategory>;
|
|
11
|
+
}
|
|
12
|
+
export declare function _getImpactCategoriesOperations(context: ImpactContext): ImpactCategoriesOperations;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/impactCategories/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAK3D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EACL,gDAAgD,EAChD,iCAAiC,EAClC,MAAM,sBAAsB,CAAC;AAE9B,4DAA4D;AAC5D,MAAM,WAAW,0BAA0B;IACzC,oDAAoD;IACpD,kBAAkB,EAAE,CAClB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,gDAAgD,KACvD,0BAA0B,CAAC,cAAc,CAAC,CAAC;IAChD,2BAA2B;IAC3B,GAAG,EAAE,CACH,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,iCAAiC,KACxC,OAAO,CAAC,cAAc,CAAC,CAAC;CAC9B;AAaD,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,aAAa,GAAG,0BAA0B,CAIjG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { impactCategoriesListBySubscription, impactCategoriesGet, } from "../../api/impactCategories/index.js";
|
|
4
|
+
function _getImpactCategories(context) {
|
|
5
|
+
return {
|
|
6
|
+
listBySubscription: (resourceType, options) => impactCategoriesListBySubscription(context, resourceType, options),
|
|
7
|
+
get: (impactCategoryName, options) => impactCategoriesGet(context, impactCategoryName, options),
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export function _getImpactCategoriesOperations(context) {
|
|
11
|
+
return Object.assign({}, _getImpactCategories(context));
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/impactCategories/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,kCAAkC,EAClC,mBAAmB,GACpB,MAAM,qCAAqC,CAAC;AAsB7C,SAAS,oBAAoB,CAAC,OAAsB;IAClD,OAAO;QACL,kBAAkB,EAAE,CAClB,YAAoB,EACpB,OAA0D,EAC1D,EAAE,CAAC,kCAAkC,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC;QACvE,GAAG,EAAE,CAAC,kBAA0B,EAAE,OAA2C,EAAE,EAAE,CAC/E,mBAAmB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,CAAC;KAC5D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,OAAsB;IACnE,yBACK,oBAAoB,CAAC,OAAO,CAAC,EAChC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ImpactContext } from \"../../api/impactContext.js\";\nimport {\n impactCategoriesListBySubscription,\n impactCategoriesGet,\n} from \"../../api/impactCategories/index.js\";\nimport { ImpactCategory } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport {\n ImpactCategoriesListBySubscriptionOptionalParams,\n ImpactCategoriesGetOptionalParams,\n} from \"../../api/options.js\";\n\n/** Interface representing a ImpactCategories operations. */\nexport interface ImpactCategoriesOperations {\n /** List ImpactCategory resources by subscription */\n listBySubscription: (\n resourceType: string,\n options?: ImpactCategoriesListBySubscriptionOptionalParams,\n ) => PagedAsyncIterableIterator<ImpactCategory>;\n /** Get a ImpactCategory */\n get: (\n impactCategoryName: string,\n options?: ImpactCategoriesGetOptionalParams,\n ) => Promise<ImpactCategory>;\n}\n\nfunction _getImpactCategories(context: ImpactContext) {\n return {\n listBySubscription: (\n resourceType: string,\n options?: ImpactCategoriesListBySubscriptionOptionalParams,\n ) => impactCategoriesListBySubscription(context, resourceType, options),\n get: (impactCategoryName: string, options?: ImpactCategoriesGetOptionalParams) =>\n impactCategoriesGet(context, impactCategoryName, options),\n };\n}\n\nexport function _getImpactCategoriesOperations(context: ImpactContext): ImpactCategoriesOperations {\n return {\n ..._getImpactCategories(context),\n };\n}\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { ConnectorsOperations } from "./connectors/index.js";
|
|
2
|
+
export { ImpactCategoriesOperations } from "./impactCategories/index.js";
|
|
3
|
+
export { InsightsOperations } from "./insights/index.js";
|
|
4
|
+
export { OperationsOperations } from "./operations/index.js";
|
|
5
|
+
export { WorkloadImpactsOperations } from "./workloadImpacts/index.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/classic/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/classic/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { ConnectorsOperations } from \"./connectors/index.js\";\nexport { ImpactCategoriesOperations } from \"./impactCategories/index.js\";\nexport { InsightsOperations } from \"./insights/index.js\";\nexport { OperationsOperations } from \"./operations/index.js\";\nexport { WorkloadImpactsOperations } from \"./workloadImpacts/index.js\";\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ImpactContext } from "../../api/impactContext.js";
|
|
2
|
+
import { InsightsDeleteOptionalParams, InsightsCreateOptionalParams, InsightsListBySubscriptionOptionalParams, InsightsGetOptionalParams } from "../../api/options.js";
|
|
3
|
+
import { Insight } from "../../models/models.js";
|
|
4
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
/** Interface representing a Insights operations. */
|
|
6
|
+
export interface InsightsOperations {
|
|
7
|
+
/** Delete Insight resource, This is Admin only operation */
|
|
8
|
+
delete: (workloadImpactName: string, insightName: string, options?: InsightsDeleteOptionalParams) => Promise<void>;
|
|
9
|
+
/** Create Insight resource, This is Admin only operation */
|
|
10
|
+
create: (workloadImpactName: string, insightName: string, resource: Insight, options?: InsightsCreateOptionalParams) => Promise<Insight>;
|
|
11
|
+
/** List Insight resources by workloadImpactName */
|
|
12
|
+
listBySubscription: (workloadImpactName: string, options?: InsightsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator<Insight>;
|
|
13
|
+
/** Get Insight resources by workloadImpactName and insightName */
|
|
14
|
+
get: (workloadImpactName: string, insightName: string, options?: InsightsGetOptionalParams) => Promise<Insight>;
|
|
15
|
+
}
|
|
16
|
+
export declare function _getInsightsOperations(context: ImpactContext): InsightsOperations;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/insights/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAO3D,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,wCAAwC,EACxC,yBAAyB,EAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAEnF,oDAAoD;AACpD,MAAM,WAAW,kBAAkB;IACjC,4DAA4D;IAC5D,MAAM,EAAE,CACN,kBAAkB,EAAE,MAAM,EAC1B,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,4BAA4B,KACnC,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,4DAA4D;IAC5D,MAAM,EAAE,CACN,kBAAkB,EAAE,MAAM,EAC1B,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,OAAO,EACjB,OAAO,CAAC,EAAE,4BAA4B,KACnC,OAAO,CAAC,OAAO,CAAC,CAAC;IACtB,mDAAmD;IACnD,kBAAkB,EAAE,CAClB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,wCAAwC,KAC/C,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACzC,kEAAkE;IAClE,GAAG,EAAE,CACH,kBAAkB,EAAE,MAAM,EAC1B,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,yBAAyB,KAChC,OAAO,CAAC,OAAO,CAAC,CAAC;CACvB;AAwBD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,aAAa,GAAG,kBAAkB,CAIjF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { insightsDelete, insightsCreate, insightsListBySubscription, insightsGet, } from "../../api/insights/index.js";
|
|
4
|
+
function _getInsights(context) {
|
|
5
|
+
return {
|
|
6
|
+
delete: (workloadImpactName, insightName, options) => insightsDelete(context, workloadImpactName, insightName, options),
|
|
7
|
+
create: (workloadImpactName, insightName, resource, options) => insightsCreate(context, workloadImpactName, insightName, resource, options),
|
|
8
|
+
listBySubscription: (workloadImpactName, options) => insightsListBySubscription(context, workloadImpactName, options),
|
|
9
|
+
get: (workloadImpactName, insightName, options) => insightsGet(context, workloadImpactName, insightName, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export function _getInsightsOperations(context) {
|
|
13
|
+
return Object.assign({}, _getInsights(context));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/insights/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,cAAc,EACd,cAAc,EACd,0BAA0B,EAC1B,WAAW,GACZ,MAAM,6BAA6B,CAAC;AAsCrC,SAAS,YAAY,CAAC,OAAsB;IAC1C,OAAO;QACL,MAAM,EAAE,CACN,kBAA0B,EAC1B,WAAmB,EACnB,OAAsC,EACtC,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,OAAO,CAAC;QACtE,MAAM,EAAE,CACN,kBAA0B,EAC1B,WAAmB,EACnB,QAAiB,EACjB,OAAsC,EACtC,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,CAAC;QAChF,kBAAkB,EAAE,CAClB,kBAA0B,EAC1B,OAAkD,EAClD,EAAE,CAAC,0BAA0B,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,CAAC;QACrE,GAAG,EAAE,CAAC,kBAA0B,EAAE,WAAmB,EAAE,OAAmC,EAAE,EAAE,CAC5F,WAAW,CAAC,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,OAAO,CAAC;KACjE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,OAAsB;IAC3D,yBACK,YAAY,CAAC,OAAO,CAAC,EACxB;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ImpactContext } from \"../../api/impactContext.js\";\nimport {\n insightsDelete,\n insightsCreate,\n insightsListBySubscription,\n insightsGet,\n} from \"../../api/insights/index.js\";\nimport {\n InsightsDeleteOptionalParams,\n InsightsCreateOptionalParams,\n InsightsListBySubscriptionOptionalParams,\n InsightsGetOptionalParams,\n} from \"../../api/options.js\";\nimport { Insight } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a Insights operations. */\nexport interface InsightsOperations {\n /** Delete Insight resource, This is Admin only operation */\n delete: (\n workloadImpactName: string,\n insightName: string,\n options?: InsightsDeleteOptionalParams,\n ) => Promise<void>;\n /** Create Insight resource, This is Admin only operation */\n create: (\n workloadImpactName: string,\n insightName: string,\n resource: Insight,\n options?: InsightsCreateOptionalParams,\n ) => Promise<Insight>;\n /** List Insight resources by workloadImpactName */\n listBySubscription: (\n workloadImpactName: string,\n options?: InsightsListBySubscriptionOptionalParams,\n ) => PagedAsyncIterableIterator<Insight>;\n /** Get Insight resources by workloadImpactName and insightName */\n get: (\n workloadImpactName: string,\n insightName: string,\n options?: InsightsGetOptionalParams,\n ) => Promise<Insight>;\n}\n\nfunction _getInsights(context: ImpactContext) {\n return {\n delete: (\n workloadImpactName: string,\n insightName: string,\n options?: InsightsDeleteOptionalParams,\n ) => insightsDelete(context, workloadImpactName, insightName, options),\n create: (\n workloadImpactName: string,\n insightName: string,\n resource: Insight,\n options?: InsightsCreateOptionalParams,\n ) => insightsCreate(context, workloadImpactName, insightName, resource, options),\n listBySubscription: (\n workloadImpactName: string,\n options?: InsightsListBySubscriptionOptionalParams,\n ) => insightsListBySubscription(context, workloadImpactName, options),\n get: (workloadImpactName: string, insightName: string, options?: InsightsGetOptionalParams) =>\n insightsGet(context, workloadImpactName, insightName, options),\n };\n}\n\nexport function _getInsightsOperations(context: ImpactContext): InsightsOperations {\n return {\n ..._getInsights(context),\n };\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ImpactContext } from "../../api/impactContext.js";
|
|
2
|
+
import { OperationsListOptionalParams } from "../../api/options.js";
|
|
3
|
+
import { Operation } from "../../models/models.js";
|
|
4
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
/** Interface representing a Operations operations. */
|
|
6
|
+
export interface OperationsOperations {
|
|
7
|
+
/** List the operations for the provider */
|
|
8
|
+
list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator<Operation>;
|
|
9
|
+
}
|
|
10
|
+
export declare function _getOperationsOperations(context: ImpactContext): OperationsOperations;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/operations/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAEnF,sDAAsD;AACtD,MAAM,WAAW,oBAAoB;IACnC,2CAA2C;IAC3C,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,4BAA4B,KAAK,0BAA0B,CAAC,SAAS,CAAC,CAAC;CACzF;AAQD,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,aAAa,GAAG,oBAAoB,CAIrF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { operationsList } from "../../api/operations/index.js";
|
|
4
|
+
function _getOperations(context) {
|
|
5
|
+
return {
|
|
6
|
+
list: (options) => operationsList(context, options),
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export function _getOperationsOperations(context) {
|
|
10
|
+
return Object.assign({}, _getOperations(context));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAW/D,SAAS,cAAc,CAAC,OAAsB;IAC5C,OAAO;QACL,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC;KACnF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,OAAsB;IAC7D,yBACK,cAAc,CAAC,OAAO,CAAC,EAC1B;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ImpactContext } from \"../../api/impactContext.js\";\nimport { operationsList } from \"../../api/operations/index.js\";\nimport { OperationsListOptionalParams } from \"../../api/options.js\";\nimport { Operation } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a Operations operations. */\nexport interface OperationsOperations {\n /** List the operations for the provider */\n list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator<Operation>;\n}\n\nfunction _getOperations(context: ImpactContext) {\n return {\n list: (options?: OperationsListOptionalParams) => operationsList(context, options),\n };\n}\n\nexport function _getOperationsOperations(context: ImpactContext): OperationsOperations {\n return {\n ..._getOperations(context),\n };\n}\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ImpactContext } from "../../api/impactContext.js";
|
|
2
|
+
import { WorkloadImpactsListBySubscriptionOptionalParams, WorkloadImpactsDeleteOptionalParams, WorkloadImpactsGetOptionalParams, WorkloadImpactsCreateOptionalParams } from "../../api/options.js";
|
|
3
|
+
import { WorkloadImpact } from "../../models/models.js";
|
|
4
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
6
|
+
/** Interface representing a WorkloadImpacts operations. */
|
|
7
|
+
export interface WorkloadImpactsOperations {
|
|
8
|
+
/** List WorkloadImpact resources by subscription ID */
|
|
9
|
+
listBySubscription: (options?: WorkloadImpactsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator<WorkloadImpact>;
|
|
10
|
+
/** Delete a WorkloadImpact */
|
|
11
|
+
delete: (workloadImpactName: string, options?: WorkloadImpactsDeleteOptionalParams) => Promise<void>;
|
|
12
|
+
/** Get a WorkloadImpact */
|
|
13
|
+
get: (workloadImpactName: string, options?: WorkloadImpactsGetOptionalParams) => Promise<WorkloadImpact>;
|
|
14
|
+
/** Create a WorkloadImpact */
|
|
15
|
+
create: (workloadImpactName: string, resource: WorkloadImpact, options?: WorkloadImpactsCreateOptionalParams) => PollerLike<OperationState<WorkloadImpact>, WorkloadImpact>;
|
|
16
|
+
}
|
|
17
|
+
export declare function _getWorkloadImpactsOperations(context: ImpactContext): WorkloadImpactsOperations;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/workloadImpacts/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EACL,+CAA+C,EAC/C,mCAAmC,EACnC,gCAAgC,EAChC,mCAAmC,EACpC,MAAM,sBAAsB,CAAC;AAO9B,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE7D,2DAA2D;AAC3D,MAAM,WAAW,yBAAyB;IACxC,uDAAuD;IACvD,kBAAkB,EAAE,CAClB,OAAO,CAAC,EAAE,+CAA+C,KACtD,0BAA0B,CAAC,cAAc,CAAC,CAAC;IAChD,8BAA8B;IAC9B,MAAM,EAAE,CACN,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,mCAAmC,KAC1C,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,2BAA2B;IAC3B,GAAG,EAAE,CACH,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,gCAAgC,KACvC,OAAO,CAAC,cAAc,CAAC,CAAC;IAC7B,8BAA8B;IAC9B,MAAM,EAAE,CACN,kBAAkB,EAAE,MAAM,EAC1B,QAAQ,EAAE,cAAc,EACxB,OAAO,CAAC,EAAE,mCAAmC,KAC1C,UAAU,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC,CAAC;CACjE;AAkBD,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,aAAa,GAAG,yBAAyB,CAI/F"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { workloadImpactsListBySubscription, workloadImpactsDelete, workloadImpactsGet, workloadImpactsCreate, } from "../../api/workloadImpacts/index.js";
|
|
4
|
+
function _getWorkloadImpacts(context) {
|
|
5
|
+
return {
|
|
6
|
+
listBySubscription: (options) => workloadImpactsListBySubscription(context, options),
|
|
7
|
+
delete: (workloadImpactName, options) => workloadImpactsDelete(context, workloadImpactName, options),
|
|
8
|
+
get: (workloadImpactName, options) => workloadImpactsGet(context, workloadImpactName, options),
|
|
9
|
+
create: (workloadImpactName, resource, options) => workloadImpactsCreate(context, workloadImpactName, resource, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export function _getWorkloadImpactsOperations(context) {
|
|
13
|
+
return Object.assign({}, _getWorkloadImpacts(context));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/workloadImpacts/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EACL,iCAAiC,EACjC,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,oCAAoC,CAAC;AA6B5C,SAAS,mBAAmB,CAAC,OAAsB;IACjD,OAAO;QACL,kBAAkB,EAAE,CAAC,OAAyD,EAAE,EAAE,CAChF,iCAAiC,CAAC,OAAO,EAAE,OAAO,CAAC;QACrD,MAAM,EAAE,CAAC,kBAA0B,EAAE,OAA6C,EAAE,EAAE,CACpF,qBAAqB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,CAAC;QAC7D,GAAG,EAAE,CAAC,kBAA0B,EAAE,OAA0C,EAAE,EAAE,CAC9E,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,CAAC;QAC1D,MAAM,EAAE,CACN,kBAA0B,EAC1B,QAAwB,EACxB,OAA6C,EAC7C,EAAE,CAAC,qBAAqB,CAAC,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,OAAO,CAAC;KAC3E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,OAAsB;IAClE,yBACK,mBAAmB,CAAC,OAAO,CAAC,EAC/B;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ImpactContext } from \"../../api/impactContext.js\";\nimport {\n WorkloadImpactsListBySubscriptionOptionalParams,\n WorkloadImpactsDeleteOptionalParams,\n WorkloadImpactsGetOptionalParams,\n WorkloadImpactsCreateOptionalParams,\n} from \"../../api/options.js\";\nimport {\n workloadImpactsListBySubscription,\n workloadImpactsDelete,\n workloadImpactsGet,\n workloadImpactsCreate,\n} from \"../../api/workloadImpacts/index.js\";\nimport { WorkloadImpact } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a WorkloadImpacts operations. */\nexport interface WorkloadImpactsOperations {\n /** List WorkloadImpact resources by subscription ID */\n listBySubscription: (\n options?: WorkloadImpactsListBySubscriptionOptionalParams,\n ) => PagedAsyncIterableIterator<WorkloadImpact>;\n /** Delete a WorkloadImpact */\n delete: (\n workloadImpactName: string,\n options?: WorkloadImpactsDeleteOptionalParams,\n ) => Promise<void>;\n /** Get a WorkloadImpact */\n get: (\n workloadImpactName: string,\n options?: WorkloadImpactsGetOptionalParams,\n ) => Promise<WorkloadImpact>;\n /** Create a WorkloadImpact */\n create: (\n workloadImpactName: string,\n resource: WorkloadImpact,\n options?: WorkloadImpactsCreateOptionalParams,\n ) => PollerLike<OperationState<WorkloadImpact>, WorkloadImpact>;\n}\n\nfunction _getWorkloadImpacts(context: ImpactContext) {\n return {\n listBySubscription: (options?: WorkloadImpactsListBySubscriptionOptionalParams) =>\n workloadImpactsListBySubscription(context, options),\n delete: (workloadImpactName: string, options?: WorkloadImpactsDeleteOptionalParams) =>\n workloadImpactsDelete(context, workloadImpactName, options),\n get: (workloadImpactName: string, options?: WorkloadImpactsGetOptionalParams) =>\n workloadImpactsGet(context, workloadImpactName, options),\n create: (\n workloadImpactName: string,\n resource: WorkloadImpact,\n options?: WorkloadImpactsCreateOptionalParams,\n ) => workloadImpactsCreate(context, workloadImpactName, resource, options),\n };\n}\n\nexport function _getWorkloadImpactsOperations(context: ImpactContext): WorkloadImpactsOperations {\n return {\n ..._getWorkloadImpacts(context),\n };\n}\n"]}
|