@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
package/CHANGELOG.md
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Copyright (c) Microsoft Corporation.
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Azure Impact client library for JavaScript
|
|
2
|
+
|
|
3
|
+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Impact client.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Key links:
|
|
8
|
+
|
|
9
|
+
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/impactreporting/arm-impactreporting)
|
|
10
|
+
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-impactreporting)
|
|
11
|
+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-impactreporting?view=azure-node-preview)
|
|
12
|
+
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/impactreporting/arm-impactreporting/samples)
|
|
13
|
+
|
|
14
|
+
## Getting started
|
|
15
|
+
|
|
16
|
+
### Currently supported environments
|
|
17
|
+
|
|
18
|
+
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
|
|
19
|
+
- Latest versions of Safari, Chrome, Edge and Firefox.
|
|
20
|
+
|
|
21
|
+
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
|
22
|
+
|
|
23
|
+
### Prerequisites
|
|
24
|
+
|
|
25
|
+
- An [Azure subscription][azure_sub].
|
|
26
|
+
|
|
27
|
+
### Install the `@azure/arm-impactreporting` package
|
|
28
|
+
|
|
29
|
+
Install the Azure Impact client library for JavaScript with `npm`:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm install @azure/arm-impactreporting
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Create and authenticate a `ImpactClient`
|
|
36
|
+
|
|
37
|
+
To create a client object to access the Azure Impact API, you will need the `endpoint` of your Azure Impact resource and a `credential`. The Azure Impact client can use Azure Active Directory credentials to authenticate.
|
|
38
|
+
You can find the endpoint for your Azure Impact resource in the [Azure Portal][azure_portal].
|
|
39
|
+
|
|
40
|
+
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
|
|
41
|
+
|
|
42
|
+
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm install @azure/identity
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
You will also need to **register a new AAD application and grant access to Azure Impact** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
|
|
49
|
+
|
|
50
|
+
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
|
51
|
+
|
|
52
|
+
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
|
|
53
|
+
|
|
54
|
+
```ts snippet:ReadmeSampleCreateClient_Node
|
|
55
|
+
import { ImpactClient } from "../src/index.js";
|
|
56
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
57
|
+
|
|
58
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
59
|
+
const client = new ImpactClient(new DefaultAzureCredential(), subscriptionId);
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
|
63
|
+
|
|
64
|
+
```ts snippet:ReadmeSampleCreateClient_Browser
|
|
65
|
+
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
66
|
+
import { ImpactClient } from "../src/index.js";
|
|
67
|
+
|
|
68
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
69
|
+
const credential = new InteractiveBrowserCredential({
|
|
70
|
+
tenantId: "<YOUR_TENANT_ID>",
|
|
71
|
+
clientId: "<YOUR_CLIENT_ID>",
|
|
72
|
+
});
|
|
73
|
+
const client = new ImpactClient(credential, subscriptionId);
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### JavaScript Bundle
|
|
78
|
+
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
|
|
79
|
+
|
|
80
|
+
## Key concepts
|
|
81
|
+
|
|
82
|
+
### ImpactClient
|
|
83
|
+
|
|
84
|
+
`ImpactClient` is the primary interface for developers using the Azure Impact client library. Explore the methods on this client object to understand the different features of the Azure Impact service that you can access.
|
|
85
|
+
|
|
86
|
+
## Troubleshooting
|
|
87
|
+
|
|
88
|
+
### Logging
|
|
89
|
+
|
|
90
|
+
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
|
|
91
|
+
|
|
92
|
+
```ts snippet:SetLogLevel
|
|
93
|
+
import { setLogLevel } from "@azure/logger";
|
|
94
|
+
|
|
95
|
+
setLogLevel("info");
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
|
|
99
|
+
|
|
100
|
+
## Next steps
|
|
101
|
+
|
|
102
|
+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/impactreporting/arm-impactreporting/samples) directory for detailed examples on how to use this library.
|
|
103
|
+
|
|
104
|
+
## Contributing
|
|
105
|
+
|
|
106
|
+
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
|
|
107
|
+
|
|
108
|
+
## Related projects
|
|
109
|
+
|
|
110
|
+
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
|
|
111
|
+
|
|
112
|
+
[azure_sub]: https://azure.microsoft.com/free/
|
|
113
|
+
[azure_portal]: https://portal.azure.com
|
|
114
|
+
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
|
|
115
|
+
[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ImpactContext as Client, ConnectorsCreateOrUpdateOptionalParams, ConnectorsDeleteOptionalParams, ConnectorsGetOptionalParams, ConnectorsListBySubscriptionOptionalParams, ConnectorsUpdateOptionalParams } from "../index.js";
|
|
2
|
+
import { Connector, ConnectorUpdate, _ConnectorListResult } 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 _connectorsListBySubscriptionSend(context: Client, options?: ConnectorsListBySubscriptionOptionalParams): StreamableMethod;
|
|
7
|
+
export declare function _connectorsListBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_ConnectorListResult>;
|
|
8
|
+
/** List Connector resources by subscription ID */
|
|
9
|
+
export declare function connectorsListBySubscription(context: Client, options?: ConnectorsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Connector>;
|
|
10
|
+
export declare function _connectorsDeleteSend(context: Client, connectorName: string, options?: ConnectorsDeleteOptionalParams): StreamableMethod;
|
|
11
|
+
export declare function _connectorsDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
12
|
+
/** Delete a Connector */
|
|
13
|
+
export declare function connectorsDelete(context: Client, connectorName: string, options?: ConnectorsDeleteOptionalParams): Promise<void>;
|
|
14
|
+
export declare function _connectorsUpdateSend(context: Client, connectorName: string, properties: ConnectorUpdate, options?: ConnectorsUpdateOptionalParams): StreamableMethod;
|
|
15
|
+
export declare function _connectorsUpdateDeserialize(result: PathUncheckedResponse): Promise<Connector>;
|
|
16
|
+
/** Update a Connector */
|
|
17
|
+
export declare function connectorsUpdate(context: Client, connectorName: string, properties: ConnectorUpdate, options?: ConnectorsUpdateOptionalParams): Promise<Connector>;
|
|
18
|
+
export declare function _connectorsCreateOrUpdateSend(context: Client, connectorName: string, resource: Connector, options?: ConnectorsCreateOrUpdateOptionalParams): StreamableMethod;
|
|
19
|
+
export declare function _connectorsCreateOrUpdateDeserialize(result: PathUncheckedResponse): Promise<Connector>;
|
|
20
|
+
/** Create a Connector */
|
|
21
|
+
export declare function connectorsCreateOrUpdate(context: Client, connectorName: string, resource: Connector, options?: ConnectorsCreateOrUpdateOptionalParams): PollerLike<OperationState<Connector>, Connector>;
|
|
22
|
+
export declare function _connectorsGetSend(context: Client, connectorName: string, options?: ConnectorsGetOptionalParams): StreamableMethod;
|
|
23
|
+
export declare function _connectorsGetDeserialize(result: PathUncheckedResponse): Promise<Connector>;
|
|
24
|
+
/** Get a Connector */
|
|
25
|
+
export declare function connectorsGet(context: Client, connectorName: string, options?: ConnectorsGetOptionalParams): Promise<Connector>;
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/connectors/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,aAAa,IAAI,MAAM,EACvB,sCAAsC,EACtC,8BAA8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yBAAyB;AACzB,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,8BAAuD,GAC/D,OAAO,CAAC,SAAS,CAAC,CAGpB;AAED,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,SAAS,EACnB,OAAO,GAAE,sCAA+D,GACvE,gBAAgB,CAiBlB;AAED,wBAAsB,oCAAoC,CACxD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,SAAS,CAAC,CASpB;AAED,yBAAyB;AACzB,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,SAAS,EACnB,OAAO,GAAE,sCAA+D,GACvE,UAAU,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAQlD;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE,2BAAoD,GAC5D,gBAAgB,CAelB;AAED,wBAAsB,yBAAyB,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,SAAS,CAAC,CASjG;AAED,sBAAsB;AACtB,wBAAsB,aAAa,CACjC,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE,2BAAoD,GAC5D,OAAO,CAAC,SAAS,CAAC,CAGpB"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { connectorSerializer, connectorDeserializer, errorResponseDeserializer, connectorUpdateSerializer, _connectorListResultDeserializer, } 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 _connectorsListBySubscriptionSend(context, options = { requestOptions: {} }) {
|
|
8
|
+
var _a;
|
|
9
|
+
return context
|
|
10
|
+
.path("/subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors", context.subscriptionId)
|
|
11
|
+
.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 } }));
|
|
12
|
+
}
|
|
13
|
+
export async function _connectorsListBySubscriptionDeserialize(result) {
|
|
14
|
+
const expectedStatuses = ["200"];
|
|
15
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
16
|
+
const error = createRestError(result);
|
|
17
|
+
error.details = errorResponseDeserializer(result.body);
|
|
18
|
+
throw error;
|
|
19
|
+
}
|
|
20
|
+
return _connectorListResultDeserializer(result.body);
|
|
21
|
+
}
|
|
22
|
+
/** List Connector resources by subscription ID */
|
|
23
|
+
export function connectorsListBySubscription(context, options = { requestOptions: {} }) {
|
|
24
|
+
return buildPagedAsyncIterator(context, () => _connectorsListBySubscriptionSend(context, options), _connectorsListBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
25
|
+
}
|
|
26
|
+
export function _connectorsDeleteSend(context, connectorName, options = { requestOptions: {} }) {
|
|
27
|
+
var _a;
|
|
28
|
+
return context
|
|
29
|
+
.path("/subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}", context.subscriptionId, connectorName)
|
|
30
|
+
.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 } }));
|
|
31
|
+
}
|
|
32
|
+
export async function _connectorsDeleteDeserialize(result) {
|
|
33
|
+
const expectedStatuses = ["200", "204"];
|
|
34
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
35
|
+
const error = createRestError(result);
|
|
36
|
+
error.details = errorResponseDeserializer(result.body);
|
|
37
|
+
throw error;
|
|
38
|
+
}
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
/** Delete a Connector */
|
|
42
|
+
export async function connectorsDelete(context, connectorName, options = { requestOptions: {} }) {
|
|
43
|
+
const result = await _connectorsDeleteSend(context, connectorName, options);
|
|
44
|
+
return _connectorsDeleteDeserialize(result);
|
|
45
|
+
}
|
|
46
|
+
export function _connectorsUpdateSend(context, connectorName, properties, options = { requestOptions: {} }) {
|
|
47
|
+
var _a;
|
|
48
|
+
return context
|
|
49
|
+
.path("/subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}", context.subscriptionId, connectorName)
|
|
50
|
+
.patch(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: connectorUpdateSerializer(properties) }));
|
|
51
|
+
}
|
|
52
|
+
export async function _connectorsUpdateDeserialize(result) {
|
|
53
|
+
const expectedStatuses = ["200"];
|
|
54
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
55
|
+
const error = createRestError(result);
|
|
56
|
+
error.details = errorResponseDeserializer(result.body);
|
|
57
|
+
throw error;
|
|
58
|
+
}
|
|
59
|
+
return connectorDeserializer(result.body);
|
|
60
|
+
}
|
|
61
|
+
/** Update a Connector */
|
|
62
|
+
export async function connectorsUpdate(context, connectorName, properties, options = { requestOptions: {} }) {
|
|
63
|
+
const result = await _connectorsUpdateSend(context, connectorName, properties, options);
|
|
64
|
+
return _connectorsUpdateDeserialize(result);
|
|
65
|
+
}
|
|
66
|
+
export function _connectorsCreateOrUpdateSend(context, connectorName, resource, options = { requestOptions: {} }) {
|
|
67
|
+
var _a;
|
|
68
|
+
return context
|
|
69
|
+
.path("/subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}", context.subscriptionId, connectorName)
|
|
70
|
+
.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: connectorSerializer(resource) }));
|
|
71
|
+
}
|
|
72
|
+
export async function _connectorsCreateOrUpdateDeserialize(result) {
|
|
73
|
+
const expectedStatuses = ["200", "201"];
|
|
74
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
75
|
+
const error = createRestError(result);
|
|
76
|
+
error.details = errorResponseDeserializer(result.body);
|
|
77
|
+
throw error;
|
|
78
|
+
}
|
|
79
|
+
return connectorDeserializer(result.body);
|
|
80
|
+
}
|
|
81
|
+
/** Create a Connector */
|
|
82
|
+
export function connectorsCreateOrUpdate(context, connectorName, resource, options = { requestOptions: {} }) {
|
|
83
|
+
return getLongRunningPoller(context, _connectorsCreateOrUpdateDeserialize, ["200", "201"], {
|
|
84
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
85
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
86
|
+
getInitialResponse: () => _connectorsCreateOrUpdateSend(context, connectorName, resource, options),
|
|
87
|
+
resourceLocationConfig: "azure-async-operation",
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
export function _connectorsGetSend(context, connectorName, options = { requestOptions: {} }) {
|
|
91
|
+
var _a;
|
|
92
|
+
return context
|
|
93
|
+
.path("/subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}", context.subscriptionId, connectorName)
|
|
94
|
+
.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 } }));
|
|
95
|
+
}
|
|
96
|
+
export async function _connectorsGetDeserialize(result) {
|
|
97
|
+
const expectedStatuses = ["200"];
|
|
98
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
99
|
+
const error = createRestError(result);
|
|
100
|
+
error.details = errorResponseDeserializer(result.body);
|
|
101
|
+
throw error;
|
|
102
|
+
}
|
|
103
|
+
return connectorDeserializer(result.body);
|
|
104
|
+
}
|
|
105
|
+
/** Get a Connector */
|
|
106
|
+
export async function connectorsGet(context, connectorName, options = { requestOptions: {} }) {
|
|
107
|
+
const result = await _connectorsGetSend(context, connectorName, options);
|
|
108
|
+
return _connectorsGetDeserialize(result);
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/connectors/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,OAAO,EAEL,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EAEzB,yBAAyB,EAEzB,gCAAgC,GACjC,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,iCAAiC,CAC/C,OAAe,EACf,UAAsD,EAAE,cAAc,EAAE,EAAE,EAAE;;IAE5E,OAAO,OAAO;SACX,IAAI,CACH,uEAAuE,EACvE,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,OAAO,CAAC,UAAU,EAAE,IACtD,CAAC;AACP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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,qBAAqB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC;AAED,sBAAsB;AACtB,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,OAAe,EACf,aAAqB,EACrB,UAAuC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7D,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IACzE,OAAO,yBAAyB,CAAC,MAAM,CAAC,CAAC;AAC3C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n ImpactContext as Client,\n ConnectorsCreateOrUpdateOptionalParams,\n ConnectorsDeleteOptionalParams,\n ConnectorsGetOptionalParams,\n ConnectorsListBySubscriptionOptionalParams,\n ConnectorsUpdateOptionalParams,\n} from \"../index.js\";\nimport {\n Connector,\n connectorSerializer,\n connectorDeserializer,\n errorResponseDeserializer,\n ConnectorUpdate,\n connectorUpdateSerializer,\n _ConnectorListResult,\n _connectorListResultDeserializer,\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 _connectorsListBySubscriptionSend(\n context: Client,\n options: ConnectorsListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors\",\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 _connectorsListBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_ConnectorListResult> {\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 _connectorListResultDeserializer(result.body);\n}\n\n/** List Connector resources by subscription ID */\nexport function connectorsListBySubscription(\n context: Client,\n options: ConnectorsListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Connector> {\n return buildPagedAsyncIterator(\n context,\n () => _connectorsListBySubscriptionSend(context, options),\n _connectorsListBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _connectorsDeleteSend(\n context: Client,\n connectorName: string,\n options: ConnectorsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}\",\n context.subscriptionId,\n connectorName,\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 _connectorsDeleteDeserialize(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 a Connector */\nexport async function connectorsDelete(\n context: Client,\n connectorName: string,\n options: ConnectorsDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _connectorsDeleteSend(context, connectorName, options);\n return _connectorsDeleteDeserialize(result);\n}\n\nexport function _connectorsUpdateSend(\n context: Client,\n connectorName: string,\n properties: ConnectorUpdate,\n options: ConnectorsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}\",\n context.subscriptionId,\n connectorName,\n )\n .patch({\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: connectorUpdateSerializer(properties),\n });\n}\n\nexport async function _connectorsUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<Connector> {\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 connectorDeserializer(result.body);\n}\n\n/** Update a Connector */\nexport async function connectorsUpdate(\n context: Client,\n connectorName: string,\n properties: ConnectorUpdate,\n options: ConnectorsUpdateOptionalParams = { requestOptions: {} },\n): Promise<Connector> {\n const result = await _connectorsUpdateSend(context, connectorName, properties, options);\n return _connectorsUpdateDeserialize(result);\n}\n\nexport function _connectorsCreateOrUpdateSend(\n context: Client,\n connectorName: string,\n resource: Connector,\n options: ConnectorsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}\",\n context.subscriptionId,\n connectorName,\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: connectorSerializer(resource),\n });\n}\n\nexport async function _connectorsCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<Connector> {\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 connectorDeserializer(result.body);\n}\n\n/** Create a Connector */\nexport function connectorsCreateOrUpdate(\n context: Client,\n connectorName: string,\n resource: Connector,\n options: ConnectorsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Connector>, Connector> {\n return getLongRunningPoller(context, _connectorsCreateOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _connectorsCreateOrUpdateSend(context, connectorName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<Connector>, Connector>;\n}\n\nexport function _connectorsGetSend(\n context: Client,\n connectorName: string,\n options: ConnectorsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}\",\n context.subscriptionId,\n connectorName,\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 _connectorsGetDeserialize(result: PathUncheckedResponse): Promise<Connector> {\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 connectorDeserializer(result.body);\n}\n\n/** Get a Connector */\nexport async function connectorsGet(\n context: Client,\n connectorName: string,\n options: ConnectorsGetOptionalParams = { requestOptions: {} },\n): Promise<Connector> {\n const result = await _connectorsGetSend(context, connectorName, options);\n return _connectorsGetDeserialize(result);\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ImpactContext as Client, ImpactCategoriesGetOptionalParams, ImpactCategoriesListBySubscriptionOptionalParams } from "../index.js";
|
|
2
|
+
import { ImpactCategory, _ImpactCategoryListResult } 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 _impactCategoriesListBySubscriptionSend(context: Client, resourceType: string, options?: ImpactCategoriesListBySubscriptionOptionalParams): StreamableMethod;
|
|
6
|
+
export declare function _impactCategoriesListBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_ImpactCategoryListResult>;
|
|
7
|
+
/** List ImpactCategory resources by subscription */
|
|
8
|
+
export declare function impactCategoriesListBySubscription(context: Client, resourceType: string, options?: ImpactCategoriesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ImpactCategory>;
|
|
9
|
+
export declare function _impactCategoriesGetSend(context: Client, impactCategoryName: string, options?: ImpactCategoriesGetOptionalParams): StreamableMethod;
|
|
10
|
+
export declare function _impactCategoriesGetDeserialize(result: PathUncheckedResponse): Promise<ImpactCategory>;
|
|
11
|
+
/** Get a ImpactCategory */
|
|
12
|
+
export declare function impactCategoriesGet(context: Client, impactCategoryName: string, options?: ImpactCategoriesGetOptionalParams): Promise<ImpactCategory>;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/impactCategories/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,aAAa,IAAI,MAAM,EACvB,iCAAiC,EACjC,gDAAgD,EACjD,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,cAAc,EAEd,yBAAyB,EAE1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,uCAAuC,CACrD,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,gDAER,GACA,gBAAgB,CAkBlB;AAED,wBAAsB,8CAA8C,CAClE,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,yBAAyB,CAAC,CASpC;AAED,oDAAoD;AACpD,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,gDAER,GACA,0BAA0B,CAAC,cAAc,CAAC,CAQ5C;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,MAAM,EACf,kBAAkB,EAAE,MAAM,EAC1B,OAAO,GAAE,iCAA0D,GAClE,gBAAgB,CAelB;AAED,wBAAsB,+BAA+B,CACnD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,cAAc,CAAC,CASzB;AAED,2BAA2B;AAC3B,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,MAAM,EACf,kBAAkB,EAAE,MAAM,EAC1B,OAAO,GAAE,iCAA0D,GAClE,OAAO,CAAC,cAAc,CAAC,CAGzB"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { errorResponseDeserializer, impactCategoryDeserializer, _impactCategoryListResultDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
6
|
+
export function _impactCategoriesListBySubscriptionSend(context, resourceType, options = {
|
|
7
|
+
requestOptions: {},
|
|
8
|
+
}) {
|
|
9
|
+
var _a;
|
|
10
|
+
return context
|
|
11
|
+
.path("/subscriptions/{subscriptionId}/providers/Microsoft.Impact/impactCategories", context.subscriptionId)
|
|
12
|
+
.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: {
|
|
13
|
+
"api-version": context.apiVersion,
|
|
14
|
+
categoryName: options === null || options === void 0 ? void 0 : options.categoryName,
|
|
15
|
+
resourceType: resourceType,
|
|
16
|
+
} }));
|
|
17
|
+
}
|
|
18
|
+
export async function _impactCategoriesListBySubscriptionDeserialize(result) {
|
|
19
|
+
const expectedStatuses = ["200"];
|
|
20
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
21
|
+
const error = createRestError(result);
|
|
22
|
+
error.details = errorResponseDeserializer(result.body);
|
|
23
|
+
throw error;
|
|
24
|
+
}
|
|
25
|
+
return _impactCategoryListResultDeserializer(result.body);
|
|
26
|
+
}
|
|
27
|
+
/** List ImpactCategory resources by subscription */
|
|
28
|
+
export function impactCategoriesListBySubscription(context, resourceType, options = {
|
|
29
|
+
requestOptions: {},
|
|
30
|
+
}) {
|
|
31
|
+
return buildPagedAsyncIterator(context, () => _impactCategoriesListBySubscriptionSend(context, resourceType, options), _impactCategoriesListBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
32
|
+
}
|
|
33
|
+
export function _impactCategoriesGetSend(context, impactCategoryName, options = { requestOptions: {} }) {
|
|
34
|
+
var _a;
|
|
35
|
+
return context
|
|
36
|
+
.path("/subscriptions/{subscriptionId}/providers/Microsoft.Impact/impactCategories/{impactCategoryName}", context.subscriptionId, impactCategoryName)
|
|
37
|
+
.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 } }));
|
|
38
|
+
}
|
|
39
|
+
export async function _impactCategoriesGetDeserialize(result) {
|
|
40
|
+
const expectedStatuses = ["200"];
|
|
41
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
42
|
+
const error = createRestError(result);
|
|
43
|
+
error.details = errorResponseDeserializer(result.body);
|
|
44
|
+
throw error;
|
|
45
|
+
}
|
|
46
|
+
return impactCategoryDeserializer(result.body);
|
|
47
|
+
}
|
|
48
|
+
/** Get a ImpactCategory */
|
|
49
|
+
export async function impactCategoriesGet(context, impactCategoryName, options = { requestOptions: {} }) {
|
|
50
|
+
const result = await _impactCategoriesGetSend(context, impactCategoryName, options);
|
|
51
|
+
return _impactCategoriesGetDeserialize(result);
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/impactCategories/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EACL,yBAAyB,EAEzB,0BAA0B,EAE1B,qCAAqC,GACtC,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,uCAAuC,CACrD,OAAe,EACf,YAAoB,EACpB,UAA4D;IAC1D,cAAc,EAAE,EAAE;CACnB;;IAED,OAAO,OAAO;SACX,IAAI,CACH,6EAA6E,EAC7E,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;YACf,aAAa,EAAE,OAAO,CAAC,UAAU;YACjC,YAAY,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY;YACnC,YAAY,EAAE,YAAY;SAC3B,IACD,CAAC;AACP,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,8CAA8C,CAClE,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,M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B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACjD,CAAC;AAED,2BAA2B;AAC3B,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,OAAe,EACf,kBAA0B,EAC1B,UAA6C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEnE,MAAM,MAAM,GAAG,MAAM,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACpF,OAAO,+BAA+B,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n ImpactContext as Client,\n ImpactCategoriesGetOptionalParams,\n ImpactCategoriesListBySubscriptionOptionalParams,\n} from \"../index.js\";\nimport {\n errorResponseDeserializer,\n ImpactCategory,\n impactCategoryDeserializer,\n _ImpactCategoryListResult,\n _impactCategoryListResultDeserializer,\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 _impactCategoriesListBySubscriptionSend(\n context: Client,\n resourceType: string,\n options: ImpactCategoriesListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Impact/impactCategories\",\n context.subscriptionId,\n )\n .get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: {\n \"api-version\": context.apiVersion,\n categoryName: options?.categoryName,\n resourceType: resourceType,\n },\n });\n}\n\nexport async function _impactCategoriesListBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_ImpactCategoryListResult> {\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 _impactCategoryListResultDeserializer(result.body);\n}\n\n/** List ImpactCategory resources by subscription */\nexport function impactCategoriesListBySubscription(\n context: Client,\n resourceType: string,\n options: ImpactCategoriesListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<ImpactCategory> {\n return buildPagedAsyncIterator(\n context,\n () => _impactCategoriesListBySubscriptionSend(context, resourceType, options),\n _impactCategoriesListBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _impactCategoriesGetSend(\n context: Client,\n impactCategoryName: string,\n options: ImpactCategoriesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Impact/impactCategories/{impactCategoryName}\",\n context.subscriptionId,\n impactCategoryName,\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 _impactCategoriesGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<ImpactCategory> {\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 impactCategoryDeserializer(result.body);\n}\n\n/** Get a ImpactCategory */\nexport async function impactCategoriesGet(\n context: Client,\n impactCategoryName: string,\n options: ImpactCategoriesGetOptionalParams = { requestOptions: {} },\n): Promise<ImpactCategory> {\n const result = await _impactCategoriesGetSend(context, impactCategoryName, options);\n return _impactCategoriesGetDeserialize(result);\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Client, ClientOptions } from "@azure-rest/core-client";
|
|
2
|
+
import { TokenCredential } from "@azure/core-auth";
|
|
3
|
+
export interface ImpactContext extends Client {
|
|
4
|
+
/** The API version to use for this operation. */
|
|
5
|
+
/** Known values of {@link KnownVersions} that the service accepts. */
|
|
6
|
+
apiVersion: string;
|
|
7
|
+
/** The ID of the target subscription. The value must be an UUID. */
|
|
8
|
+
subscriptionId: string;
|
|
9
|
+
}
|
|
10
|
+
/** Optional parameters for the client. */
|
|
11
|
+
export interface ImpactClientOptionalParams extends ClientOptions {
|
|
12
|
+
/** The API version to use for this operation. */
|
|
13
|
+
/** Known values of {@link KnownVersions} that the service accepts. */
|
|
14
|
+
apiVersion?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function createImpact(credential: TokenCredential, subscriptionId: string, options?: ImpactClientOptionalParams): ImpactContext;
|
|
17
|
+
//# sourceMappingURL=impactContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"impactContext.d.ts","sourceRoot":"","sources":["../../../src/api/impactContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAa,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,WAAW,aAAc,SAAQ,MAAM;IAC3C,iDAAiD;IACjD,sEAAsE;IACtE,UAAU,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,0CAA0C;AAC1C,MAAM,WAAW,0BAA2B,SAAQ,aAAa;IAC/D,iDAAiD;IACjD,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,YAAY,CAC1B,UAAU,EAAE,eAAe,EAC3B,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,0BAA+B,GACvC,aAAa,CAkCf"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { __rest } from "tslib";
|
|
4
|
+
import { logger } from "../logger.js";
|
|
5
|
+
import { getClient } from "@azure-rest/core-client";
|
|
6
|
+
export function createImpact(credential, subscriptionId, options = {}) {
|
|
7
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
8
|
+
const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : "https://management.azure.com";
|
|
9
|
+
const prefixFromOptions = (_c = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _c === void 0 ? void 0 : _c.userAgentPrefix;
|
|
10
|
+
const userAgentInfo = `azsdk-js-arm-impactreporting/1.0.0-beta.1`;
|
|
11
|
+
const userAgentPrefix = prefixFromOptions
|
|
12
|
+
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
13
|
+
: `azsdk-js-api ${userAgentInfo}`;
|
|
14
|
+
const _j = Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix }, loggingOptions: { logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger.info }, credentials: {
|
|
15
|
+
scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : [`${endpointUrl}/.default`],
|
|
16
|
+
} }), { apiVersion: _ } = _j, updatedOptions = __rest(_j, ["apiVersion"]);
|
|
17
|
+
const clientContext = getClient(endpointUrl, credential, updatedOptions);
|
|
18
|
+
clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
19
|
+
const apiVersion = (_h = options.apiVersion) !== null && _h !== void 0 ? _h : "2024-05-01-preview";
|
|
20
|
+
clientContext.pipeline.addPolicy({
|
|
21
|
+
name: "ClientApiVersionPolicy",
|
|
22
|
+
sendRequest: (req, next) => {
|
|
23
|
+
// Use the apiVersion defined in request url directly
|
|
24
|
+
// Append one if there is no apiVersion and we have one at client options
|
|
25
|
+
const url = new URL(req.url);
|
|
26
|
+
if (!url.searchParams.get("api-version")) {
|
|
27
|
+
req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
|
|
28
|
+
}
|
|
29
|
+
return next(req);
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
return Object.assign(Object.assign({}, clientContext), { apiVersion, subscriptionId });
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=impactContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"impactContext.js","sourceRoot":"","sources":["../../../src/api/impactContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAkB3E,MAAM,UAAU,YAAY,CAC1B,UAA2B,EAC3B,cAAsB,EACtB,UAAsC,EAAE;;IAExC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,CAAC;IAC1F,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,2CAA2C,CAAC;IAClE,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,qCACD,OAAO,KACV,gBAAgB,EAAE,EAAE,eAAe,EAAE,EACrC,cAAc,EAAE,EAAE,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,MAAM,CAAC,IAAI,EAAE,EACzE,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,GAAG,WAAW,WAAW,CAAC;SACnE,GACF,EAPK,EAAE,UAAU,EAAE,CAAC,OAOpB,EAPyB,cAAc,cAAlC,cAAoC,CAOzC,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,aAAa,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAClE,MAAM,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,oBAAoB,CAAC;IAC9D,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC/B,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,gCAAK,aAAa,KAAE,UAAU,EAAE,cAAc,GAAmB,CAAC;AAC3E,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport interface ImpactContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion: string;\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n}\n\n/** Optional parameters for the client. */\nexport interface ImpactClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\nexport function createImpact(\n credential: TokenCredential,\n subscriptionId: string,\n options: ImpactClientOptionalParams = {},\n): ImpactContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-impactreporting/1.0.0-beta.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2024-05-01-preview\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return { ...clientContext, apiVersion, subscriptionId } as ImpactContext;\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { createImpact, ImpactContext, ImpactClientOptionalParams } from "./impactContext.js";
|
|
2
|
+
export { ConnectorsListBySubscriptionOptionalParams, ConnectorsDeleteOptionalParams, ConnectorsUpdateOptionalParams, ConnectorsCreateOrUpdateOptionalParams, ConnectorsGetOptionalParams, InsightsDeleteOptionalParams, InsightsCreateOptionalParams, InsightsListBySubscriptionOptionalParams, InsightsGetOptionalParams, ImpactCategoriesListBySubscriptionOptionalParams, ImpactCategoriesGetOptionalParams, WorkloadImpactsListBySubscriptionOptionalParams, WorkloadImpactsDeleteOptionalParams, WorkloadImpactsGetOptionalParams, WorkloadImpactsCreateOptionalParams, OperationsListOptionalParams, } from "./options.js";
|
|
3
|
+
export { connectorsListBySubscription, connectorsDelete, connectorsUpdate, connectorsCreateOrUpdate, connectorsGet, } from "./connectors/index.js";
|
|
4
|
+
export { impactCategoriesListBySubscription, impactCategoriesGet, } from "./impactCategories/index.js";
|
|
5
|
+
export { insightsDelete, insightsCreate, insightsListBySubscription, insightsGet, } from "./insights/index.js";
|
|
6
|
+
export { operationsList } from "./operations/index.js";
|
|
7
|
+
export { workloadImpactsListBySubscription, workloadImpactsDelete, workloadImpactsGet, workloadImpactsCreate, } from "./workloadImpacts/index.js";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EACL,0CAA0C,EAC1C,8BAA8B,EAC9B,8BAA8B,EAC9B,sCAAsC,EACtC,2BAA2B,EAC3B,4BAA4B,EAC5B,4BAA4B,EAC5B,wCAAwC,EACxC,yBAAyB,EACzB,gDAAgD,EAChD,iCAAiC,EACjC,+CAA+C,EAC/C,mCAAmC,EACnC,gCAAgC,EAChC,mCAAmC,EACnC,4BAA4B,GAC7B,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,4BAA4B,EAC5B,gBAAgB,EAChB,gBAAgB,EAChB,wBAAwB,EACxB,aAAa,GACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,kCAAkC,EAClC,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,cAAc,EACd,cAAc,EACd,0BAA0B,EAC1B,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACL,iCAAiC,EACjC,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
export { createImpact } from "./impactContext.js";
|
|
4
|
+
export { connectorsListBySubscription, connectorsDelete, connectorsUpdate, connectorsCreateOrUpdate, connectorsGet, } from "./connectors/index.js";
|
|
5
|
+
export { impactCategoriesListBySubscription, impactCategoriesGet, } from "./impactCategories/index.js";
|
|
6
|
+
export { insightsDelete, insightsCreate, insightsListBySubscription, insightsGet, } from "./insights/index.js";
|
|
7
|
+
export { operationsList } from "./operations/index.js";
|
|
8
|
+
export { workloadImpactsListBySubscription, workloadImpactsDelete, workloadImpactsGet, workloadImpactsCreate, } from "./workloadImpacts/index.js";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,YAAY,EAA6C,MAAM,oBAAoB,CAAC;AAmB7F,OAAO,EACL,4BAA4B,EAC5B,gBAAgB,EAChB,gBAAgB,EAChB,wBAAwB,EACxB,aAAa,GACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,kCAAkC,EAClC,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,cAAc,EACd,cAAc,EACd,0BAA0B,EAC1B,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACL,iCAAiC,EACjC,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { createImpact, ImpactContext, ImpactClientOptionalParams } from \"./impactContext.js\";\nexport {\n ConnectorsListBySubscriptionOptionalParams,\n ConnectorsDeleteOptionalParams,\n ConnectorsUpdateOptionalParams,\n ConnectorsCreateOrUpdateOptionalParams,\n ConnectorsGetOptionalParams,\n InsightsDeleteOptionalParams,\n InsightsCreateOptionalParams,\n InsightsListBySubscriptionOptionalParams,\n InsightsGetOptionalParams,\n ImpactCategoriesListBySubscriptionOptionalParams,\n ImpactCategoriesGetOptionalParams,\n WorkloadImpactsListBySubscriptionOptionalParams,\n WorkloadImpactsDeleteOptionalParams,\n WorkloadImpactsGetOptionalParams,\n WorkloadImpactsCreateOptionalParams,\n OperationsListOptionalParams,\n} from \"./options.js\";\nexport {\n connectorsListBySubscription,\n connectorsDelete,\n connectorsUpdate,\n connectorsCreateOrUpdate,\n connectorsGet,\n} from \"./connectors/index.js\";\nexport {\n impactCategoriesListBySubscription,\n impactCategoriesGet,\n} from \"./impactCategories/index.js\";\nexport {\n insightsDelete,\n insightsCreate,\n insightsListBySubscription,\n insightsGet,\n} from \"./insights/index.js\";\nexport { operationsList } from \"./operations/index.js\";\nexport {\n workloadImpactsListBySubscription,\n workloadImpactsDelete,\n workloadImpactsGet,\n workloadImpactsCreate,\n} from \"./workloadImpacts/index.js\";\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ImpactContext as Client, InsightsCreateOptionalParams, InsightsDeleteOptionalParams, InsightsGetOptionalParams, InsightsListBySubscriptionOptionalParams } from "../index.js";
|
|
2
|
+
import { Insight, _InsightListResult } 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 _insightsDeleteSend(context: Client, workloadImpactName: string, insightName: string, options?: InsightsDeleteOptionalParams): StreamableMethod;
|
|
6
|
+
export declare function _insightsDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
7
|
+
/** Delete Insight resource, This is Admin only operation */
|
|
8
|
+
export declare function insightsDelete(context: Client, workloadImpactName: string, insightName: string, options?: InsightsDeleteOptionalParams): Promise<void>;
|
|
9
|
+
export declare function _insightsCreateSend(context: Client, workloadImpactName: string, insightName: string, resource: Insight, options?: InsightsCreateOptionalParams): StreamableMethod;
|
|
10
|
+
export declare function _insightsCreateDeserialize(result: PathUncheckedResponse): Promise<Insight>;
|
|
11
|
+
/** Create Insight resource, This is Admin only operation */
|
|
12
|
+
export declare function insightsCreate(context: Client, workloadImpactName: string, insightName: string, resource: Insight, options?: InsightsCreateOptionalParams): Promise<Insight>;
|
|
13
|
+
export declare function _insightsListBySubscriptionSend(context: Client, workloadImpactName: string, options?: InsightsListBySubscriptionOptionalParams): StreamableMethod;
|
|
14
|
+
export declare function _insightsListBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_InsightListResult>;
|
|
15
|
+
/** List Insight resources by workloadImpactName */
|
|
16
|
+
export declare function insightsListBySubscription(context: Client, workloadImpactName: string, options?: InsightsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Insight>;
|
|
17
|
+
export declare function _insightsGetSend(context: Client, workloadImpactName: string, insightName: string, options?: InsightsGetOptionalParams): StreamableMethod;
|
|
18
|
+
export declare function _insightsGetDeserialize(result: PathUncheckedResponse): Promise<Insight>;
|
|
19
|
+
/** Get Insight resources by workloadImpactName and insightName */
|
|
20
|
+
export declare function insightsGet(context: Client, workloadImpactName: string, insightName: string, options?: InsightsGetOptionalParams): Promise<Insight>;
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/insights/index.ts"],"names":[],"m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