@azure/arm-commitmentplans 2.0.0-alpha.20250210.1 → 2.0.0-alpha.20250211.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -14
- package/{dist-esm/src → dist/browser}/azureMLCommitmentPlansManagementClient.d.ts +2 -2
- package/dist/browser/azureMLCommitmentPlansManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/azureMLCommitmentPlansManagementClient.js +15 -18
- package/dist/browser/azureMLCommitmentPlansManagementClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/commitmentAssociations.d.ts +3 -3
- package/dist/browser/operations/commitmentAssociations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/commitmentAssociations.js +3 -3
- package/dist/browser/operations/commitmentAssociations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/commitmentPlans.d.ts +3 -3
- package/dist/browser/operations/commitmentPlans.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/commitmentPlans.js +3 -3
- package/dist/browser/operations/commitmentPlans.js.map +1 -0
- package/dist/browser/operations/index.d.ts +6 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +5 -5
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +2 -2
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/skus.d.ts +3 -3
- package/dist/browser/operations/skus.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/skus.js +2 -2
- package/dist/browser/operations/skus.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/usageHistory.d.ts +3 -3
- package/dist/browser/operations/usageHistory.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/usageHistory.js +3 -3
- package/dist/browser/operations/usageHistory.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/commitmentAssociations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/commitmentAssociations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/commitmentAssociations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/commitmentPlans.d.ts +1 -1
- package/dist/browser/operationsInterfaces/commitmentPlans.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/commitmentPlans.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +6 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +5 -5
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/skus.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/skus.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/skus.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/usageHistory.d.ts +1 -1
- package/dist/browser/operationsInterfaces/usageHistory.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/usageHistory.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/azureMLCommitmentPlansManagementClient.d.ts +24 -0
- package/dist/commonjs/azureMLCommitmentPlansManagementClient.d.ts.map +1 -0
- package/dist/commonjs/azureMLCommitmentPlansManagementClient.js +106 -0
- package/dist/commonjs/azureMLCommitmentPlansManagementClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/{types/arm-commitmentplans.d.ts → dist/commonjs/models/index.d.ts} +529 -724
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +37 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +24 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +744 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +15 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +128 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/commitmentAssociations.d.ts +55 -0
- package/dist/commonjs/operations/commitmentAssociations.d.ts.map +1 -0
- package/dist/commonjs/operations/commitmentAssociations.js +221 -0
- package/dist/commonjs/operations/commitmentAssociations.js.map +1 -0
- package/dist/commonjs/operations/commitmentPlans.d.ts +84 -0
- package/dist/commonjs/operations/commitmentPlans.d.ts.map +1 -0
- package/dist/commonjs/operations/commitmentPlans.js +363 -0
- package/dist/commonjs/operations/commitmentPlans.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +6 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +16 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +26 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +97 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/skus.d.ts +26 -0
- package/dist/commonjs/operations/skus.d.ts.map +1 -0
- package/dist/commonjs/operations/skus.js +97 -0
- package/dist/commonjs/operations/skus.js.map +1 -0
- package/dist/commonjs/operations/usageHistory.d.ts +38 -0
- package/dist/commonjs/operations/usageHistory.d.ts.map +1 -0
- package/dist/commonjs/operations/usageHistory.js +149 -0
- package/dist/commonjs/operations/usageHistory.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/commitmentAssociations.d.ts +30 -0
- package/dist/commonjs/operationsInterfaces/commitmentAssociations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/commitmentAssociations.js +10 -0
- package/dist/commonjs/operationsInterfaces/commitmentAssociations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/commitmentPlans.d.ts +48 -0
- package/dist/commonjs/operationsInterfaces/commitmentPlans.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/commitmentPlans.js +10 -0
- package/dist/commonjs/operationsInterfaces/commitmentPlans.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +6 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +16 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/skus.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/skus.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/skus.js +10 -0
- package/dist/commonjs/operationsInterfaces/skus.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/usageHistory.d.ts +13 -0
- package/dist/commonjs/operationsInterfaces/usageHistory.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/usageHistory.js +10 -0
- package/dist/commonjs/operationsInterfaces/usageHistory.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/esm/azureMLCommitmentPlansManagementClient.d.ts +24 -0
- package/dist/esm/azureMLCommitmentPlansManagementClient.d.ts.map +1 -0
- package/dist/esm/azureMLCommitmentPlansManagementClient.js +101 -0
- package/dist/esm/azureMLCommitmentPlansManagementClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models/index.d.ts +529 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +34 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +24 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +741 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +15 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +125 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/commitmentAssociations.d.ts +55 -0
- package/dist/esm/operations/commitmentAssociations.d.ts.map +1 -0
- package/dist/esm/operations/commitmentAssociations.js +217 -0
- package/dist/esm/operations/commitmentAssociations.js.map +1 -0
- package/dist/esm/operations/commitmentPlans.d.ts +84 -0
- package/dist/esm/operations/commitmentPlans.d.ts.map +1 -0
- package/dist/esm/operations/commitmentPlans.js +359 -0
- package/dist/esm/operations/commitmentPlans.js.map +1 -0
- package/dist/esm/operations/index.d.ts +6 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +13 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +26 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +93 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/skus.d.ts +26 -0
- package/dist/esm/operations/skus.d.ts.map +1 -0
- package/dist/esm/operations/skus.js +93 -0
- package/dist/esm/operations/skus.js.map +1 -0
- package/dist/esm/operations/usageHistory.d.ts +38 -0
- package/dist/esm/operations/usageHistory.d.ts.map +1 -0
- package/dist/esm/operations/usageHistory.js +145 -0
- package/dist/esm/operations/usageHistory.js.map +1 -0
- package/dist/esm/operationsInterfaces/commitmentAssociations.d.ts +30 -0
- package/dist/esm/operationsInterfaces/commitmentAssociations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/commitmentAssociations.js +9 -0
- package/dist/esm/operationsInterfaces/commitmentAssociations.js.map +1 -0
- package/dist/esm/operationsInterfaces/commitmentPlans.d.ts +48 -0
- package/dist/esm/operationsInterfaces/commitmentPlans.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/commitmentPlans.js +9 -0
- package/dist/esm/operationsInterfaces/commitmentPlans.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +6 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +13 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/skus.d.ts +11 -0
- package/dist/esm/operationsInterfaces/skus.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/skus.js +9 -0
- package/dist/esm/operationsInterfaces/skus.js.map +1 -0
- package/dist/esm/operationsInterfaces/usageHistory.d.ts +13 -0
- package/dist/esm/operationsInterfaces/usageHistory.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/usageHistory.js +9 -0
- package/dist/esm/operationsInterfaces/usageHistory.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/azureMLCommitmentPlansManagementClient.d.ts +24 -0
- package/dist/react-native/azureMLCommitmentPlansManagementClient.d.ts.map +1 -0
- package/dist/react-native/azureMLCommitmentPlansManagementClient.js +101 -0
- package/dist/react-native/azureMLCommitmentPlansManagementClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/models/index.d.ts +529 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +34 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +24 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +741 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +15 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +125 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/commitmentAssociations.d.ts +55 -0
- package/dist/react-native/operations/commitmentAssociations.d.ts.map +1 -0
- package/dist/react-native/operations/commitmentAssociations.js +217 -0
- package/dist/react-native/operations/commitmentAssociations.js.map +1 -0
- package/dist/react-native/operations/commitmentPlans.d.ts +84 -0
- package/dist/react-native/operations/commitmentPlans.d.ts.map +1 -0
- package/dist/react-native/operations/commitmentPlans.js +359 -0
- package/dist/react-native/operations/commitmentPlans.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +6 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +13 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +26 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +93 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/skus.d.ts +26 -0
- package/dist/react-native/operations/skus.d.ts.map +1 -0
- package/dist/react-native/operations/skus.js +93 -0
- package/dist/react-native/operations/skus.js.map +1 -0
- package/dist/react-native/operations/usageHistory.d.ts +38 -0
- package/dist/react-native/operations/usageHistory.d.ts.map +1 -0
- package/dist/react-native/operations/usageHistory.js +145 -0
- package/dist/react-native/operations/usageHistory.js.map +1 -0
- package/dist/react-native/operationsInterfaces/commitmentAssociations.d.ts +30 -0
- package/dist/react-native/operationsInterfaces/commitmentAssociations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/commitmentAssociations.js +9 -0
- package/dist/react-native/operationsInterfaces/commitmentAssociations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/commitmentPlans.d.ts +48 -0
- package/dist/react-native/operationsInterfaces/commitmentPlans.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/commitmentPlans.js +9 -0
- package/dist/react-native/operationsInterfaces/commitmentPlans.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +6 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +13 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/skus.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/skus.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/skus.js +9 -0
- package/dist/react-native/operationsInterfaces/skus.js.map +1 -0
- package/dist/react-native/operationsInterfaces/usageHistory.d.ts +13 -0
- package/dist/react-native/operationsInterfaces/usageHistory.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/usageHistory.js +9 -0
- package/dist/react-native/operationsInterfaces/usageHistory.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +70 -41
- package/dist/index.js +0 -1972
- 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/src/azureMLCommitmentPlansManagementClient.d.ts.map +0 -1
- package/dist-esm/src/azureMLCommitmentPlansManagementClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/commitmentAssociations.d.ts.map +0 -1
- package/dist-esm/src/operations/commitmentAssociations.js.map +0 -1
- package/dist-esm/src/operations/commitmentPlans.d.ts.map +0 -1
- package/dist-esm/src/operations/commitmentPlans.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -6
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/skus.d.ts.map +0 -1
- package/dist-esm/src/operations/skus.js.map +0 -1
- package/dist-esm/src/operations/usageHistory.d.ts.map +0 -1
- package/dist-esm/src/operations/usageHistory.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/commitmentAssociations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/commitmentAssociations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/commitmentPlans.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -6
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/skus.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/usageHistory.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/usageHistory.js.map +0 -1
- package/dist-esm/src/pagingHelper.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 -42
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/src/azureMLCommitmentPlansManagementClient.ts +0 -160
- package/src/models/index.ts +0 -586
- package/src/models/mappers.ts +0 -773
- package/src/models/parameters.ts +0 -147
- package/src/operations/commitmentAssociations.ts +0 -291
- package/src/operations/commitmentPlans.ts +0 -449
- package/src/operations/index.ts +0 -13
- package/src/operations/operations.ts +0 -100
- package/src/operations/skus.ts +0 -99
- package/src/operations/usageHistory.ts +0 -193
- package/src/operationsInterfaces/commitmentAssociations.ts +0 -62
- package/src/operationsInterfaces/commitmentPlans.ts +0 -92
- package/src/operationsInterfaces/index.ts +0 -13
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/skus.ts +0 -22
- package/src/operationsInterfaces/usageHistory.ts +0 -26
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/commitmentAssociations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/commitmentPlans.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/skus.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/usageHistory.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
- /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getContinuationToken = getContinuationToken;
|
|
11
|
+
exports.setContinuationToken = setContinuationToken;
|
|
12
|
+
const pageMap = new WeakMap();
|
|
13
|
+
/**
|
|
14
|
+
* Given a result page from a pageable operation, returns a
|
|
15
|
+
* continuation token that can be used to begin paging from
|
|
16
|
+
* that point later.
|
|
17
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
18
|
+
* @returns The continuation token that can be passed into byPage().
|
|
19
|
+
*/
|
|
20
|
+
function getContinuationToken(page) {
|
|
21
|
+
var _a;
|
|
22
|
+
if (typeof page !== "object" || page === null) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
26
|
+
}
|
|
27
|
+
function setContinuationToken(page, continuationToken) {
|
|
28
|
+
var _a;
|
|
29
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
33
|
+
pageInfo.continuationToken = continuationToken;
|
|
34
|
+
pageMap.set(page, pageInfo);
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=pagingHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given a result page from a pageable operation, returns a\n * continuation token that can be used to begin paging from\n * that point later.\n * @param page A result object from calling .byPage() on a paged operation.\n * @returns The continuation token that can be passed into byPage().\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import { Operations, Skus, CommitmentAssociations, CommitmentPlans, UsageHistory } from "./operationsInterfaces/index.js";
|
|
4
|
+
import { AzureMLCommitmentPlansManagementClientOptionalParams } from "./models/index.js";
|
|
5
|
+
export declare class AzureMLCommitmentPlansManagementClient extends coreClient.ServiceClient {
|
|
6
|
+
$host: string;
|
|
7
|
+
apiVersion: string;
|
|
8
|
+
subscriptionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes a new instance of the AzureMLCommitmentPlansManagementClient class.
|
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
12
|
+
* @param subscriptionId Azure Subscription ID.
|
|
13
|
+
* @param options The parameter options
|
|
14
|
+
*/
|
|
15
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureMLCommitmentPlansManagementClientOptionalParams);
|
|
16
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
17
|
+
private addCustomApiVersionPolicy;
|
|
18
|
+
operations: Operations;
|
|
19
|
+
skus: Skus;
|
|
20
|
+
commitmentAssociations: CommitmentAssociations;
|
|
21
|
+
commitmentPlans: CommitmentPlans;
|
|
22
|
+
usageHistory: UsageHistory;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=azureMLCommitmentPlansManagementClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azureMLCommitmentPlansManagementClient.d.ts","sourceRoot":"","sources":["../../src/azureMLCommitmentPlansManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAQ7C,OAAO,EACL,UAAU,EACV,IAAI,EACJ,sBAAsB,EACtB,eAAe,EACf,YAAY,EACb,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,oDAAoD,EAAE,MAAM,mBAAmB,CAAC;AAEzF,qBAAa,sCAAuC,SAAQ,UAAU,CAAC,aAAa;IAClF,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,oDAAoD;IAgFhE,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE,IAAI,CAAC;IACX,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,eAAe,EAAE,eAAe,CAAC;IACjC,YAAY,EAAE,YAAY,CAAC;CAC5B"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
|
+
import { OperationsImpl, SkusImpl, CommitmentAssociationsImpl, CommitmentPlansImpl, UsageHistoryImpl } from "./operations/index.js";
|
|
11
|
+
export class AzureMLCommitmentPlansManagementClient extends coreClient.ServiceClient {
|
|
12
|
+
/**
|
|
13
|
+
* Initializes a new instance of the AzureMLCommitmentPlansManagementClient class.
|
|
14
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
15
|
+
* @param subscriptionId Azure Subscription ID.
|
|
16
|
+
* @param options The parameter options
|
|
17
|
+
*/
|
|
18
|
+
constructor(credentials, subscriptionId, options) {
|
|
19
|
+
var _a, _b, _c;
|
|
20
|
+
if (credentials === undefined) {
|
|
21
|
+
throw new Error("'credentials' cannot be null");
|
|
22
|
+
}
|
|
23
|
+
if (subscriptionId === undefined) {
|
|
24
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
25
|
+
}
|
|
26
|
+
// Initializing default values for options
|
|
27
|
+
if (!options) {
|
|
28
|
+
options = {};
|
|
29
|
+
}
|
|
30
|
+
const defaults = {
|
|
31
|
+
requestContentType: "application/json; charset=utf-8",
|
|
32
|
+
credential: credentials
|
|
33
|
+
};
|
|
34
|
+
const packageDetails = `azsdk-js-arm-commitmentplans/2.0.0-beta.3`;
|
|
35
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
36
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
37
|
+
: `${packageDetails}`;
|
|
38
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
39
|
+
userAgentPrefix
|
|
40
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
41
|
+
super(optionsWithDefaults);
|
|
42
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
43
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
44
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
45
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
46
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
47
|
+
}
|
|
48
|
+
if (!options ||
|
|
49
|
+
!options.pipeline ||
|
|
50
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
51
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
52
|
+
this.pipeline.removePolicy({
|
|
53
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
54
|
+
});
|
|
55
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
56
|
+
credential: credentials,
|
|
57
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
58
|
+
challengeCallbacks: {
|
|
59
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
60
|
+
}
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
// Parameter assignments
|
|
64
|
+
this.subscriptionId = subscriptionId;
|
|
65
|
+
// Assigning values to Constant parameters
|
|
66
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
67
|
+
this.apiVersion = options.apiVersion || "2016-05-01-preview";
|
|
68
|
+
this.operations = new OperationsImpl(this);
|
|
69
|
+
this.skus = new SkusImpl(this);
|
|
70
|
+
this.commitmentAssociations = new CommitmentAssociationsImpl(this);
|
|
71
|
+
this.commitmentPlans = new CommitmentPlansImpl(this);
|
|
72
|
+
this.usageHistory = new UsageHistoryImpl(this);
|
|
73
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
74
|
+
}
|
|
75
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
76
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
77
|
+
if (!apiVersion) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const apiVersionPolicy = {
|
|
81
|
+
name: "CustomApiVersionPolicy",
|
|
82
|
+
async sendRequest(request, next) {
|
|
83
|
+
const param = request.url.split("?");
|
|
84
|
+
if (param.length > 1) {
|
|
85
|
+
const newParams = param[1].split("&").map((item) => {
|
|
86
|
+
if (item.indexOf("api-version") > -1) {
|
|
87
|
+
return "api-version=" + apiVersion;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
return item;
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
94
|
+
}
|
|
95
|
+
return next(request);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=azureMLCommitmentPlansManagementClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azureMLCommitmentPlansManagementClient.js","sourceRoot":"","sources":["../../src/azureMLCommitmentPlansManagementClient.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n SkusImpl,\n CommitmentAssociationsImpl,\n CommitmentPlansImpl,\n UsageHistoryImpl\n} from \"./operations/index.js\";\nimport {\n Operations,\n Skus,\n CommitmentAssociations,\n CommitmentPlans,\n UsageHistory\n} from \"./operationsInterfaces/index.js\";\nimport { AzureMLCommitmentPlansManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class AzureMLCommitmentPlansManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AzureMLCommitmentPlansManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure Subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AzureMLCommitmentPlansManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AzureMLCommitmentPlansManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-commitmentplans/2.0.0-beta.3`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2016-05-01-preview\";\n this.operations = new OperationsImpl(this);\n this.skus = new SkusImpl(this);\n this.commitmentAssociations = new CommitmentAssociationsImpl(this);\n this.commitmentPlans = new CommitmentPlansImpl(this);\n this.usageHistory = new UsageHistoryImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n skus: Skus;\n commitmentAssociations: CommitmentAssociations;\n commitmentPlans: CommitmentPlans;\n usageHistory: UsageHistory;\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { getContinuationToken } from "./pagingHelper.js";
|
|
2
|
+
export * from "./models/index.js";
|
|
3
|
+
export { AzureMLCommitmentPlansManagementClient } from "./azureMLCommitmentPlansManagementClient.js";
|
|
4
|
+
export * from "./operationsInterfaces/index.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AACrG,cAAc,iCAAiC,CAAC"}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
8
|
/// <reference lib="esnext.asynciterable" />
|
|
10
|
-
export { getContinuationToken } from "./pagingHelper";
|
|
11
|
-
export * from "./models";
|
|
12
|
-
export { AzureMLCommitmentPlansManagementClient } from "./azureMLCommitmentPlansManagementClient";
|
|
13
|
-
export * from "./operationsInterfaces";
|
|
9
|
+
export { getContinuationToken } from "./pagingHelper.js";
|
|
10
|
+
export * from "./models/index.js";
|
|
11
|
+
export { AzureMLCommitmentPlansManagementClient } from "./azureMLCommitmentPlansManagementClient.js";
|
|
12
|
+
export * from "./operationsInterfaces/index.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AACrG,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { AzureMLCommitmentPlansManagementClient } from \"./azureMLCommitmentPlansManagementClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|