@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,429 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.EnergyServicesImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const pagingHelper_js_1 = require("../pagingHelper.js");
|
|
13
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
14
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
15
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
16
|
+
const core_lro_1 = require("@azure/core-lro");
|
|
17
|
+
const lroImpl_js_1 = require("../lroImpl.js");
|
|
18
|
+
/// <reference lib="esnext.asynciterable" />
|
|
19
|
+
/** Class containing EnergyServices operations. */
|
|
20
|
+
class EnergyServicesImpl {
|
|
21
|
+
client;
|
|
22
|
+
/**
|
|
23
|
+
* Initialize a new instance of the class EnergyServices class.
|
|
24
|
+
* @param client Reference to the service client
|
|
25
|
+
*/
|
|
26
|
+
constructor(client) {
|
|
27
|
+
this.client = client;
|
|
28
|
+
}
|
|
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
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
35
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
36
|
+
return {
|
|
37
|
+
next() {
|
|
38
|
+
return iter.next();
|
|
39
|
+
},
|
|
40
|
+
[Symbol.asyncIterator]() {
|
|
41
|
+
return this;
|
|
42
|
+
},
|
|
43
|
+
byPage: (settings) => {
|
|
44
|
+
if (settings?.maxPageSize) {
|
|
45
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
|
+
}
|
|
47
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
56
|
+
let page = result.value || [];
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
while (continuationToken) {
|
|
62
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
63
|
+
continuationToken = result.nextLink;
|
|
64
|
+
let page = result.value || [];
|
|
65
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
66
|
+
yield page;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
70
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Lists a collection of oep resources under the given Azure Subscription ID.
|
|
76
|
+
* @param options The options parameters.
|
|
77
|
+
*/
|
|
78
|
+
listBySubscription(options) {
|
|
79
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
80
|
+
return {
|
|
81
|
+
next() {
|
|
82
|
+
return iter.next();
|
|
83
|
+
},
|
|
84
|
+
[Symbol.asyncIterator]() {
|
|
85
|
+
return this;
|
|
86
|
+
},
|
|
87
|
+
byPage: (settings) => {
|
|
88
|
+
if (settings?.maxPageSize) {
|
|
89
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
90
|
+
}
|
|
91
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
96
|
+
let result;
|
|
97
|
+
let continuationToken = settings?.continuationToken;
|
|
98
|
+
if (!continuationToken) {
|
|
99
|
+
result = await this._listBySubscription(options);
|
|
100
|
+
let page = result.value || [];
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
103
|
+
yield page;
|
|
104
|
+
}
|
|
105
|
+
while (continuationToken) {
|
|
106
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
110
|
+
yield page;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
async *listBySubscriptionPagingAll(options) {
|
|
114
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
115
|
+
yield* page;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Returns list of oep resources..
|
|
120
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
121
|
+
* @param options The options parameters.
|
|
122
|
+
*/
|
|
123
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
124
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Lists a collection of oep resources under the given Azure Subscription ID.
|
|
128
|
+
* @param options The options parameters.
|
|
129
|
+
*/
|
|
130
|
+
_listBySubscription(options) {
|
|
131
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Returns oep resource for a given name.
|
|
135
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
136
|
+
* @param resourceName The resource name.
|
|
137
|
+
* @param options The options parameters.
|
|
138
|
+
*/
|
|
139
|
+
get(resourceGroupName, resourceName, options) {
|
|
140
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Method that gets called if subscribed for ResourceCreationBegin trigger.
|
|
144
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
145
|
+
* @param resourceName The resource name.
|
|
146
|
+
* @param options The options parameters.
|
|
147
|
+
*/
|
|
148
|
+
async beginCreate(resourceGroupName, resourceName, options) {
|
|
149
|
+
const directSendOperation = async (args, spec) => {
|
|
150
|
+
return this.client.sendOperationRequest(args, spec);
|
|
151
|
+
};
|
|
152
|
+
const sendOperation = async (args, spec) => {
|
|
153
|
+
let currentRawResponse = undefined;
|
|
154
|
+
const providedCallback = args.options?.onResponse;
|
|
155
|
+
const callback = (rawResponse, flatResponse) => {
|
|
156
|
+
currentRawResponse = rawResponse;
|
|
157
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
158
|
+
};
|
|
159
|
+
const updatedArgs = {
|
|
160
|
+
...args,
|
|
161
|
+
options: {
|
|
162
|
+
...args.options,
|
|
163
|
+
onResponse: callback
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
167
|
+
return {
|
|
168
|
+
flatResponse,
|
|
169
|
+
rawResponse: {
|
|
170
|
+
statusCode: currentRawResponse.status,
|
|
171
|
+
body: currentRawResponse.parsedBody,
|
|
172
|
+
headers: currentRawResponse.headers.toJSON()
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, resourceName, options }, createOperationSpec);
|
|
177
|
+
const poller = new core_lro_1.LroEngine(lro, {
|
|
178
|
+
resumeFrom: options?.resumeFrom,
|
|
179
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
180
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
181
|
+
});
|
|
182
|
+
await poller.poll();
|
|
183
|
+
return poller;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Method that gets called if subscribed for ResourceCreationBegin trigger.
|
|
187
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
188
|
+
* @param resourceName The resource name.
|
|
189
|
+
* @param options The options parameters.
|
|
190
|
+
*/
|
|
191
|
+
async beginCreateAndWait(resourceGroupName, resourceName, options) {
|
|
192
|
+
const poller = await this.beginCreate(resourceGroupName, resourceName, options);
|
|
193
|
+
return poller.pollUntilDone();
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
197
|
+
* @param resourceName The resource name.
|
|
198
|
+
* @param options The options parameters.
|
|
199
|
+
*/
|
|
200
|
+
update(resourceGroupName, resourceName, options) {
|
|
201
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, updateOperationSpec);
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Deletes oep resource
|
|
205
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
206
|
+
* @param resourceName The resource name.
|
|
207
|
+
* @param options The options parameters.
|
|
208
|
+
*/
|
|
209
|
+
async beginDelete(resourceGroupName, resourceName, options) {
|
|
210
|
+
const directSendOperation = async (args, spec) => {
|
|
211
|
+
return this.client.sendOperationRequest(args, spec);
|
|
212
|
+
};
|
|
213
|
+
const sendOperation = async (args, spec) => {
|
|
214
|
+
let currentRawResponse = undefined;
|
|
215
|
+
const providedCallback = args.options?.onResponse;
|
|
216
|
+
const callback = (rawResponse, flatResponse) => {
|
|
217
|
+
currentRawResponse = rawResponse;
|
|
218
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
219
|
+
};
|
|
220
|
+
const updatedArgs = {
|
|
221
|
+
...args,
|
|
222
|
+
options: {
|
|
223
|
+
...args.options,
|
|
224
|
+
onResponse: callback
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
228
|
+
return {
|
|
229
|
+
flatResponse,
|
|
230
|
+
rawResponse: {
|
|
231
|
+
statusCode: currentRawResponse.status,
|
|
232
|
+
body: currentRawResponse.parsedBody,
|
|
233
|
+
headers: currentRawResponse.headers.toJSON()
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, resourceName, options }, deleteOperationSpec);
|
|
238
|
+
const poller = new core_lro_1.LroEngine(lro, {
|
|
239
|
+
resumeFrom: options?.resumeFrom,
|
|
240
|
+
intervalInMs: options?.updateIntervalInMs
|
|
241
|
+
});
|
|
242
|
+
await poller.poll();
|
|
243
|
+
return poller;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Deletes oep resource
|
|
247
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
248
|
+
* @param resourceName The resource name.
|
|
249
|
+
* @param options The options parameters.
|
|
250
|
+
*/
|
|
251
|
+
async beginDeleteAndWait(resourceGroupName, resourceName, options) {
|
|
252
|
+
const poller = await this.beginDelete(resourceGroupName, resourceName, options);
|
|
253
|
+
return poller.pollUntilDone();
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* ListByResourceGroupNext
|
|
257
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
258
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
259
|
+
* @param options The options parameters.
|
|
260
|
+
*/
|
|
261
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
262
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* ListBySubscriptionNext
|
|
266
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
267
|
+
* @param options The options parameters.
|
|
268
|
+
*/
|
|
269
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
270
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
exports.EnergyServicesImpl = EnergyServicesImpl;
|
|
274
|
+
// Operation Specifications
|
|
275
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
276
|
+
const listByResourceGroupOperationSpec = {
|
|
277
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenEnergyPlatform/energyServices",
|
|
278
|
+
httpMethod: "GET",
|
|
279
|
+
responses: {
|
|
280
|
+
200: {
|
|
281
|
+
bodyMapper: Mappers.EnergyServiceList
|
|
282
|
+
},
|
|
283
|
+
default: {}
|
|
284
|
+
},
|
|
285
|
+
queryParameters: [Parameters.apiVersion],
|
|
286
|
+
urlParameters: [
|
|
287
|
+
Parameters.$host,
|
|
288
|
+
Parameters.subscriptionId,
|
|
289
|
+
Parameters.resourceGroupName
|
|
290
|
+
],
|
|
291
|
+
headerParameters: [Parameters.accept],
|
|
292
|
+
serializer
|
|
293
|
+
};
|
|
294
|
+
const listBySubscriptionOperationSpec = {
|
|
295
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.OpenEnergyPlatform/energyServices",
|
|
296
|
+
httpMethod: "GET",
|
|
297
|
+
responses: {
|
|
298
|
+
200: {
|
|
299
|
+
bodyMapper: Mappers.EnergyServiceList
|
|
300
|
+
},
|
|
301
|
+
default: {}
|
|
302
|
+
},
|
|
303
|
+
queryParameters: [Parameters.apiVersion],
|
|
304
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
305
|
+
headerParameters: [Parameters.accept],
|
|
306
|
+
serializer
|
|
307
|
+
};
|
|
308
|
+
const getOperationSpec = {
|
|
309
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenEnergyPlatform/energyServices/{resourceName}",
|
|
310
|
+
httpMethod: "GET",
|
|
311
|
+
responses: {
|
|
312
|
+
200: {
|
|
313
|
+
bodyMapper: Mappers.EnergyService
|
|
314
|
+
},
|
|
315
|
+
default: {}
|
|
316
|
+
},
|
|
317
|
+
queryParameters: [Parameters.apiVersion],
|
|
318
|
+
urlParameters: [
|
|
319
|
+
Parameters.$host,
|
|
320
|
+
Parameters.subscriptionId,
|
|
321
|
+
Parameters.resourceGroupName,
|
|
322
|
+
Parameters.resourceName
|
|
323
|
+
],
|
|
324
|
+
headerParameters: [Parameters.accept],
|
|
325
|
+
serializer
|
|
326
|
+
};
|
|
327
|
+
const createOperationSpec = {
|
|
328
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenEnergyPlatform/energyServices/{resourceName}",
|
|
329
|
+
httpMethod: "PUT",
|
|
330
|
+
responses: {
|
|
331
|
+
200: {
|
|
332
|
+
bodyMapper: Mappers.EnergyService
|
|
333
|
+
},
|
|
334
|
+
201: {
|
|
335
|
+
bodyMapper: Mappers.EnergyService
|
|
336
|
+
},
|
|
337
|
+
202: {
|
|
338
|
+
bodyMapper: Mappers.EnergyService
|
|
339
|
+
},
|
|
340
|
+
204: {
|
|
341
|
+
bodyMapper: Mappers.EnergyService
|
|
342
|
+
},
|
|
343
|
+
default: {
|
|
344
|
+
bodyMapper: Mappers.ErrorResponse
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
requestBody: Parameters.body1,
|
|
348
|
+
urlParameters: [
|
|
349
|
+
Parameters.$host,
|
|
350
|
+
Parameters.subscriptionId,
|
|
351
|
+
Parameters.resourceGroupName,
|
|
352
|
+
Parameters.resourceName
|
|
353
|
+
],
|
|
354
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
355
|
+
mediaType: "json",
|
|
356
|
+
serializer
|
|
357
|
+
};
|
|
358
|
+
const updateOperationSpec = {
|
|
359
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenEnergyPlatform/energyServices/{resourceName}",
|
|
360
|
+
httpMethod: "PATCH",
|
|
361
|
+
responses: {
|
|
362
|
+
200: {
|
|
363
|
+
bodyMapper: Mappers.EnergyService
|
|
364
|
+
},
|
|
365
|
+
default: {}
|
|
366
|
+
},
|
|
367
|
+
requestBody: Parameters.body2,
|
|
368
|
+
queryParameters: [Parameters.apiVersion],
|
|
369
|
+
urlParameters: [
|
|
370
|
+
Parameters.$host,
|
|
371
|
+
Parameters.subscriptionId,
|
|
372
|
+
Parameters.resourceGroupName,
|
|
373
|
+
Parameters.resourceName
|
|
374
|
+
],
|
|
375
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
376
|
+
mediaType: "json",
|
|
377
|
+
serializer
|
|
378
|
+
};
|
|
379
|
+
const deleteOperationSpec = {
|
|
380
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenEnergyPlatform/energyServices/{resourceName}",
|
|
381
|
+
httpMethod: "DELETE",
|
|
382
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
383
|
+
queryParameters: [Parameters.apiVersion],
|
|
384
|
+
urlParameters: [
|
|
385
|
+
Parameters.$host,
|
|
386
|
+
Parameters.subscriptionId,
|
|
387
|
+
Parameters.resourceGroupName,
|
|
388
|
+
Parameters.resourceName
|
|
389
|
+
],
|
|
390
|
+
serializer
|
|
391
|
+
};
|
|
392
|
+
const listByResourceGroupNextOperationSpec = {
|
|
393
|
+
path: "{nextLink}",
|
|
394
|
+
httpMethod: "GET",
|
|
395
|
+
responses: {
|
|
396
|
+
200: {
|
|
397
|
+
bodyMapper: Mappers.EnergyServiceList
|
|
398
|
+
},
|
|
399
|
+
default: {}
|
|
400
|
+
},
|
|
401
|
+
queryParameters: [Parameters.apiVersion],
|
|
402
|
+
urlParameters: [
|
|
403
|
+
Parameters.$host,
|
|
404
|
+
Parameters.subscriptionId,
|
|
405
|
+
Parameters.resourceGroupName,
|
|
406
|
+
Parameters.nextLink
|
|
407
|
+
],
|
|
408
|
+
headerParameters: [Parameters.accept],
|
|
409
|
+
serializer
|
|
410
|
+
};
|
|
411
|
+
const listBySubscriptionNextOperationSpec = {
|
|
412
|
+
path: "{nextLink}",
|
|
413
|
+
httpMethod: "GET",
|
|
414
|
+
responses: {
|
|
415
|
+
200: {
|
|
416
|
+
bodyMapper: Mappers.EnergyServiceList
|
|
417
|
+
},
|
|
418
|
+
default: {}
|
|
419
|
+
},
|
|
420
|
+
queryParameters: [Parameters.apiVersion],
|
|
421
|
+
urlParameters: [
|
|
422
|
+
Parameters.$host,
|
|
423
|
+
Parameters.subscriptionId,
|
|
424
|
+
Parameters.nextLink
|
|
425
|
+
],
|
|
426
|
+
headerParameters: [Parameters.accept],
|
|
427
|
+
serializer
|
|
428
|
+
};
|
|
429
|
+
//# sourceMappingURL=energyServices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energyServices.js","sourceRoot":"","sources":["../../../src/operations/energyServices.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAoBxC,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IACZ,MAAM,CAA0C;IAEjE;;;OAGG;IACH,YAAY,MAA+C;QACzD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,6BAA6B,CACvC,iBAAiB,EACjB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,6BAA6B,CAC1C,iBAAyB,EACzB,OAAyD,EACzD,QAAuB;QAEvB,IAAI,MAAiD,CAAC;QACtD,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,OAAO,EAAE,EAAE;KACZ;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE,EAAE;KACZ;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","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"]}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
const tslib_1 = require("tslib");
|
|
11
|
+
tslib_1.__exportStar(require("./locations.js"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./energyServices.js"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./operations.js"), exports);
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,yDAA+B;AAC/B,8DAAoC;AACpC,0DAAgC","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"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Locations } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { OpenEnergyPlatformManagementServiceAPIs } from "../openEnergyPlatformManagementServiceAPIs.js";
|
|
3
|
+
import { CheckNameAvailabilityRequest, LocationsCheckNameAvailabilityOptionalParams, LocationsCheckNameAvailabilityResponse } from "../models/index.js";
|
|
4
|
+
/** Class containing Locations operations. */
|
|
5
|
+
export declare class LocationsImpl implements Locations {
|
|
6
|
+
private readonly client;
|
|
7
|
+
/**
|
|
8
|
+
* Initialize a new instance of the class Locations class.
|
|
9
|
+
* @param client Reference to the service client
|
|
10
|
+
*/
|
|
11
|
+
constructor(client: OpenEnergyPlatformManagementServiceAPIs);
|
|
12
|
+
/**
|
|
13
|
+
* Checks the name availability of the resource with requested resource name.
|
|
14
|
+
* @param body NameAvailabilityRequest object.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
checkNameAvailability(body: CheckNameAvailabilityRequest, options?: LocationsCheckNameAvailabilityOptionalParams): Promise<LocationsCheckNameAvailabilityResponse>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=locations.d.ts.map
|
|
@@ -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"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.LocationsImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
13
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
14
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
|
+
/** Class containing Locations operations. */
|
|
16
|
+
class LocationsImpl {
|
|
17
|
+
client;
|
|
18
|
+
/**
|
|
19
|
+
* Initialize a new instance of the class Locations class.
|
|
20
|
+
* @param client Reference to the service client
|
|
21
|
+
*/
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.client = client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Checks the name availability of the resource with requested resource name.
|
|
27
|
+
* @param body NameAvailabilityRequest object.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
checkNameAvailability(body, options) {
|
|
31
|
+
return this.client.sendOperationRequest({ body, options }, checkNameAvailabilityOperationSpec);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.LocationsImpl = LocationsImpl;
|
|
35
|
+
// Operation Specifications
|
|
36
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
37
|
+
const checkNameAvailabilityOperationSpec = {
|
|
38
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.OpenEnergyPlatform/checkNameAvailability",
|
|
39
|
+
httpMethod: "POST",
|
|
40
|
+
responses: {
|
|
41
|
+
200: {
|
|
42
|
+
bodyMapper: Mappers.CheckNameAvailabilityResponse
|
|
43
|
+
},
|
|
44
|
+
default: {
|
|
45
|
+
bodyMapper: Mappers.ErrorResponse
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
requestBody: Parameters.body,
|
|
49
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
50
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
51
|
+
mediaType: "json",
|
|
52
|
+
serializer
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=locations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locations.js","sourceRoot":"","sources":["../../../src/operations/locations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,6CAA6C;AAC7C,MAAa,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;AAzBD,sCAyBC;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"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Operations } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { OpenEnergyPlatformManagementServiceAPIs } from "../openEnergyPlatformManagementServiceAPIs.js";
|
|
3
|
+
import { OperationsListOptionalParams, OperationsListResponse } from "../models/index.js";
|
|
4
|
+
/** Class containing Operations operations. */
|
|
5
|
+
export declare class OperationsImpl implements Operations {
|
|
6
|
+
private readonly client;
|
|
7
|
+
/**
|
|
8
|
+
* Initialize a new instance of the class Operations class.
|
|
9
|
+
* @param client Reference to the service client
|
|
10
|
+
*/
|
|
11
|
+
constructor(client: OpenEnergyPlatformManagementServiceAPIs);
|
|
12
|
+
/**
|
|
13
|
+
* Lists the available operations of Microsoft.OpenEnergyPlatform resource provider.
|
|
14
|
+
* @param options The options parameters.
|
|
15
|
+
*/
|
|
16
|
+
list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,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"}
|