@azure/arm-resourcegraph 5.0.0-beta.4 → 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 +1 -1
- package/README.md +10 -13
- 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 +19 -3
- package/dist/browser/index.js +7 -11
- package/dist/browser/index.js.map +1 -1
- 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 +2 -215
- package/dist/browser/models/index.js +3 -8
- package/dist/browser/models/index.js.map +1 -1
- 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/resourceGraphClient.d.ts +28 -27
- package/dist/browser/resourceGraphClient.js +43 -147
- package/dist/browser/resourceGraphClient.js.map +1 -1
- 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 +19 -3
- package/dist/commonjs/index.js +42 -19
- package/dist/commonjs/index.js.map +7 -1
- 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 +2 -215
- package/dist/commonjs/models/index.js +28 -10
- package/dist/commonjs/models/index.js.map +7 -1
- 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/resourceGraphClient.d.ts +28 -27
- package/dist/commonjs/resourceGraphClient.js +72 -160
- package/dist/commonjs/resourceGraphClient.js.map +7 -1
- 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/dist/commonjs/tsdoc-metadata.json +1 -1
- 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 +19 -3
- package/dist/esm/index.js +7 -11
- package/dist/esm/index.js.map +1 -1
- 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 +2 -215
- package/dist/esm/models/index.js +3 -8
- package/dist/esm/models/index.js.map +1 -1
- 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/resourceGraphClient.d.ts +28 -27
- package/dist/esm/resourceGraphClient.js +43 -147
- package/dist/esm/resourceGraphClient.js.map +1 -1
- 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 +183 -91
- package/CHANGELOG.md +0 -21
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/models/index.d.ts.map +0 -1
- package/dist/browser/models/mappers.d.ts +0 -26
- package/dist/browser/models/mappers.d.ts.map +0 -1
- package/dist/browser/models/mappers.js +0 -663
- package/dist/browser/models/mappers.js.map +0 -1
- package/dist/browser/models/parameters.d.ts +0 -8
- package/dist/browser/models/parameters.d.ts.map +0 -1
- package/dist/browser/models/parameters.js +0 -61
- package/dist/browser/models/parameters.js.map +0 -1
- package/dist/browser/operations/index.d.ts +0 -2
- package/dist/browser/operations/index.d.ts.map +0 -1
- package/dist/browser/operations/index.js +0 -9
- package/dist/browser/operations/index.js.map +0 -1
- package/dist/browser/operations/operations.d.ts +0 -26
- package/dist/browser/operations/operations.d.ts.map +0 -1
- package/dist/browser/operations/operations.js +0 -79
- package/dist/browser/operations/operations.js.map +0 -1
- package/dist/browser/operationsInterfaces/index.d.ts +0 -2
- package/dist/browser/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/index.js +0 -9
- package/dist/browser/operationsInterfaces/index.js.map +0 -1
- package/dist/browser/operationsInterfaces/operations.d.ts +0 -11
- package/dist/browser/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/operations.js +0 -9
- package/dist/browser/operationsInterfaces/operations.js.map +0 -1
- package/dist/browser/pagingHelper.d.ts +0 -13
- package/dist/browser/pagingHelper.d.ts.map +0 -1
- package/dist/browser/pagingHelper.js +0 -30
- package/dist/browser/pagingHelper.js.map +0 -1
- package/dist/browser/resourceGraphClient.d.ts.map +0 -1
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/models/index.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.d.ts +0 -26
- package/dist/commonjs/models/mappers.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.js +0 -666
- package/dist/commonjs/models/mappers.js.map +0 -1
- package/dist/commonjs/models/parameters.d.ts +0 -8
- package/dist/commonjs/models/parameters.d.ts.map +0 -1
- package/dist/commonjs/models/parameters.js +0 -64
- package/dist/commonjs/models/parameters.js.map +0 -1
- package/dist/commonjs/operations/index.d.ts +0 -2
- package/dist/commonjs/operations/index.d.ts.map +0 -1
- package/dist/commonjs/operations/index.js +0 -12
- package/dist/commonjs/operations/index.js.map +0 -1
- package/dist/commonjs/operations/operations.d.ts +0 -26
- package/dist/commonjs/operations/operations.d.ts.map +0 -1
- package/dist/commonjs/operations/operations.js +0 -84
- package/dist/commonjs/operations/operations.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +0 -2
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.js +0 -12
- package/dist/commonjs/operationsInterfaces/index.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/operations.d.ts +0 -11
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/operations.js +0 -10
- package/dist/commonjs/operationsInterfaces/operations.js.map +0 -1
- package/dist/commonjs/pagingHelper.d.ts +0 -13
- package/dist/commonjs/pagingHelper.d.ts.map +0 -1
- package/dist/commonjs/pagingHelper.js +0 -34
- package/dist/commonjs/pagingHelper.js.map +0 -1
- package/dist/commonjs/resourceGraphClient.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/models/index.d.ts.map +0 -1
- package/dist/esm/models/mappers.d.ts +0 -26
- package/dist/esm/models/mappers.d.ts.map +0 -1
- package/dist/esm/models/mappers.js +0 -663
- package/dist/esm/models/mappers.js.map +0 -1
- package/dist/esm/models/parameters.d.ts +0 -8
- package/dist/esm/models/parameters.d.ts.map +0 -1
- package/dist/esm/models/parameters.js +0 -61
- package/dist/esm/models/parameters.js.map +0 -1
- package/dist/esm/operations/index.d.ts +0 -2
- package/dist/esm/operations/index.d.ts.map +0 -1
- package/dist/esm/operations/index.js +0 -9
- package/dist/esm/operations/index.js.map +0 -1
- package/dist/esm/operations/operations.d.ts +0 -26
- package/dist/esm/operations/operations.d.ts.map +0 -1
- package/dist/esm/operations/operations.js +0 -79
- package/dist/esm/operations/operations.js.map +0 -1
- package/dist/esm/operationsInterfaces/index.d.ts +0 -2
- package/dist/esm/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/index.js +0 -9
- package/dist/esm/operationsInterfaces/index.js.map +0 -1
- package/dist/esm/operationsInterfaces/operations.d.ts +0 -11
- package/dist/esm/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/operations.js +0 -9
- package/dist/esm/operationsInterfaces/operations.js.map +0 -1
- package/dist/esm/pagingHelper.d.ts +0 -13
- package/dist/esm/pagingHelper.d.ts.map +0 -1
- package/dist/esm/pagingHelper.js +0 -30
- package/dist/esm/pagingHelper.js.map +0 -1
- package/dist/esm/resourceGraphClient.d.ts.map +0 -1
- package/dist/react-native/index.d.ts +0 -5
- package/dist/react-native/index.d.ts.map +0 -1
- package/dist/react-native/index.js +0 -13
- package/dist/react-native/index.js.map +0 -1
- package/dist/react-native/models/index.d.ts +0 -216
- package/dist/react-native/models/index.d.ts.map +0 -1
- package/dist/react-native/models/index.js +0 -9
- package/dist/react-native/models/index.js.map +0 -1
- package/dist/react-native/models/mappers.d.ts +0 -26
- package/dist/react-native/models/mappers.d.ts.map +0 -1
- package/dist/react-native/models/mappers.js +0 -663
- package/dist/react-native/models/mappers.js.map +0 -1
- package/dist/react-native/models/parameters.d.ts +0 -8
- package/dist/react-native/models/parameters.d.ts.map +0 -1
- package/dist/react-native/models/parameters.js +0 -61
- package/dist/react-native/models/parameters.js.map +0 -1
- package/dist/react-native/operations/index.d.ts +0 -2
- package/dist/react-native/operations/index.d.ts.map +0 -1
- package/dist/react-native/operations/index.js +0 -9
- package/dist/react-native/operations/index.js.map +0 -1
- package/dist/react-native/operations/operations.d.ts +0 -26
- package/dist/react-native/operations/operations.d.ts.map +0 -1
- package/dist/react-native/operations/operations.js +0 -79
- package/dist/react-native/operations/operations.js.map +0 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +0 -2
- package/dist/react-native/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/index.js +0 -9
- package/dist/react-native/operationsInterfaces/index.js.map +0 -1
- package/dist/react-native/operationsInterfaces/operations.d.ts +0 -11
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/operations.js +0 -9
- package/dist/react-native/operationsInterfaces/operations.js.map +0 -1
- package/dist/react-native/package.json +0 -3
- package/dist/react-native/pagingHelper.d.ts +0 -13
- package/dist/react-native/pagingHelper.d.ts.map +0 -1
- package/dist/react-native/pagingHelper.js +0 -30
- package/dist/react-native/pagingHelper.js.map +0 -1
- package/dist/react-native/resourceGraphClient.d.ts +0 -30
- package/dist/react-native/resourceGraphClient.d.ts.map +0 -1
- package/dist/react-native/resourceGraphClient.js +0 -157
- package/dist/react-native/resourceGraphClient.js.map +0 -1
- package/review/arm-resourcegraph-node.api.md +0 -217
|
@@ -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,171 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var models_exports = {};
|
|
19
|
+
__export(models_exports, {
|
|
20
|
+
_operationListResultDeserializer: () => _operationListResultDeserializer,
|
|
21
|
+
facetDeserializer: () => facetDeserializer,
|
|
22
|
+
facetErrorDeserializer: () => facetErrorDeserializer,
|
|
23
|
+
facetRequestArraySerializer: () => facetRequestArraySerializer,
|
|
24
|
+
facetRequestOptionsSerializer: () => facetRequestOptionsSerializer,
|
|
25
|
+
facetRequestSerializer: () => facetRequestSerializer,
|
|
26
|
+
facetResultDeserializer: () => facetResultDeserializer,
|
|
27
|
+
facetUnionArrayDeserializer: () => facetUnionArrayDeserializer,
|
|
28
|
+
facetUnionDeserializer: () => facetUnionDeserializer,
|
|
29
|
+
operationArrayDeserializer: () => operationArrayDeserializer,
|
|
30
|
+
operationDeserializer: () => operationDeserializer,
|
|
31
|
+
operationDisplayDeserializer: () => operationDisplayDeserializer,
|
|
32
|
+
queryRequestOptionsSerializer: () => queryRequestOptionsSerializer,
|
|
33
|
+
queryRequestSerializer: () => queryRequestSerializer,
|
|
34
|
+
queryResponseDeserializer: () => queryResponseDeserializer
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(models_exports);
|
|
37
|
+
var import_models = require("../resourceGraphCommon/models.js");
|
|
38
|
+
function queryRequestSerializer(item) {
|
|
39
|
+
return {
|
|
40
|
+
subscriptions: !item["subscriptions"] ? item["subscriptions"] : item["subscriptions"].map((p) => {
|
|
41
|
+
return p;
|
|
42
|
+
}),
|
|
43
|
+
managementGroups: !item["managementGroups"] ? item["managementGroups"] : item["managementGroups"].map((p) => {
|
|
44
|
+
return p;
|
|
45
|
+
}),
|
|
46
|
+
query: item["query"],
|
|
47
|
+
options: !item["options"] ? item["options"] : queryRequestOptionsSerializer(item["options"]),
|
|
48
|
+
facets: !item["facets"] ? item["facets"] : facetRequestArraySerializer(item["facets"])
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function queryRequestOptionsSerializer(item) {
|
|
52
|
+
return {
|
|
53
|
+
$skipToken: item["skipToken"],
|
|
54
|
+
$top: item["top"],
|
|
55
|
+
$skip: item["skip"],
|
|
56
|
+
resultFormat: item["resultFormat"],
|
|
57
|
+
allowPartialScopes: item["allowPartialScopes"],
|
|
58
|
+
authorizationScopeFilter: item["authorizationScopeFilter"]
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function facetRequestArraySerializer(result) {
|
|
62
|
+
return result.map((item) => {
|
|
63
|
+
return facetRequestSerializer(item);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function facetRequestSerializer(item) {
|
|
67
|
+
return {
|
|
68
|
+
expression: item["expression"],
|
|
69
|
+
options: !item["options"] ? item["options"] : facetRequestOptionsSerializer(item["options"])
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function facetRequestOptionsSerializer(item) {
|
|
73
|
+
return {
|
|
74
|
+
sortBy: item["sortBy"],
|
|
75
|
+
sortOrder: item["sortOrder"],
|
|
76
|
+
filter: item["filter"],
|
|
77
|
+
$top: item["top"]
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function queryResponseDeserializer(item) {
|
|
81
|
+
return {
|
|
82
|
+
totalRecords: item["totalRecords"],
|
|
83
|
+
count: item["count"],
|
|
84
|
+
resultTruncated: item["resultTruncated"],
|
|
85
|
+
skipToken: item["$skipToken"],
|
|
86
|
+
data: item["data"],
|
|
87
|
+
facets: !item["facets"] ? item["facets"] : facetUnionArrayDeserializer(item["facets"])
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function facetUnionArrayDeserializer(result) {
|
|
91
|
+
return result.map((item) => {
|
|
92
|
+
return facetUnionDeserializer(item);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
function facetDeserializer(item) {
|
|
96
|
+
return {
|
|
97
|
+
expression: item["expression"],
|
|
98
|
+
resultType: item["resultType"]
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
function facetUnionDeserializer(item) {
|
|
102
|
+
switch (item["resultType"]) {
|
|
103
|
+
case "FacetResult":
|
|
104
|
+
return facetResultDeserializer(item);
|
|
105
|
+
case "FacetError":
|
|
106
|
+
return facetErrorDeserializer(item);
|
|
107
|
+
default:
|
|
108
|
+
return facetDeserializer(item);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function facetResultDeserializer(item) {
|
|
112
|
+
return {
|
|
113
|
+
expression: item["expression"],
|
|
114
|
+
resultType: item["resultType"],
|
|
115
|
+
totalRecords: item["totalRecords"],
|
|
116
|
+
count: item["count"],
|
|
117
|
+
data: item["data"]
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
function facetErrorDeserializer(item) {
|
|
121
|
+
return {
|
|
122
|
+
expression: item["expression"],
|
|
123
|
+
resultType: item["resultType"],
|
|
124
|
+
errors: (0, import_models.errorDetailsArrayDeserializer)(item["errors"])
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function _operationListResultDeserializer(item) {
|
|
128
|
+
return {
|
|
129
|
+
value: operationArrayDeserializer(item["value"]),
|
|
130
|
+
nextLink: item["nextLink"]
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
function operationArrayDeserializer(result) {
|
|
134
|
+
return result.map((item) => {
|
|
135
|
+
return operationDeserializer(item);
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
function operationDeserializer(item) {
|
|
139
|
+
return {
|
|
140
|
+
name: item["name"],
|
|
141
|
+
display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]),
|
|
142
|
+
origin: item["origin"]
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
function operationDisplayDeserializer(item) {
|
|
146
|
+
return {
|
|
147
|
+
provider: item["provider"],
|
|
148
|
+
resource: item["resource"],
|
|
149
|
+
operation: item["operation"],
|
|
150
|
+
description: item["description"]
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
154
|
+
0 && (module.exports = {
|
|
155
|
+
_operationListResultDeserializer,
|
|
156
|
+
facetDeserializer,
|
|
157
|
+
facetErrorDeserializer,
|
|
158
|
+
facetRequestArraySerializer,
|
|
159
|
+
facetRequestOptionsSerializer,
|
|
160
|
+
facetRequestSerializer,
|
|
161
|
+
facetResultDeserializer,
|
|
162
|
+
facetUnionArrayDeserializer,
|
|
163
|
+
facetUnionDeserializer,
|
|
164
|
+
operationArrayDeserializer,
|
|
165
|
+
operationDeserializer,
|
|
166
|
+
operationDisplayDeserializer,
|
|
167
|
+
queryRequestOptionsSerializer,
|
|
168
|
+
queryRequestSerializer,
|
|
169
|
+
queryResponseDeserializer
|
|
170
|
+
});
|
|
171
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/models/resourceGraphApi/models.ts"],
|
|
4
|
+
"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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,oBAA8C;AAsBvC,SAAS,uBAAuB,MAAyB;AAC9D,SAAO;AAAA,IACL,eAAe,CAAC,KAAK,eAAe,IAChC,KAAK,eAAe,IACpB,KAAK,eAAe,EAAE,IAAI,CAAC,MAAW;AACpC,aAAO;AAAA,IACT,CAAC;AAAA,IACL,kBAAkB,CAAC,KAAK,kBAAkB,IACtC,KAAK,kBAAkB,IACvB,KAAK,kBAAkB,EAAE,IAAI,CAAC,MAAW;AACvC,aAAO;AAAA,IACT,CAAC;AAAA,IACL,OAAO,KAAK,OAAO;AAAA,IACnB,SAAS,CAAC,KAAK,SAAS,IAAI,KAAK,SAAS,IAAI,8BAA8B,KAAK,SAAS,CAAC;AAAA,IAC3F,QAAQ,CAAC,KAAK,QAAQ,IAAI,KAAK,QAAQ,IAAI,4BAA4B,KAAK,QAAQ,CAAC;AAAA,EACvF;AACF;AAkBO,SAAS,8BAA8B,MAAgC;AAC5E,SAAO;AAAA,IACL,YAAY,KAAK,WAAW;AAAA,IAC5B,MAAM,KAAK,KAAK;AAAA,IAChB,OAAO,KAAK,MAAM;AAAA,IAClB,cAAc,KAAK,cAAc;AAAA,IACjC,oBAAoB,KAAK,oBAAoB;AAAA,IAC7C,0BAA0B,KAAK,0BAA0B;AAAA,EAC3D;AACF;AASO,SAAS,4BAA4B,QAAoC;AAC9E,SAAO,OAAO,IAAI,CAAC,SAAS;AAC1B,WAAO,uBAAuB,IAAI;AAAA,EACpC,CAAC;AACH;AAUO,SAAS,uBAAuB,MAAyB;AAC9D,SAAO;AAAA,IACL,YAAY,KAAK,YAAY;AAAA,IAC7B,SAAS,CAAC,KAAK,SAAS,IAAI,KAAK,SAAS,IAAI,8BAA8B,KAAK,SAAS,CAAC;AAAA,EAC7F;AACF;AAcO,SAAS,8BAA8B,MAAgC;AAC5E,SAAO;AAAA,IACL,QAAQ,KAAK,QAAQ;AAAA,IACrB,WAAW,KAAK,WAAW;AAAA,IAC3B,QAAQ,KAAK,QAAQ;AAAA,IACrB,MAAM,KAAK,KAAK;AAAA,EAClB;AACF;AAqBO,SAAS,0BAA0B,MAA0B;AAClE,SAAO;AAAA,IACL,cAAc,KAAK,cAAc;AAAA,IACjC,OAAO,KAAK,OAAO;AAAA,IACnB,iBAAiB,KAAK,iBAAiB;AAAA,IACvC,WAAW,KAAK,YAAY;AAAA,IAC5B,MAAM,KAAK,MAAM;AAAA,IACjB,QAAQ,CAAC,KAAK,QAAQ,IAAI,KAAK,QAAQ,IAAI,4BAA4B,KAAK,QAAQ,CAAC;AAAA,EACvF;AACF;AAKO,SAAS,4BAA4B,QAAkC;AAC5E,SAAO,OAAO,IAAI,CAAC,SAAS;AAC1B,WAAO,uBAAuB,IAAI;AAAA,EACpC,CAAC;AACH;AAWO,SAAS,kBAAkB,MAAkB;AAClD,SAAO;AAAA,IACL,YAAY,KAAK,YAAY;AAAA,IAC7B,YAAY,KAAK,YAAY;AAAA,EAC/B;AACF;AAKO,SAAS,uBAAuB,MAAuB;AAC5D,UAAQ,KAAK,YAAY,GAAG;AAAA,IAC1B,KAAK;AACH,aAAO,wBAAwB,IAAmB;AAAA,IAEpD,KAAK;AACH,aAAO,uBAAuB,IAAkB;AAAA,IAElD;AACE,aAAO,kBAAkB,IAAI;AAAA,EACjC;AACF;AAcO,SAAS,wBAAwB,MAAwB;AAC9D,SAAO;AAAA,IACL,YAAY,KAAK,YAAY;AAAA,IAC7B,YAAY,KAAK,YAAY;AAAA,IAC7B,cAAc,KAAK,cAAc;AAAA,IACjC,OAAO,KAAK,OAAO;AAAA,IACnB,MAAM,KAAK,MAAM;AAAA,EACnB;AACF;AAUO,SAAS,uBAAuB,MAAuB;AAC5D,SAAO;AAAA,IACL,YAAY,KAAK,YAAY;AAAA,IAC7B,YAAY,KAAK,YAAY;AAAA,IAC7B,YAAQ,6CAA8B,KAAK,QAAQ,CAAC;AAAA,EACtD;AACF;AAUO,SAAS,iCAAiC,MAAiC;AAChF,SAAO;AAAA,IACL,OAAO,2BAA2B,KAAK,OAAO,CAAC;AAAA,IAC/C,UAAU,KAAK,UAAU;AAAA,EAC3B;AACF;AAEO,SAAS,2BAA2B,QAAiC;AAC1E,SAAO,OAAO,IAAI,CAAC,SAAS;AAC1B,WAAO,sBAAsB,IAAI;AAAA,EACnC,CAAC;AACH;AAYO,SAAS,sBAAsB,MAAsB;AAC1D,SAAO;AAAA,IACL,MAAM,KAAK,MAAM;AAAA,IACjB,SAAS,CAAC,KAAK,SAAS,IAAI,KAAK,SAAS,IAAI,6BAA6B,KAAK,SAAS,CAAC;AAAA,IAC1F,QAAQ,KAAK,QAAQ;AAAA,EACvB;AACF;AAcO,SAAS,6BAA6B,MAA6B;AACxE,SAAO;AAAA,IACL,UAAU,KAAK,UAAU;AAAA,IACzB,UAAU,KAAK,UAAU;AAAA,IACzB,WAAW,KAAK,WAAW;AAAA,IAC3B,aAAa,KAAK,aAAa;AAAA,EACjC;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var resourceGraphCommon_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(resourceGraphCommon_exports);
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/models/resourceGraphCommon/index.ts"],
|
|
4
|
+
"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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -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,63 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var models_exports = {};
|
|
19
|
+
__export(models_exports, {
|
|
20
|
+
dateTimeIntervalSerializer: () => dateTimeIntervalSerializer,
|
|
21
|
+
errorDeserializer: () => errorDeserializer,
|
|
22
|
+
errorDetailsArrayDeserializer: () => errorDetailsArrayDeserializer,
|
|
23
|
+
errorDetailsDeserializer: () => errorDetailsDeserializer,
|
|
24
|
+
errorResponseDeserializer: () => errorResponseDeserializer
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(models_exports);
|
|
27
|
+
var import_serialize_record = require("../../static-helpers/serialization/serialize-record.js");
|
|
28
|
+
function dateTimeIntervalSerializer(item) {
|
|
29
|
+
return { start: item["start"].toISOString(), end: item["end"].toISOString() };
|
|
30
|
+
}
|
|
31
|
+
function errorResponseDeserializer(item) {
|
|
32
|
+
return {
|
|
33
|
+
error: errorDeserializer(item["error"])
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function errorDeserializer(item) {
|
|
37
|
+
return {
|
|
38
|
+
code: item["code"],
|
|
39
|
+
message: item["message"],
|
|
40
|
+
details: !item["details"] ? item["details"] : errorDetailsArrayDeserializer(item["details"])
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function errorDetailsArrayDeserializer(result) {
|
|
44
|
+
return result.map((item) => {
|
|
45
|
+
return errorDetailsDeserializer(item);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function errorDetailsDeserializer(item) {
|
|
49
|
+
return {
|
|
50
|
+
additionalProperties: (0, import_serialize_record.serializeRecord)(item, ["code", "message"]),
|
|
51
|
+
code: item["code"],
|
|
52
|
+
message: item["message"]
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
+
0 && (module.exports = {
|
|
57
|
+
dateTimeIntervalSerializer,
|
|
58
|
+
errorDeserializer,
|
|
59
|
+
errorDetailsArrayDeserializer,
|
|
60
|
+
errorDetailsDeserializer,
|
|
61
|
+
errorResponseDeserializer
|
|
62
|
+
});
|
|
63
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/models/resourceGraphCommon/models.ts"],
|
|
4
|
+
"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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,8BAAgC;AAgBzB,SAAS,2BAA2B,MAA6B;AACtE,SAAO,EAAE,OAAO,KAAK,OAAO,EAAE,YAAY,GAAG,KAAK,KAAK,KAAK,EAAE,YAAY,EAAE;AAC9E;AAQO,SAAS,0BAA0B,MAA0B;AAClE,SAAO;AAAA,IACL,OAAO,kBAAkB,KAAK,OAAO,CAAC;AAAA,EACxC;AACF;AAYO,SAAS,kBAAkB,MAAuB;AACvD,SAAO;AAAA,IACL,MAAM,KAAK,MAAM;AAAA,IACjB,SAAS,KAAK,SAAS;AAAA,IACvB,SAAS,CAAC,KAAK,SAAS,IAAI,KAAK,SAAS,IAAI,8BAA8B,KAAK,SAAS,CAAC;AAAA,EAC7F;AACF;AAEO,SAAS,8BAA8B,QAAoC;AAChF,SAAO,OAAO,IAAI,CAAC,SAAS;AAC1B,WAAO,yBAAyB,IAAI;AAAA,EACtC,CAAC;AACH;AAYO,SAAS,yBAAyB,MAAyB;AAChE,SAAO;AAAA,IACL,0BAAsB,yCAAgB,MAAM,CAAC,QAAQ,SAAS,CAAC;AAAA,IAC/D,MAAM,KAAK,MAAM;AAAA,IACjB,SAAS,KAAK,SAAS;AAAA,EACzB;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var resourceHistory_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(resourceHistory_exports);
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/models/resourceHistory/index.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type { ResourcesHistoryRequest, ResourcesHistoryRequestOptions } from \"./models.js\";\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -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,51 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var models_exports = {};
|
|
19
|
+
__export(models_exports, {
|
|
20
|
+
resourcesHistoryRequestOptionsSerializer: () => resourcesHistoryRequestOptionsSerializer,
|
|
21
|
+
resourcesHistoryRequestSerializer: () => resourcesHistoryRequestSerializer
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(models_exports);
|
|
24
|
+
var import_models = require("../resourceGraphCommon/models.js");
|
|
25
|
+
function resourcesHistoryRequestSerializer(item) {
|
|
26
|
+
return {
|
|
27
|
+
subscriptions: !item["subscriptions"] ? item["subscriptions"] : item["subscriptions"].map((p) => {
|
|
28
|
+
return p;
|
|
29
|
+
}),
|
|
30
|
+
query: item["query"],
|
|
31
|
+
options: !item["options"] ? item["options"] : resourcesHistoryRequestOptionsSerializer(item["options"]),
|
|
32
|
+
managementGroups: !item["managementGroups"] ? item["managementGroups"] : item["managementGroups"].map((p) => {
|
|
33
|
+
return p;
|
|
34
|
+
})
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function resourcesHistoryRequestOptionsSerializer(item) {
|
|
38
|
+
return {
|
|
39
|
+
interval: !item["interval"] ? item["interval"] : (0, import_models.dateTimeIntervalSerializer)(item["interval"]),
|
|
40
|
+
$top: item["top"],
|
|
41
|
+
$skip: item["skip"],
|
|
42
|
+
$skipToken: item["skipToken"],
|
|
43
|
+
resultFormat: item["resultFormat"]
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
resourcesHistoryRequestOptionsSerializer,
|
|
49
|
+
resourcesHistoryRequestSerializer
|
|
50
|
+
});
|
|
51
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/models/resourceHistory/models.ts"],
|
|
4
|
+
"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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,oBAA2C;AAoBpC,SAAS,kCAAkC,MAAoC;AACpF,SAAO;AAAA,IACL,eAAe,CAAC,KAAK,eAAe,IAChC,KAAK,eAAe,IACpB,KAAK,eAAe,EAAE,IAAI,CAAC,MAAW;AACpC,aAAO;AAAA,IACT,CAAC;AAAA,IACL,OAAO,KAAK,OAAO;AAAA,IACnB,SAAS,CAAC,KAAK,SAAS,IACpB,KAAK,SAAS,IACd,yCAAyC,KAAK,SAAS,CAAC;AAAA,IAC5D,kBAAkB,CAAC,KAAK,kBAAkB,IACtC,KAAK,kBAAkB,IACvB,KAAK,kBAAkB,EAAE,IAAI,CAAC,MAAW;AACvC,aAAO;AAAA,IACT,CAAC;AAAA,EACP;AACF;AAgBO,SAAS,yCACd,MACK;AACL,SAAO;AAAA,IACL,UAAU,CAAC,KAAK,UAAU,IAAI,KAAK,UAAU,QAAI,0CAA2B,KAAK,UAAU,CAAC;AAAA,IAC5F,MAAM,KAAK,KAAK;AAAA,IAChB,OAAO,KAAK,MAAM;AAAA,IAClB,YAAY,KAAK,WAAW;AAAA,IAC5B,cAAc,KAAK,cAAc;AAAA,EACnC;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|