@azure/arm-operations 4.0.0-beta.3 → 4.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -4
- package/LICENSE +4 -4
- package/README.md +26 -19
- 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}/lroImpl.js +13 -9
- package/dist/browser/lroImpl.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.d.ts +12 -12
- package/{dist-esm/src → dist/browser}/models/index.d.ts.map +1 -1
- 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/browser/operations/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operations/index.js +4 -4
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/managementAssociations.d.ts +3 -3
- package/dist/browser/operations/managementAssociations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/managementAssociations.js +3 -2
- package/dist/browser/operations/managementAssociations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/managementConfigurations.d.ts +3 -3
- package/dist/browser/operations/managementConfigurations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/managementConfigurations.js +3 -2
- package/dist/browser/operations/managementConfigurations.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/solutions.d.ts +3 -3
- package/dist/browser/operations/solutions.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/solutions.js +115 -112
- package/dist/browser/operations/solutions.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +4 -4
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/managementAssociations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/managementAssociations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/managementAssociations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/managementConfigurations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/managementConfigurations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/managementConfigurations.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/solutions.d.ts +1 -1
- package/dist/browser/operationsInterfaces/solutions.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/solutions.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsManagementClient.d.ts +4 -2
- package/dist/browser/operationsManagementClient.d.ts.map +1 -0
- package/dist/browser/operationsManagementClient.js +113 -0
- package/dist/browser/operationsManagementClient.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/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/dist/commonjs/lroImpl.d.ts +16 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +37 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +272 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +10 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +19 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +488 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +18 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +157 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +5 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +15 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/managementAssociations.d.ts +49 -0
- package/dist/commonjs/operations/managementAssociations.d.ts.map +1 -0
- package/dist/commonjs/operations/managementAssociations.js +183 -0
- package/dist/commonjs/operations/managementAssociations.js.map +1 -0
- package/dist/commonjs/operations/managementConfigurations.d.ts +40 -0
- package/dist/commonjs/operations/managementConfigurations.d.ts.map +1 -0
- package/dist/commonjs/operations/managementConfigurations.js +143 -0
- package/dist/commonjs/operations/managementConfigurations.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/solutions.d.ts +78 -0
- package/dist/commonjs/operations/solutions.d.ts.map +1 -0
- package/dist/commonjs/operations/solutions.js +358 -0
- package/dist/commonjs/operations/solutions.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +5 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +15 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/managementAssociations.d.ts +41 -0
- package/dist/commonjs/operationsInterfaces/managementAssociations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/managementAssociations.js +10 -0
- package/dist/commonjs/operationsInterfaces/managementAssociations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/managementConfigurations.d.ts +32 -0
- package/dist/commonjs/operationsInterfaces/managementConfigurations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/managementConfigurations.js +10 -0
- package/dist/commonjs/operationsInterfaces/managementConfigurations.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/solutions.d.ts +70 -0
- package/dist/commonjs/operationsInterfaces/solutions.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/solutions.js +10 -0
- package/dist/commonjs/operationsInterfaces/solutions.js.map +1 -0
- package/dist/commonjs/operationsManagementClient.d.ts +24 -0
- package/dist/commonjs/operationsManagementClient.d.ts.map +1 -0
- package/dist/commonjs/operationsManagementClient.js +118 -0
- package/dist/commonjs/operationsManagementClient.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/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/lroImpl.d.ts +16 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +33 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +272 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +19 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +485 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +18 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +154 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +5 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +12 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/managementAssociations.d.ts +49 -0
- package/dist/esm/operations/managementAssociations.d.ts.map +1 -0
- package/dist/esm/operations/managementAssociations.js +178 -0
- package/dist/esm/operations/managementAssociations.js.map +1 -0
- package/dist/esm/operations/managementConfigurations.d.ts +40 -0
- package/dist/esm/operations/managementConfigurations.d.ts.map +1 -0
- package/dist/esm/operations/managementConfigurations.js +138 -0
- package/dist/esm/operations/managementConfigurations.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/solutions.d.ts +78 -0
- package/dist/esm/operations/solutions.d.ts.map +1 -0
- package/dist/esm/operations/solutions.js +353 -0
- package/dist/esm/operations/solutions.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +5 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +12 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/managementAssociations.d.ts +41 -0
- package/dist/esm/operationsInterfaces/managementAssociations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/managementAssociations.js +9 -0
- package/dist/esm/operationsInterfaces/managementAssociations.js.map +1 -0
- package/dist/esm/operationsInterfaces/managementConfigurations.d.ts +32 -0
- package/dist/esm/operationsInterfaces/managementConfigurations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/managementConfigurations.js +9 -0
- package/dist/esm/operationsInterfaces/managementConfigurations.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/solutions.d.ts +70 -0
- package/dist/esm/operationsInterfaces/solutions.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/solutions.js +9 -0
- package/dist/esm/operationsInterfaces/solutions.js.map +1 -0
- package/dist/esm/operationsManagementClient.d.ts +24 -0
- package/dist/esm/operationsManagementClient.d.ts.map +1 -0
- package/dist/esm/operationsManagementClient.js +113 -0
- package/dist/esm/operationsManagementClient.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/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/lroImpl.d.ts +16 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +33 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +272 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +9 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +19 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +485 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +18 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +154 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +5 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +12 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/managementAssociations.d.ts +49 -0
- package/dist/react-native/operations/managementAssociations.d.ts.map +1 -0
- package/dist/react-native/operations/managementAssociations.js +178 -0
- package/dist/react-native/operations/managementAssociations.js.map +1 -0
- package/dist/react-native/operations/managementConfigurations.d.ts +40 -0
- package/dist/react-native/operations/managementConfigurations.d.ts.map +1 -0
- package/dist/react-native/operations/managementConfigurations.js +138 -0
- package/dist/react-native/operations/managementConfigurations.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/solutions.d.ts +78 -0
- package/dist/react-native/operations/solutions.d.ts.map +1 -0
- package/dist/react-native/operations/solutions.js +353 -0
- package/dist/react-native/operations/solutions.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +5 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +12 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/managementAssociations.d.ts +41 -0
- package/dist/react-native/operationsInterfaces/managementAssociations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/managementAssociations.js +9 -0
- package/dist/react-native/operationsInterfaces/managementAssociations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/managementConfigurations.d.ts +32 -0
- package/dist/react-native/operationsInterfaces/managementConfigurations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/managementConfigurations.js +9 -0
- package/dist/react-native/operationsInterfaces/managementConfigurations.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/solutions.d.ts +70 -0
- package/dist/react-native/operationsInterfaces/solutions.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/solutions.js +9 -0
- package/dist/react-native/operationsInterfaces/solutions.js.map +1 -0
- package/dist/react-native/operationsManagementClient.d.ts +24 -0
- package/dist/react-native/operationsManagementClient.d.ts.map +1 -0
- package/dist/react-native/operationsManagementClient.js +113 -0
- package/dist/react-native/operationsManagementClient.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 +87 -74
- package/review/{arm-operations.api.md → arm-operations-node.api.md} +3 -0
- package/dist/index.js +0 -1524
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/managementAssociationsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementAssociationsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementAssociationsCreateOrUpdateSample.js +0 -40
- package/dist-esm/samples-dev/managementAssociationsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/managementAssociationsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementAssociationsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementAssociationsDeleteSample.js +0 -34
- package/dist-esm/samples-dev/managementAssociationsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/managementAssociationsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementAssociationsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementAssociationsGetSample.js +0 -34
- package/dist-esm/samples-dev/managementAssociationsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/managementAssociationsListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementAssociationsListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementAssociationsListBySubscriptionSample.js +0 -29
- package/dist-esm/samples-dev/managementAssociationsListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/managementConfigurationsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementConfigurationsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementConfigurationsCreateOrUpdateSample.js +0 -32
- package/dist-esm/samples-dev/managementConfigurationsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/managementConfigurationsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementConfigurationsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementConfigurationsDeleteSample.js +0 -31
- package/dist-esm/samples-dev/managementConfigurationsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/managementConfigurationsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementConfigurationsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementConfigurationsGetSample.js +0 -31
- package/dist-esm/samples-dev/managementConfigurationsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/managementConfigurationsListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementConfigurationsListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementConfigurationsListBySubscriptionSample.js +0 -29
- package/dist-esm/samples-dev/managementConfigurationsListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -43
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/solutionsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/solutionsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/solutionsCreateOrUpdateSample.js +0 -51
- package/dist-esm/samples-dev/solutionsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/solutionsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/solutionsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/solutionsDeleteSample.js +0 -31
- package/dist-esm/samples-dev/solutionsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/solutionsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/solutionsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/solutionsGetSample.js +0 -31
- package/dist-esm/samples-dev/solutionsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/solutionsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/solutionsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/solutionsListByResourceGroupSample.js +0 -30
- package/dist-esm/samples-dev/solutionsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/solutionsListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/solutionsListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/solutionsListBySubscriptionSample.js +0 -29
- package/dist-esm/samples-dev/solutionsListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/solutionsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/solutionsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/solutionsUpdateSample.js +0 -34
- package/dist-esm/samples-dev/solutionsUpdateSample.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/lroImpl.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/index.d.ts +0 -5
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/managementAssociations.d.ts.map +0 -1
- package/dist-esm/src/operations/managementAssociations.js.map +0 -1
- package/dist-esm/src/operations/managementConfigurations.d.ts.map +0 -1
- package/dist-esm/src/operations/managementConfigurations.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/solutions.d.ts.map +0 -1
- package/dist-esm/src/operations/solutions.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -5
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/managementAssociations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/managementAssociations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/managementConfigurations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/managementConfigurations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/solutions.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/solutions.js.map +0 -1
- package/dist-esm/src/operationsManagementClient.d.ts.map +0 -1
- package/dist-esm/src/operationsManagementClient.js +0 -73
- package/dist-esm/src/operationsManagementClient.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 -122
- package/src/lroImpl.ts +0 -34
- package/src/models/index.ts +0 -324
- package/src/models/mappers.ts +0 -503
- package/src/models/parameters.ts +0 -180
- package/src/operations/index.ts +0 -12
- package/src/operations/managementAssociations.ts +0 -237
- package/src/operations/managementConfigurations.ts +0 -188
- package/src/operations/operations.ts +0 -95
- package/src/operations/solutions.ts +0 -506
- package/src/operationsInterfaces/index.ts +0 -12
- package/src/operationsInterfaces/managementAssociations.ts +0 -82
- package/src/operationsInterfaces/managementConfigurations.ts +0 -64
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/solutions.ts +0 -139
- package/src/operationsManagementClient.ts +0 -117
- package/tsconfig.json +0 -33
- package/types/arm-operations.d.ts +0 -488
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.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/managementAssociations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/managementConfigurations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/solutions.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managementConfigurations.js","sourceRoot":"","sources":["../../../src/operations/managementConfigurations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAatD,4DAA4D;AAC5D,MAAa,4BAA4B;IACtB,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IAC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BAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,2BAA2B;KACvC;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 { ManagementConfigurations } 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 { OperationsManagementClient } from \"../operationsManagementClient.js\";\nimport {\n ManagementConfigurationsListBySubscriptionOptionalParams,\n ManagementConfigurationsListBySubscriptionResponse,\n ManagementConfiguration,\n ManagementConfigurationsCreateOrUpdateOptionalParams,\n ManagementConfigurationsCreateOrUpdateResponse,\n ManagementConfigurationsDeleteOptionalParams,\n ManagementConfigurationsGetOptionalParams,\n ManagementConfigurationsGetResponse\n} from \"../models/index.js\";\n\n/** Class containing ManagementConfigurations operations. */\nexport class ManagementConfigurationsImpl implements ManagementConfigurations {\n private readonly client: OperationsManagementClient;\n\n /**\n * Initialize a new instance of the class ManagementConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: OperationsManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieves the ManagementConfigurations list.\n * @param options The options parameters.\n */\n listBySubscription(\n options?: ManagementConfigurationsListBySubscriptionOptionalParams\n ): Promise<ManagementConfigurationsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Creates or updates the ManagementConfiguration.\n * @param resourceGroupName The name of the resource group to get. The name is case insensitive.\n * @param managementConfigurationName User Management Configuration Name.\n * @param parameters The parameters required to create OMS Solution.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n managementConfigurationName: string,\n parameters: ManagementConfiguration,\n options?: ManagementConfigurationsCreateOrUpdateOptionalParams\n ): Promise<ManagementConfigurationsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, managementConfigurationName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes the ManagementConfiguration in the subscription.\n * @param resourceGroupName The name of the resource group to get. The name is case insensitive.\n * @param managementConfigurationName User Management Configuration Name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n managementConfigurationName: string,\n options?: ManagementConfigurationsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, managementConfigurationName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Retrieves the user ManagementConfiguration.\n * @param resourceGroupName The name of the resource group to get. The name is case insensitive.\n * @param managementConfigurationName User Management Configuration Name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n managementConfigurationName: string,\n options?: ManagementConfigurationsGetOptionalParams\n ): Promise<ManagementConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, managementConfigurationName, options },\n getOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.OperationsManagement/ManagementConfigurations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagementConfigurationPropertiesList\n },\n default: {\n bodyMapper: Mappers.CodeMessageError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/ManagementConfigurations/{managementConfigurationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagementConfiguration\n },\n default: {\n bodyMapper: Mappers.CodeMessageError\n }\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managementConfigurationName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/ManagementConfigurations/{managementConfigurationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CodeMessageError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managementConfigurationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/ManagementConfigurations/{managementConfigurationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagementConfiguration\n },\n default: {\n bodyMapper: Mappers.CodeMessageError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.managementConfigurationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operations } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { OperationsManagementClient } from "../operationsManagementClient.js";
|
|
4
|
+
import { Operation, 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: OperationsManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Lists all of the available OperationsManagement Rest API operations.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Lists all of the available OperationsManagement 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,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,SAAS,EACT,4BAA4B,EAE7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IAEpD;;;OAGG;gBACS,MAAM,EAAE,0BAA0B;IAI9C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,cAAc;YASd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAKd"}
|
|
@@ -0,0 +1,81 @@
|
|
|
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.OperationsImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
13
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
14
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Class containing Operations operations. */
|
|
17
|
+
class OperationsImpl {
|
|
18
|
+
client;
|
|
19
|
+
/**
|
|
20
|
+
* Initialize a new instance of the class Operations class.
|
|
21
|
+
* @param client Reference to the service client
|
|
22
|
+
*/
|
|
23
|
+
constructor(client) {
|
|
24
|
+
this.client = client;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Lists all of the available OperationsManagement Rest API operations.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
list(options) {
|
|
31
|
+
const iter = this.listPagingAll(options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: (settings) => {
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
|
+
}
|
|
43
|
+
return this.listPagingPage(options, settings);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
async *listPagingPage(options, _settings) {
|
|
48
|
+
let result;
|
|
49
|
+
result = await this._list(options);
|
|
50
|
+
yield result.value || [];
|
|
51
|
+
}
|
|
52
|
+
async *listPagingAll(options) {
|
|
53
|
+
for await (const page of this.listPagingPage(options)) {
|
|
54
|
+
yield* page;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Lists all of the available OperationsManagement Rest API operations.
|
|
59
|
+
* @param options The options parameters.
|
|
60
|
+
*/
|
|
61
|
+
_list(options) {
|
|
62
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.OperationsImpl = OperationsImpl;
|
|
66
|
+
// Operation Specifications
|
|
67
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
68
|
+
const listOperationSpec = {
|
|
69
|
+
path: "/providers/Microsoft.OperationsManagement/operations",
|
|
70
|
+
httpMethod: "GET",
|
|
71
|
+
responses: {
|
|
72
|
+
200: {
|
|
73
|
+
bodyMapper: Mappers.OperationListResult
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
queryParameters: [Parameters.apiVersion],
|
|
77
|
+
urlParameters: [Parameters.$host],
|
|
78
|
+
headerParameters: [Parameters.accept],
|
|
79
|
+
serializer
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAG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5D,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,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 { 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 { OperationsManagementClient } from \"../operationsManagementClient.js\";\nimport {\n Operation,\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: OperationsManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: OperationsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available OperationsManagement Rest API operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\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<Operation[]> {\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<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available OperationsManagement 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.OperationsManagement/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Solutions } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { OperationsManagementClient } from "../operationsManagementClient.js";
|
|
3
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
4
|
+
import { Solution, SolutionsCreateOrUpdateOptionalParams, SolutionsCreateOrUpdateResponse, SolutionPatch, SolutionsUpdateOptionalParams, SolutionsUpdateResponse, SolutionsDeleteOptionalParams, SolutionsGetOptionalParams, SolutionsGetResponse, SolutionsListByResourceGroupOptionalParams, SolutionsListByResourceGroupResponse, SolutionsListBySubscriptionOptionalParams, SolutionsListBySubscriptionResponse } from "../models/index.js";
|
|
5
|
+
/** Class containing Solutions operations. */
|
|
6
|
+
export declare class SolutionsImpl implements Solutions {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Solutions class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: OperationsManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Creates or updates the Solution.
|
|
15
|
+
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
16
|
+
* @param solutionName User Solution Name.
|
|
17
|
+
* @param parameters The parameters required to create OMS Solution.
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
beginCreateOrUpdate(resourceGroupName: string, solutionName: string, parameters: Solution, options?: SolutionsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<SolutionsCreateOrUpdateResponse>, SolutionsCreateOrUpdateResponse>>;
|
|
21
|
+
/**
|
|
22
|
+
* Creates or updates the Solution.
|
|
23
|
+
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
24
|
+
* @param solutionName User Solution Name.
|
|
25
|
+
* @param parameters The parameters required to create OMS Solution.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, solutionName: string, parameters: Solution, options?: SolutionsCreateOrUpdateOptionalParams): Promise<SolutionsCreateOrUpdateResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Patch a Solution. Only updating tags supported.
|
|
31
|
+
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
32
|
+
* @param solutionName User Solution Name.
|
|
33
|
+
* @param parameters The parameters required to patch a Solution.
|
|
34
|
+
* @param options The options parameters.
|
|
35
|
+
*/
|
|
36
|
+
beginUpdate(resourceGroupName: string, solutionName: string, parameters: SolutionPatch, options?: SolutionsUpdateOptionalParams): Promise<PollerLike<PollOperationState<SolutionsUpdateResponse>, SolutionsUpdateResponse>>;
|
|
37
|
+
/**
|
|
38
|
+
* Patch a Solution. Only updating tags supported.
|
|
39
|
+
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
40
|
+
* @param solutionName User Solution Name.
|
|
41
|
+
* @param parameters The parameters required to patch a Solution.
|
|
42
|
+
* @param options The options parameters.
|
|
43
|
+
*/
|
|
44
|
+
beginUpdateAndWait(resourceGroupName: string, solutionName: string, parameters: SolutionPatch, options?: SolutionsUpdateOptionalParams): Promise<SolutionsUpdateResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Deletes the solution in the subscription.
|
|
47
|
+
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
48
|
+
* @param solutionName User Solution Name.
|
|
49
|
+
* @param options The options parameters.
|
|
50
|
+
*/
|
|
51
|
+
beginDelete(resourceGroupName: string, solutionName: string, options?: SolutionsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
52
|
+
/**
|
|
53
|
+
* Deletes the solution in the subscription.
|
|
54
|
+
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
55
|
+
* @param solutionName User Solution Name.
|
|
56
|
+
* @param options The options parameters.
|
|
57
|
+
*/
|
|
58
|
+
beginDeleteAndWait(resourceGroupName: string, solutionName: string, options?: SolutionsDeleteOptionalParams): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Retrieves the user solution.
|
|
61
|
+
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
62
|
+
* @param solutionName User Solution Name.
|
|
63
|
+
* @param options The options parameters.
|
|
64
|
+
*/
|
|
65
|
+
get(resourceGroupName: string, solutionName: string, options?: SolutionsGetOptionalParams): Promise<SolutionsGetResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* Retrieves the solution list. It will retrieve both first party and third party solutions
|
|
68
|
+
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
69
|
+
* @param options The options parameters.
|
|
70
|
+
*/
|
|
71
|
+
listByResourceGroup(resourceGroupName: string, options?: SolutionsListByResourceGroupOptionalParams): Promise<SolutionsListByResourceGroupResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* Retrieves the solution list. It will retrieve both first party and third party solutions
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
listBySubscription(options?: SolutionsListBySubscriptionOptionalParams): Promise<SolutionsListBySubscriptionResponse>;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=solutions.d.ts.map
|
|
@@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uBAAuB,CACxB,CACF;IAqDD;;;;;;OAMG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,aAAa,EACzB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC;IAUnC;;;;;OAKG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAqDtD;;;;;OAKG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,IAAI,CAAC;IAShB;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,oBAAoB,CAAC;IAOhC;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,oCAAoC,CAAC;IAOhD;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC;CAMhD"}
|
|
@@ -0,0 +1,358 @@
|
|
|
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.SolutionsImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
13
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
14
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
|
+
const core_lro_1 = require("@azure/core-lro");
|
|
16
|
+
const lroImpl_js_1 = require("../lroImpl.js");
|
|
17
|
+
/** Class containing Solutions operations. */
|
|
18
|
+
class SolutionsImpl {
|
|
19
|
+
client;
|
|
20
|
+
/**
|
|
21
|
+
* Initialize a new instance of the class Solutions class.
|
|
22
|
+
* @param client Reference to the service client
|
|
23
|
+
*/
|
|
24
|
+
constructor(client) {
|
|
25
|
+
this.client = client;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Creates or updates the Solution.
|
|
29
|
+
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
30
|
+
* @param solutionName User Solution Name.
|
|
31
|
+
* @param parameters The parameters required to create OMS Solution.
|
|
32
|
+
* @param options The options parameters.
|
|
33
|
+
*/
|
|
34
|
+
async beginCreateOrUpdate(resourceGroupName, solutionName, parameters, options) {
|
|
35
|
+
const directSendOperation = async (args, spec) => {
|
|
36
|
+
return this.client.sendOperationRequest(args, spec);
|
|
37
|
+
};
|
|
38
|
+
const sendOperation = async (args, spec) => {
|
|
39
|
+
let currentRawResponse = undefined;
|
|
40
|
+
const providedCallback = args.options?.onResponse;
|
|
41
|
+
const callback = (rawResponse, flatResponse) => {
|
|
42
|
+
currentRawResponse = rawResponse;
|
|
43
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
44
|
+
};
|
|
45
|
+
const updatedArgs = {
|
|
46
|
+
...args,
|
|
47
|
+
options: {
|
|
48
|
+
...args.options,
|
|
49
|
+
onResponse: callback
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
53
|
+
return {
|
|
54
|
+
flatResponse,
|
|
55
|
+
rawResponse: {
|
|
56
|
+
statusCode: currentRawResponse.status,
|
|
57
|
+
body: currentRawResponse.parsedBody,
|
|
58
|
+
headers: currentRawResponse.headers.toJSON()
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, solutionName, parameters, options }, createOrUpdateOperationSpec);
|
|
63
|
+
const poller = new core_lro_1.LroEngine(lro, {
|
|
64
|
+
resumeFrom: options?.resumeFrom,
|
|
65
|
+
intervalInMs: options?.updateIntervalInMs
|
|
66
|
+
});
|
|
67
|
+
await poller.poll();
|
|
68
|
+
return poller;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Creates or updates the Solution.
|
|
72
|
+
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
73
|
+
* @param solutionName User Solution Name.
|
|
74
|
+
* @param parameters The parameters required to create OMS Solution.
|
|
75
|
+
* @param options The options parameters.
|
|
76
|
+
*/
|
|
77
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, solutionName, parameters, options) {
|
|
78
|
+
const poller = await this.beginCreateOrUpdate(resourceGroupName, solutionName, parameters, options);
|
|
79
|
+
return poller.pollUntilDone();
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Patch a Solution. Only updating tags supported.
|
|
83
|
+
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
84
|
+
* @param solutionName User Solution Name.
|
|
85
|
+
* @param parameters The parameters required to patch a Solution.
|
|
86
|
+
* @param options The options parameters.
|
|
87
|
+
*/
|
|
88
|
+
async beginUpdate(resourceGroupName, solutionName, parameters, options) {
|
|
89
|
+
const directSendOperation = async (args, spec) => {
|
|
90
|
+
return this.client.sendOperationRequest(args, spec);
|
|
91
|
+
};
|
|
92
|
+
const sendOperation = async (args, spec) => {
|
|
93
|
+
let currentRawResponse = undefined;
|
|
94
|
+
const providedCallback = args.options?.onResponse;
|
|
95
|
+
const callback = (rawResponse, flatResponse) => {
|
|
96
|
+
currentRawResponse = rawResponse;
|
|
97
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
98
|
+
};
|
|
99
|
+
const updatedArgs = {
|
|
100
|
+
...args,
|
|
101
|
+
options: {
|
|
102
|
+
...args.options,
|
|
103
|
+
onResponse: callback
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
107
|
+
return {
|
|
108
|
+
flatResponse,
|
|
109
|
+
rawResponse: {
|
|
110
|
+
statusCode: currentRawResponse.status,
|
|
111
|
+
body: currentRawResponse.parsedBody,
|
|
112
|
+
headers: currentRawResponse.headers.toJSON()
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, solutionName, parameters, options }, updateOperationSpec);
|
|
117
|
+
const poller = new core_lro_1.LroEngine(lro, {
|
|
118
|
+
resumeFrom: options?.resumeFrom,
|
|
119
|
+
intervalInMs: options?.updateIntervalInMs
|
|
120
|
+
});
|
|
121
|
+
await poller.poll();
|
|
122
|
+
return poller;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Patch a Solution. Only updating tags supported.
|
|
126
|
+
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
127
|
+
* @param solutionName User Solution Name.
|
|
128
|
+
* @param parameters The parameters required to patch a Solution.
|
|
129
|
+
* @param options The options parameters.
|
|
130
|
+
*/
|
|
131
|
+
async beginUpdateAndWait(resourceGroupName, solutionName, parameters, options) {
|
|
132
|
+
const poller = await this.beginUpdate(resourceGroupName, solutionName, parameters, options);
|
|
133
|
+
return poller.pollUntilDone();
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Deletes the solution in the subscription.
|
|
137
|
+
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
138
|
+
* @param solutionName User Solution Name.
|
|
139
|
+
* @param options The options parameters.
|
|
140
|
+
*/
|
|
141
|
+
async beginDelete(resourceGroupName, solutionName, options) {
|
|
142
|
+
const directSendOperation = async (args, spec) => {
|
|
143
|
+
return this.client.sendOperationRequest(args, spec);
|
|
144
|
+
};
|
|
145
|
+
const sendOperation = async (args, spec) => {
|
|
146
|
+
let currentRawResponse = undefined;
|
|
147
|
+
const providedCallback = args.options?.onResponse;
|
|
148
|
+
const callback = (rawResponse, flatResponse) => {
|
|
149
|
+
currentRawResponse = rawResponse;
|
|
150
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
151
|
+
};
|
|
152
|
+
const updatedArgs = {
|
|
153
|
+
...args,
|
|
154
|
+
options: {
|
|
155
|
+
...args.options,
|
|
156
|
+
onResponse: callback
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
160
|
+
return {
|
|
161
|
+
flatResponse,
|
|
162
|
+
rawResponse: {
|
|
163
|
+
statusCode: currentRawResponse.status,
|
|
164
|
+
body: currentRawResponse.parsedBody,
|
|
165
|
+
headers: currentRawResponse.headers.toJSON()
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, solutionName, options }, deleteOperationSpec);
|
|
170
|
+
const poller = new core_lro_1.LroEngine(lro, {
|
|
171
|
+
resumeFrom: options?.resumeFrom,
|
|
172
|
+
intervalInMs: options?.updateIntervalInMs
|
|
173
|
+
});
|
|
174
|
+
await poller.poll();
|
|
175
|
+
return poller;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Deletes the solution in the subscription.
|
|
179
|
+
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
180
|
+
* @param solutionName User Solution Name.
|
|
181
|
+
* @param options The options parameters.
|
|
182
|
+
*/
|
|
183
|
+
async beginDeleteAndWait(resourceGroupName, solutionName, options) {
|
|
184
|
+
const poller = await this.beginDelete(resourceGroupName, solutionName, options);
|
|
185
|
+
return poller.pollUntilDone();
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Retrieves the user solution.
|
|
189
|
+
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
190
|
+
* @param solutionName User Solution Name.
|
|
191
|
+
* @param options The options parameters.
|
|
192
|
+
*/
|
|
193
|
+
get(resourceGroupName, solutionName, options) {
|
|
194
|
+
return this.client.sendOperationRequest({ resourceGroupName, solutionName, options }, getOperationSpec);
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Retrieves the solution list. It will retrieve both first party and third party solutions
|
|
198
|
+
* @param resourceGroupName The name of the resource group to get. The name is case insensitive.
|
|
199
|
+
* @param options The options parameters.
|
|
200
|
+
*/
|
|
201
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
202
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Retrieves the solution list. It will retrieve both first party and third party solutions
|
|
206
|
+
* @param options The options parameters.
|
|
207
|
+
*/
|
|
208
|
+
listBySubscription(options) {
|
|
209
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
exports.SolutionsImpl = SolutionsImpl;
|
|
213
|
+
// Operation Specifications
|
|
214
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
215
|
+
const createOrUpdateOperationSpec = {
|
|
216
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/solutions/{solutionName}",
|
|
217
|
+
httpMethod: "PUT",
|
|
218
|
+
responses: {
|
|
219
|
+
200: {
|
|
220
|
+
bodyMapper: Mappers.Solution
|
|
221
|
+
},
|
|
222
|
+
201: {
|
|
223
|
+
bodyMapper: Mappers.Solution
|
|
224
|
+
},
|
|
225
|
+
202: {
|
|
226
|
+
bodyMapper: Mappers.Solution
|
|
227
|
+
},
|
|
228
|
+
204: {
|
|
229
|
+
bodyMapper: Mappers.Solution
|
|
230
|
+
},
|
|
231
|
+
default: {
|
|
232
|
+
bodyMapper: Mappers.CodeMessageError
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
requestBody: Parameters.parameters,
|
|
236
|
+
queryParameters: [Parameters.apiVersion],
|
|
237
|
+
urlParameters: [
|
|
238
|
+
Parameters.$host,
|
|
239
|
+
Parameters.subscriptionId,
|
|
240
|
+
Parameters.resourceGroupName,
|
|
241
|
+
Parameters.solutionName
|
|
242
|
+
],
|
|
243
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
244
|
+
mediaType: "json",
|
|
245
|
+
serializer
|
|
246
|
+
};
|
|
247
|
+
const updateOperationSpec = {
|
|
248
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/solutions/{solutionName}",
|
|
249
|
+
httpMethod: "PATCH",
|
|
250
|
+
responses: {
|
|
251
|
+
200: {
|
|
252
|
+
bodyMapper: Mappers.Solution
|
|
253
|
+
},
|
|
254
|
+
201: {
|
|
255
|
+
bodyMapper: Mappers.Solution
|
|
256
|
+
},
|
|
257
|
+
202: {
|
|
258
|
+
bodyMapper: Mappers.Solution
|
|
259
|
+
},
|
|
260
|
+
204: {
|
|
261
|
+
bodyMapper: Mappers.Solution
|
|
262
|
+
},
|
|
263
|
+
default: {
|
|
264
|
+
bodyMapper: Mappers.CodeMessageError
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
requestBody: Parameters.parameters1,
|
|
268
|
+
queryParameters: [Parameters.apiVersion],
|
|
269
|
+
urlParameters: [
|
|
270
|
+
Parameters.$host,
|
|
271
|
+
Parameters.subscriptionId,
|
|
272
|
+
Parameters.resourceGroupName,
|
|
273
|
+
Parameters.solutionName
|
|
274
|
+
],
|
|
275
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
276
|
+
mediaType: "json",
|
|
277
|
+
serializer
|
|
278
|
+
};
|
|
279
|
+
const deleteOperationSpec = {
|
|
280
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/solutions/{solutionName}",
|
|
281
|
+
httpMethod: "DELETE",
|
|
282
|
+
responses: {
|
|
283
|
+
200: {},
|
|
284
|
+
201: {},
|
|
285
|
+
202: {},
|
|
286
|
+
204: {},
|
|
287
|
+
default: {
|
|
288
|
+
bodyMapper: Mappers.CodeMessageError
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
queryParameters: [Parameters.apiVersion],
|
|
292
|
+
urlParameters: [
|
|
293
|
+
Parameters.$host,
|
|
294
|
+
Parameters.subscriptionId,
|
|
295
|
+
Parameters.resourceGroupName,
|
|
296
|
+
Parameters.solutionName
|
|
297
|
+
],
|
|
298
|
+
headerParameters: [Parameters.accept],
|
|
299
|
+
serializer
|
|
300
|
+
};
|
|
301
|
+
const getOperationSpec = {
|
|
302
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/solutions/{solutionName}",
|
|
303
|
+
httpMethod: "GET",
|
|
304
|
+
responses: {
|
|
305
|
+
200: {
|
|
306
|
+
bodyMapper: Mappers.Solution
|
|
307
|
+
},
|
|
308
|
+
default: {
|
|
309
|
+
bodyMapper: Mappers.CodeMessageError
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
queryParameters: [Parameters.apiVersion],
|
|
313
|
+
urlParameters: [
|
|
314
|
+
Parameters.$host,
|
|
315
|
+
Parameters.subscriptionId,
|
|
316
|
+
Parameters.resourceGroupName,
|
|
317
|
+
Parameters.solutionName
|
|
318
|
+
],
|
|
319
|
+
headerParameters: [Parameters.accept],
|
|
320
|
+
serializer
|
|
321
|
+
};
|
|
322
|
+
const listByResourceGroupOperationSpec = {
|
|
323
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/solutions",
|
|
324
|
+
httpMethod: "GET",
|
|
325
|
+
responses: {
|
|
326
|
+
200: {
|
|
327
|
+
bodyMapper: Mappers.SolutionPropertiesList
|
|
328
|
+
},
|
|
329
|
+
default: {
|
|
330
|
+
bodyMapper: Mappers.CodeMessageError
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
queryParameters: [Parameters.apiVersion],
|
|
334
|
+
urlParameters: [
|
|
335
|
+
Parameters.$host,
|
|
336
|
+
Parameters.subscriptionId,
|
|
337
|
+
Parameters.resourceGroupName
|
|
338
|
+
],
|
|
339
|
+
headerParameters: [Parameters.accept],
|
|
340
|
+
serializer
|
|
341
|
+
};
|
|
342
|
+
const listBySubscriptionOperationSpec = {
|
|
343
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.OperationsManagement/solutions",
|
|
344
|
+
httpMethod: "GET",
|
|
345
|
+
responses: {
|
|
346
|
+
200: {
|
|
347
|
+
bodyMapper: Mappers.SolutionPropertiesList
|
|
348
|
+
},
|
|
349
|
+
default: {
|
|
350
|
+
bodyMapper: Mappers.CodeMessageError
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
queryParameters: [Parameters.apiVersion],
|
|
354
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
355
|
+
headerParameters: [Parameters.accept],
|
|
356
|
+
serializer
|
|
357
|
+
};
|
|
358
|
+
//# sourceMappingURL=solutions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solutions.js","sourceRoot":"","sources":["../../../src/operations/solutions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAiBxC,6CAA6C;AAC7C,MAAa,aAAa;IACP,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;O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;SACrC;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 { Solutions } 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 { OperationsManagementClient } from \"../operationsManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n Solution,\n SolutionsCreateOrUpdateOptionalParams,\n SolutionsCreateOrUpdateResponse,\n SolutionPatch,\n SolutionsUpdateOptionalParams,\n SolutionsUpdateResponse,\n SolutionsDeleteOptionalParams,\n SolutionsGetOptionalParams,\n SolutionsGetResponse,\n SolutionsListByResourceGroupOptionalParams,\n SolutionsListByResourceGroupResponse,\n SolutionsListBySubscriptionOptionalParams,\n SolutionsListBySubscriptionResponse\n} from \"../models/index.js\";\n\n/** Class containing Solutions operations. */\nexport class SolutionsImpl implements Solutions {\n private readonly client: OperationsManagementClient;\n\n /**\n * Initialize a new instance of the class Solutions class.\n * @param client Reference to the service client\n */\n constructor(client: OperationsManagementClient) {\n this.client = client;\n }\n\n /**\n * Creates or updates the Solution.\n * @param resourceGroupName The name of the resource group to get. The name is case insensitive.\n * @param solutionName User Solution Name.\n * @param parameters The parameters required to create OMS Solution.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n solutionName: string,\n parameters: Solution,\n options?: SolutionsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<SolutionsCreateOrUpdateResponse>,\n SolutionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<SolutionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, solutionName, parameters, options },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates the Solution.\n * @param resourceGroupName The name of the resource group to get. The name is case insensitive.\n * @param solutionName User Solution Name.\n * @param parameters The parameters required to create OMS Solution.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n solutionName: string,\n parameters: Solution,\n options?: SolutionsCreateOrUpdateOptionalParams\n ): Promise<SolutionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n solutionName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Patch a Solution. Only updating tags supported.\n * @param resourceGroupName The name of the resource group to get. The name is case insensitive.\n * @param solutionName User Solution Name.\n * @param parameters The parameters required to patch a Solution.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n solutionName: string,\n parameters: SolutionPatch,\n options?: SolutionsUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<SolutionsUpdateResponse>,\n SolutionsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<SolutionsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, solutionName, parameters, options },\n updateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Patch a Solution. Only updating tags supported.\n * @param resourceGroupName The name of the resource group to get. The name is case insensitive.\n * @param solutionName User Solution Name.\n * @param parameters The parameters required to patch a Solution.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n solutionName: string,\n parameters: SolutionPatch,\n options?: SolutionsUpdateOptionalParams\n ): Promise<SolutionsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n solutionName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the solution in the subscription.\n * @param resourceGroupName The name of the resource group to get. The name is case insensitive.\n * @param solutionName User Solution Name.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n solutionName: string,\n options?: SolutionsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, solutionName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the solution in the subscription.\n * @param resourceGroupName The name of the resource group to get. The name is case insensitive.\n * @param solutionName User Solution Name.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n solutionName: string,\n options?: SolutionsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n solutionName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Retrieves the user solution.\n * @param resourceGroupName The name of the resource group to get. The name is case insensitive.\n * @param solutionName User Solution Name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n solutionName: string,\n options?: SolutionsGetOptionalParams\n ): Promise<SolutionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, solutionName, options },\n getOperationSpec\n );\n }\n\n /**\n * Retrieves the solution list. It will retrieve both first party and third party solutions\n * @param resourceGroupName The name of the resource group to get. The name is case insensitive.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: SolutionsListByResourceGroupOptionalParams\n ): Promise<SolutionsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Retrieves the solution list. It will retrieve both first party and third party solutions\n * @param options The options parameters.\n */\n listBySubscription(\n options?: SolutionsListBySubscriptionOptionalParams\n ): Promise<SolutionsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/solutions/{solutionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Solution\n },\n 201: {\n bodyMapper: Mappers.Solution\n },\n 202: {\n bodyMapper: Mappers.Solution\n },\n 204: {\n bodyMapper: Mappers.Solution\n },\n default: {\n bodyMapper: Mappers.CodeMessageError\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.solutionName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/solutions/{solutionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Solution\n },\n 201: {\n bodyMapper: Mappers.Solution\n },\n 202: {\n bodyMapper: Mappers.Solution\n },\n 204: {\n bodyMapper: Mappers.Solution\n },\n default: {\n bodyMapper: Mappers.CodeMessageError\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.solutionName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/solutions/{solutionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CodeMessageError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.solutionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/solutions/{solutionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Solution\n },\n default: {\n bodyMapper: Mappers.CodeMessageError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.solutionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/solutions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SolutionPropertiesList\n },\n default: {\n bodyMapper: Mappers.CodeMessageError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.OperationsManagement/solutions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SolutionPropertiesList\n },\n default: {\n bodyMapper: Mappers.CodeMessageError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC"}
|