@azure/arm-resourcegraph 5.0.0-beta.3 → 5.0.0-beta.5
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/LICENSE +3 -3
- package/README.md +30 -24
- package/dist/browser/api/graphQuery/index.d.ts +3 -0
- package/dist/browser/api/graphQuery/index.js +4 -0
- package/dist/browser/api/graphQuery/index.js.map +1 -0
- package/dist/browser/api/graphQuery/operations.d.ts +30 -0
- package/dist/browser/api/graphQuery/operations.js +183 -0
- package/dist/browser/api/graphQuery/operations.js.map +1 -0
- package/dist/browser/api/graphQuery/options.d.ts +20 -0
- package/dist/browser/api/graphQuery/options.js +4 -0
- package/dist/browser/api/graphQuery/options.js.map +1 -0
- package/dist/browser/api/index.d.ts +5 -0
- package/dist/browser/api/index.js +5 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +3 -0
- package/dist/browser/api/operations/index.js +4 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/operations/operations.d.ts +10 -0
- package/dist/browser/api/operations/operations.js +34 -0
- package/dist/browser/api/operations/operations.js.map +1 -0
- package/dist/browser/api/operations/options.d.ts +5 -0
- package/dist/browser/api/operations/options.js +4 -0
- package/dist/browser/api/operations/options.js.map +1 -0
- package/dist/browser/api/operations.d.ts +24 -0
- package/dist/browser/api/operations.js +125 -0
- package/dist/browser/api/operations.js.map +1 -0
- package/dist/browser/api/options.d.ts +14 -0
- package/dist/browser/api/options.js +4 -0
- package/dist/browser/api/options.js.map +1 -0
- package/dist/browser/api/resourceGraphContext.d.ts +14 -0
- package/dist/browser/api/resourceGraphContext.js +27 -0
- package/dist/browser/api/resourceGraphContext.js.map +1 -0
- package/dist/browser/classic/graphQuery/index.d.ts +21 -0
- package/dist/browser/classic/graphQuery/index.js +19 -0
- package/dist/browser/classic/graphQuery/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +3 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/operations/index.d.ts +11 -0
- package/dist/browser/classic/operations/index.js +14 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/index.d.ts +21 -0
- package/dist/browser/index.js +9 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/graphQueryApi/index.d.ts +3 -0
- package/dist/browser/models/graphQueryApi/index.js +4 -0
- package/dist/browser/models/graphQueryApi/index.js.map +1 -0
- package/dist/browser/models/graphQueryApi/models.d.ts +116 -0
- package/dist/browser/models/graphQueryApi/models.js +118 -0
- package/dist/browser/models/graphQueryApi/models.js.map +1 -0
- package/dist/browser/models/index.d.ts +3 -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 +64 -0
- package/dist/browser/models/models.js +53 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/models/resourceChanges/index.d.ts +2 -0
- package/dist/browser/models/resourceChanges/index.js +4 -0
- package/dist/browser/models/resourceChanges/index.js.map +1 -0
- package/dist/browser/models/resourceChanges/models.d.ts +111 -0
- package/dist/browser/models/resourceChanges/models.js +92 -0
- package/dist/browser/models/resourceChanges/models.js.map +1 -0
- package/dist/browser/models/resourceGraphApi/index.d.ts +2 -0
- package/dist/browser/models/resourceGraphApi/index.js +4 -0
- package/dist/browser/models/resourceGraphApi/index.js.map +1 -0
- package/dist/browser/models/resourceGraphApi/models.d.ts +143 -0
- package/dist/browser/models/resourceGraphApi/models.js +123 -0
- package/dist/browser/models/resourceGraphApi/models.js.map +1 -0
- package/dist/browser/models/resourceGraphCommon/index.d.ts +2 -0
- package/dist/browser/models/resourceGraphCommon/index.js +4 -0
- package/dist/browser/models/resourceGraphCommon/index.js.map +1 -0
- package/dist/browser/models/resourceGraphCommon/models.d.ts +42 -0
- package/dist/browser/models/resourceGraphCommon/models.js +31 -0
- package/dist/browser/models/resourceGraphCommon/models.js.map +1 -0
- package/dist/browser/models/resourceHistory/index.d.ts +2 -0
- package/dist/browser/models/resourceHistory/index.js +4 -0
- package/dist/browser/models/resourceHistory/index.js.map +1 -0
- package/dist/browser/models/resourceHistory/models.d.ts +32 -0
- package/dist/browser/models/resourceHistory/models.js +31 -0
- package/dist/browser/models/resourceHistory/models.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/resourceGraphClient.d.ts +31 -0
- package/dist/browser/resourceGraphClient.js +53 -0
- package/dist/browser/resourceGraphClient.js.map +1 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/browser/static-helpers/pagingHelpers.js +143 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
- package/dist/browser/static-helpers/serialization/check-prop-undefined.js +17 -0
- package/dist/browser/static-helpers/serialization/check-prop-undefined.js.map +1 -0
- package/dist/browser/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/browser/static-helpers/serialization/serialize-record.js +19 -0
- package/dist/browser/static-helpers/serialization/serialize-record.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.js +200 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/graphQuery/index.d.ts +3 -0
- package/dist/commonjs/api/graphQuery/index.js +38 -0
- package/dist/commonjs/api/graphQuery/index.js.map +7 -0
- package/dist/commonjs/api/graphQuery/operations.d.ts +30 -0
- package/dist/commonjs/api/graphQuery/operations.js +277 -0
- package/dist/commonjs/api/graphQuery/operations.js.map +7 -0
- package/dist/commonjs/api/graphQuery/options.d.ts +20 -0
- package/dist/commonjs/api/graphQuery/options.js +16 -0
- package/dist/commonjs/api/graphQuery/options.js.map +7 -0
- package/dist/commonjs/api/index.d.ts +5 -0
- package/dist/commonjs/api/index.js +37 -0
- package/dist/commonjs/api/index.js.map +7 -0
- package/dist/commonjs/api/operations/index.d.ts +3 -0
- package/dist/commonjs/api/operations/index.js +28 -0
- package/dist/commonjs/api/operations/index.js.map +7 -0
- package/dist/commonjs/api/operations/operations.d.ts +10 -0
- package/dist/commonjs/api/operations/operations.js +71 -0
- package/dist/commonjs/api/operations/operations.js.map +7 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/api/operations/options.js +16 -0
- package/dist/commonjs/api/operations/options.js.map +7 -0
- package/dist/commonjs/api/operations.d.ts +24 -0
- package/dist/commonjs/api/operations.js +183 -0
- package/dist/commonjs/api/operations.js.map +7 -0
- package/dist/commonjs/api/options.d.ts +14 -0
- package/dist/commonjs/api/options.js +16 -0
- package/dist/commonjs/api/options.js.map +7 -0
- package/dist/commonjs/api/resourceGraphContext.d.ts +14 -0
- package/dist/commonjs/api/resourceGraphContext.js +51 -0
- package/dist/commonjs/api/resourceGraphContext.js.map +7 -0
- package/dist/commonjs/classic/graphQuery/index.d.ts +21 -0
- package/dist/commonjs/classic/graphQuery/index.js +43 -0
- package/dist/commonjs/classic/graphQuery/index.js.map +7 -0
- package/dist/commonjs/classic/index.d.ts +3 -0
- package/dist/commonjs/classic/index.js +16 -0
- package/dist/commonjs/classic/index.js.map +7 -0
- package/dist/commonjs/classic/operations/index.d.ts +11 -0
- package/dist/commonjs/classic/operations/index.js +38 -0
- package/dist/commonjs/classic/operations/index.js.map +7 -0
- package/dist/commonjs/index.d.ts +21 -0
- package/dist/commonjs/index.js +42 -0
- package/dist/commonjs/index.js.map +7 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.js +29 -0
- package/dist/commonjs/logger.js.map +7 -0
- package/dist/commonjs/models/graphQueryApi/index.d.ts +3 -0
- package/dist/commonjs/models/graphQueryApi/index.js +28 -0
- package/dist/commonjs/models/graphQueryApi/index.js.map +7 -0
- package/dist/commonjs/models/graphQueryApi/models.d.ts +116 -0
- package/dist/commonjs/models/graphQueryApi/models.js +160 -0
- package/dist/commonjs/models/graphQueryApi/models.js.map +7 -0
- package/dist/commonjs/models/index.d.ts +3 -0
- package/dist/commonjs/models/index.js +28 -0
- package/dist/commonjs/models/index.js.map +7 -0
- package/dist/commonjs/models/models.d.ts +64 -0
- package/dist/commonjs/models/models.js +76 -0
- package/dist/commonjs/models/models.js.map +7 -0
- package/dist/commonjs/models/resourceChanges/index.d.ts +2 -0
- package/dist/commonjs/models/resourceChanges/index.js +16 -0
- package/dist/commonjs/models/resourceChanges/index.js.map +7 -0
- package/dist/commonjs/models/resourceChanges/models.d.ts +111 -0
- package/dist/commonjs/models/resourceChanges/models.js +130 -0
- package/dist/commonjs/models/resourceChanges/models.js.map +7 -0
- package/dist/commonjs/models/resourceGraphApi/index.d.ts +2 -0
- package/dist/commonjs/models/resourceGraphApi/index.js +16 -0
- package/dist/commonjs/models/resourceGraphApi/index.js.map +7 -0
- package/dist/commonjs/models/resourceGraphApi/models.d.ts +143 -0
- package/dist/commonjs/models/resourceGraphApi/models.js +171 -0
- package/dist/commonjs/models/resourceGraphApi/models.js.map +7 -0
- package/dist/commonjs/models/resourceGraphCommon/index.d.ts +2 -0
- package/dist/commonjs/models/resourceGraphCommon/index.js +16 -0
- package/dist/commonjs/models/resourceGraphCommon/index.js.map +7 -0
- package/dist/commonjs/models/resourceGraphCommon/models.d.ts +42 -0
- package/dist/commonjs/models/resourceGraphCommon/models.js +63 -0
- package/dist/commonjs/models/resourceGraphCommon/models.js.map +7 -0
- package/dist/commonjs/models/resourceHistory/index.d.ts +2 -0
- package/dist/commonjs/models/resourceHistory/index.js +16 -0
- package/dist/commonjs/models/resourceHistory/index.js.map +7 -0
- package/dist/commonjs/models/resourceHistory/models.d.ts +32 -0
- package/dist/commonjs/models/resourceHistory/models.js +51 -0
- package/dist/commonjs/models/resourceHistory/models.js.map +7 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/resourceGraphClient.d.ts +31 -0
- package/dist/commonjs/resourceGraphClient.js +74 -0
- package/dist/commonjs/resourceGraphClient.js.map +7 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +35 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +7 -0
- package/dist/commonjs/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/commonjs/static-helpers/serialization/serialize-record.js +42 -0
- package/dist/commonjs/static-helpers/serialization/serialize-record.js.map +7 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
- package/dist/esm/api/graphQuery/index.d.ts +3 -0
- package/dist/esm/api/graphQuery/index.js +4 -0
- package/dist/esm/api/graphQuery/index.js.map +1 -0
- package/dist/esm/api/graphQuery/operations.d.ts +30 -0
- package/dist/esm/api/graphQuery/operations.js +183 -0
- package/dist/esm/api/graphQuery/operations.js.map +1 -0
- package/dist/esm/api/graphQuery/options.d.ts +20 -0
- package/dist/esm/api/graphQuery/options.js +4 -0
- package/dist/esm/api/graphQuery/options.js.map +1 -0
- package/dist/esm/api/index.d.ts +5 -0
- package/dist/esm/api/index.js +5 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +3 -0
- package/dist/esm/api/operations/index.js +4 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/operations/operations.d.ts +10 -0
- package/dist/esm/api/operations/operations.js +34 -0
- package/dist/esm/api/operations/operations.js.map +1 -0
- package/dist/esm/api/operations/options.d.ts +5 -0
- package/dist/esm/api/operations/options.js +4 -0
- package/dist/esm/api/operations/options.js.map +1 -0
- package/dist/esm/api/operations.d.ts +24 -0
- package/dist/esm/api/operations.js +125 -0
- package/dist/esm/api/operations.js.map +1 -0
- package/dist/esm/api/options.d.ts +14 -0
- package/dist/esm/api/options.js +4 -0
- package/dist/esm/api/options.js.map +1 -0
- package/dist/esm/api/resourceGraphContext.d.ts +14 -0
- package/dist/esm/api/resourceGraphContext.js +27 -0
- package/dist/esm/api/resourceGraphContext.js.map +1 -0
- package/dist/esm/classic/graphQuery/index.d.ts +21 -0
- package/dist/esm/classic/graphQuery/index.js +19 -0
- package/dist/esm/classic/graphQuery/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +3 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/operations/index.d.ts +11 -0
- package/dist/esm/classic/operations/index.js +14 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/index.d.ts +21 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/graphQueryApi/index.d.ts +3 -0
- package/dist/esm/models/graphQueryApi/index.js +4 -0
- package/dist/esm/models/graphQueryApi/index.js.map +1 -0
- package/dist/esm/models/graphQueryApi/models.d.ts +116 -0
- package/dist/esm/models/graphQueryApi/models.js +118 -0
- package/dist/esm/models/graphQueryApi/models.js.map +1 -0
- package/dist/esm/models/index.d.ts +3 -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 +64 -0
- package/dist/esm/models/models.js +53 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/models/resourceChanges/index.d.ts +2 -0
- package/dist/esm/models/resourceChanges/index.js +4 -0
- package/dist/esm/models/resourceChanges/index.js.map +1 -0
- package/dist/esm/models/resourceChanges/models.d.ts +111 -0
- package/dist/esm/models/resourceChanges/models.js +92 -0
- package/dist/esm/models/resourceChanges/models.js.map +1 -0
- package/dist/esm/models/resourceGraphApi/index.d.ts +2 -0
- package/dist/esm/models/resourceGraphApi/index.js +4 -0
- package/dist/esm/models/resourceGraphApi/index.js.map +1 -0
- package/dist/esm/models/resourceGraphApi/models.d.ts +143 -0
- package/dist/esm/models/resourceGraphApi/models.js +123 -0
- package/dist/esm/models/resourceGraphApi/models.js.map +1 -0
- package/dist/esm/models/resourceGraphCommon/index.d.ts +2 -0
- package/dist/esm/models/resourceGraphCommon/index.js +4 -0
- package/dist/esm/models/resourceGraphCommon/index.js.map +1 -0
- package/dist/esm/models/resourceGraphCommon/models.d.ts +42 -0
- package/dist/esm/models/resourceGraphCommon/models.js +31 -0
- package/dist/esm/models/resourceGraphCommon/models.js.map +1 -0
- package/dist/esm/models/resourceHistory/index.d.ts +2 -0
- package/dist/esm/models/resourceHistory/index.js +4 -0
- package/dist/esm/models/resourceHistory/index.js.map +1 -0
- package/dist/esm/models/resourceHistory/models.d.ts +32 -0
- package/dist/esm/models/resourceHistory/models.js +31 -0
- package/dist/esm/models/resourceHistory/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/resourceGraphClient.d.ts +31 -0
- package/dist/esm/resourceGraphClient.js +53 -0
- package/dist/esm/resourceGraphClient.js.map +1 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/esm/static-helpers/pagingHelpers.js +143 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
- package/dist/esm/static-helpers/serialization/check-prop-undefined.js +17 -0
- package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +1 -0
- package/dist/esm/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/esm/static-helpers/serialization/serialize-record.js +19 -0
- package/dist/esm/static-helpers/serialization/serialize-record.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.js +200 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +190 -87
- package/CHANGELOG.md +0 -11
- package/dist/index.js +0 -1030
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -42
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/resourcesHistorySample.d.ts +0 -2
- package/dist-esm/samples-dev/resourcesHistorySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/resourcesHistorySample.js +0 -63
- package/dist-esm/samples-dev/resourcesHistorySample.js.map +0 -1
- package/dist-esm/samples-dev/resourcesSample.d.ts +0 -2
- package/dist-esm/samples-dev/resourcesSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/resourcesSample.js +0 -245
- package/dist-esm/samples-dev/resourcesSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -6
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js +0 -13
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/models/index.d.ts +0 -216
- package/dist-esm/src/models/index.d.ts.map +0 -1
- package/dist-esm/src/models/index.js +0 -9
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.d.ts +0 -26
- package/dist-esm/src/models/mappers.d.ts.map +0 -1
- package/dist-esm/src/models/mappers.js +0 -655
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.d.ts +0 -8
- package/dist-esm/src/models/parameters.d.ts.map +0 -1
- package/dist-esm/src/models/parameters.js +0 -61
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -2
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -9
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts +0 -26
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js +0 -94
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -2
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -9
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts +0 -11
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js +0 -9
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/pagingHelper.d.ts +0 -13
- package/dist-esm/src/pagingHelper.d.ts.map +0 -1
- package/dist-esm/src/pagingHelper.js +0 -32
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/src/resourceGraphClient.d.ts +0 -30
- package/dist-esm/src/resourceGraphClient.d.ts.map +0 -1
- package/dist-esm/src/resourceGraphClient.js +0 -152
- package/dist-esm/src/resourceGraphClient.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/review/arm-resourcegraph.api.md +0 -217
- package/rollup.config.js +0 -122
- package/src/index.ts +0 -13
- package/src/models/index.ts +0 -261
- package/src/models/mappers.ts +0 -684
- package/src/models/parameters.ts +0 -75
- package/src/operations/index.ts +0 -9
- package/src/operations/operations.ts +0 -103
- package/src/operationsInterfaces/index.ts +0 -9
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/pagingHelper.ts +0 -39
- package/src/resourceGraphClient.ts +0 -213
- package/tsconfig.json +0 -33
- package/types/arm-resourcegraph.d.ts +0 -295
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import type { ErrorDetails, ResultFormat } from "../resourceGraphCommon/models.js";
|
|
2
|
+
/**
|
|
3
|
+
* This file contains only generated model types and their (de)serializers.
|
|
4
|
+
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
|
|
5
|
+
*/
|
|
6
|
+
/** Describes a query to be executed. */
|
|
7
|
+
export interface QueryRequest {
|
|
8
|
+
/** Azure subscriptions against which to execute the query. */
|
|
9
|
+
subscriptions?: string[];
|
|
10
|
+
/** Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ] */
|
|
11
|
+
managementGroups?: string[];
|
|
12
|
+
/** The resources query. */
|
|
13
|
+
query: string;
|
|
14
|
+
/** The query evaluation options */
|
|
15
|
+
options?: QueryRequestOptions;
|
|
16
|
+
/** An array of facet requests to be computed against the query result. */
|
|
17
|
+
facets?: FacetRequest[];
|
|
18
|
+
}
|
|
19
|
+
export declare function queryRequestSerializer(item: QueryRequest): any;
|
|
20
|
+
/** The options for query evaluation */
|
|
21
|
+
export interface QueryRequestOptions {
|
|
22
|
+
/** Continuation token for pagination, capturing the next page size and offset, as well as the context of the query. */
|
|
23
|
+
skipToken?: string;
|
|
24
|
+
/** The maximum number of rows that the query should return. Overrides the page size when ```$skipToken``` property is present. */
|
|
25
|
+
top?: number;
|
|
26
|
+
/** The number of rows to skip from the beginning of the results. Overrides the next page offset when ```$skipToken``` property is present. */
|
|
27
|
+
skip?: number;
|
|
28
|
+
/** Defines in which format query result returned. */
|
|
29
|
+
resultFormat?: ResultFormat;
|
|
30
|
+
/** Only applicable for tenant and management group level queries to decide whether to allow partial scopes for result in case the number of subscriptions exceed allowed limits. */
|
|
31
|
+
allowPartialScopes?: boolean;
|
|
32
|
+
/** Defines what level of authorization resources should be returned based on the which subscriptions and management groups are passed as scopes. */
|
|
33
|
+
authorizationScopeFilter?: AuthorizationScopeFilter;
|
|
34
|
+
}
|
|
35
|
+
export declare function queryRequestOptionsSerializer(item: QueryRequestOptions): any;
|
|
36
|
+
/** Defines what level of authorization resources should be returned based on the which subscriptions and management groups are passed as scopes. */
|
|
37
|
+
export type AuthorizationScopeFilter = "AtScopeAndBelow" | "AtScopeAndAbove" | "AtScopeExact" | "AtScopeAboveAndBelow";
|
|
38
|
+
export declare function facetRequestArraySerializer(result: Array<FacetRequest>): any[];
|
|
39
|
+
/** A request to compute additional statistics (facets) over the query results. */
|
|
40
|
+
export interface FacetRequest {
|
|
41
|
+
/** The column or list of columns to summarize by */
|
|
42
|
+
expression: string;
|
|
43
|
+
/** The options for facet evaluation */
|
|
44
|
+
options?: FacetRequestOptions;
|
|
45
|
+
}
|
|
46
|
+
export declare function facetRequestSerializer(item: FacetRequest): any;
|
|
47
|
+
/** The options for facet evaluation */
|
|
48
|
+
export interface FacetRequestOptions {
|
|
49
|
+
/** The column name or query expression to sort on. Defaults to count if not present. */
|
|
50
|
+
sortBy?: string;
|
|
51
|
+
/** The sorting order by the selected column (count by default). */
|
|
52
|
+
sortOrder?: FacetSortOrder;
|
|
53
|
+
/** Specifies the filter condition for the 'where' clause which will be run on main query's result, just before the actual faceting. */
|
|
54
|
+
filter?: string;
|
|
55
|
+
/** The maximum number of facet rows that should be returned. */
|
|
56
|
+
top?: number;
|
|
57
|
+
}
|
|
58
|
+
export declare function facetRequestOptionsSerializer(item: FacetRequestOptions): any;
|
|
59
|
+
/** The sorting order by the selected column (count by default). */
|
|
60
|
+
export type FacetSortOrder = "asc" | "desc";
|
|
61
|
+
/** Query result. */
|
|
62
|
+
export interface QueryResponse {
|
|
63
|
+
/** Number of total records matching the query. */
|
|
64
|
+
totalRecords: number;
|
|
65
|
+
/** Number of records returned in the current response. In the case of paging, this is the number of records in the current page. */
|
|
66
|
+
count: number;
|
|
67
|
+
/** Indicates whether the query results are truncated. */
|
|
68
|
+
resultTruncated: ResultTruncated;
|
|
69
|
+
/** When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data. */
|
|
70
|
+
skipToken?: string;
|
|
71
|
+
/** Query output in JObject array or Table format. */
|
|
72
|
+
data: any;
|
|
73
|
+
/** Query facets. */
|
|
74
|
+
facets?: FacetUnion[];
|
|
75
|
+
}
|
|
76
|
+
export declare function queryResponseDeserializer(item: any): QueryResponse;
|
|
77
|
+
/** Indicates whether the query results are truncated. */
|
|
78
|
+
export type ResultTruncated = "true" | "false";
|
|
79
|
+
export declare function facetUnionArrayDeserializer(result: Array<FacetUnion>): any[];
|
|
80
|
+
/** A facet containing additional statistics on the response of a query. Can be either FacetResult or FacetError. */
|
|
81
|
+
export interface Facet {
|
|
82
|
+
/** Facet expression, same as in the corresponding facet request. */
|
|
83
|
+
expression: string;
|
|
84
|
+
/** Result type */
|
|
85
|
+
/** The discriminator possible values: FacetResult, FacetError */
|
|
86
|
+
resultType: string;
|
|
87
|
+
}
|
|
88
|
+
export declare function facetDeserializer(item: any): Facet;
|
|
89
|
+
/** Alias for FacetUnion */
|
|
90
|
+
export type FacetUnion = FacetResult | FacetError | Facet;
|
|
91
|
+
export declare function facetUnionDeserializer(item: any): FacetUnion;
|
|
92
|
+
/** Successfully executed facet containing additional statistics on the response of a query. */
|
|
93
|
+
export interface FacetResult extends Facet {
|
|
94
|
+
/** Number of total records in the facet results. */
|
|
95
|
+
totalRecords: number;
|
|
96
|
+
/** Number of records returned in the facet response. */
|
|
97
|
+
count: number;
|
|
98
|
+
/** A JObject array or Table containing the desired facets. Only present if the facet is valid. */
|
|
99
|
+
data: any;
|
|
100
|
+
/** Result type */
|
|
101
|
+
resultType: "FacetResult";
|
|
102
|
+
}
|
|
103
|
+
export declare function facetResultDeserializer(item: any): FacetResult;
|
|
104
|
+
/** A facet whose execution resulted in an error. */
|
|
105
|
+
export interface FacetError extends Facet {
|
|
106
|
+
/** An array containing detected facet errors with details. */
|
|
107
|
+
errors: ErrorDetails[];
|
|
108
|
+
/** Result type */
|
|
109
|
+
resultType: "FacetError";
|
|
110
|
+
}
|
|
111
|
+
export declare function facetErrorDeserializer(item: any): FacetError;
|
|
112
|
+
/** Paged collection of Operation items */
|
|
113
|
+
export interface _OperationListResult {
|
|
114
|
+
/** The Operation items on this page */
|
|
115
|
+
value: Operation[];
|
|
116
|
+
/** The link to the next page of items */
|
|
117
|
+
nextLink?: string;
|
|
118
|
+
}
|
|
119
|
+
export declare function _operationListResultDeserializer(item: any): _OperationListResult;
|
|
120
|
+
export declare function operationArrayDeserializer(result: Array<Operation>): any[];
|
|
121
|
+
/** Resource Graph REST API operation definition. */
|
|
122
|
+
export interface Operation {
|
|
123
|
+
/** Operation name: {provider}/{resource}/{operation} */
|
|
124
|
+
name?: string;
|
|
125
|
+
/** Display metadata associated with the operation. */
|
|
126
|
+
display?: OperationDisplay;
|
|
127
|
+
/** The origin of operations. */
|
|
128
|
+
origin?: string;
|
|
129
|
+
}
|
|
130
|
+
export declare function operationDeserializer(item: any): Operation;
|
|
131
|
+
/** Display metadata associated with the operation. */
|
|
132
|
+
export interface OperationDisplay {
|
|
133
|
+
/** Service provider: Microsoft Resource Graph. */
|
|
134
|
+
provider?: string;
|
|
135
|
+
/** Resource on which the operation is performed etc. */
|
|
136
|
+
resource?: string;
|
|
137
|
+
/** Type of operation: get, read, delete, etc. */
|
|
138
|
+
operation?: string;
|
|
139
|
+
/** Description for the operation. */
|
|
140
|
+
description?: string;
|
|
141
|
+
}
|
|
142
|
+
export declare function operationDisplayDeserializer(item: any): OperationDisplay;
|
|
143
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { errorDetailsArrayDeserializer } from "../resourceGraphCommon/models.js";
|
|
4
|
+
export function queryRequestSerializer(item) {
|
|
5
|
+
return {
|
|
6
|
+
subscriptions: !item["subscriptions"]
|
|
7
|
+
? item["subscriptions"]
|
|
8
|
+
: item["subscriptions"].map((p) => {
|
|
9
|
+
return p;
|
|
10
|
+
}),
|
|
11
|
+
managementGroups: !item["managementGroups"]
|
|
12
|
+
? item["managementGroups"]
|
|
13
|
+
: item["managementGroups"].map((p) => {
|
|
14
|
+
return p;
|
|
15
|
+
}),
|
|
16
|
+
query: item["query"],
|
|
17
|
+
options: !item["options"] ? item["options"] : queryRequestOptionsSerializer(item["options"]),
|
|
18
|
+
facets: !item["facets"] ? item["facets"] : facetRequestArraySerializer(item["facets"]),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export function queryRequestOptionsSerializer(item) {
|
|
22
|
+
return {
|
|
23
|
+
$skipToken: item["skipToken"],
|
|
24
|
+
$top: item["top"],
|
|
25
|
+
$skip: item["skip"],
|
|
26
|
+
resultFormat: item["resultFormat"],
|
|
27
|
+
allowPartialScopes: item["allowPartialScopes"],
|
|
28
|
+
authorizationScopeFilter: item["authorizationScopeFilter"],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function facetRequestArraySerializer(result) {
|
|
32
|
+
return result.map((item) => {
|
|
33
|
+
return facetRequestSerializer(item);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
export function facetRequestSerializer(item) {
|
|
37
|
+
return {
|
|
38
|
+
expression: item["expression"],
|
|
39
|
+
options: !item["options"] ? item["options"] : facetRequestOptionsSerializer(item["options"]),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function facetRequestOptionsSerializer(item) {
|
|
43
|
+
return {
|
|
44
|
+
sortBy: item["sortBy"],
|
|
45
|
+
sortOrder: item["sortOrder"],
|
|
46
|
+
filter: item["filter"],
|
|
47
|
+
$top: item["top"],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export function queryResponseDeserializer(item) {
|
|
51
|
+
return {
|
|
52
|
+
totalRecords: item["totalRecords"],
|
|
53
|
+
count: item["count"],
|
|
54
|
+
resultTruncated: item["resultTruncated"],
|
|
55
|
+
skipToken: item["$skipToken"],
|
|
56
|
+
data: item["data"],
|
|
57
|
+
facets: !item["facets"] ? item["facets"] : facetUnionArrayDeserializer(item["facets"]),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export function facetUnionArrayDeserializer(result) {
|
|
61
|
+
return result.map((item) => {
|
|
62
|
+
return facetUnionDeserializer(item);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
export function facetDeserializer(item) {
|
|
66
|
+
return {
|
|
67
|
+
expression: item["expression"],
|
|
68
|
+
resultType: item["resultType"],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export function facetUnionDeserializer(item) {
|
|
72
|
+
switch (item["resultType"]) {
|
|
73
|
+
case "FacetResult":
|
|
74
|
+
return facetResultDeserializer(item);
|
|
75
|
+
case "FacetError":
|
|
76
|
+
return facetErrorDeserializer(item);
|
|
77
|
+
default:
|
|
78
|
+
return facetDeserializer(item);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
export function facetResultDeserializer(item) {
|
|
82
|
+
return {
|
|
83
|
+
expression: item["expression"],
|
|
84
|
+
resultType: item["resultType"],
|
|
85
|
+
totalRecords: item["totalRecords"],
|
|
86
|
+
count: item["count"],
|
|
87
|
+
data: item["data"],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
export function facetErrorDeserializer(item) {
|
|
91
|
+
return {
|
|
92
|
+
expression: item["expression"],
|
|
93
|
+
resultType: item["resultType"],
|
|
94
|
+
errors: errorDetailsArrayDeserializer(item["errors"]),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
export function _operationListResultDeserializer(item) {
|
|
98
|
+
return {
|
|
99
|
+
value: operationArrayDeserializer(item["value"]),
|
|
100
|
+
nextLink: item["nextLink"],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
export function operationArrayDeserializer(result) {
|
|
104
|
+
return result.map((item) => {
|
|
105
|
+
return operationDeserializer(item);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
export function operationDeserializer(item) {
|
|
109
|
+
return {
|
|
110
|
+
name: item["name"],
|
|
111
|
+
display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]),
|
|
112
|
+
origin: item["origin"],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
export function operationDisplayDeserializer(item) {
|
|
116
|
+
return {
|
|
117
|
+
provider: item["provider"],
|
|
118
|
+
resource: item["resource"],
|
|
119
|
+
operation: item["operation"],
|
|
120
|
+
description: item["description"],
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/resourceGraphApi/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAsBjF,MAAM,UAAU,sBAAsB,CAAC,IAAkB;IACvD,OAAO;QACL,aAAa,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC;YACnC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC;YACvB,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;gBACnC,OAAO,CAAC,CAAC;YACX,CAAC,CAAC;QACN,gBAAgB,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC;YACzC,CAAC,CAAC,IAAI,CAAC,kBAAkB,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,4BAA4B,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC3F,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;KACvB,CAAC;AACJ,CAAC;AAcD,MAAM,UAAU,4BAA4B,CAAC,IAAS;IACpD,OAAO;QACL,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC;QAC5B,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;KACjC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ErrorDetails, ResultFormat } from \"../resourceGraphCommon/models.js\";\nimport { errorDetailsArrayDeserializer } from \"../resourceGraphCommon/models.js\";\n\n/**\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/** Describes a query to be executed. */\nexport interface QueryRequest {\n /** Azure subscriptions against which to execute the query. */\n subscriptions?: string[];\n /** Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ] */\n managementGroups?: string[];\n /** The resources query. */\n query: string;\n /** The query evaluation options */\n options?: QueryRequestOptions;\n /** An array of facet requests to be computed against the query result. */\n facets?: FacetRequest[];\n}\n\nexport function queryRequestSerializer(item: QueryRequest): any {\n return {\n subscriptions: !item[\"subscriptions\"]\n ? item[\"subscriptions\"]\n : item[\"subscriptions\"].map((p: any) => {\n return p;\n }),\n managementGroups: !item[\"managementGroups\"]\n ? item[\"managementGroups\"]\n : item[\"managementGroups\"].map((p: any) => {\n return p;\n }),\n query: item[\"query\"],\n options: !item[\"options\"] ? item[\"options\"] : queryRequestOptionsSerializer(item[\"options\"]),\n facets: !item[\"facets\"] ? item[\"facets\"] : facetRequestArraySerializer(item[\"facets\"]),\n };\n}\n\n/** The options for query evaluation */\nexport interface QueryRequestOptions {\n /** Continuation token for pagination, capturing the next page size and offset, as well as the context of the query. */\n skipToken?: string;\n /** The maximum number of rows that the query should return. Overrides the page size when ```$skipToken``` property is present. */\n top?: number;\n /** The number of rows to skip from the beginning of the results. Overrides the next page offset when ```$skipToken``` property is present. */\n skip?: number;\n /** Defines in which format query result returned. */\n resultFormat?: ResultFormat;\n /** Only applicable for tenant and management group level queries to decide whether to allow partial scopes for result in case the number of subscriptions exceed allowed limits. */\n allowPartialScopes?: boolean;\n /** Defines what level of authorization resources should be returned based on the which subscriptions and management groups are passed as scopes. */\n authorizationScopeFilter?: AuthorizationScopeFilter;\n}\n\nexport function queryRequestOptionsSerializer(item: QueryRequestOptions): any {\n return {\n $skipToken: item[\"skipToken\"],\n $top: item[\"top\"],\n $skip: item[\"skip\"],\n resultFormat: item[\"resultFormat\"],\n allowPartialScopes: item[\"allowPartialScopes\"],\n authorizationScopeFilter: item[\"authorizationScopeFilter\"],\n };\n}\n\n/** Defines what level of authorization resources should be returned based on the which subscriptions and management groups are passed as scopes. */\nexport type AuthorizationScopeFilter =\n | \"AtScopeAndBelow\"\n | \"AtScopeAndAbove\"\n | \"AtScopeExact\"\n | \"AtScopeAboveAndBelow\";\n\nexport function facetRequestArraySerializer(result: Array<FacetRequest>): any[] {\n return result.map((item) => {\n return facetRequestSerializer(item);\n });\n}\n\n/** A request to compute additional statistics (facets) over the query results. */\nexport interface FacetRequest {\n /** The column or list of columns to summarize by */\n expression: string;\n /** The options for facet evaluation */\n options?: FacetRequestOptions;\n}\n\nexport function facetRequestSerializer(item: FacetRequest): any {\n return {\n expression: item[\"expression\"],\n options: !item[\"options\"] ? item[\"options\"] : facetRequestOptionsSerializer(item[\"options\"]),\n };\n}\n\n/** The options for facet evaluation */\nexport interface FacetRequestOptions {\n /** The column name or query expression to sort on. Defaults to count if not present. */\n sortBy?: string;\n /** The sorting order by the selected column (count by default). */\n sortOrder?: FacetSortOrder;\n /** Specifies the filter condition for the 'where' clause which will be run on main query's result, just before the actual faceting. */\n filter?: string;\n /** The maximum number of facet rows that should be returned. */\n top?: number;\n}\n\nexport function facetRequestOptionsSerializer(item: FacetRequestOptions): any {\n return {\n sortBy: item[\"sortBy\"],\n sortOrder: item[\"sortOrder\"],\n filter: item[\"filter\"],\n $top: item[\"top\"],\n };\n}\n\n/** The sorting order by the selected column (count by default). */\nexport type FacetSortOrder = \"asc\" | \"desc\";\n\n/** Query result. */\nexport interface QueryResponse {\n /** Number of total records matching the query. */\n totalRecords: number;\n /** Number of records returned in the current response. In the case of paging, this is the number of records in the current page. */\n count: number;\n /** Indicates whether the query results are truncated. */\n resultTruncated: ResultTruncated;\n /** When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data. */\n skipToken?: string;\n /** Query output in JObject array or Table format. */\n data: any;\n /** Query facets. */\n facets?: FacetUnion[];\n}\n\nexport function queryResponseDeserializer(item: any): QueryResponse {\n return {\n totalRecords: item[\"totalRecords\"],\n count: item[\"count\"],\n resultTruncated: item[\"resultTruncated\"],\n skipToken: item[\"$skipToken\"],\n data: item[\"data\"],\n facets: !item[\"facets\"] ? item[\"facets\"] : facetUnionArrayDeserializer(item[\"facets\"]),\n };\n}\n\n/** Indicates whether the query results are truncated. */\nexport type ResultTruncated = \"true\" | \"false\";\n\nexport function facetUnionArrayDeserializer(result: Array<FacetUnion>): any[] {\n return result.map((item) => {\n return facetUnionDeserializer(item);\n });\n}\n\n/** A facet containing additional statistics on the response of a query. Can be either FacetResult or FacetError. */\nexport interface Facet {\n /** Facet expression, same as in the corresponding facet request. */\n expression: string;\n /** Result type */\n /** The discriminator possible values: FacetResult, FacetError */\n resultType: string;\n}\n\nexport function facetDeserializer(item: any): Facet {\n return {\n expression: item[\"expression\"],\n resultType: item[\"resultType\"],\n };\n}\n\n/** Alias for FacetUnion */\nexport type FacetUnion = FacetResult | FacetError | Facet;\n\nexport function facetUnionDeserializer(item: any): FacetUnion {\n switch (item[\"resultType\"]) {\n case \"FacetResult\":\n return facetResultDeserializer(item as FacetResult);\n\n case \"FacetError\":\n return facetErrorDeserializer(item as FacetError);\n\n default:\n return facetDeserializer(item);\n }\n}\n\n/** Successfully executed facet containing additional statistics on the response of a query. */\nexport interface FacetResult extends Facet {\n /** Number of total records in the facet results. */\n totalRecords: number;\n /** Number of records returned in the facet response. */\n count: number;\n /** A JObject array or Table containing the desired facets. Only present if the facet is valid. */\n data: any;\n /** Result type */\n resultType: \"FacetResult\";\n}\n\nexport function facetResultDeserializer(item: any): FacetResult {\n return {\n expression: item[\"expression\"],\n resultType: item[\"resultType\"],\n totalRecords: item[\"totalRecords\"],\n count: item[\"count\"],\n data: item[\"data\"],\n };\n}\n\n/** A facet whose execution resulted in an error. */\nexport interface FacetError extends Facet {\n /** An array containing detected facet errors with details. */\n errors: ErrorDetails[];\n /** Result type */\n resultType: \"FacetError\";\n}\n\nexport function facetErrorDeserializer(item: any): FacetError {\n return {\n expression: item[\"expression\"],\n resultType: item[\"resultType\"],\n errors: errorDetailsArrayDeserializer(item[\"errors\"]),\n };\n}\n\n/** Paged collection of Operation items */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Resource Graph REST API operation definition. */\nexport interface Operation {\n /** Operation name: {provider}/{resource}/{operation} */\n name?: string;\n /** Display metadata associated with the operation. */\n display?: OperationDisplay;\n /** The origin of operations. */\n origin?: string;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n };\n}\n\n/** Display metadata associated with the operation. */\nexport interface OperationDisplay {\n /** Service provider: Microsoft Resource Graph. */\n provider?: string;\n /** Resource on which the operation is performed etc. */\n resource?: string;\n /** Type of operation: get, read, delete, etc. */\n operation?: string;\n /** Description for the operation. */\n description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/resourceGraphCommon/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type {\n DateTimeInterval,\n ErrorResponse,\n ErrorModel,\n ErrorDetails,\n ResultFormat,\n} from \"./models.js\";\n"]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file contains only generated model types and their (de)serializers.
|
|
3
|
+
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
|
|
4
|
+
*/
|
|
5
|
+
/** An interval in time specifying the date and time for the inclusive start and exclusive end, i.e. `[start, end)`. */
|
|
6
|
+
export interface DateTimeInterval {
|
|
7
|
+
/** A datetime indicating the inclusive/closed start of the time interval, i.e. `[`**`start`**`, end)`. Specifying a `start` that occurs chronologically after `end` will result in an error. */
|
|
8
|
+
start: Date;
|
|
9
|
+
/** A datetime indicating the exclusive/open end of the time interval, i.e. `[start, `**`end`**`)`. Specifying an `end` that occurs chronologically before `start` will result in an error. */
|
|
10
|
+
end: Date;
|
|
11
|
+
}
|
|
12
|
+
export declare function dateTimeIntervalSerializer(item: DateTimeInterval): any;
|
|
13
|
+
/** An error response from the API. */
|
|
14
|
+
export interface ErrorResponse {
|
|
15
|
+
/** Error information. */
|
|
16
|
+
error: ErrorModel;
|
|
17
|
+
}
|
|
18
|
+
export declare function errorResponseDeserializer(item: any): ErrorResponse;
|
|
19
|
+
/** Error details. */
|
|
20
|
+
export interface ErrorModel {
|
|
21
|
+
/** Error code identifying the specific error. */
|
|
22
|
+
code: string;
|
|
23
|
+
/** A human readable error message. */
|
|
24
|
+
message: string;
|
|
25
|
+
/** Error details */
|
|
26
|
+
details?: ErrorDetails[];
|
|
27
|
+
}
|
|
28
|
+
export declare function errorDeserializer(item: any): ErrorModel;
|
|
29
|
+
export declare function errorDetailsArrayDeserializer(result: Array<ErrorDetails>): any[];
|
|
30
|
+
/** Error details. */
|
|
31
|
+
export interface ErrorDetails {
|
|
32
|
+
/** Error code identifying the specific error. */
|
|
33
|
+
code: string;
|
|
34
|
+
/** A human readable error message. */
|
|
35
|
+
message: string;
|
|
36
|
+
/** Additional properties */
|
|
37
|
+
additionalProperties?: Record<string, any>;
|
|
38
|
+
}
|
|
39
|
+
export declare function errorDetailsDeserializer(item: any): ErrorDetails;
|
|
40
|
+
/** Defines in which format query result returned. */
|
|
41
|
+
export type ResultFormat = "table" | "objectArray";
|
|
42
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { serializeRecord } from "../../static-helpers/serialization/serialize-record.js";
|
|
4
|
+
export function dateTimeIntervalSerializer(item) {
|
|
5
|
+
return { start: item["start"].toISOString(), end: item["end"].toISOString() };
|
|
6
|
+
}
|
|
7
|
+
export function errorResponseDeserializer(item) {
|
|
8
|
+
return {
|
|
9
|
+
error: errorDeserializer(item["error"]),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export function errorDeserializer(item) {
|
|
13
|
+
return {
|
|
14
|
+
code: item["code"],
|
|
15
|
+
message: item["message"],
|
|
16
|
+
details: !item["details"] ? item["details"] : errorDetailsArrayDeserializer(item["details"]),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export function errorDetailsArrayDeserializer(result) {
|
|
20
|
+
return result.map((item) => {
|
|
21
|
+
return errorDetailsDeserializer(item);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export function errorDetailsDeserializer(item) {
|
|
25
|
+
return {
|
|
26
|
+
additionalProperties: serializeRecord(item, ["code", "message"]),
|
|
27
|
+
code: item["code"],
|
|
28
|
+
message: item["message"],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/resourceGraphCommon/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,eAAe,EAAE,MAAM,wDAAwD,CAAC;AAgBzF,MAAM,UAAU,0BAA0B,CAAC,IAAsB;IAC/D,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;AAChF,CAAC;AAQD,MAAM,UAAU,yBAAyB,CAAC,IAAS;IACjD,OAAO;QACL,KAAK,EAAE,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACxC,CAAC;AACJ,CAAC;AAYD,MAAM,UAAU,iBAAiB,CAAC,IAAS;IACzC,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;QACxB,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,6BAA6B,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAC7F,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,MAA2B;IACvE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;AACL,CAAC;AAYD,MAAM,UAAU,wBAAwB,CAAC,IAAS;IAChD,OAAO;QACL,oBAAoB,EAAE,eAAe,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAChE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;KACzB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { serializeRecord } from \"../../static-helpers/serialization/serialize-record.js\";\n\n/**\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/** An interval in time specifying the date and time for the inclusive start and exclusive end, i.e. `[start, end)`. */\nexport interface DateTimeInterval {\n /** A datetime indicating the inclusive/closed start of the time interval, i.e. `[`**`start`**`, end)`. Specifying a `start` that occurs chronologically after `end` will result in an error. */\n start: Date;\n /** A datetime indicating the exclusive/open end of the time interval, i.e. `[start, `**`end`**`)`. Specifying an `end` that occurs chronologically before `start` will result in an error. */\n end: Date;\n}\n\nexport function dateTimeIntervalSerializer(item: DateTimeInterval): any {\n return { start: item[\"start\"].toISOString(), end: item[\"end\"].toISOString() };\n}\n\n/** An error response from the API. */\nexport interface ErrorResponse {\n /** Error information. */\n error: ErrorModel;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: errorDeserializer(item[\"error\"]),\n };\n}\n\n/** Error details. */\nexport interface ErrorModel {\n /** Error code identifying the specific error. */\n code: string;\n /** A human readable error message. */\n message: string;\n /** Error details */\n details?: ErrorDetails[];\n}\n\nexport function errorDeserializer(item: any): ErrorModel {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailsArrayDeserializer(item[\"details\"]),\n };\n}\n\nexport function errorDetailsArrayDeserializer(result: Array<ErrorDetails>): any[] {\n return result.map((item) => {\n return errorDetailsDeserializer(item);\n });\n}\n\n/** Error details. */\nexport interface ErrorDetails {\n /** Error code identifying the specific error. */\n code: string;\n /** A human readable error message. */\n message: string;\n /** Additional properties */\n additionalProperties?: Record<string, any>;\n}\n\nexport function errorDetailsDeserializer(item: any): ErrorDetails {\n return {\n additionalProperties: serializeRecord(item, [\"code\", \"message\"]),\n code: item[\"code\"],\n message: item[\"message\"],\n };\n}\n\n/** Defines in which format query result returned. */\nexport type ResultFormat = \"table\" | \"objectArray\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/resourceHistory/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type { ResourcesHistoryRequest, ResourcesHistoryRequestOptions } from \"./models.js\";\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { DateTimeInterval, ResultFormat } from "../resourceGraphCommon/models.js";
|
|
2
|
+
/**
|
|
3
|
+
* This file contains only generated model types and their (de)serializers.
|
|
4
|
+
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
|
|
5
|
+
*/
|
|
6
|
+
/** Describes a history request to be executed. */
|
|
7
|
+
export interface ResourcesHistoryRequest {
|
|
8
|
+
/** Azure subscriptions against which to execute the query. */
|
|
9
|
+
subscriptions?: string[];
|
|
10
|
+
/** The resources query. */
|
|
11
|
+
query?: string;
|
|
12
|
+
/** The history request evaluation options */
|
|
13
|
+
options?: ResourcesHistoryRequestOptions;
|
|
14
|
+
/** Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ] */
|
|
15
|
+
managementGroups?: string[];
|
|
16
|
+
}
|
|
17
|
+
export declare function resourcesHistoryRequestSerializer(item: ResourcesHistoryRequest): any;
|
|
18
|
+
/** The options for history request evaluation */
|
|
19
|
+
export interface ResourcesHistoryRequestOptions {
|
|
20
|
+
/** The time interval used to fetch history. */
|
|
21
|
+
interval?: DateTimeInterval;
|
|
22
|
+
/** The maximum number of rows that the query should return. Overrides the page size when ```$skipToken``` property is present. */
|
|
23
|
+
top?: number;
|
|
24
|
+
/** The number of rows to skip from the beginning of the results. Overrides the next page offset when ```$skipToken``` property is present. */
|
|
25
|
+
skip?: number;
|
|
26
|
+
/** Continuation token for pagination, capturing the next page size and offset, as well as the context of the query. */
|
|
27
|
+
skipToken?: string;
|
|
28
|
+
/** Defines in which format query result returned. */
|
|
29
|
+
resultFormat?: ResultFormat;
|
|
30
|
+
}
|
|
31
|
+
export declare function resourcesHistoryRequestOptionsSerializer(item: ResourcesHistoryRequestOptions): any;
|
|
32
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { dateTimeIntervalSerializer } from "../resourceGraphCommon/models.js";
|
|
4
|
+
export function resourcesHistoryRequestSerializer(item) {
|
|
5
|
+
return {
|
|
6
|
+
subscriptions: !item["subscriptions"]
|
|
7
|
+
? item["subscriptions"]
|
|
8
|
+
: item["subscriptions"].map((p) => {
|
|
9
|
+
return p;
|
|
10
|
+
}),
|
|
11
|
+
query: item["query"],
|
|
12
|
+
options: !item["options"]
|
|
13
|
+
? item["options"]
|
|
14
|
+
: resourcesHistoryRequestOptionsSerializer(item["options"]),
|
|
15
|
+
managementGroups: !item["managementGroups"]
|
|
16
|
+
? item["managementGroups"]
|
|
17
|
+
: item["managementGroups"].map((p) => {
|
|
18
|
+
return p;
|
|
19
|
+
}),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export function resourcesHistoryRequestOptionsSerializer(item) {
|
|
23
|
+
return {
|
|
24
|
+
interval: !item["interval"] ? item["interval"] : dateTimeIntervalSerializer(item["interval"]),
|
|
25
|
+
$top: item["top"],
|
|
26
|
+
$skip: item["skip"],
|
|
27
|
+
$skipToken: item["skipToken"],
|
|
28
|
+
resultFormat: item["resultFormat"],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/resourceHistory/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAoB9E,MAAM,UAAU,iCAAiC,CAAC,IAA6B;IAC7E,OAAO;QACL,aAAa,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC;YACnC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC;YACvB,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;gBACnC,OAAO,CAAC,CAAC;YACX,CAAC,CAAC;QACN,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC;YACvB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;YACjB,CAAC,CAAC,wCAAwC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC7D,gBAAgB,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC;YACzC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC;YAC1B,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;gBACtC,OAAO,CAAC,CAAC;YACX,CAAC,CAAC;KACP,CAAC;AACJ,CAAC;AAgBD,MAAM,UAAU,wCAAwC,CACtD,IAAoC;IAEpC,OAAO;QACL,QAAQ,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,0BAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC7F,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC;QACjB,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC;QACnB,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC;QAC7B,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;KACnC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { DateTimeInterval, ResultFormat } from \"../resourceGraphCommon/models.js\";\nimport { dateTimeIntervalSerializer } from \"../resourceGraphCommon/models.js\";\n\n/**\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/** Describes a history request to be executed. */\nexport interface ResourcesHistoryRequest {\n /** Azure subscriptions against which to execute the query. */\n subscriptions?: string[];\n /** The resources query. */\n query?: string;\n /** The history request evaluation options */\n options?: ResourcesHistoryRequestOptions;\n /** Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ] */\n managementGroups?: string[];\n}\n\nexport function resourcesHistoryRequestSerializer(item: ResourcesHistoryRequest): any {\n return {\n subscriptions: !item[\"subscriptions\"]\n ? item[\"subscriptions\"]\n : item[\"subscriptions\"].map((p: any) => {\n return p;\n }),\n query: item[\"query\"],\n options: !item[\"options\"]\n ? item[\"options\"]\n : resourcesHistoryRequestOptionsSerializer(item[\"options\"]),\n managementGroups: !item[\"managementGroups\"]\n ? item[\"managementGroups\"]\n : item[\"managementGroups\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** The options for history request evaluation */\nexport interface ResourcesHistoryRequestOptions {\n /** The time interval used to fetch history. */\n interval?: DateTimeInterval;\n /** The maximum number of rows that the query should return. Overrides the page size when ```$skipToken``` property is present. */\n top?: number;\n /** The number of rows to skip from the beginning of the results. Overrides the next page offset when ```$skipToken``` property is present. */\n skip?: number;\n /** Continuation token for pagination, capturing the next page size and offset, as well as the context of the query. */\n skipToken?: string;\n /** Defines in which format query result returned. */\n resultFormat?: ResultFormat;\n}\n\nexport function resourcesHistoryRequestOptionsSerializer(\n item: ResourcesHistoryRequestOptions,\n): any {\n return {\n interval: !item[\"interval\"] ? item[\"interval\"] : dateTimeIntervalSerializer(item[\"interval\"]),\n $top: item[\"top\"],\n $skip: item[\"skip\"],\n $skipToken: item[\"skipToken\"],\n resultFormat: item[\"resultFormat\"],\n };\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ResourceGraphClientOptionalParams } from "./api/index.js";
|
|
2
|
+
import type { ResourcesHistoryOptionalParams, ResourcesOptionalParams, ResourceChangeDetailsOptionalParams, ResourceChangesOptionalParams } from "./api/options.js";
|
|
3
|
+
import type { GraphQueryOperations } from "./classic/graphQuery/index.js";
|
|
4
|
+
import type { OperationsOperations } from "./classic/operations/index.js";
|
|
5
|
+
import type { ResourcesHistoryResponse } from "./models/models.js";
|
|
6
|
+
import type { ResourceChangesRequestParameters, ResourceChangeList, ResourceChangeData, ResourceChangeDetailsRequestParameters } from "./models/resourceChanges/models.js";
|
|
7
|
+
import type { QueryRequest, QueryResponse } from "./models/resourceGraphApi/models.js";
|
|
8
|
+
import type { ResourcesHistoryRequest } from "./models/resourceHistory/models.js";
|
|
9
|
+
import type { TokenCredential } from "@azure/core-auth";
|
|
10
|
+
import type { Pipeline } from "@azure/core-rest-pipeline";
|
|
11
|
+
export type { ResourceGraphClientOptionalParams } from "./api/resourceGraphContext.js";
|
|
12
|
+
export declare class ResourceGraphClient {
|
|
13
|
+
private _client;
|
|
14
|
+
/** The pipeline used by this client to make requests */
|
|
15
|
+
readonly pipeline: Pipeline;
|
|
16
|
+
constructor(credential: TokenCredential, options?: ResourceGraphClientOptionalParams);
|
|
17
|
+
constructor(credential: TokenCredential, subscriptionId: string, options?: ResourceGraphClientOptionalParams);
|
|
18
|
+
/** List all snapshots of a resource for a given time interval. */
|
|
19
|
+
resourcesHistory(request: ResourcesHistoryRequest, options?: ResourcesHistoryOptionalParams): Promise<ResourcesHistoryResponse>;
|
|
20
|
+
/** Queries the resources managed by Azure Resource Manager for scopes specified in the request. */
|
|
21
|
+
resources(query: QueryRequest, options?: ResourcesOptionalParams): Promise<QueryResponse>;
|
|
22
|
+
/** Get resource change details. */
|
|
23
|
+
resourceChangeDetails(parameters: ResourceChangeDetailsRequestParameters, options?: ResourceChangeDetailsOptionalParams): Promise<ResourceChangeData[]>;
|
|
24
|
+
/** List changes to a resource for a given time interval. */
|
|
25
|
+
resourceChanges(parameters: ResourceChangesRequestParameters, options?: ResourceChangesOptionalParams): Promise<ResourceChangeList>;
|
|
26
|
+
/** The operation groups for graphQuery */
|
|
27
|
+
readonly graphQuery: GraphQueryOperations;
|
|
28
|
+
/** The operation groups for operations */
|
|
29
|
+
readonly operations: OperationsOperations;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=resourceGraphClient.d.ts.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { createResourceGraph } from "./api/index.js";
|
|
4
|
+
import { resourcesHistory, resources, resourceChangeDetails, resourceChanges, } from "./api/operations.js";
|
|
5
|
+
import { _getGraphQueryOperations } from "./classic/graphQuery/index.js";
|
|
6
|
+
import { _getOperationsOperations } from "./classic/operations/index.js";
|
|
7
|
+
export class ResourceGraphClient {
|
|
8
|
+
_client;
|
|
9
|
+
/** The pipeline used by this client to make requests */
|
|
10
|
+
pipeline;
|
|
11
|
+
constructor(credential, subscriptionIdOrOptions, options) {
|
|
12
|
+
let subscriptionId;
|
|
13
|
+
if (typeof subscriptionIdOrOptions === "string") {
|
|
14
|
+
subscriptionId = subscriptionIdOrOptions;
|
|
15
|
+
}
|
|
16
|
+
else if (typeof subscriptionIdOrOptions === "object") {
|
|
17
|
+
options = subscriptionIdOrOptions;
|
|
18
|
+
}
|
|
19
|
+
options = options ?? {};
|
|
20
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
21
|
+
const userAgentPrefix = prefixFromOptions
|
|
22
|
+
? `${prefixFromOptions} azsdk-js-client`
|
|
23
|
+
: `azsdk-js-client`;
|
|
24
|
+
this._client = createResourceGraph(credential, subscriptionId ?? "", {
|
|
25
|
+
...options,
|
|
26
|
+
userAgentOptions: { userAgentPrefix },
|
|
27
|
+
});
|
|
28
|
+
this.pipeline = this._client.pipeline;
|
|
29
|
+
this.graphQuery = _getGraphQueryOperations(this._client);
|
|
30
|
+
this.operations = _getOperationsOperations(this._client);
|
|
31
|
+
}
|
|
32
|
+
/** List all snapshots of a resource for a given time interval. */
|
|
33
|
+
resourcesHistory(request, options = { requestOptions: {} }) {
|
|
34
|
+
return resourcesHistory(this._client, request, options);
|
|
35
|
+
}
|
|
36
|
+
/** Queries the resources managed by Azure Resource Manager for scopes specified in the request. */
|
|
37
|
+
resources(query, options = { requestOptions: {} }) {
|
|
38
|
+
return resources(this._client, query, options);
|
|
39
|
+
}
|
|
40
|
+
/** Get resource change details. */
|
|
41
|
+
resourceChangeDetails(parameters, options = { requestOptions: {} }) {
|
|
42
|
+
return resourceChangeDetails(this._client, parameters, options);
|
|
43
|
+
}
|
|
44
|
+
/** List changes to a resource for a given time interval. */
|
|
45
|
+
resourceChanges(parameters, options = { requestOptions: {} }) {
|
|
46
|
+
return resourceChanges(this._client, parameters, options);
|
|
47
|
+
}
|
|
48
|
+
/** The operation groups for graphQuery */
|
|
49
|
+
graphQuery;
|
|
50
|
+
/** The operation groups for operations */
|
|
51
|
+
operations;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=resourceGraphClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceGraphClient.js","sourceRoot":"","sources":["../../src/resourceGraphClient.ts"],"names":[],"mappings":"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EAAkE;IAClE,gBAAgB,CACd,OAAgC,EAChC,UAA0C,EAAE,cAAc,EAAE,EAAE,EAAE;QAEhE,OAAO,gBAAgB,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED,mGAAmG;IACnG,SAAS,CACP,KAAmB,EACnB,UAAmC,EAAE,cAAc,EAAE,EAAE,EAAE;QAEzD,OAAO,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED,mCAAmC;IACnC,qBAAqB,CACnB,UAAkD,EAClD,UAA+C,EAAE,cAAc,EAAE,EAAE,EAAE;QAErE,OAAO,qBAAqB,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED,4DAA4D;IAC5D,eAAe,CACb,UAA4C,EAC5C,UAAyC,EAAE,cAAc,EAAE,EAAE,EAAE;QAE/D,OAAO,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED,0CAA0C;IAC1B,UAAU,CAAuB;IACjD,0CAA0C;IAC1B,UAAU,CAAuB;CAClD","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ResourceGraphContext, ResourceGraphClientOptionalParams } from \"./api/index.js\";\nimport { createResourceGraph } from \"./api/index.js\";\nimport {\n resourcesHistory,\n resources,\n resourceChangeDetails,\n resourceChanges,\n} from \"./api/operations.js\";\nimport type {\n ResourcesHistoryOptionalParams,\n ResourcesOptionalParams,\n ResourceChangeDetailsOptionalParams,\n ResourceChangesOptionalParams,\n} from \"./api/options.js\";\nimport type { GraphQueryOperations } from \"./classic/graphQuery/index.js\";\nimport { _getGraphQueryOperations } from \"./classic/graphQuery/index.js\";\nimport type { OperationsOperations } from \"./classic/operations/index.js\";\nimport { _getOperationsOperations } from \"./classic/operations/index.js\";\nimport type { ResourcesHistoryResponse } from \"./models/models.js\";\nimport type {\n ResourceChangesRequestParameters,\n ResourceChangeList,\n ResourceChangeData,\n ResourceChangeDetailsRequestParameters,\n} from \"./models/resourceChanges/models.js\";\nimport type { QueryRequest, QueryResponse } from \"./models/resourceGraphApi/models.js\";\nimport type { ResourcesHistoryRequest } from \"./models/resourceHistory/models.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { Pipeline } from \"@azure/core-rest-pipeline\";\n\nexport type { ResourceGraphClientOptionalParams } from \"./api/resourceGraphContext.js\";\n\nexport class ResourceGraphClient {\n private _client: ResourceGraphContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n constructor(credential: TokenCredential, options?: ResourceGraphClientOptionalParams);\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options?: ResourceGraphClientOptionalParams,\n );\n constructor(\n credential: TokenCredential,\n subscriptionIdOrOptions?: string | ResourceGraphClientOptionalParams,\n options?: ResourceGraphClientOptionalParams,\n ) {\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n options = options ?? {};\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createResourceGraph(credential, subscriptionId ?? \"\", {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n this.graphQuery = _getGraphQueryOperations(this._client);\n this.operations = _getOperationsOperations(this._client);\n }\n\n /** List all snapshots of a resource for a given time interval. */\n resourcesHistory(\n request: ResourcesHistoryRequest,\n options: ResourcesHistoryOptionalParams = { requestOptions: {} },\n ): Promise<ResourcesHistoryResponse> {\n return resourcesHistory(this._client, request, options);\n }\n\n /** Queries the resources managed by Azure Resource Manager for scopes specified in the request. */\n resources(\n query: QueryRequest,\n options: ResourcesOptionalParams = { requestOptions: {} },\n ): Promise<QueryResponse> {\n return resources(this._client, query, options);\n }\n\n /** Get resource change details. */\n resourceChangeDetails(\n parameters: ResourceChangeDetailsRequestParameters,\n options: ResourceChangeDetailsOptionalParams = { requestOptions: {} },\n ): Promise<ResourceChangeData[]> {\n return resourceChangeDetails(this._client, parameters, options);\n }\n\n /** List changes to a resource for a given time interval. */\n resourceChanges(\n parameters: ResourceChangesRequestParameters,\n options: ResourceChangesOptionalParams = { requestOptions: {} },\n ): Promise<ResourceChangeList> {\n return resourceChanges(this._client, parameters, options);\n }\n\n /** The operation groups for graphQuery */\n public readonly graphQuery: GraphQueryOperations;\n /** The operation groups for operations */\n public readonly operations: OperationsOperations;\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An enum to describe Azure Cloud environments.
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*/
|
|
5
|
+
export declare enum AzureClouds {
|
|
6
|
+
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
7
|
+
AZURE_PUBLIC_CLOUD = "AZURE_PUBLIC_CLOUD",
|
|
8
|
+
/** Azure China cloud */
|
|
9
|
+
AZURE_CHINA_CLOUD = "AZURE_CHINA_CLOUD",
|
|
10
|
+
/** Azure US government cloud */
|
|
11
|
+
AZURE_US_GOVERNMENT = "AZURE_US_GOVERNMENT"
|
|
12
|
+
}
|
|
13
|
+
/** The supported values for cloud setting as a string literal type */
|
|
14
|
+
export type AzureSupportedClouds = `${AzureClouds}`;
|
|
15
|
+
/**
|
|
16
|
+
* Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
|
|
17
|
+
* @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
|
|
18
|
+
* @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
|
|
19
|
+
* @throws {Error} Throws an error if an unknown cloud setting is provided.
|
|
20
|
+
*/
|
|
21
|
+
export declare function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined;
|
|
22
|
+
//# sourceMappingURL=cloudSettingHelpers.d.ts.map
|