@azure/arm-oep 1.0.0-beta.2 → 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 +18 -2
- package/LICENSE +4 -4
- package/README.md +30 -20
- 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 +33 -16
- package/{dist-esm/src → dist/browser}/models/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/models/index.js +17 -0
- 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 +4 -2
- package/dist/browser/openEnergyPlatformManagementServiceAPIs.d.ts.map +1 -0
- package/dist/browser/openEnergyPlatformManagementServiceAPIs.js +110 -0
- 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 +132 -137
- 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/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/{types/arm-oep.d.ts → dist/commonjs/models/index.d.ts} +368 -492
- 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 -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 +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 +87 -74
- package/review/{arm-oep.api.md → arm-oep-node.api.md} +7 -20
- package/dist/index.js +0 -1269
- 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 -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/openEnergyPlatformManagementServiceAPIs.d.ts.map +0 -1
- package/dist-esm/src/openEnergyPlatformManagementServiceAPIs.js +0 -71
- 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/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 -403
- package/src/models/mappers.ts +0 -475
- package/src/models/parameters.ts +0 -133
- package/src/openEnergyPlatformManagementServiceAPIs.ts +0 -108
- package/src/operations/energyServices.ts +0 -568
- 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/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/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
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
|
+
import { LocationsImpl, EnergyServicesImpl, OperationsImpl } from "./operations/index.js";
|
|
11
|
+
export class OpenEnergyPlatformManagementServiceAPIs extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
subscriptionId;
|
|
14
|
+
apiVersion;
|
|
15
|
+
/**
|
|
16
|
+
* Initializes a new instance of the OpenEnergyPlatformManagementServiceAPIs class.
|
|
17
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
18
|
+
* @param subscriptionId The ID of the target subscription.
|
|
19
|
+
* @param options The parameter options
|
|
20
|
+
*/
|
|
21
|
+
constructor(credentials, subscriptionId, options) {
|
|
22
|
+
if (credentials === undefined) {
|
|
23
|
+
throw new Error("'credentials' cannot be null");
|
|
24
|
+
}
|
|
25
|
+
if (subscriptionId === undefined) {
|
|
26
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
27
|
+
}
|
|
28
|
+
// Initializing default values for options
|
|
29
|
+
if (!options) {
|
|
30
|
+
options = {};
|
|
31
|
+
}
|
|
32
|
+
const defaults = {
|
|
33
|
+
requestContentType: "application/json; charset=utf-8",
|
|
34
|
+
credential: credentials
|
|
35
|
+
};
|
|
36
|
+
const packageDetails = `azsdk-js-arm-oep/1.0.0-beta.4`;
|
|
37
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
38
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
39
|
+
: `${packageDetails}`;
|
|
40
|
+
const optionsWithDefaults = {
|
|
41
|
+
...defaults,
|
|
42
|
+
...options,
|
|
43
|
+
userAgentOptions: {
|
|
44
|
+
userAgentPrefix
|
|
45
|
+
},
|
|
46
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
47
|
+
};
|
|
48
|
+
super(optionsWithDefaults);
|
|
49
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
50
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
51
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
52
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
53
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
54
|
+
}
|
|
55
|
+
if (!options ||
|
|
56
|
+
!options.pipeline ||
|
|
57
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
58
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
59
|
+
this.pipeline.removePolicy({
|
|
60
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
61
|
+
});
|
|
62
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
63
|
+
credential: credentials,
|
|
64
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
65
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
66
|
+
challengeCallbacks: {
|
|
67
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
68
|
+
}
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
// Parameter assignments
|
|
72
|
+
this.subscriptionId = subscriptionId;
|
|
73
|
+
// Assigning values to Constant parameters
|
|
74
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
75
|
+
this.apiVersion = options.apiVersion || "2021-06-01-preview";
|
|
76
|
+
this.locations = new LocationsImpl(this);
|
|
77
|
+
this.energyServices = new EnergyServicesImpl(this);
|
|
78
|
+
this.operations = new OperationsImpl(this);
|
|
79
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
80
|
+
}
|
|
81
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
82
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
83
|
+
if (!apiVersion) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
const apiVersionPolicy = {
|
|
87
|
+
name: "CustomApiVersionPolicy",
|
|
88
|
+
async sendRequest(request, next) {
|
|
89
|
+
const param = request.url.split("?");
|
|
90
|
+
if (param.length > 1) {
|
|
91
|
+
const newParams = param[1].split("&").map((item) => {
|
|
92
|
+
if (item.indexOf("api-version") > -1) {
|
|
93
|
+
return "api-version=" + apiVersion;
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
return item;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
100
|
+
}
|
|
101
|
+
return next(request);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
105
|
+
}
|
|
106
|
+
locations;
|
|
107
|
+
energyServices;
|
|
108
|
+
operations;
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=openEnergyPlatformManagementServiceAPIs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openEnergyPlatformManagementServiceAPIs.js","sourceRoot":"","sources":["../../src/openEnergyPlatformManagementServiceAPIs.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n 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"]}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { EnergyServices } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { OpenEnergyPlatformManagementServiceAPIs } from "../openEnergyPlatformManagementServiceAPIs.js";
|
|
4
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
5
|
+
import { EnergyService, EnergyServicesListByResourceGroupOptionalParams, EnergyServicesListBySubscriptionOptionalParams, EnergyServicesGetOptionalParams, EnergyServicesGetResponse, EnergyServicesCreateOptionalParams, EnergyServicesCreateResponse, EnergyServicesUpdateOptionalParams, EnergyServicesUpdateResponse, EnergyServicesDeleteOptionalParams } from "../models/index.js";
|
|
6
|
+
/** Class containing EnergyServices operations. */
|
|
7
|
+
export declare class EnergyServicesImpl implements EnergyServices {
|
|
8
|
+
private readonly client;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of the class EnergyServices class.
|
|
11
|
+
* @param client Reference to the service client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client: OpenEnergyPlatformManagementServiceAPIs);
|
|
14
|
+
/**
|
|
15
|
+
* Returns list of oep resources..
|
|
16
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
listByResourceGroup(resourceGroupName: string, options?: EnergyServicesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<EnergyService>;
|
|
20
|
+
private listByResourceGroupPagingPage;
|
|
21
|
+
private listByResourceGroupPagingAll;
|
|
22
|
+
/**
|
|
23
|
+
* Lists a collection of oep resources under the given Azure Subscription ID.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
listBySubscription(options?: EnergyServicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<EnergyService>;
|
|
27
|
+
private listBySubscriptionPagingPage;
|
|
28
|
+
private listBySubscriptionPagingAll;
|
|
29
|
+
/**
|
|
30
|
+
* Returns list of oep resources..
|
|
31
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
32
|
+
* @param options The options parameters.
|
|
33
|
+
*/
|
|
34
|
+
private _listByResourceGroup;
|
|
35
|
+
/**
|
|
36
|
+
* Lists a collection of oep resources under the given Azure Subscription ID.
|
|
37
|
+
* @param options The options parameters.
|
|
38
|
+
*/
|
|
39
|
+
private _listBySubscription;
|
|
40
|
+
/**
|
|
41
|
+
* Returns oep resource for a given name.
|
|
42
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
43
|
+
* @param resourceName The resource name.
|
|
44
|
+
* @param options The options parameters.
|
|
45
|
+
*/
|
|
46
|
+
get(resourceGroupName: string, resourceName: string, options?: EnergyServicesGetOptionalParams): Promise<EnergyServicesGetResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Method that gets called if subscribed for ResourceCreationBegin trigger.
|
|
49
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
50
|
+
* @param resourceName The resource name.
|
|
51
|
+
* @param options The options parameters.
|
|
52
|
+
*/
|
|
53
|
+
beginCreate(resourceGroupName: string, resourceName: string, options?: EnergyServicesCreateOptionalParams): Promise<PollerLike<PollOperationState<EnergyServicesCreateResponse>, EnergyServicesCreateResponse>>;
|
|
54
|
+
/**
|
|
55
|
+
* Method that gets called if subscribed for ResourceCreationBegin trigger.
|
|
56
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
57
|
+
* @param resourceName The resource name.
|
|
58
|
+
* @param options The options parameters.
|
|
59
|
+
*/
|
|
60
|
+
beginCreateAndWait(resourceGroupName: string, resourceName: string, options?: EnergyServicesCreateOptionalParams): Promise<EnergyServicesCreateResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
63
|
+
* @param resourceName The resource name.
|
|
64
|
+
* @param options The options parameters.
|
|
65
|
+
*/
|
|
66
|
+
update(resourceGroupName: string, resourceName: string, options?: EnergyServicesUpdateOptionalParams): Promise<EnergyServicesUpdateResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* Deletes oep resource
|
|
69
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
70
|
+
* @param resourceName The resource name.
|
|
71
|
+
* @param options The options parameters.
|
|
72
|
+
*/
|
|
73
|
+
beginDelete(resourceGroupName: string, resourceName: string, options?: EnergyServicesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
74
|
+
/**
|
|
75
|
+
* Deletes oep resource
|
|
76
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
77
|
+
* @param resourceName The resource name.
|
|
78
|
+
* @param options The options parameters.
|
|
79
|
+
*/
|
|
80
|
+
beginDeleteAndWait(resourceGroupName: string, resourceName: string, options?: EnergyServicesDeleteOptionalParams): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* ListByResourceGroupNext
|
|
83
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
84
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
85
|
+
* @param options The options parameters.
|
|
86
|
+
*/
|
|
87
|
+
private _listByResourceGroupNext;
|
|
88
|
+
/**
|
|
89
|
+
* ListBySubscriptionNext
|
|
90
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
91
|
+
* @param options The options parameters.
|
|
92
|
+
*/
|
|
93
|
+
private _listBySubscriptionNext;
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=energyServices.d.ts.map
|
|
@@ -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,OAAO,CAAC,EAAE,+CAA+C,GACxD,0BAA0B,CAAC,aAAa,CAAC;YAsB7B,6BAA6B;YA2B7B,4BAA4B;IAY3C;;;OAGG;IACI,kBAAkB,CACvB,OAAO,CAAC,EAAE,8CAA8C,GACvD,0BAA0B,CAAC,aAAa,CAAC;YAkB7B,4BAA4B;YAsB5B,2BAA2B;IAQ1C;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC;IAOrC;;;;;OAKG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,4BAA4B,CAAC,EAChD,4BAA4B,CAC7B,CACF;IAsDD;;;;;OAKG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,4BAA4B,CAAC;IASxC;;;;OAIG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,4BAA4B,CAAC;IAOxC;;;;;OAKG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,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,kCAAkC,GAC3C,OAAO,CAAC,IAAI,CAAC;IAShB;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;IAWhC;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;CAShC"}
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl.js";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing EnergyServices operations. */
|
|
16
|
+
export class EnergyServicesImpl {
|
|
17
|
+
client;
|
|
18
|
+
/**
|
|
19
|
+
* Initialize a new instance of the class EnergyServices class.
|
|
20
|
+
* @param client Reference to the service client
|
|
21
|
+
*/
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.client = client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Returns list of oep resources..
|
|
27
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
31
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
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
|
+
}
|
|
64
|
+
}
|
|
65
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
66
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Lists a collection of oep resources under the given Azure Subscription ID.
|
|
72
|
+
* @param options The options parameters.
|
|
73
|
+
*/
|
|
74
|
+
listBySubscription(options) {
|
|
75
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
76
|
+
return {
|
|
77
|
+
next() {
|
|
78
|
+
return iter.next();
|
|
79
|
+
},
|
|
80
|
+
[Symbol.asyncIterator]() {
|
|
81
|
+
return this;
|
|
82
|
+
},
|
|
83
|
+
byPage: (settings) => {
|
|
84
|
+
if (settings?.maxPageSize) {
|
|
85
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
86
|
+
}
|
|
87
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
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
|
+
}
|
|
108
|
+
}
|
|
109
|
+
async *listBySubscriptionPagingAll(options) {
|
|
110
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Returns list of oep resources..
|
|
116
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
117
|
+
* @param options The options parameters.
|
|
118
|
+
*/
|
|
119
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
120
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Lists a collection of oep resources under the given Azure Subscription ID.
|
|
124
|
+
* @param options The options parameters.
|
|
125
|
+
*/
|
|
126
|
+
_listBySubscription(options) {
|
|
127
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Returns oep resource for a given name.
|
|
131
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
132
|
+
* @param resourceName The resource name.
|
|
133
|
+
* @param options The options parameters.
|
|
134
|
+
*/
|
|
135
|
+
get(resourceGroupName, resourceName, options) {
|
|
136
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Method that gets called if subscribed for ResourceCreationBegin trigger.
|
|
140
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
141
|
+
* @param resourceName The resource name.
|
|
142
|
+
* @param options The options parameters.
|
|
143
|
+
*/
|
|
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"
|
|
177
|
+
});
|
|
178
|
+
await poller.poll();
|
|
179
|
+
return poller;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Method that gets called if subscribed for ResourceCreationBegin trigger.
|
|
183
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
184
|
+
* @param resourceName The resource name.
|
|
185
|
+
* @param options The options parameters.
|
|
186
|
+
*/
|
|
187
|
+
async beginCreateAndWait(resourceGroupName, resourceName, options) {
|
|
188
|
+
const poller = await this.beginCreate(resourceGroupName, resourceName, options);
|
|
189
|
+
return poller.pollUntilDone();
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
193
|
+
* @param resourceName The resource name.
|
|
194
|
+
* @param options The options parameters.
|
|
195
|
+
*/
|
|
196
|
+
update(resourceGroupName, resourceName, options) {
|
|
197
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, updateOperationSpec);
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Deletes oep resource
|
|
201
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
202
|
+
* @param resourceName The resource name.
|
|
203
|
+
* @param options The options parameters.
|
|
204
|
+
*/
|
|
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
|
|
237
|
+
});
|
|
238
|
+
await poller.poll();
|
|
239
|
+
return poller;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Deletes oep resource
|
|
243
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
244
|
+
* @param resourceName The resource name.
|
|
245
|
+
* @param options The options parameters.
|
|
246
|
+
*/
|
|
247
|
+
async beginDeleteAndWait(resourceGroupName, resourceName, options) {
|
|
248
|
+
const poller = await this.beginDelete(resourceGroupName, resourceName, options);
|
|
249
|
+
return poller.pollUntilDone();
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* ListByResourceGroupNext
|
|
253
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
254
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
255
|
+
* @param options The options parameters.
|
|
256
|
+
*/
|
|
257
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
258
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* ListBySubscriptionNext
|
|
262
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
263
|
+
* @param options The options parameters.
|
|
264
|
+
*/
|
|
265
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
266
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
// Operation Specifications
|
|
270
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
271
|
+
const listByResourceGroupOperationSpec = {
|
|
272
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenEnergyPlatform/energyServices",
|
|
273
|
+
httpMethod: "GET",
|
|
274
|
+
responses: {
|
|
275
|
+
200: {
|
|
276
|
+
bodyMapper: Mappers.EnergyServiceList
|
|
277
|
+
},
|
|
278
|
+
default: {}
|
|
279
|
+
},
|
|
280
|
+
queryParameters: [Parameters.apiVersion],
|
|
281
|
+
urlParameters: [
|
|
282
|
+
Parameters.$host,
|
|
283
|
+
Parameters.subscriptionId,
|
|
284
|
+
Parameters.resourceGroupName
|
|
285
|
+
],
|
|
286
|
+
headerParameters: [Parameters.accept],
|
|
287
|
+
serializer
|
|
288
|
+
};
|
|
289
|
+
const listBySubscriptionOperationSpec = {
|
|
290
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.OpenEnergyPlatform/energyServices",
|
|
291
|
+
httpMethod: "GET",
|
|
292
|
+
responses: {
|
|
293
|
+
200: {
|
|
294
|
+
bodyMapper: Mappers.EnergyServiceList
|
|
295
|
+
},
|
|
296
|
+
default: {}
|
|
297
|
+
},
|
|
298
|
+
queryParameters: [Parameters.apiVersion],
|
|
299
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
300
|
+
headerParameters: [Parameters.accept],
|
|
301
|
+
serializer
|
|
302
|
+
};
|
|
303
|
+
const getOperationSpec = {
|
|
304
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenEnergyPlatform/energyServices/{resourceName}",
|
|
305
|
+
httpMethod: "GET",
|
|
306
|
+
responses: {
|
|
307
|
+
200: {
|
|
308
|
+
bodyMapper: Mappers.EnergyService
|
|
309
|
+
},
|
|
310
|
+
default: {}
|
|
311
|
+
},
|
|
312
|
+
queryParameters: [Parameters.apiVersion],
|
|
313
|
+
urlParameters: [
|
|
314
|
+
Parameters.$host,
|
|
315
|
+
Parameters.subscriptionId,
|
|
316
|
+
Parameters.resourceGroupName,
|
|
317
|
+
Parameters.resourceName
|
|
318
|
+
],
|
|
319
|
+
headerParameters: [Parameters.accept],
|
|
320
|
+
serializer
|
|
321
|
+
};
|
|
322
|
+
const createOperationSpec = {
|
|
323
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenEnergyPlatform/energyServices/{resourceName}",
|
|
324
|
+
httpMethod: "PUT",
|
|
325
|
+
responses: {
|
|
326
|
+
200: {
|
|
327
|
+
bodyMapper: Mappers.EnergyService
|
|
328
|
+
},
|
|
329
|
+
201: {
|
|
330
|
+
bodyMapper: Mappers.EnergyService
|
|
331
|
+
},
|
|
332
|
+
202: {
|
|
333
|
+
bodyMapper: Mappers.EnergyService
|
|
334
|
+
},
|
|
335
|
+
204: {
|
|
336
|
+
bodyMapper: Mappers.EnergyService
|
|
337
|
+
},
|
|
338
|
+
default: {
|
|
339
|
+
bodyMapper: Mappers.ErrorResponse
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
requestBody: Parameters.body1,
|
|
343
|
+
urlParameters: [
|
|
344
|
+
Parameters.$host,
|
|
345
|
+
Parameters.subscriptionId,
|
|
346
|
+
Parameters.resourceGroupName,
|
|
347
|
+
Parameters.resourceName
|
|
348
|
+
],
|
|
349
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
350
|
+
mediaType: "json",
|
|
351
|
+
serializer
|
|
352
|
+
};
|
|
353
|
+
const updateOperationSpec = {
|
|
354
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenEnergyPlatform/energyServices/{resourceName}",
|
|
355
|
+
httpMethod: "PATCH",
|
|
356
|
+
responses: {
|
|
357
|
+
200: {
|
|
358
|
+
bodyMapper: Mappers.EnergyService
|
|
359
|
+
},
|
|
360
|
+
default: {}
|
|
361
|
+
},
|
|
362
|
+
requestBody: Parameters.body2,
|
|
363
|
+
queryParameters: [Parameters.apiVersion],
|
|
364
|
+
urlParameters: [
|
|
365
|
+
Parameters.$host,
|
|
366
|
+
Parameters.subscriptionId,
|
|
367
|
+
Parameters.resourceGroupName,
|
|
368
|
+
Parameters.resourceName
|
|
369
|
+
],
|
|
370
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
371
|
+
mediaType: "json",
|
|
372
|
+
serializer
|
|
373
|
+
};
|
|
374
|
+
const deleteOperationSpec = {
|
|
375
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenEnergyPlatform/energyServices/{resourceName}",
|
|
376
|
+
httpMethod: "DELETE",
|
|
377
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
378
|
+
queryParameters: [Parameters.apiVersion],
|
|
379
|
+
urlParameters: [
|
|
380
|
+
Parameters.$host,
|
|
381
|
+
Parameters.subscriptionId,
|
|
382
|
+
Parameters.resourceGroupName,
|
|
383
|
+
Parameters.resourceName
|
|
384
|
+
],
|
|
385
|
+
serializer
|
|
386
|
+
};
|
|
387
|
+
const listByResourceGroupNextOperationSpec = {
|
|
388
|
+
path: "{nextLink}",
|
|
389
|
+
httpMethod: "GET",
|
|
390
|
+
responses: {
|
|
391
|
+
200: {
|
|
392
|
+
bodyMapper: Mappers.EnergyServiceList
|
|
393
|
+
},
|
|
394
|
+
default: {}
|
|
395
|
+
},
|
|
396
|
+
queryParameters: [Parameters.apiVersion],
|
|
397
|
+
urlParameters: [
|
|
398
|
+
Parameters.$host,
|
|
399
|
+
Parameters.subscriptionId,
|
|
400
|
+
Parameters.resourceGroupName,
|
|
401
|
+
Parameters.nextLink
|
|
402
|
+
],
|
|
403
|
+
headerParameters: [Parameters.accept],
|
|
404
|
+
serializer
|
|
405
|
+
};
|
|
406
|
+
const listBySubscriptionNextOperationSpec = {
|
|
407
|
+
path: "{nextLink}",
|
|
408
|
+
httpMethod: "GET",
|
|
409
|
+
responses: {
|
|
410
|
+
200: {
|
|
411
|
+
bodyMapper: Mappers.EnergyServiceList
|
|
412
|
+
},
|
|
413
|
+
default: {}
|
|
414
|
+
},
|
|
415
|
+
queryParameters: [Parameters.apiVersion],
|
|
416
|
+
urlParameters: [
|
|
417
|
+
Parameters.$host,
|
|
418
|
+
Parameters.subscriptionId,
|
|
419
|
+
Parameters.nextLink
|
|
420
|
+
],
|
|
421
|
+
headerParameters: [Parameters.accept],
|
|
422
|
+
serializer
|
|
423
|
+
};
|
|
424
|
+
//# sourceMappingURL=energyServices.js.map
|