@azure/arm-oep 1.0.0-beta.3 → 1.0.0-beta.4
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 +29 -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 -4
- 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 +14 -14
- package/{dist-esm/src → dist/browser}/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +9 -4
- 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}/openEnergyPlatformManagementServiceAPIs.d.ts +2 -2
- package/dist/browser/openEnergyPlatformManagementServiceAPIs.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/openEnergyPlatformManagementServiceAPIs.js +32 -24
- package/dist/browser/openEnergyPlatformManagementServiceAPIs.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/energyServices.d.ts +3 -3
- package/dist/browser/operations/energyServices.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/energyServices.js +124 -152
- package/dist/browser/operations/energyServices.js.map +1 -0
- package/dist/browser/operations/index.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +3 -3
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/locations.d.ts +3 -3
- package/dist/browser/operations/locations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/locations.js +3 -2
- package/dist/browser/operations/locations.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 +3 -2
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/energyServices.d.ts +1 -1
- package/dist/browser/operationsInterfaces/energyServices.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/energyServices.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +3 -3
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/locations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/locations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/locations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
- 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/{types/arm-oep.d.ts → dist/commonjs/models/index.d.ts} +368 -520
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +65 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +17 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +462 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +13 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +116 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/openEnergyPlatformManagementServiceAPIs.d.ts +22 -0
- package/dist/commonjs/openEnergyPlatformManagementServiceAPIs.d.ts.map +1 -0
- package/dist/commonjs/openEnergyPlatformManagementServiceAPIs.js +115 -0
- package/dist/commonjs/openEnergyPlatformManagementServiceAPIs.js.map +1 -0
- package/dist/commonjs/operations/energyServices.d.ts +95 -0
- package/dist/commonjs/operations/energyServices.d.ts.map +1 -0
- package/dist/commonjs/operations/energyServices.js +429 -0
- package/dist/commonjs/operations/energyServices.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +4 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +14 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/locations.d.ts +19 -0
- package/dist/commonjs/operations/locations.d.ts.map +1 -0
- package/dist/commonjs/operations/locations.js +54 -0
- package/dist/commonjs/operations/locations.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +18 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +52 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/energyServices.d.ts +59 -0
- package/dist/commonjs/operationsInterfaces/energyServices.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/energyServices.js +10 -0
- package/dist/commonjs/operationsInterfaces/energyServices.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +14 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/locations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/locations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/locations.js +10 -0
- package/dist/commonjs/operationsInterfaces/locations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +10 -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/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 -5
- 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 +368 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +62 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +17 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +459 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +13 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +113 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/openEnergyPlatformManagementServiceAPIs.d.ts +22 -0
- package/dist/esm/openEnergyPlatformManagementServiceAPIs.d.ts.map +1 -0
- package/dist/esm/openEnergyPlatformManagementServiceAPIs.js +110 -0
- package/dist/esm/openEnergyPlatformManagementServiceAPIs.js.map +1 -0
- package/dist/esm/operations/energyServices.d.ts +95 -0
- package/dist/esm/operations/energyServices.d.ts.map +1 -0
- package/dist/esm/operations/energyServices.js +424 -0
- package/dist/esm/operations/energyServices.js.map +1 -0
- package/dist/esm/operations/index.d.ts +4 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +11 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/locations.d.ts +19 -0
- package/dist/esm/operations/locations.d.ts.map +1 -0
- package/dist/esm/operations/locations.js +49 -0
- package/dist/esm/operations/locations.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +18 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +47 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/energyServices.d.ts +59 -0
- package/dist/esm/operationsInterfaces/energyServices.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/energyServices.js} +2 -4
- package/dist/esm/operationsInterfaces/energyServices.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +4 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +11 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/locations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/locations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/locations.js +9 -0
- package/dist/esm/operationsInterfaces/locations.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +10 -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/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 +368 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +62 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +17 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +459 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +13 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +113 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/openEnergyPlatformManagementServiceAPIs.d.ts +22 -0
- package/dist/react-native/openEnergyPlatformManagementServiceAPIs.d.ts.map +1 -0
- package/dist/react-native/openEnergyPlatformManagementServiceAPIs.js +110 -0
- package/dist/react-native/openEnergyPlatformManagementServiceAPIs.js.map +1 -0
- package/dist/react-native/operations/energyServices.d.ts +95 -0
- package/dist/react-native/operations/energyServices.d.ts.map +1 -0
- package/dist/react-native/operations/energyServices.js +424 -0
- package/dist/react-native/operations/energyServices.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +4 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +11 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/locations.d.ts +19 -0
- package/dist/react-native/operations/locations.d.ts.map +1 -0
- package/dist/react-native/operations/locations.js +49 -0
- package/dist/react-native/operations/locations.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +18 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +47 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/energyServices.d.ts +59 -0
- package/dist/react-native/operationsInterfaces/energyServices.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/energyServices.js +9 -0
- package/dist/react-native/operationsInterfaces/energyServices.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +11 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/locations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/locations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/locations.js +9 -0
- package/dist/react-native/operationsInterfaces/locations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +10 -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/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 +86 -77
- package/dist/index.js +0 -1371
- 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/energyServicesCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/energyServicesCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/energyServicesCreateSample.js +0 -31
- package/dist-esm/samples-dev/energyServicesCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/energyServicesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/energyServicesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/energyServicesDeleteSample.js +0 -31
- package/dist-esm/samples-dev/energyServicesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/energyServicesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/energyServicesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/energyServicesGetSample.js +0 -31
- package/dist-esm/samples-dev/energyServicesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/energyServicesListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/energyServicesListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/energyServicesListByResourceGroupSample.js +0 -44
- package/dist-esm/samples-dev/energyServicesListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/energyServicesListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/energyServicesListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/energyServicesListBySubscriptionSample.js +0 -43
- package/dist-esm/samples-dev/energyServicesListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/energyServicesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/energyServicesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/energyServicesUpdateSample.js +0 -31
- package/dist-esm/samples-dev/energyServicesUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/locationsCheckNameAvailability.d.ts +0 -2
- package/dist-esm/samples-dev/locationsCheckNameAvailability.d.ts.map +0 -1
- package/dist-esm/samples-dev/locationsCheckNameAvailability.js +0 -33
- package/dist-esm/samples-dev/locationsCheckNameAvailability.js.map +0 -1
- package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.d.ts +0 -2
- package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.js +0 -33
- package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.js.map +0 -1
- package/dist-esm/samples-dev/oepResourceCreate.d.ts +0 -2
- package/dist-esm/samples-dev/oepResourceCreate.d.ts.map +0 -1
- package/dist-esm/samples-dev/oepResourceCreate.js +0 -31
- package/dist-esm/samples-dev/oepResourceCreate.js.map +0 -1
- package/dist-esm/samples-dev/oepResourceDelete.d.ts +0 -2
- package/dist-esm/samples-dev/oepResourceDelete.d.ts.map +0 -1
- package/dist-esm/samples-dev/oepResourceDelete.js +0 -31
- package/dist-esm/samples-dev/oepResourceDelete.js.map +0 -1
- package/dist-esm/samples-dev/oepResourceGet.d.ts +0 -2
- package/dist-esm/samples-dev/oepResourceGet.d.ts.map +0 -1
- package/dist-esm/samples-dev/oepResourceGet.js +0 -31
- package/dist-esm/samples-dev/oepResourceGet.js.map +0 -1
- package/dist-esm/samples-dev/oepResourceListByResourceGroup.d.ts +0 -2
- package/dist-esm/samples-dev/oepResourceListByResourceGroup.d.ts.map +0 -1
- package/dist-esm/samples-dev/oepResourceListByResourceGroup.js +0 -44
- package/dist-esm/samples-dev/oepResourceListByResourceGroup.js.map +0 -1
- package/dist-esm/samples-dev/oepResourceListBySubscriptionId.d.ts +0 -2
- package/dist-esm/samples-dev/oepResourceListBySubscriptionId.d.ts.map +0 -1
- package/dist-esm/samples-dev/oepResourceListBySubscriptionId.js +0 -43
- package/dist-esm/samples-dev/oepResourceListBySubscriptionId.js.map +0 -1
- package/dist-esm/samples-dev/oepResourceUpdate.d.ts +0 -2
- package/dist-esm/samples-dev/oepResourceUpdate.d.ts.map +0 -1
- package/dist-esm/samples-dev/oepResourceUpdate.js +0 -31
- package/dist-esm/samples-dev/oepResourceUpdate.js.map +0 -1
- package/dist-esm/samples-dev/operationsList.d.ts +0 -2
- package/dist-esm/samples-dev/operationsList.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsList.js +0 -29
- package/dist-esm/samples-dev/operationsList.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 -29
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -6
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js.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/openEnergyPlatformManagementServiceAPIs.d.ts.map +0 -1
- package/dist-esm/src/openEnergyPlatformManagementServiceAPIs.js.map +0 -1
- package/dist-esm/src/operations/energyServices.d.ts.map +0 -1
- package/dist-esm/src/operations/energyServices.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -4
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/locations.d.ts.map +0 -1
- package/dist-esm/src/operations/locations.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/operationsInterfaces/energyServices.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/energyServices.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/locations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- 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 -420
- package/src/models/mappers.ts +0 -475
- package/src/models/parameters.ts +0 -133
- package/src/openEnergyPlatformManagementServiceAPIs.ts +0 -148
- package/src/operations/energyServices.ts +0 -597
- package/src/operations/locations.ts +0 -67
- package/src/operations/operations.ts +0 -59
- package/src/operationsInterfaces/energyServices.ts +0 -113
- package/src/operationsInterfaces/index.ts +0 -11
- package/src/operationsInterfaces/locations.ts +0 -26
- package/src/operationsInterfaces/operations.ts +0 -21
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- /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/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/energyServices.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/locations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/review/{arm-oep.api.md → arm-oep-node.api.md} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openEnergyPlatformManagementServiceAPIs.js","sourceRoot":"","sources":["../../src/openEnergyPlatformManagementServiceAPIs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,cAAc,EACf,MAAM,uBAAuB,CAAC;AAI/B,MAAM,OAAO,uCAAwC,SAAQ,UAAU,CAAC,aAAa;IACnF,KAAK,CAAS;IACd,cAAc,CAAS;IACvB,UAAU,CAAS;IAEnB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OA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xB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,SAAS,CAAY;IACrB,cAAc,CAAiB;IAC/B,UAAU,CAAa;CACxB","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n LocationsImpl,\n EnergyServicesImpl,\n OperationsImpl\n} from \"./operations/index.js\";\nimport { Locations, EnergyServices, Operations } from \"./operationsInterfaces/index.js\";\nimport { OpenEnergyPlatformManagementServiceAPIsOptionalParams } from \"./models/index.js\";\n\nexport class OpenEnergyPlatformManagementServiceAPIs extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the OpenEnergyPlatformManagementServiceAPIs class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: OpenEnergyPlatformManagementServiceAPIsOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: OpenEnergyPlatformManagementServiceAPIsOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-oep/1.0.0-beta.4`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2021-06-01-preview\";\n this.locations = new LocationsImpl(this);\n this.energyServices = new EnergyServicesImpl(this);\n this.operations = new OperationsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n locations: Locations;\n energyServices: EnergyServices;\n operations: Operations;\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { EnergyServices } from "../operationsInterfaces";
|
|
3
|
-
import { OpenEnergyPlatformManagementServiceAPIs } from "../openEnergyPlatformManagementServiceAPIs";
|
|
2
|
+
import { EnergyServices } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { OpenEnergyPlatformManagementServiceAPIs } from "../openEnergyPlatformManagementServiceAPIs.js";
|
|
4
4
|
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
5
|
-
import { EnergyService, EnergyServicesListByResourceGroupOptionalParams, EnergyServicesListBySubscriptionOptionalParams, EnergyServicesGetOptionalParams, EnergyServicesGetResponse, EnergyServicesCreateOptionalParams, EnergyServicesCreateResponse, EnergyServicesUpdateOptionalParams, EnergyServicesUpdateResponse, EnergyServicesDeleteOptionalParams } from "../models";
|
|
5
|
+
import { EnergyService, EnergyServicesListByResourceGroupOptionalParams, EnergyServicesListBySubscriptionOptionalParams, EnergyServicesGetOptionalParams, EnergyServicesGetResponse, EnergyServicesCreateOptionalParams, EnergyServicesCreateResponse, EnergyServicesUpdateOptionalParams, EnergyServicesUpdateResponse, EnergyServicesDeleteOptionalParams } from "../models/index.js";
|
|
6
6
|
/** Class containing EnergyServices operations. */
|
|
7
7
|
export declare class EnergyServicesImpl implements EnergyServices {
|
|
8
8
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energyServices.d.ts","sourceRoot":"","sources":["../../../src/operations/energyServices.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAIlE,OAAO,EAAE,uCAAuC,EAAE,MAAM,+CAA+C,CAAC;AACxG,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,aAAa,EAEb,+CAA+C,EAG/C,8CAA8C,EAE9C,+BAA+B,EAC/B,yBAAyB,EACzB,kCAAkC,EAClC,4BAA4B,EAC5B,kCAAkC,EAClC,4BAA4B,EAC5B,kCAAkC,EAGnC,MAAM,oBAAoB,CAAC;AAG5B,kDAAkD;AAClD,qBAAa,kBAAmB,YAAW,cAAc;IACvD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0C;IAEjE;;;OAGG;gBACS,MAAM,EAAE,uCAAuC;IAI3D;;;;OAIG;IACI,mBAAmB,CACxB,iBAAiB,EAAE,MAAM,EACzB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E,kCAAkC,GAC3C,OAAO,CAAC,IAAI,CAAC;IAShB;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;IAWhC;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;CAShC"}
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
8
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
|
-
import * as Mappers from "../models/mappers";
|
|
12
|
-
import * as Parameters from "../models/parameters";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
12
|
import { LroEngine } from "@azure/core-lro";
|
|
14
|
-
import { LroImpl } from "../lroImpl";
|
|
13
|
+
import { LroImpl } from "../lroImpl.js";
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing EnergyServices operations. */
|
|
17
16
|
export class EnergyServicesImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class EnergyServices class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -37,50 +37,35 @@ export class EnergyServicesImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
72
|
-
const page = _c.value;
|
|
73
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
77
|
-
finally {
|
|
78
|
-
try {
|
|
79
|
-
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
80
|
-
}
|
|
81
|
-
finally { if (e_1) throw e_1.error; }
|
|
82
|
-
}
|
|
83
|
-
});
|
|
65
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
66
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
84
69
|
}
|
|
85
70
|
/**
|
|
86
71
|
* Lists a collection of oep resources under the given Azure Subscription ID.
|
|
@@ -96,50 +81,35 @@ export class EnergyServicesImpl {
|
|
|
96
81
|
return this;
|
|
97
82
|
},
|
|
98
83
|
byPage: (settings) => {
|
|
99
|
-
if (settings
|
|
84
|
+
if (settings?.maxPageSize) {
|
|
100
85
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
101
86
|
}
|
|
102
87
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
103
88
|
}
|
|
104
89
|
};
|
|
105
90
|
}
|
|
106
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
});
|
|
91
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
92
|
+
let result;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._listBySubscription(options);
|
|
96
|
+
let page = result.value || [];
|
|
97
|
+
continuationToken = result.nextLink;
|
|
98
|
+
setContinuationToken(page, continuationToken);
|
|
99
|
+
yield page;
|
|
100
|
+
}
|
|
101
|
+
while (continuationToken) {
|
|
102
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
107
|
+
}
|
|
125
108
|
}
|
|
126
|
-
listBySubscriptionPagingAll(options) {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
131
|
-
const page = _c.value;
|
|
132
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
136
|
-
finally {
|
|
137
|
-
try {
|
|
138
|
-
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
139
|
-
}
|
|
140
|
-
finally { if (e_2) throw e_2.error; }
|
|
141
|
-
}
|
|
142
|
-
});
|
|
109
|
+
async *listBySubscriptionPagingAll(options) {
|
|
110
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
143
113
|
}
|
|
144
114
|
/**
|
|
145
115
|
* Returns list of oep resources..
|
|
@@ -171,39 +141,42 @@ export class EnergyServicesImpl {
|
|
|
171
141
|
* @param resourceName The resource name.
|
|
172
142
|
* @param options The options parameters.
|
|
173
143
|
*/
|
|
174
|
-
beginCreate(resourceGroupName, resourceName, options) {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
144
|
+
async beginCreate(resourceGroupName, resourceName, options) {
|
|
145
|
+
const directSendOperation = async (args, spec) => {
|
|
146
|
+
return this.client.sendOperationRequest(args, spec);
|
|
147
|
+
};
|
|
148
|
+
const sendOperation = async (args, spec) => {
|
|
149
|
+
let currentRawResponse = undefined;
|
|
150
|
+
const providedCallback = args.options?.onResponse;
|
|
151
|
+
const callback = (rawResponse, flatResponse) => {
|
|
152
|
+
currentRawResponse = rawResponse;
|
|
153
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
154
|
+
};
|
|
155
|
+
const updatedArgs = {
|
|
156
|
+
...args,
|
|
157
|
+
options: {
|
|
158
|
+
...args.options,
|
|
159
|
+
onResponse: callback
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
163
|
+
return {
|
|
164
|
+
flatResponse,
|
|
165
|
+
rawResponse: {
|
|
166
|
+
statusCode: currentRawResponse.status,
|
|
167
|
+
body: currentRawResponse.parsedBody,
|
|
168
|
+
headers: currentRawResponse.headers.toJSON()
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, options }, createOperationSpec);
|
|
173
|
+
const poller = new LroEngine(lro, {
|
|
174
|
+
resumeFrom: options?.resumeFrom,
|
|
175
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
176
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
206
177
|
});
|
|
178
|
+
await poller.poll();
|
|
179
|
+
return poller;
|
|
207
180
|
}
|
|
208
181
|
/**
|
|
209
182
|
* Method that gets called if subscribed for ResourceCreationBegin trigger.
|
|
@@ -211,11 +184,9 @@ export class EnergyServicesImpl {
|
|
|
211
184
|
* @param resourceName The resource name.
|
|
212
185
|
* @param options The options parameters.
|
|
213
186
|
*/
|
|
214
|
-
beginCreateAndWait(resourceGroupName, resourceName, options) {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
return poller.pollUntilDone();
|
|
218
|
-
});
|
|
187
|
+
async beginCreateAndWait(resourceGroupName, resourceName, options) {
|
|
188
|
+
const poller = await this.beginCreate(resourceGroupName, resourceName, options);
|
|
189
|
+
return poller.pollUntilDone();
|
|
219
190
|
}
|
|
220
191
|
/**
|
|
221
192
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -231,38 +202,41 @@ export class EnergyServicesImpl {
|
|
|
231
202
|
* @param resourceName The resource name.
|
|
232
203
|
* @param options The options parameters.
|
|
233
204
|
*/
|
|
234
|
-
beginDelete(resourceGroupName, resourceName, options) {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
205
|
+
async beginDelete(resourceGroupName, resourceName, options) {
|
|
206
|
+
const directSendOperation = async (args, spec) => {
|
|
207
|
+
return this.client.sendOperationRequest(args, spec);
|
|
208
|
+
};
|
|
209
|
+
const sendOperation = async (args, spec) => {
|
|
210
|
+
let currentRawResponse = undefined;
|
|
211
|
+
const providedCallback = args.options?.onResponse;
|
|
212
|
+
const callback = (rawResponse, flatResponse) => {
|
|
213
|
+
currentRawResponse = rawResponse;
|
|
214
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
215
|
+
};
|
|
216
|
+
const updatedArgs = {
|
|
217
|
+
...args,
|
|
218
|
+
options: {
|
|
219
|
+
...args.options,
|
|
220
|
+
onResponse: callback
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
224
|
+
return {
|
|
225
|
+
flatResponse,
|
|
226
|
+
rawResponse: {
|
|
227
|
+
statusCode: currentRawResponse.status,
|
|
228
|
+
body: currentRawResponse.parsedBody,
|
|
229
|
+
headers: currentRawResponse.headers.toJSON()
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, options }, deleteOperationSpec);
|
|
234
|
+
const poller = new LroEngine(lro, {
|
|
235
|
+
resumeFrom: options?.resumeFrom,
|
|
236
|
+
intervalInMs: options?.updateIntervalInMs
|
|
265
237
|
});
|
|
238
|
+
await poller.poll();
|
|
239
|
+
return poller;
|
|
266
240
|
}
|
|
267
241
|
/**
|
|
268
242
|
* Deletes oep resource
|
|
@@ -270,11 +244,9 @@ export class EnergyServicesImpl {
|
|
|
270
244
|
* @param resourceName The resource name.
|
|
271
245
|
* @param options The options parameters.
|
|
272
246
|
*/
|
|
273
|
-
beginDeleteAndWait(resourceGroupName, resourceName, options) {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
return poller.pollUntilDone();
|
|
277
|
-
});
|
|
247
|
+
async beginDeleteAndWait(resourceGroupName, resourceName, options) {
|
|
248
|
+
const poller = await this.beginDelete(resourceGroupName, resourceName, options);
|
|
249
|
+
return poller.pollUntilDone();
|
|
278
250
|
}
|
|
279
251
|
/**
|
|
280
252
|
* ListByResourceGroupNext
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energyServices.js","sourceRoot":"","sources":["../../../src/operations/energyServices.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,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAoBxC,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAA0C;IAEjE;;;OAGG;IACH,YAAY,MAA+C;QACzD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QACzB,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 { EnergyServices } 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 { OpenEnergyPlatformManagementServiceAPIs } from \"../openEnergyPlatformManagementServiceAPIs.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n EnergyService,\n EnergyServicesListByResourceGroupNextOptionalParams,\n EnergyServicesListByResourceGroupOptionalParams,\n EnergyServicesListByResourceGroupResponse,\n EnergyServicesListBySubscriptionNextOptionalParams,\n EnergyServicesListBySubscriptionOptionalParams,\n EnergyServicesListBySubscriptionResponse,\n EnergyServicesGetOptionalParams,\n EnergyServicesGetResponse,\n EnergyServicesCreateOptionalParams,\n EnergyServicesCreateResponse,\n EnergyServicesUpdateOptionalParams,\n EnergyServicesUpdateResponse,\n EnergyServicesDeleteOptionalParams,\n EnergyServicesListByResourceGroupNextResponse,\n EnergyServicesListBySubscriptionNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing EnergyServices operations. */\nexport class EnergyServicesImpl implements EnergyServices {\n private readonly client: OpenEnergyPlatformManagementServiceAPIs;\n\n /**\n * Initialize a new instance of the class EnergyServices class.\n * @param client Reference to the service client\n */\n constructor(client: OpenEnergyPlatformManagementServiceAPIs) {\n this.client = client;\n }\n\n /**\n * Returns list of oep resources..\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: EnergyServicesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<EnergyService> {\n const iter = this.listByResourceGroupPagingAll(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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: EnergyServicesListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<EnergyService[]> {\n let result: EnergyServicesListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(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._listByResourceGroupNext(\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 *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: EnergyServicesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<EnergyService> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists a collection of oep resources under the given Azure Subscription ID.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: EnergyServicesListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<EnergyService> {\n const iter = this.listBySubscriptionPagingAll(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.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: EnergyServicesListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<EnergyService[]> {\n let result: EnergyServicesListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(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._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: EnergyServicesListBySubscriptionOptionalParams\n ): AsyncIterableIterator<EnergyService> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Returns list of oep resources..\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: EnergyServicesListByResourceGroupOptionalParams\n ): Promise<EnergyServicesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Lists a collection of oep resources under the given Azure Subscription ID.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: EnergyServicesListBySubscriptionOptionalParams\n ): Promise<EnergyServicesListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Returns oep resource for a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The resource name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n options?: EnergyServicesGetOptionalParams\n ): Promise<EnergyServicesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Method that gets called if subscribed for ResourceCreationBegin trigger.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The resource name.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n resourceName: string,\n options?: EnergyServicesCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<EnergyServicesCreateResponse>,\n EnergyServicesCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<EnergyServicesCreateResponse> => {\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, resourceName, options },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Method that gets called if subscribed for ResourceCreationBegin trigger.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The resource name.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n resourceName: string,\n options?: EnergyServicesCreateOptionalParams\n ): Promise<EnergyServicesCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n resourceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The resource name.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n options?: EnergyServicesUpdateOptionalParams\n ): Promise<EnergyServicesUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n updateOperationSpec\n );\n }\n\n /**\n * Deletes oep resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The resource name.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n resourceName: string,\n options?: EnergyServicesDeleteOptionalParams\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, resourceName, 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 oep resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The resource name.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n resourceName: string,\n options?: EnergyServicesDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n resourceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: EnergyServicesListByResourceGroupNextOptionalParams\n ): Promise<EnergyServicesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: EnergyServicesListBySubscriptionNextOptionalParams\n ): Promise<EnergyServicesListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenEnergyPlatform/energyServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EnergyServiceList\n },\n default: {}\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.OpenEnergyPlatform/energyServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EnergyServiceList\n },\n default: {}\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenEnergyPlatform/energyServices/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EnergyService\n },\n default: {}\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenEnergyPlatform/energyServices/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.EnergyService\n },\n 201: {\n bodyMapper: Mappers.EnergyService\n },\n 202: {\n bodyMapper: Mappers.EnergyService\n },\n 204: {\n bodyMapper: Mappers.EnergyService\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body1,\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\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.OpenEnergyPlatform/energyServices/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.EnergyService\n },\n default: {}\n },\n requestBody: Parameters.body2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\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.OpenEnergyPlatform/energyServices/{resourceName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EnergyServiceList\n },\n default: {}\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EnergyServiceList\n },\n default: {}\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
export * from "./locations";
|
|
9
|
-
export * from "./energyServices";
|
|
10
|
-
export * from "./operations";
|
|
8
|
+
export * from "./locations.js";
|
|
9
|
+
export * from "./energyServices.js";
|
|
10
|
+
export * from "./operations.js";
|
|
11
11
|
//# 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,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,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 \"./locations.js\";\nexport * from \"./energyServices.js\";\nexport * from \"./operations.js\";\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Locations } from "../operationsInterfaces";
|
|
2
|
-
import { OpenEnergyPlatformManagementServiceAPIs } from "../openEnergyPlatformManagementServiceAPIs";
|
|
3
|
-
import { CheckNameAvailabilityRequest, LocationsCheckNameAvailabilityOptionalParams, LocationsCheckNameAvailabilityResponse } from "../models";
|
|
1
|
+
import { Locations } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { OpenEnergyPlatformManagementServiceAPIs } from "../openEnergyPlatformManagementServiceAPIs.js";
|
|
3
|
+
import { CheckNameAvailabilityRequest, LocationsCheckNameAvailabilityOptionalParams, LocationsCheckNameAvailabilityResponse } from "../models/index.js";
|
|
4
4
|
/** Class containing Locations operations. */
|
|
5
5
|
export declare class LocationsImpl implements Locations {
|
|
6
6
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locations.d.ts","sourceRoot":"","sources":["../../../src/operations/locations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAI7D,OAAO,EAAE,uCAAuC,EAAE,MAAM,+CAA+C,CAAC;AACxG,OAAO,EACL,4BAA4B,EAC5B,4CAA4C,EAC5C,sCAAsC,EACvC,MAAM,oBAAoB,CAAC;AAE5B,6CAA6C;AAC7C,qBAAa,aAAc,YAAW,SAAS;IAC7C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0C;IAEjE;;;OAGG;gBACS,MAAM,EAAE,uCAAuC;IAI3D;;;;OAIG;IACH,qBAAqB,CACnB,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,sCAAsC,CAAC;CAMnD"}
|
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
import * as coreClient from "@azure/core-client";
|
|
9
|
-
import * as Mappers from "../models/mappers";
|
|
10
|
-
import * as Parameters from "../models/parameters";
|
|
9
|
+
import * as Mappers from "../models/mappers.js";
|
|
10
|
+
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing Locations operations. */
|
|
12
12
|
export class LocationsImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class Locations class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locations.js","sourceRoot":"","sources":["../../../src/operations/locations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,6CAA6C;AAC7C,MAAM,OAAO,aAAa;IACP,MAAM,CAA0C;IAEjE;;;OAGG;IACH,YAAY,MAA+C;QACzD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,qBAAqB,CACnB,IAAkC,EAClC,OAAsD;QAEtD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,IAAI,EAAE,OAAO,EAAE,EACjB,kCAAkC,CACnC,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EACF,8FAA8F;IAChG,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,IAAI;IAC5B,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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 { Locations } 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 { OpenEnergyPlatformManagementServiceAPIs } from \"../openEnergyPlatformManagementServiceAPIs.js\";\nimport {\n CheckNameAvailabilityRequest,\n LocationsCheckNameAvailabilityOptionalParams,\n LocationsCheckNameAvailabilityResponse\n} from \"../models/index.js\";\n\n/** Class containing Locations operations. */\nexport class LocationsImpl implements Locations {\n private readonly client: OpenEnergyPlatformManagementServiceAPIs;\n\n /**\n * Initialize a new instance of the class Locations class.\n * @param client Reference to the service client\n */\n constructor(client: OpenEnergyPlatformManagementServiceAPIs) {\n this.client = client;\n }\n\n /**\n * Checks the name availability of the resource with requested resource name.\n * @param body NameAvailabilityRequest object.\n * @param options The options parameters.\n */\n checkNameAvailability(\n body: CheckNameAvailabilityRequest,\n options?: LocationsCheckNameAvailabilityOptionalParams\n ): Promise<LocationsCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n { body, options },\n checkNameAvailabilityOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.OpenEnergyPlatform/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body,\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Operations } from "../operationsInterfaces";
|
|
2
|
-
import { OpenEnergyPlatformManagementServiceAPIs } from "../openEnergyPlatformManagementServiceAPIs";
|
|
3
|
-
import { OperationsListOptionalParams, OperationsListResponse } from "../models";
|
|
1
|
+
import { Operations } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { OpenEnergyPlatformManagementServiceAPIs } from "../openEnergyPlatformManagementServiceAPIs.js";
|
|
3
|
+
import { OperationsListOptionalParams, OperationsListResponse } from "../models/index.js";
|
|
4
4
|
/** Class containing Operations operations. */
|
|
5
5
|
export declare class OperationsImpl implements Operations {
|
|
6
6
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,uCAAuC,EAAE,MAAM,+CAA+C,CAAC;AACxG,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAE5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0C;IAEjE;;;OAGG;gBACS,MAAM,EAAE,uCAAuC;IAI3D;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;CAGnC"}
|
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
import * as coreClient from "@azure/core-client";
|
|
9
|
-
import * as Mappers from "../models/mappers";
|
|
10
|
-
import * as Parameters from "../models/parameters";
|
|
9
|
+
import * as Mappers from "../models/mappers.js";
|
|
10
|
+
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing Operations operations. */
|
|
12
12
|
export class OperationsImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class Operations class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAA0C;IAEjE;;;OAGG;IACH,YAAY,MAA+C;QACzD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,OAAsC;QAEtC,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,EAAE,oDAAoD;IAC1D,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;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 { 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 { OpenEnergyPlatformManagementServiceAPIs } from \"../openEnergyPlatformManagementServiceAPIs.js\";\nimport {\n OperationsListOptionalParams,\n OperationsListResponse\n} from \"../models/index.js\";\n\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: OpenEnergyPlatformManagementServiceAPIs;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: OpenEnergyPlatformManagementServiceAPIs) {\n this.client = client;\n }\n\n /**\n * Lists the available operations of Microsoft.OpenEnergyPlatform resource provider.\n * @param options The options parameters.\n */\n 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.OpenEnergyPlatform/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
2
|
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
3
|
-
import { EnergyService, EnergyServicesListByResourceGroupOptionalParams, EnergyServicesListBySubscriptionOptionalParams, EnergyServicesGetOptionalParams, EnergyServicesGetResponse, EnergyServicesCreateOptionalParams, EnergyServicesCreateResponse, EnergyServicesUpdateOptionalParams, EnergyServicesUpdateResponse, EnergyServicesDeleteOptionalParams } from "../models";
|
|
3
|
+
import { EnergyService, EnergyServicesListByResourceGroupOptionalParams, EnergyServicesListBySubscriptionOptionalParams, EnergyServicesGetOptionalParams, EnergyServicesGetResponse, EnergyServicesCreateOptionalParams, EnergyServicesCreateResponse, EnergyServicesUpdateOptionalParams, EnergyServicesUpdateResponse, EnergyServicesDeleteOptionalParams } from "../models/index.js";
|
|
4
4
|
/** Interface representing a EnergyServices. */
|
|
5
5
|
export interface EnergyServices {
|
|
6
6
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energyServices.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/energyServices.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,aAAa,EACb,+CAA+C,EAC/C,8CAA8C,EAC9C,+BAA+B,EAC/B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;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energyServices.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/energyServices.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport { PollerLike, PollOperationState } from \"@azure/core-lro\";\nimport {\n EnergyService,\n EnergyServicesListByResourceGroupOptionalParams,\n EnergyServicesListBySubscriptionOptionalParams,\n EnergyServicesGetOptionalParams,\n EnergyServicesGetResponse,\n EnergyServicesCreateOptionalParams,\n EnergyServicesCreateResponse,\n EnergyServicesUpdateOptionalParams,\n EnergyServicesUpdateResponse,\n EnergyServicesDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a EnergyServices. */\nexport interface EnergyServices {\n /**\n * Returns list of oep resources..\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: EnergyServicesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<EnergyService>;\n /**\n * Lists a collection of oep resources under the given Azure Subscription ID.\n * @param options The options parameters.\n */\n listBySubscription(\n options?: EnergyServicesListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<EnergyService>;\n /**\n * Returns oep resource for a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The resource name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n options?: EnergyServicesGetOptionalParams\n ): Promise<EnergyServicesGetResponse>;\n /**\n * Method that gets called if subscribed for ResourceCreationBegin trigger.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The resource name.\n * @param options The options parameters.\n */\n beginCreate(\n resourceGroupName: string,\n resourceName: string,\n options?: EnergyServicesCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<EnergyServicesCreateResponse>,\n EnergyServicesCreateResponse\n >\n >;\n /**\n * Method that gets called if subscribed for ResourceCreationBegin trigger.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The resource name.\n * @param options The options parameters.\n */\n beginCreateAndWait(\n resourceGroupName: string,\n resourceName: string,\n options?: EnergyServicesCreateOptionalParams\n ): Promise<EnergyServicesCreateResponse>;\n /**\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The resource name.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n options?: EnergyServicesUpdateOptionalParams\n ): Promise<EnergyServicesUpdateResponse>;\n /**\n * Deletes oep resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The resource name.\n * @param options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n resourceName: string,\n options?: EnergyServicesDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>>;\n /**\n * Deletes oep resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The resource name.\n * @param options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n resourceName: string,\n options?: EnergyServicesDeleteOptionalParams\n ): Promise<void>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
|