@azure/arm-commitmentplans 2.0.0-beta.1 → 2.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -4
- package/LICENSE +4 -4
- package/README.md +33 -12
- package/{dist-esm/src → dist/browser}/azureMLCommitmentPlansManagementClient.d.ts +4 -2
- package/dist/browser/azureMLCommitmentPlansManagementClient.d.ts.map +1 -0
- package/dist/browser/azureMLCommitmentPlansManagementClient.js +114 -0
- package/dist/browser/azureMLCommitmentPlansManagementClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/index.js +4 -3
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.d.ts +29 -22
- package/{dist-esm/src → dist/browser}/models/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/models/index.js +7 -0
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +16 -7
- 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 +30 -33
- 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 +56 -63
- 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 +16 -27
- 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 +16 -27
- 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 +30 -33
- 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.d.ts +13 -0
- package/dist/browser/pagingHelper.d.ts.map +1 -0
- package/dist/browser/pagingHelper.js +30 -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 +119 -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 -706
- 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 +753 -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 +205 -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 +330 -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 +81 -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 +81 -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 +133 -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 +34 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
- package/dist/esm/azureMLCommitmentPlansManagementClient.d.ts +24 -0
- package/dist/esm/azureMLCommitmentPlansManagementClient.d.ts.map +1 -0
- package/dist/esm/azureMLCommitmentPlansManagementClient.js +114 -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 -4
- 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 +750 -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 +200 -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 +325 -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 +76 -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 +76 -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 +128 -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 +30 -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 +114 -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 +750 -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 +200 -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 +325 -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 +76 -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 +76 -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 +128 -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 +30 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +97 -74
- package/review/{arm-commitmentplans.api.md → arm-commitmentplans-node.api.md} +7 -11
- package/LICENSE.txt +0 -21
- package/dist/index.js +0 -1794
- 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 +0 -55
- package/dist-esm/src/azureMLCommitmentPlansManagementClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.d.ts.map +0 -1
- 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/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -40
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/rollup.config.js +0 -188
- package/src/azureMLCommitmentPlansManagementClient.ts +0 -95
- package/src/models/index.ts +0 -579
- package/src/models/mappers.ts +0 -773
- package/src/models/parameters.ts +0 -147
- package/src/operations/commitmentAssociations.ts +0 -281
- package/src/operations/commitmentPlans.ts +0 -420
- package/src/operations/index.ts +0 -13
- package/src/operations/operations.ts +0 -95
- package/src/operations/skus.ts +0 -94
- package/src/operations/usageHistory.ts +0 -183
- 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/tsconfig.json +0 -20
- /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/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
|
@@ -0,0 +1,325 @@
|
|
|
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 { setContinuationToken } from "../pagingHelper.js";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing CommitmentPlans operations. */
|
|
14
|
+
export class CommitmentPlansImpl {
|
|
15
|
+
client;
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a new instance of the class CommitmentPlans class.
|
|
18
|
+
* @param client Reference to the service client
|
|
19
|
+
*/
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Retrieve all Azure ML commitment plans in a subscription.
|
|
25
|
+
* @param options The options parameters.
|
|
26
|
+
*/
|
|
27
|
+
list(options) {
|
|
28
|
+
const iter = this.listPagingAll(options);
|
|
29
|
+
return {
|
|
30
|
+
next() {
|
|
31
|
+
return iter.next();
|
|
32
|
+
},
|
|
33
|
+
[Symbol.asyncIterator]() {
|
|
34
|
+
return this;
|
|
35
|
+
},
|
|
36
|
+
byPage: (settings) => {
|
|
37
|
+
if (settings?.maxPageSize) {
|
|
38
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
|
+
}
|
|
40
|
+
return this.listPagingPage(options, settings);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
async *listPagingPage(options, settings) {
|
|
45
|
+
let result;
|
|
46
|
+
let continuationToken = settings?.continuationToken;
|
|
47
|
+
if (!continuationToken) {
|
|
48
|
+
result = await this._list(options);
|
|
49
|
+
let page = result.value || [];
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
setContinuationToken(page, continuationToken);
|
|
52
|
+
yield page;
|
|
53
|
+
}
|
|
54
|
+
while (continuationToken) {
|
|
55
|
+
result = await this._listNext(continuationToken, options);
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
setContinuationToken(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
async *listPagingAll(options) {
|
|
63
|
+
for await (const page of this.listPagingPage(options)) {
|
|
64
|
+
yield* page;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Retrieve all Azure ML commitment plans in a resource group.
|
|
69
|
+
* @param resourceGroupName The resource group name.
|
|
70
|
+
* @param options The options parameters.
|
|
71
|
+
*/
|
|
72
|
+
listInResourceGroup(resourceGroupName, options) {
|
|
73
|
+
const iter = this.listInResourceGroupPagingAll(resourceGroupName, options);
|
|
74
|
+
return {
|
|
75
|
+
next() {
|
|
76
|
+
return iter.next();
|
|
77
|
+
},
|
|
78
|
+
[Symbol.asyncIterator]() {
|
|
79
|
+
return this;
|
|
80
|
+
},
|
|
81
|
+
byPage: (settings) => {
|
|
82
|
+
if (settings?.maxPageSize) {
|
|
83
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
84
|
+
}
|
|
85
|
+
return this.listInResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
async *listInResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
90
|
+
let result;
|
|
91
|
+
let continuationToken = settings?.continuationToken;
|
|
92
|
+
if (!continuationToken) {
|
|
93
|
+
result = await this._listInResourceGroup(resourceGroupName, options);
|
|
94
|
+
let page = result.value || [];
|
|
95
|
+
continuationToken = result.nextLink;
|
|
96
|
+
setContinuationToken(page, continuationToken);
|
|
97
|
+
yield page;
|
|
98
|
+
}
|
|
99
|
+
while (continuationToken) {
|
|
100
|
+
result = await this._listInResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
let page = result.value || [];
|
|
103
|
+
setContinuationToken(page, continuationToken);
|
|
104
|
+
yield page;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
async *listInResourceGroupPagingAll(resourceGroupName, options) {
|
|
108
|
+
for await (const page of this.listInResourceGroupPagingPage(resourceGroupName, options)) {
|
|
109
|
+
yield* page;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Retrieve an Azure ML commitment plan by its subscription, resource group and name.
|
|
114
|
+
* @param resourceGroupName The resource group name.
|
|
115
|
+
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
116
|
+
* @param options The options parameters.
|
|
117
|
+
*/
|
|
118
|
+
get(resourceGroupName, commitmentPlanName, options) {
|
|
119
|
+
return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, options }, getOperationSpec);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Create a new Azure ML commitment plan resource or updates an existing one.
|
|
123
|
+
* @param resourceGroupName The resource group name.
|
|
124
|
+
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
125
|
+
* @param createOrUpdatePayload The payload to create or update the Azure ML commitment plan.
|
|
126
|
+
* @param options The options parameters.
|
|
127
|
+
*/
|
|
128
|
+
createOrUpdate(resourceGroupName, commitmentPlanName, createOrUpdatePayload, options) {
|
|
129
|
+
return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, createOrUpdatePayload, options }, createOrUpdateOperationSpec);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Remove an existing Azure ML commitment plan.
|
|
133
|
+
* @param resourceGroupName The resource group name.
|
|
134
|
+
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
135
|
+
* @param options The options parameters.
|
|
136
|
+
*/
|
|
137
|
+
remove(resourceGroupName, commitmentPlanName, options) {
|
|
138
|
+
return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, options }, removeOperationSpec);
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Patch an existing Azure ML commitment plan resource.
|
|
142
|
+
* @param resourceGroupName The resource group name.
|
|
143
|
+
* @param commitmentPlanName The Azure ML commitment plan name.
|
|
144
|
+
* @param patchPayload The payload to use to patch the Azure ML commitment plan. Only tags and SKU may
|
|
145
|
+
* be modified on an existing commitment plan.
|
|
146
|
+
* @param options The options parameters.
|
|
147
|
+
*/
|
|
148
|
+
patch(resourceGroupName, commitmentPlanName, patchPayload, options) {
|
|
149
|
+
return this.client.sendOperationRequest({ resourceGroupName, commitmentPlanName, patchPayload, options }, patchOperationSpec);
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Retrieve all Azure ML commitment plans in a subscription.
|
|
153
|
+
* @param options The options parameters.
|
|
154
|
+
*/
|
|
155
|
+
_list(options) {
|
|
156
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Retrieve all Azure ML commitment plans in a resource group.
|
|
160
|
+
* @param resourceGroupName The resource group name.
|
|
161
|
+
* @param options The options parameters.
|
|
162
|
+
*/
|
|
163
|
+
_listInResourceGroup(resourceGroupName, options) {
|
|
164
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listInResourceGroupOperationSpec);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* ListNext
|
|
168
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
169
|
+
* @param options The options parameters.
|
|
170
|
+
*/
|
|
171
|
+
_listNext(nextLink, options) {
|
|
172
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* ListInResourceGroupNext
|
|
176
|
+
* @param resourceGroupName The resource group name.
|
|
177
|
+
* @param nextLink The nextLink from the previous successful call to the ListInResourceGroup method.
|
|
178
|
+
* @param options The options parameters.
|
|
179
|
+
*/
|
|
180
|
+
_listInResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
181
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listInResourceGroupNextOperationSpec);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
// Operation Specifications
|
|
185
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
186
|
+
const getOperationSpec = {
|
|
187
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
|
|
188
|
+
httpMethod: "GET",
|
|
189
|
+
responses: {
|
|
190
|
+
200: {
|
|
191
|
+
bodyMapper: Mappers.CommitmentPlan
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
queryParameters: [Parameters.apiVersion],
|
|
195
|
+
urlParameters: [
|
|
196
|
+
Parameters.$host,
|
|
197
|
+
Parameters.subscriptionId,
|
|
198
|
+
Parameters.resourceGroupName,
|
|
199
|
+
Parameters.commitmentPlanName
|
|
200
|
+
],
|
|
201
|
+
headerParameters: [Parameters.accept],
|
|
202
|
+
serializer
|
|
203
|
+
};
|
|
204
|
+
const createOrUpdateOperationSpec = {
|
|
205
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
|
|
206
|
+
httpMethod: "PUT",
|
|
207
|
+
responses: {
|
|
208
|
+
200: {
|
|
209
|
+
bodyMapper: Mappers.CommitmentPlan
|
|
210
|
+
},
|
|
211
|
+
201: {
|
|
212
|
+
bodyMapper: Mappers.CommitmentPlan
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
requestBody: Parameters.createOrUpdatePayload,
|
|
216
|
+
queryParameters: [Parameters.apiVersion],
|
|
217
|
+
urlParameters: [
|
|
218
|
+
Parameters.$host,
|
|
219
|
+
Parameters.subscriptionId,
|
|
220
|
+
Parameters.resourceGroupName,
|
|
221
|
+
Parameters.commitmentPlanName
|
|
222
|
+
],
|
|
223
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
224
|
+
mediaType: "json",
|
|
225
|
+
serializer
|
|
226
|
+
};
|
|
227
|
+
const removeOperationSpec = {
|
|
228
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
|
|
229
|
+
httpMethod: "DELETE",
|
|
230
|
+
responses: { 200: {} },
|
|
231
|
+
queryParameters: [Parameters.apiVersion],
|
|
232
|
+
urlParameters: [
|
|
233
|
+
Parameters.$host,
|
|
234
|
+
Parameters.subscriptionId,
|
|
235
|
+
Parameters.resourceGroupName,
|
|
236
|
+
Parameters.commitmentPlanName
|
|
237
|
+
],
|
|
238
|
+
serializer
|
|
239
|
+
};
|
|
240
|
+
const patchOperationSpec = {
|
|
241
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}",
|
|
242
|
+
httpMethod: "PATCH",
|
|
243
|
+
responses: {
|
|
244
|
+
200: {
|
|
245
|
+
bodyMapper: Mappers.CommitmentPlan
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
requestBody: Parameters.patchPayload,
|
|
249
|
+
queryParameters: [Parameters.apiVersion],
|
|
250
|
+
urlParameters: [
|
|
251
|
+
Parameters.$host,
|
|
252
|
+
Parameters.subscriptionId,
|
|
253
|
+
Parameters.resourceGroupName,
|
|
254
|
+
Parameters.commitmentPlanName
|
|
255
|
+
],
|
|
256
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
257
|
+
mediaType: "json",
|
|
258
|
+
serializer
|
|
259
|
+
};
|
|
260
|
+
const listOperationSpec = {
|
|
261
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/commitmentPlans",
|
|
262
|
+
httpMethod: "GET",
|
|
263
|
+
responses: {
|
|
264
|
+
200: {
|
|
265
|
+
bodyMapper: Mappers.CommitmentPlanListResult
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
269
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
270
|
+
headerParameters: [Parameters.accept],
|
|
271
|
+
serializer
|
|
272
|
+
};
|
|
273
|
+
const listInResourceGroupOperationSpec = {
|
|
274
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans",
|
|
275
|
+
httpMethod: "GET",
|
|
276
|
+
responses: {
|
|
277
|
+
200: {
|
|
278
|
+
bodyMapper: Mappers.CommitmentPlanListResult
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
282
|
+
urlParameters: [
|
|
283
|
+
Parameters.$host,
|
|
284
|
+
Parameters.subscriptionId,
|
|
285
|
+
Parameters.resourceGroupName
|
|
286
|
+
],
|
|
287
|
+
headerParameters: [Parameters.accept],
|
|
288
|
+
serializer
|
|
289
|
+
};
|
|
290
|
+
const listNextOperationSpec = {
|
|
291
|
+
path: "{nextLink}",
|
|
292
|
+
httpMethod: "GET",
|
|
293
|
+
responses: {
|
|
294
|
+
200: {
|
|
295
|
+
bodyMapper: Mappers.CommitmentPlanListResult
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
299
|
+
urlParameters: [
|
|
300
|
+
Parameters.$host,
|
|
301
|
+
Parameters.subscriptionId,
|
|
302
|
+
Parameters.nextLink
|
|
303
|
+
],
|
|
304
|
+
headerParameters: [Parameters.accept],
|
|
305
|
+
serializer
|
|
306
|
+
};
|
|
307
|
+
const listInResourceGroupNextOperationSpec = {
|
|
308
|
+
path: "{nextLink}",
|
|
309
|
+
httpMethod: "GET",
|
|
310
|
+
responses: {
|
|
311
|
+
200: {
|
|
312
|
+
bodyMapper: Mappers.CommitmentPlanListResult
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
316
|
+
urlParameters: [
|
|
317
|
+
Parameters.$host,
|
|
318
|
+
Parameters.subscriptionId,
|
|
319
|
+
Parameters.resourceGroupName,
|
|
320
|
+
Parameters.nextLink
|
|
321
|
+
],
|
|
322
|
+
headerParameters: [Parameters.accept],
|
|
323
|
+
serializer
|
|
324
|
+
};
|
|
325
|
+
//# sourceMappingURL=commitmentPlans.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commitmentPlans.js","sourceRoot":"","sources":["../../../src/operations/commitmentPlans.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,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;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC;IAC9D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC;IAC9D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { CommitmentPlans } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureMLCommitmentPlansManagementClient } from \"../azureMLCommitmentPlansManagementClient.js\";\nimport {\n CommitmentPlan,\n CommitmentPlansListNextOptionalParams,\n CommitmentPlansListOptionalParams,\n CommitmentPlansListResponse,\n CommitmentPlansListInResourceGroupNextOptionalParams,\n CommitmentPlansListInResourceGroupOptionalParams,\n CommitmentPlansListInResourceGroupResponse,\n CommitmentPlansGetOptionalParams,\n CommitmentPlansGetResponse,\n CommitmentPlansCreateOrUpdateOptionalParams,\n CommitmentPlansCreateOrUpdateResponse,\n CommitmentPlansRemoveOptionalParams,\n CommitmentPlanPatchPayload,\n CommitmentPlansPatchOptionalParams,\n CommitmentPlansPatchResponse,\n CommitmentPlansListNextResponse,\n CommitmentPlansListInResourceGroupNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CommitmentPlans operations. */\nexport class CommitmentPlansImpl implements CommitmentPlans {\n private readonly client: AzureMLCommitmentPlansManagementClient;\n\n /**\n * Initialize a new instance of the class CommitmentPlans class.\n * @param client Reference to the service client\n */\n constructor(client: AzureMLCommitmentPlansManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieve all Azure ML commitment plans in a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: CommitmentPlansListOptionalParams\n ): PagedAsyncIterableIterator<CommitmentPlan> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: CommitmentPlansListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<CommitmentPlan[]> {\n let result: CommitmentPlansListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: CommitmentPlansListOptionalParams\n ): AsyncIterableIterator<CommitmentPlan> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieve all Azure ML commitment plans in a resource group.\n * @param resourceGroupName The resource group name.\n * @param options The options parameters.\n */\n public listInResourceGroup(\n resourceGroupName: string,\n options?: CommitmentPlansListInResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<CommitmentPlan> {\n const iter = this.listInResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listInResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listInResourceGroupPagingPage(\n resourceGroupName: string,\n options?: CommitmentPlansListInResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<CommitmentPlan[]> {\n let result: CommitmentPlansListInResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listInResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listInResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listInResourceGroupPagingAll(\n resourceGroupName: string,\n options?: CommitmentPlansListInResourceGroupOptionalParams\n ): AsyncIterableIterator<CommitmentPlan> {\n for await (const page of this.listInResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve an Azure ML commitment plan by its subscription, resource group and name.\n * @param resourceGroupName The resource group name.\n * @param commitmentPlanName The Azure ML commitment plan name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n commitmentPlanName: string,\n options?: CommitmentPlansGetOptionalParams\n ): Promise<CommitmentPlansGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, commitmentPlanName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a new Azure ML commitment plan resource or updates an existing one.\n * @param resourceGroupName The resource group name.\n * @param commitmentPlanName The Azure ML commitment plan name.\n * @param createOrUpdatePayload The payload to create or update the Azure ML commitment plan.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n commitmentPlanName: string,\n createOrUpdatePayload: CommitmentPlan,\n options?: CommitmentPlansCreateOrUpdateOptionalParams\n ): Promise<CommitmentPlansCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, commitmentPlanName, createOrUpdatePayload, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Remove an existing Azure ML commitment plan.\n * @param resourceGroupName The resource group name.\n * @param commitmentPlanName The Azure ML commitment plan name.\n * @param options The options parameters.\n */\n remove(\n resourceGroupName: string,\n commitmentPlanName: string,\n options?: CommitmentPlansRemoveOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, commitmentPlanName, options },\n removeOperationSpec\n );\n }\n\n /**\n * Patch an existing Azure ML commitment plan resource.\n * @param resourceGroupName The resource group name.\n * @param commitmentPlanName The Azure ML commitment plan name.\n * @param patchPayload The payload to use to patch the Azure ML commitment plan. Only tags and SKU may\n * be modified on an existing commitment plan.\n * @param options The options parameters.\n */\n patch(\n resourceGroupName: string,\n commitmentPlanName: string,\n patchPayload: CommitmentPlanPatchPayload,\n options?: CommitmentPlansPatchOptionalParams\n ): Promise<CommitmentPlansPatchResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, commitmentPlanName, patchPayload, options },\n patchOperationSpec\n );\n }\n\n /**\n * Retrieve all Azure ML commitment plans in a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: CommitmentPlansListOptionalParams\n ): Promise<CommitmentPlansListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Retrieve all Azure ML commitment plans in a resource group.\n * @param resourceGroupName The resource group name.\n * @param options The options parameters.\n */\n private _listInResourceGroup(\n resourceGroupName: string,\n options?: CommitmentPlansListInResourceGroupOptionalParams\n ): Promise<CommitmentPlansListInResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listInResourceGroupOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: CommitmentPlansListNextOptionalParams\n ): Promise<CommitmentPlansListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n\n /**\n * ListInResourceGroupNext\n * @param resourceGroupName The resource group name.\n * @param nextLink The nextLink from the previous successful call to the ListInResourceGroup method.\n * @param options The options parameters.\n */\n private _listInResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: CommitmentPlansListInResourceGroupNextOptionalParams\n ): Promise<CommitmentPlansListInResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listInResourceGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommitmentPlan\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.commitmentPlanName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommitmentPlan\n },\n 201: {\n bodyMapper: Mappers.CommitmentPlan\n }\n },\n requestBody: Parameters.createOrUpdatePayload,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.commitmentPlanName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst removeOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.commitmentPlanName\n ],\n serializer\n};\nconst patchOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommitmentPlan\n }\n },\n requestBody: Parameters.patchPayload,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.commitmentPlanName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/commitmentPlans\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommitmentPlanListResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skipToken],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listInResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommitmentPlanListResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skipToken],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommitmentPlanListResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skipToken],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listInResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommitmentPlanListResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skipToken],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
export * from "./operations.js";
|
|
9
|
+
export * from "./skus.js";
|
|
10
|
+
export * from "./commitmentAssociations.js";
|
|
11
|
+
export * from "./commitmentPlans.js";
|
|
12
|
+
export * from "./usageHistory.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,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 * from \"./operations.js\";\nexport * from \"./skus.js\";\nexport * from \"./commitmentAssociations.js\";\nexport * from \"./commitmentPlans.js\";\nexport * from \"./usageHistory.js\";\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operations } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { AzureMLCommitmentPlansManagementClient } from "../azureMLCommitmentPlansManagementClient.js";
|
|
4
|
+
import { OperationEntity, OperationsListOptionalParams } from "../models/index.js";
|
|
5
|
+
/** Class containing Operations operations. */
|
|
6
|
+
export declare class OperationsImpl implements Operations {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Operations class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AzureMLCommitmentPlansManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<OperationEntity>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,sCAAsC,EAAE,MAAM,8CAA8C,CAAC;AACtG,OAAO,EACL,eAAe,EACf,4BAA4B,EAE7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyC;IAEhE;;;OAGG;gBACS,MAAM,EAAE,sCAAsC;IAI1D;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,eAAe,CAAC;YAkB/B,cAAc;YASd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAKd"}
|
|
@@ -0,0 +1,76 @@
|
|
|
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 Mappers from "../models/mappers.js";
|
|
10
|
+
import * as Parameters from "../models/parameters.js";
|
|
11
|
+
/// <reference lib="esnext.asynciterable" />
|
|
12
|
+
/** Class containing Operations operations. */
|
|
13
|
+
export class OperationsImpl {
|
|
14
|
+
client;
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Operations class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(options) {
|
|
27
|
+
const iter = this.listPagingAll(options);
|
|
28
|
+
return {
|
|
29
|
+
next() {
|
|
30
|
+
return iter.next();
|
|
31
|
+
},
|
|
32
|
+
[Symbol.asyncIterator]() {
|
|
33
|
+
return this;
|
|
34
|
+
},
|
|
35
|
+
byPage: (settings) => {
|
|
36
|
+
if (settings?.maxPageSize) {
|
|
37
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
38
|
+
}
|
|
39
|
+
return this.listPagingPage(options, settings);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
async *listPagingPage(options, _settings) {
|
|
44
|
+
let result;
|
|
45
|
+
result = await this._list(options);
|
|
46
|
+
yield result.value || [];
|
|
47
|
+
}
|
|
48
|
+
async *listPagingAll(options) {
|
|
49
|
+
for await (const page of this.listPagingPage(options)) {
|
|
50
|
+
yield* page;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.
|
|
55
|
+
* @param options The options parameters.
|
|
56
|
+
*/
|
|
57
|
+
_list(options) {
|
|
58
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
// Operation Specifications
|
|
62
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
63
|
+
const listOperationSpec = {
|
|
64
|
+
path: "/providers/Microsoft.MachineLearning/operations",
|
|
65
|
+
httpMethod: "GET",
|
|
66
|
+
responses: {
|
|
67
|
+
200: {
|
|
68
|
+
bodyMapper: Mappers.OperationEntityListResult
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
queryParameters: [Parameters.apiVersion],
|
|
72
|
+
urlParameters: [Parameters.$host],
|
|
73
|
+
headerParameters: [Parameters.accept],
|
|
74
|
+
serializer
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAAyC;IAEhE;;;OAGG;IACH,YAAY,MAA8C;QACxD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAA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C","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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureMLCommitmentPlansManagementClient } from \"../azureMLCommitmentPlansManagementClient.js\";\nimport {\n OperationEntity,\n OperationsListOptionalParams,\n OperationsListResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: AzureMLCommitmentPlansManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: AzureMLCommitmentPlansManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<OperationEntity> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<OperationEntity[]> {\n let result: OperationsListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<OperationEntity> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.MachineLearning/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationEntityListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Skus } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { AzureMLCommitmentPlansManagementClient } from "../azureMLCommitmentPlansManagementClient.js";
|
|
4
|
+
import { CatalogSku, SkusListOptionalParams } from "../models/index.js";
|
|
5
|
+
/** Class containing Skus operations. */
|
|
6
|
+
export declare class SkusImpl implements Skus {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Skus class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AzureMLCommitmentPlansManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Lists the available commitment plan SKUs.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: SkusListOptionalParams): PagedAsyncIterableIterator<CatalogSku>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Lists the available commitment plan SKUs.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=skus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skus.d.ts","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAIxD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8CAA8C,CAAC;AACtG,OAAO,EACL,UAAU,EACV,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAG5B,wCAAwC;AACxC,qBAAa,QAAS,YAAW,IAAI;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyC;IAEhE;;;OAGG;gBACS,MAAM,EAAE,sCAAsC;IAI1D;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,sBAAsB,GAC/B,0BAA0B,CAAC,UAAU,CAAC;YAkB1B,cAAc;YASd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAGd"}
|
|
@@ -0,0 +1,76 @@
|
|
|
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 Mappers from "../models/mappers.js";
|
|
10
|
+
import * as Parameters from "../models/parameters.js";
|
|
11
|
+
/// <reference lib="esnext.asynciterable" />
|
|
12
|
+
/** Class containing Skus operations. */
|
|
13
|
+
export class SkusImpl {
|
|
14
|
+
client;
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Skus class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Lists the available commitment plan SKUs.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(options) {
|
|
27
|
+
const iter = this.listPagingAll(options);
|
|
28
|
+
return {
|
|
29
|
+
next() {
|
|
30
|
+
return iter.next();
|
|
31
|
+
},
|
|
32
|
+
[Symbol.asyncIterator]() {
|
|
33
|
+
return this;
|
|
34
|
+
},
|
|
35
|
+
byPage: (settings) => {
|
|
36
|
+
if (settings?.maxPageSize) {
|
|
37
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
38
|
+
}
|
|
39
|
+
return this.listPagingPage(options, settings);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
async *listPagingPage(options, _settings) {
|
|
44
|
+
let result;
|
|
45
|
+
result = await this._list(options);
|
|
46
|
+
yield result.value || [];
|
|
47
|
+
}
|
|
48
|
+
async *listPagingAll(options) {
|
|
49
|
+
for await (const page of this.listPagingPage(options)) {
|
|
50
|
+
yield* page;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Lists the available commitment plan SKUs.
|
|
55
|
+
* @param options The options parameters.
|
|
56
|
+
*/
|
|
57
|
+
_list(options) {
|
|
58
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
// Operation Specifications
|
|
62
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
63
|
+
const listOperationSpec = {
|
|
64
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/skus",
|
|
65
|
+
httpMethod: "GET",
|
|
66
|
+
responses: {
|
|
67
|
+
200: {
|
|
68
|
+
bodyMapper: Mappers.SkuListResult
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
queryParameters: [Parameters.apiVersion],
|
|
72
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
73
|
+
headerParameters: [Parameters.accept],
|
|
74
|
+
serializer
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=skus.js.map
|
|
@@ -0,0 +1 @@
|
|
|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AE,CAAC;YACtD,KAAK,CAAC,CAAC,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED;;;OAGG;IACK,KAAK,CAAC,OAAgC;QAC5C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,0EAA0E;IAC5E,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { Skus } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureMLCommitmentPlansManagementClient } from \"../azureMLCommitmentPlansManagementClient.js\";\nimport {\n CatalogSku,\n SkusListOptionalParams,\n SkusListResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Skus operations. */\nexport class SkusImpl implements Skus {\n private readonly client: AzureMLCommitmentPlansManagementClient;\n\n /**\n * Initialize a new instance of the class Skus class.\n * @param client Reference to the service client\n */\n constructor(client: AzureMLCommitmentPlansManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the available commitment plan SKUs.\n * @param options The options parameters.\n */\n public list(\n options?: SkusListOptionalParams\n ): PagedAsyncIterableIterator<CatalogSku> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: SkusListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<CatalogSku[]> {\n let result: SkusListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: SkusListOptionalParams\n ): AsyncIterableIterator<CatalogSku> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the available commitment plan SKUs.\n * @param options The options parameters.\n */\n private _list(options?: SkusListOptionalParams): Promise<SkusListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/skus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SkuListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|