@azure/arm-iotoperations 1.0.0-beta.1
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 +7 -0
- package/LICENSE +21 -0
- package/README.md +100 -0
- package/dist/browser/api/broker/index.d.ts +22 -0
- package/dist/browser/api/broker/index.d.ts.map +1 -0
- package/dist/browser/api/broker/index.js +82 -0
- package/dist/browser/api/broker/index.js.map +1 -0
- package/dist/browser/api/brokerAuthentication/index.d.ts +22 -0
- package/dist/browser/api/brokerAuthentication/index.d.ts.map +1 -0
- package/dist/browser/api/brokerAuthentication/index.js +90 -0
- package/dist/browser/api/brokerAuthentication/index.js.map +1 -0
- package/dist/browser/api/brokerAuthorization/index.d.ts +22 -0
- package/dist/browser/api/brokerAuthorization/index.d.ts.map +1 -0
- package/dist/browser/api/brokerAuthorization/index.js +90 -0
- package/dist/browser/api/brokerAuthorization/index.js.map +1 -0
- package/dist/browser/api/brokerListener/index.d.ts +22 -0
- package/dist/browser/api/brokerListener/index.d.ts.map +1 -0
- package/dist/browser/api/brokerListener/index.js +86 -0
- package/dist/browser/api/brokerListener/index.js.map +1 -0
- package/dist/browser/api/dataflow/index.d.ts +22 -0
- package/dist/browser/api/dataflow/index.d.ts.map +1 -0
- package/dist/browser/api/dataflow/index.js +82 -0
- package/dist/browser/api/dataflow/index.js.map +1 -0
- package/dist/browser/api/dataflowEndpoint/index.d.ts +22 -0
- package/dist/browser/api/dataflowEndpoint/index.d.ts.map +1 -0
- package/dist/browser/api/dataflowEndpoint/index.js +90 -0
- package/dist/browser/api/dataflowEndpoint/index.js.map +1 -0
- package/dist/browser/api/dataflowProfile/index.d.ts +22 -0
- package/dist/browser/api/dataflowProfile/index.d.ts.map +1 -0
- package/dist/browser/api/dataflowProfile/index.js +86 -0
- package/dist/browser/api/dataflowProfile/index.js.map +1 -0
- package/dist/browser/api/index.d.ts +12 -0
- package/dist/browser/api/index.d.ts.map +1 -0
- package/dist/browser/api/index.js +13 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/instance/index.d.ts +30 -0
- package/dist/browser/api/instance/index.d.ts.map +1 -0
- package/dist/browser/api/instance/index.js +115 -0
- package/dist/browser/api/instance/index.js.map +1 -0
- package/dist/browser/api/ioTOperationsContext.d.ts +13 -0
- package/dist/browser/api/ioTOperationsContext.d.ts.map +1 -0
- package/dist/browser/api/ioTOperationsContext.js +35 -0
- package/dist/browser/api/ioTOperationsContext.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +9 -0
- package/dist/browser/api/operations/index.d.ts.map +1 -0
- package/dist/browser/api/operations/index.js +22 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/options.d.ts +139 -0
- package/dist/browser/api/options.d.ts.map +1 -0
- package/dist/browser/api/options.js +4 -0
- package/dist/browser/api/options.js.map +1 -0
- package/dist/browser/classic/broker/index.d.ts +24 -0
- package/dist/browser/classic/broker/index.d.ts.map +1 -0
- package/dist/browser/classic/broker/index.js +15 -0
- package/dist/browser/classic/broker/index.js.map +1 -0
- package/dist/browser/classic/brokerAuthentication/index.d.ts +24 -0
- package/dist/browser/classic/brokerAuthentication/index.d.ts.map +1 -0
- package/dist/browser/classic/brokerAuthentication/index.js +15 -0
- package/dist/browser/classic/brokerAuthentication/index.js.map +1 -0
- package/dist/browser/classic/brokerAuthorization/index.d.ts +24 -0
- package/dist/browser/classic/brokerAuthorization/index.d.ts.map +1 -0
- package/dist/browser/classic/brokerAuthorization/index.js +15 -0
- package/dist/browser/classic/brokerAuthorization/index.js.map +1 -0
- package/dist/browser/classic/brokerListener/index.d.ts +24 -0
- package/dist/browser/classic/brokerListener/index.d.ts.map +1 -0
- package/dist/browser/classic/brokerListener/index.js +15 -0
- package/dist/browser/classic/brokerListener/index.js.map +1 -0
- package/dist/browser/classic/dataflow/index.d.ts +24 -0
- package/dist/browser/classic/dataflow/index.d.ts.map +1 -0
- package/dist/browser/classic/dataflow/index.js +15 -0
- package/dist/browser/classic/dataflow/index.js.map +1 -0
- package/dist/browser/classic/dataflowEndpoint/index.d.ts +24 -0
- package/dist/browser/classic/dataflowEndpoint/index.d.ts.map +1 -0
- package/dist/browser/classic/dataflowEndpoint/index.js +15 -0
- package/dist/browser/classic/dataflowEndpoint/index.js.map +1 -0
- package/dist/browser/classic/dataflowProfile/index.d.ts +24 -0
- package/dist/browser/classic/dataflowProfile/index.d.ts.map +1 -0
- package/dist/browser/classic/dataflowProfile/index.js +15 -0
- package/dist/browser/classic/dataflowProfile/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +10 -0
- package/dist/browser/classic/index.d.ts.map +1 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/instance/index.d.ts +30 -0
- package/dist/browser/classic/instance/index.d.ts.map +1 -0
- package/dist/browser/classic/instance/index.js +17 -0
- package/dist/browser/classic/instance/index.js.map +1 -0
- package/dist/browser/classic/operations/index.d.ts +14 -0
- package/dist/browser/classic/operations/index.d.ts.map +1 -0
- package/dist/browser/classic/operations/index.js +12 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/helpers/serializerHelpers.d.ts +3 -0
- package/dist/browser/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/browser/helpers/serializerHelpers.js +24 -0
- package/dist/browser/helpers/serializerHelpers.js.map +1 -0
- package/dist/browser/index.d.ts +8 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +6 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/ioTOperationsClient.d.ts +39 -0
- package/dist/browser/ioTOperationsClient.d.ts.map +1 -0
- package/dist/browser/ioTOperationsClient.js +34 -0
- package/dist/browser/ioTOperationsClient.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +2 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +4 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/models.d.ts +1921 -0
- package/dist/browser/models/models.d.ts.map +1 -0
- package/dist/browser/models/models.js +2343 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.d.ts.map +1 -0
- package/dist/browser/restorePollerHelpers.js +160 -0
- package/dist/browser/restorePollerHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.js +137 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.js +76 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/api/broker/index.d.ts +22 -0
- package/dist/commonjs/api/broker/index.d.ts.map +1 -0
- package/dist/commonjs/api/broker/index.js +96 -0
- package/dist/commonjs/api/broker/index.js.map +1 -0
- package/dist/commonjs/api/brokerAuthentication/index.d.ts +22 -0
- package/dist/commonjs/api/brokerAuthentication/index.d.ts.map +1 -0
- package/dist/commonjs/api/brokerAuthentication/index.js +104 -0
- package/dist/commonjs/api/brokerAuthentication/index.js.map +1 -0
- package/dist/commonjs/api/brokerAuthorization/index.d.ts +22 -0
- package/dist/commonjs/api/brokerAuthorization/index.d.ts.map +1 -0
- package/dist/commonjs/api/brokerAuthorization/index.js +104 -0
- package/dist/commonjs/api/brokerAuthorization/index.js.map +1 -0
- package/dist/commonjs/api/brokerListener/index.d.ts +22 -0
- package/dist/commonjs/api/brokerListener/index.d.ts.map +1 -0
- package/dist/commonjs/api/brokerListener/index.js +100 -0
- package/dist/commonjs/api/brokerListener/index.js.map +1 -0
- package/dist/commonjs/api/dataflow/index.d.ts +22 -0
- package/dist/commonjs/api/dataflow/index.d.ts.map +1 -0
- package/dist/commonjs/api/dataflow/index.js +96 -0
- package/dist/commonjs/api/dataflow/index.js.map +1 -0
- package/dist/commonjs/api/dataflowEndpoint/index.d.ts +22 -0
- package/dist/commonjs/api/dataflowEndpoint/index.d.ts.map +1 -0
- package/dist/commonjs/api/dataflowEndpoint/index.js +104 -0
- package/dist/commonjs/api/dataflowEndpoint/index.js.map +1 -0
- package/dist/commonjs/api/dataflowProfile/index.d.ts +22 -0
- package/dist/commonjs/api/dataflowProfile/index.d.ts.map +1 -0
- package/dist/commonjs/api/dataflowProfile/index.js +100 -0
- package/dist/commonjs/api/dataflowProfile/index.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +12 -0
- package/dist/commonjs/api/index.d.ts.map +1 -0
- package/dist/commonjs/api/index.js +52 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/instance/index.d.ts +30 -0
- package/dist/commonjs/api/instance/index.d.ts.map +1 -0
- package/dist/commonjs/api/instance/index.js +135 -0
- package/dist/commonjs/api/instance/index.js.map +1 -0
- package/dist/commonjs/api/ioTOperationsContext.d.ts +13 -0
- package/dist/commonjs/api/ioTOperationsContext.d.ts.map +1 -0
- package/dist/commonjs/api/ioTOperationsContext.js +38 -0
- package/dist/commonjs/api/ioTOperationsContext.js.map +1 -0
- package/dist/commonjs/api/operations/index.d.ts +9 -0
- package/dist/commonjs/api/operations/index.d.ts.map +1 -0
- package/dist/commonjs/api/operations/index.js +27 -0
- package/dist/commonjs/api/operations/index.js.map +1 -0
- package/dist/commonjs/api/options.d.ts +139 -0
- package/dist/commonjs/api/options.d.ts.map +1 -0
- package/dist/commonjs/api/options.js +5 -0
- package/dist/commonjs/api/options.js.map +1 -0
- package/dist/commonjs/classic/broker/index.d.ts +24 -0
- package/dist/commonjs/classic/broker/index.d.ts.map +1 -0
- package/dist/commonjs/classic/broker/index.js +19 -0
- package/dist/commonjs/classic/broker/index.js.map +1 -0
- package/dist/commonjs/classic/brokerAuthentication/index.d.ts +24 -0
- package/dist/commonjs/classic/brokerAuthentication/index.d.ts.map +1 -0
- package/dist/commonjs/classic/brokerAuthentication/index.js +19 -0
- package/dist/commonjs/classic/brokerAuthentication/index.js.map +1 -0
- package/dist/commonjs/classic/brokerAuthorization/index.d.ts +24 -0
- package/dist/commonjs/classic/brokerAuthorization/index.d.ts.map +1 -0
- package/dist/commonjs/classic/brokerAuthorization/index.js +19 -0
- package/dist/commonjs/classic/brokerAuthorization/index.js.map +1 -0
- package/dist/commonjs/classic/brokerListener/index.d.ts +24 -0
- package/dist/commonjs/classic/brokerListener/index.d.ts.map +1 -0
- package/dist/commonjs/classic/brokerListener/index.js +19 -0
- package/dist/commonjs/classic/brokerListener/index.js.map +1 -0
- package/dist/commonjs/classic/dataflow/index.d.ts +24 -0
- package/dist/commonjs/classic/dataflow/index.d.ts.map +1 -0
- package/dist/commonjs/classic/dataflow/index.js +19 -0
- package/dist/commonjs/classic/dataflow/index.js.map +1 -0
- package/dist/commonjs/classic/dataflowEndpoint/index.d.ts +24 -0
- package/dist/commonjs/classic/dataflowEndpoint/index.d.ts.map +1 -0
- package/dist/commonjs/classic/dataflowEndpoint/index.js +19 -0
- package/dist/commonjs/classic/dataflowEndpoint/index.js.map +1 -0
- package/dist/commonjs/classic/dataflowProfile/index.d.ts +24 -0
- package/dist/commonjs/classic/dataflowProfile/index.d.ts.map +1 -0
- package/dist/commonjs/classic/dataflowProfile/index.js +19 -0
- package/dist/commonjs/classic/dataflowProfile/index.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +10 -0
- package/dist/commonjs/classic/index.d.ts.map +1 -0
- package/dist/commonjs/classic/index.js +5 -0
- package/dist/commonjs/classic/index.js.map +1 -0
- package/dist/commonjs/classic/instance/index.d.ts +30 -0
- package/dist/commonjs/classic/instance/index.d.ts.map +1 -0
- package/dist/commonjs/classic/instance/index.js +21 -0
- package/dist/commonjs/classic/instance/index.js.map +1 -0
- package/dist/commonjs/classic/operations/index.d.ts +14 -0
- package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
- package/dist/commonjs/classic/operations/index.js +16 -0
- package/dist/commonjs/classic/operations/index.js.map +1 -0
- package/dist/commonjs/helpers/serializerHelpers.d.ts +3 -0
- package/dist/commonjs/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/commonjs/helpers/serializerHelpers.js +27 -0
- package/dist/commonjs/helpers/serializerHelpers.js.map +1 -0
- package/dist/commonjs/index.d.ts +8 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +50 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/ioTOperationsClient.d.ts +39 -0
- package/dist/commonjs/ioTOperationsClient.d.ts.map +1 -0
- package/dist/commonjs/ioTOperationsClient.js +38 -0
- package/dist/commonjs/ioTOperationsClient.js.map +1 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +46 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/models.d.ts +1921 -0
- package/dist/commonjs/models/models.d.ts.map +1 -0
- package/dist/commonjs/models/models.js +2592 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -0
- package/dist/commonjs/restorePollerHelpers.js +163 -0
- package/dist/commonjs/restorePollerHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +140 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +79 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/api/broker/index.d.ts +22 -0
- package/dist/esm/api/broker/index.d.ts.map +1 -0
- package/dist/esm/api/broker/index.js +82 -0
- package/dist/esm/api/broker/index.js.map +1 -0
- package/dist/esm/api/brokerAuthentication/index.d.ts +22 -0
- package/dist/esm/api/brokerAuthentication/index.d.ts.map +1 -0
- package/dist/esm/api/brokerAuthentication/index.js +90 -0
- package/dist/esm/api/brokerAuthentication/index.js.map +1 -0
- package/dist/esm/api/brokerAuthorization/index.d.ts +22 -0
- package/dist/esm/api/brokerAuthorization/index.d.ts.map +1 -0
- package/dist/esm/api/brokerAuthorization/index.js +90 -0
- package/dist/esm/api/brokerAuthorization/index.js.map +1 -0
- package/dist/esm/api/brokerListener/index.d.ts +22 -0
- package/dist/esm/api/brokerListener/index.d.ts.map +1 -0
- package/dist/esm/api/brokerListener/index.js +86 -0
- package/dist/esm/api/brokerListener/index.js.map +1 -0
- package/dist/esm/api/dataflow/index.d.ts +22 -0
- package/dist/esm/api/dataflow/index.d.ts.map +1 -0
- package/dist/esm/api/dataflow/index.js +82 -0
- package/dist/esm/api/dataflow/index.js.map +1 -0
- package/dist/esm/api/dataflowEndpoint/index.d.ts +22 -0
- package/dist/esm/api/dataflowEndpoint/index.d.ts.map +1 -0
- package/dist/esm/api/dataflowEndpoint/index.js +90 -0
- package/dist/esm/api/dataflowEndpoint/index.js.map +1 -0
- package/dist/esm/api/dataflowProfile/index.d.ts +22 -0
- package/dist/esm/api/dataflowProfile/index.d.ts.map +1 -0
- package/dist/esm/api/dataflowProfile/index.js +86 -0
- package/dist/esm/api/dataflowProfile/index.js.map +1 -0
- package/dist/esm/api/index.d.ts +12 -0
- package/dist/esm/api/index.d.ts.map +1 -0
- package/dist/esm/api/index.js +13 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/instance/index.d.ts +30 -0
- package/dist/esm/api/instance/index.d.ts.map +1 -0
- package/dist/esm/api/instance/index.js +115 -0
- package/dist/esm/api/instance/index.js.map +1 -0
- package/dist/esm/api/ioTOperationsContext.d.ts +13 -0
- package/dist/esm/api/ioTOperationsContext.d.ts.map +1 -0
- package/dist/esm/api/ioTOperationsContext.js +35 -0
- package/dist/esm/api/ioTOperationsContext.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +9 -0
- package/dist/esm/api/operations/index.d.ts.map +1 -0
- package/dist/esm/api/operations/index.js +22 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/options.d.ts +139 -0
- package/dist/esm/api/options.d.ts.map +1 -0
- package/dist/esm/api/options.js +4 -0
- package/dist/esm/api/options.js.map +1 -0
- package/dist/esm/classic/broker/index.d.ts +24 -0
- package/dist/esm/classic/broker/index.d.ts.map +1 -0
- package/dist/esm/classic/broker/index.js +15 -0
- package/dist/esm/classic/broker/index.js.map +1 -0
- package/dist/esm/classic/brokerAuthentication/index.d.ts +24 -0
- package/dist/esm/classic/brokerAuthentication/index.d.ts.map +1 -0
- package/dist/esm/classic/brokerAuthentication/index.js +15 -0
- package/dist/esm/classic/brokerAuthentication/index.js.map +1 -0
- package/dist/esm/classic/brokerAuthorization/index.d.ts +24 -0
- package/dist/esm/classic/brokerAuthorization/index.d.ts.map +1 -0
- package/dist/esm/classic/brokerAuthorization/index.js +15 -0
- package/dist/esm/classic/brokerAuthorization/index.js.map +1 -0
- package/dist/esm/classic/brokerListener/index.d.ts +24 -0
- package/dist/esm/classic/brokerListener/index.d.ts.map +1 -0
- package/dist/esm/classic/brokerListener/index.js +15 -0
- package/dist/esm/classic/brokerListener/index.js.map +1 -0
- package/dist/esm/classic/dataflow/index.d.ts +24 -0
- package/dist/esm/classic/dataflow/index.d.ts.map +1 -0
- package/dist/esm/classic/dataflow/index.js +15 -0
- package/dist/esm/classic/dataflow/index.js.map +1 -0
- package/dist/esm/classic/dataflowEndpoint/index.d.ts +24 -0
- package/dist/esm/classic/dataflowEndpoint/index.d.ts.map +1 -0
- package/dist/esm/classic/dataflowEndpoint/index.js +15 -0
- package/dist/esm/classic/dataflowEndpoint/index.js.map +1 -0
- package/dist/esm/classic/dataflowProfile/index.d.ts +24 -0
- package/dist/esm/classic/dataflowProfile/index.d.ts.map +1 -0
- package/dist/esm/classic/dataflowProfile/index.js +15 -0
- package/dist/esm/classic/dataflowProfile/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +10 -0
- package/dist/esm/classic/index.d.ts.map +1 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/instance/index.d.ts +30 -0
- package/dist/esm/classic/instance/index.d.ts.map +1 -0
- package/dist/esm/classic/instance/index.js +17 -0
- package/dist/esm/classic/instance/index.js.map +1 -0
- package/dist/esm/classic/operations/index.d.ts +14 -0
- package/dist/esm/classic/operations/index.d.ts.map +1 -0
- package/dist/esm/classic/operations/index.js +12 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/helpers/serializerHelpers.d.ts +3 -0
- package/dist/esm/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/esm/helpers/serializerHelpers.js +24 -0
- package/dist/esm/helpers/serializerHelpers.js.map +1 -0
- package/dist/esm/index.d.ts +8 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/ioTOperationsClient.d.ts +39 -0
- package/dist/esm/ioTOperationsClient.d.ts.map +1 -0
- package/dist/esm/ioTOperationsClient.js +34 -0
- package/dist/esm/ioTOperationsClient.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/models.d.ts +1921 -0
- package/dist/esm/models/models.d.ts.map +1 -0
- package/dist/esm/models/models.js +2343 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.d.ts.map +1 -0
- package/dist/esm/restorePollerHelpers.js +160 -0
- package/dist/esm/restorePollerHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.js +137 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.js +76 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/react-native/api/broker/index.d.ts +22 -0
- package/dist/react-native/api/broker/index.d.ts.map +1 -0
- package/dist/react-native/api/broker/index.js +82 -0
- package/dist/react-native/api/broker/index.js.map +1 -0
- package/dist/react-native/api/brokerAuthentication/index.d.ts +22 -0
- package/dist/react-native/api/brokerAuthentication/index.d.ts.map +1 -0
- package/dist/react-native/api/brokerAuthentication/index.js +90 -0
- package/dist/react-native/api/brokerAuthentication/index.js.map +1 -0
- package/dist/react-native/api/brokerAuthorization/index.d.ts +22 -0
- package/dist/react-native/api/brokerAuthorization/index.d.ts.map +1 -0
- package/dist/react-native/api/brokerAuthorization/index.js +90 -0
- package/dist/react-native/api/brokerAuthorization/index.js.map +1 -0
- package/dist/react-native/api/brokerListener/index.d.ts +22 -0
- package/dist/react-native/api/brokerListener/index.d.ts.map +1 -0
- package/dist/react-native/api/brokerListener/index.js +86 -0
- package/dist/react-native/api/brokerListener/index.js.map +1 -0
- package/dist/react-native/api/dataflow/index.d.ts +22 -0
- package/dist/react-native/api/dataflow/index.d.ts.map +1 -0
- package/dist/react-native/api/dataflow/index.js +82 -0
- package/dist/react-native/api/dataflow/index.js.map +1 -0
- package/dist/react-native/api/dataflowEndpoint/index.d.ts +22 -0
- package/dist/react-native/api/dataflowEndpoint/index.d.ts.map +1 -0
- package/dist/react-native/api/dataflowEndpoint/index.js +90 -0
- package/dist/react-native/api/dataflowEndpoint/index.js.map +1 -0
- package/dist/react-native/api/dataflowProfile/index.d.ts +22 -0
- package/dist/react-native/api/dataflowProfile/index.d.ts.map +1 -0
- package/dist/react-native/api/dataflowProfile/index.js +86 -0
- package/dist/react-native/api/dataflowProfile/index.js.map +1 -0
- package/dist/react-native/api/index.d.ts +12 -0
- package/dist/react-native/api/index.d.ts.map +1 -0
- package/dist/react-native/api/index.js +13 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/api/instance/index.d.ts +30 -0
- package/dist/react-native/api/instance/index.d.ts.map +1 -0
- package/dist/react-native/api/instance/index.js +115 -0
- package/dist/react-native/api/instance/index.js.map +1 -0
- package/dist/react-native/api/ioTOperationsContext.d.ts +13 -0
- package/dist/react-native/api/ioTOperationsContext.d.ts.map +1 -0
- package/dist/react-native/api/ioTOperationsContext.js +35 -0
- package/dist/react-native/api/ioTOperationsContext.js.map +1 -0
- package/dist/react-native/api/operations/index.d.ts +9 -0
- package/dist/react-native/api/operations/index.d.ts.map +1 -0
- package/dist/react-native/api/operations/index.js +22 -0
- package/dist/react-native/api/operations/index.js.map +1 -0
- package/dist/react-native/api/options.d.ts +139 -0
- package/dist/react-native/api/options.d.ts.map +1 -0
- package/dist/react-native/api/options.js +4 -0
- package/dist/react-native/api/options.js.map +1 -0
- package/dist/react-native/classic/broker/index.d.ts +24 -0
- package/dist/react-native/classic/broker/index.d.ts.map +1 -0
- package/dist/react-native/classic/broker/index.js +15 -0
- package/dist/react-native/classic/broker/index.js.map +1 -0
- package/dist/react-native/classic/brokerAuthentication/index.d.ts +24 -0
- package/dist/react-native/classic/brokerAuthentication/index.d.ts.map +1 -0
- package/dist/react-native/classic/brokerAuthentication/index.js +15 -0
- package/dist/react-native/classic/brokerAuthentication/index.js.map +1 -0
- package/dist/react-native/classic/brokerAuthorization/index.d.ts +24 -0
- package/dist/react-native/classic/brokerAuthorization/index.d.ts.map +1 -0
- package/dist/react-native/classic/brokerAuthorization/index.js +15 -0
- package/dist/react-native/classic/brokerAuthorization/index.js.map +1 -0
- package/dist/react-native/classic/brokerListener/index.d.ts +24 -0
- package/dist/react-native/classic/brokerListener/index.d.ts.map +1 -0
- package/dist/react-native/classic/brokerListener/index.js +15 -0
- package/dist/react-native/classic/brokerListener/index.js.map +1 -0
- package/dist/react-native/classic/dataflow/index.d.ts +24 -0
- package/dist/react-native/classic/dataflow/index.d.ts.map +1 -0
- package/dist/react-native/classic/dataflow/index.js +15 -0
- package/dist/react-native/classic/dataflow/index.js.map +1 -0
- package/dist/react-native/classic/dataflowEndpoint/index.d.ts +24 -0
- package/dist/react-native/classic/dataflowEndpoint/index.d.ts.map +1 -0
- package/dist/react-native/classic/dataflowEndpoint/index.js +15 -0
- package/dist/react-native/classic/dataflowEndpoint/index.js.map +1 -0
- package/dist/react-native/classic/dataflowProfile/index.d.ts +24 -0
- package/dist/react-native/classic/dataflowProfile/index.d.ts.map +1 -0
- package/dist/react-native/classic/dataflowProfile/index.js +15 -0
- package/dist/react-native/classic/dataflowProfile/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +10 -0
- package/dist/react-native/classic/index.d.ts.map +1 -0
- package/dist/react-native/classic/index.js +4 -0
- package/dist/react-native/classic/index.js.map +1 -0
- package/dist/react-native/classic/instance/index.d.ts +30 -0
- package/dist/react-native/classic/instance/index.d.ts.map +1 -0
- package/dist/react-native/classic/instance/index.js +17 -0
- package/dist/react-native/classic/instance/index.js.map +1 -0
- package/dist/react-native/classic/operations/index.d.ts +14 -0
- package/dist/react-native/classic/operations/index.d.ts.map +1 -0
- package/dist/react-native/classic/operations/index.js +12 -0
- package/dist/react-native/classic/operations/index.js.map +1 -0
- package/dist/react-native/helpers/serializerHelpers.d.ts +3 -0
- package/dist/react-native/helpers/serializerHelpers.d.ts.map +1 -0
- package/dist/react-native/helpers/serializerHelpers.js +24 -0
- package/dist/react-native/helpers/serializerHelpers.js.map +1 -0
- package/dist/react-native/index.d.ts +8 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +6 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/ioTOperationsClient.d.ts +39 -0
- package/dist/react-native/ioTOperationsClient.d.ts.map +1 -0
- package/dist/react-native/ioTOperationsClient.js +34 -0
- package/dist/react-native/ioTOperationsClient.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models/index.d.ts +2 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +4 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/models.d.ts +1921 -0
- package/dist/react-native/models/models.d.ts.map +1 -0
- package/dist/react-native/models/models.js +2343 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/restorePollerHelpers.d.ts +21 -0
- package/dist/react-native/restorePollerHelpers.d.ts.map +1 -0
- package/dist/react-native/restorePollerHelpers.js +160 -0
- package/dist/react-native/restorePollerHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +137 -0
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.js +76 -0
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
- package/package.json +159 -0
- package/review/arm-iotoperations-models.api.md +1086 -0
- package/review/arm-iotoperations.api.md +1369 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BrokerListenerCreateOrUpdateOptionalParams, BrokerListenerDeleteOptionalParams, BrokerListenerGetOptionalParams, BrokerListenerListByResourceGroupOptionalParams, IoTOperationsContext as Client } from "../index.js";
|
|
2
|
+
import { BrokerListenerResource, _BrokerListenerResourceListResult } from "../../models/models.js";
|
|
3
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
5
|
+
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
6
|
+
export declare function _brokerListenerGetSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, brokerName: string, listenerName: string, options?: BrokerListenerGetOptionalParams): StreamableMethod;
|
|
7
|
+
export declare function _brokerListenerGetDeserialize(result: PathUncheckedResponse): Promise<BrokerListenerResource>;
|
|
8
|
+
/** Get a BrokerListenerResource */
|
|
9
|
+
export declare function brokerListenerGet(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, brokerName: string, listenerName: string, options?: BrokerListenerGetOptionalParams): Promise<BrokerListenerResource>;
|
|
10
|
+
export declare function _brokerListenerCreateOrUpdateSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, brokerName: string, listenerName: string, resource: BrokerListenerResource, options?: BrokerListenerCreateOrUpdateOptionalParams): StreamableMethod;
|
|
11
|
+
export declare function _brokerListenerCreateOrUpdateDeserialize(result: PathUncheckedResponse): Promise<BrokerListenerResource>;
|
|
12
|
+
/** Create a BrokerListenerResource */
|
|
13
|
+
export declare function brokerListenerCreateOrUpdate(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, brokerName: string, listenerName: string, resource: BrokerListenerResource, options?: BrokerListenerCreateOrUpdateOptionalParams): PollerLike<OperationState<BrokerListenerResource>, BrokerListenerResource>;
|
|
14
|
+
export declare function _brokerListenerDeleteSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, brokerName: string, listenerName: string, options?: BrokerListenerDeleteOptionalParams): StreamableMethod;
|
|
15
|
+
export declare function _brokerListenerDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
16
|
+
/** Delete a BrokerListenerResource */
|
|
17
|
+
export declare function brokerListenerDelete(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, brokerName: string, listenerName: string, options?: BrokerListenerDeleteOptionalParams): PollerLike<OperationState<void>, void>;
|
|
18
|
+
export declare function _brokerListenerListByResourceGroupSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, brokerName: string, options?: BrokerListenerListByResourceGroupOptionalParams): StreamableMethod;
|
|
19
|
+
export declare function _brokerListenerListByResourceGroupDeserialize(result: PathUncheckedResponse): Promise<_BrokerListenerResourceListResult>;
|
|
20
|
+
/** List BrokerListenerResource resources by BrokerResource */
|
|
21
|
+
export declare function brokerListenerListByResourceGroup(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, brokerName: string, options?: BrokerListenerListByResourceGroupOptionalParams): PagedAsyncIterableIterator<BrokerListenerResource>;
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/brokerListener/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,0CAA0C,EAC1C,kCAAkC,EAClC,+BAA+B,EAC/B,+CAA+C,EAC/C,oBAAoB,IAAI,MAAM,EAC/B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,sBAAsB,EAGtB,iCAAiC,EAElC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,0BA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,86 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { brokerListenerResourceSerializer, brokerListenerResourceDeserializer, _brokerListenerResourceListResultDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
|
|
5
|
+
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
6
|
+
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
7
|
+
export function _brokerListenerGetSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, options = { requestOptions: {} }) {
|
|
8
|
+
return context
|
|
9
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}", subscriptionId, resourceGroupName, instanceName, brokerName, listenerName)
|
|
10
|
+
.get(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
11
|
+
}
|
|
12
|
+
export async function _brokerListenerGetDeserialize(result) {
|
|
13
|
+
const expectedStatuses = ["200"];
|
|
14
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
15
|
+
throw createRestError(result);
|
|
16
|
+
}
|
|
17
|
+
return brokerListenerResourceDeserializer(result.body);
|
|
18
|
+
}
|
|
19
|
+
/** Get a BrokerListenerResource */
|
|
20
|
+
export async function brokerListenerGet(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, options = { requestOptions: {} }) {
|
|
21
|
+
const result = await _brokerListenerGetSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, options);
|
|
22
|
+
return _brokerListenerGetDeserialize(result);
|
|
23
|
+
}
|
|
24
|
+
export function _brokerListenerCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, resource, options = { requestOptions: {} }) {
|
|
25
|
+
return context
|
|
26
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}", subscriptionId, resourceGroupName, instanceName, brokerName, listenerName)
|
|
27
|
+
.put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { body: brokerListenerResourceSerializer(resource) }));
|
|
28
|
+
}
|
|
29
|
+
export async function _brokerListenerCreateOrUpdateDeserialize(result) {
|
|
30
|
+
const expectedStatuses = ["200", "201"];
|
|
31
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
32
|
+
throw createRestError(result);
|
|
33
|
+
}
|
|
34
|
+
return brokerListenerResourceDeserializer(result.body);
|
|
35
|
+
}
|
|
36
|
+
/** Create a BrokerListenerResource */
|
|
37
|
+
export function brokerListenerCreateOrUpdate(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, resource, options = { requestOptions: {} }) {
|
|
38
|
+
return getLongRunningPoller(context, _brokerListenerCreateOrUpdateDeserialize, ["200", "201"], {
|
|
39
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
40
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
41
|
+
getInitialResponse: () => _brokerListenerCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, resource, options),
|
|
42
|
+
resourceLocationConfig: "azure-async-operation",
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
export function _brokerListenerDeleteSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, options = { requestOptions: {} }) {
|
|
46
|
+
return context
|
|
47
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}", subscriptionId, resourceGroupName, instanceName, brokerName, listenerName)
|
|
48
|
+
.delete(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
49
|
+
}
|
|
50
|
+
export async function _brokerListenerDeleteDeserialize(result) {
|
|
51
|
+
const expectedStatuses = ["202", "204", "200"];
|
|
52
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
53
|
+
throw createRestError(result);
|
|
54
|
+
}
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
/** Delete a BrokerListenerResource */
|
|
58
|
+
export function brokerListenerDelete(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, options = { requestOptions: {} }) {
|
|
59
|
+
return getLongRunningPoller(context, _brokerListenerDeleteDeserialize, ["202", "204", "200"], {
|
|
60
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
61
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
62
|
+
getInitialResponse: () => _brokerListenerDeleteSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, options),
|
|
63
|
+
resourceLocationConfig: "location",
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
export function _brokerListenerListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, options = {
|
|
67
|
+
requestOptions: {},
|
|
68
|
+
}) {
|
|
69
|
+
return context
|
|
70
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners", subscriptionId, resourceGroupName, instanceName, brokerName)
|
|
71
|
+
.get(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
72
|
+
}
|
|
73
|
+
export async function _brokerListenerListByResourceGroupDeserialize(result) {
|
|
74
|
+
const expectedStatuses = ["200"];
|
|
75
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
76
|
+
throw createRestError(result);
|
|
77
|
+
}
|
|
78
|
+
return _brokerListenerResourceListResultDeserializer(result.body);
|
|
79
|
+
}
|
|
80
|
+
/** List BrokerListenerResource resources by BrokerResource */
|
|
81
|
+
export function brokerListenerListByResourceGroup(context, subscriptionId, resourceGroupName, instanceName, brokerName, options = {
|
|
82
|
+
requestOptions: {},
|
|
83
|
+
}) {
|
|
84
|
+
return buildPagedAsyncIterator(context, () => _brokerListenerListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, options), _brokerListenerListByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/brokerListener/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EAEL,gCAAgC,EAChC,kCAAkC,EAElC,6CAA6C,GAC9C,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,sBAAsB,CACpC,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,YAAoB,EACpB,UAAkB,EAClB,YAAoB,EACpB,UAA2C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEjE,OAAO,OAAO;SACX,IAAI,CACH,6KAA6K,EAC7K,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,YAAY,CACb;SACA,GAAG,mBAAM,mCAAmC,CAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,6BAA6B,CACjD,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACzD,CAA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AAO,EACP,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,OAAO,CACR,EACH,6CAA6C,EAC7C,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n BrokerListenerCreateOrUpdateOptionalParams,\n BrokerListenerDeleteOptionalParams,\n BrokerListenerGetOptionalParams,\n BrokerListenerListByResourceGroupOptionalParams,\n IoTOperationsContext as Client,\n} from \"../index.js\";\nimport {\n BrokerListenerResource,\n brokerListenerResourceSerializer,\n brokerListenerResourceDeserializer,\n _BrokerListenerResourceListResult,\n _brokerListenerResourceListResultDeserializer,\n} from \"../../models/models.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _brokerListenerGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n brokerName: string,\n listenerName: string,\n options: BrokerListenerGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n brokerName,\n listenerName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _brokerListenerGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<BrokerListenerResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return brokerListenerResourceDeserializer(result.body);\n}\n\n/** Get a BrokerListenerResource */\nexport async function brokerListenerGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n brokerName: string,\n listenerName: string,\n options: BrokerListenerGetOptionalParams = { requestOptions: {} },\n): Promise<BrokerListenerResource> {\n const result = await _brokerListenerGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n brokerName,\n listenerName,\n options,\n );\n return _brokerListenerGetDeserialize(result);\n}\n\nexport function _brokerListenerCreateOrUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n brokerName: string,\n listenerName: string,\n resource: BrokerListenerResource,\n options: BrokerListenerCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n brokerName,\n listenerName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: brokerListenerResourceSerializer(resource),\n });\n}\n\nexport async function _brokerListenerCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<BrokerListenerResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return brokerListenerResourceDeserializer(result.body);\n}\n\n/** Create a BrokerListenerResource */\nexport function brokerListenerCreateOrUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n brokerName: string,\n listenerName: string,\n resource: BrokerListenerResource,\n options: BrokerListenerCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<BrokerListenerResource>, BrokerListenerResource> {\n return getLongRunningPoller(context, _brokerListenerCreateOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _brokerListenerCreateOrUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n brokerName,\n listenerName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<BrokerListenerResource>, BrokerListenerResource>;\n}\n\nexport function _brokerListenerDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n brokerName: string,\n listenerName: string,\n options: BrokerListenerDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n brokerName,\n listenerName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _brokerListenerDeleteDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete a BrokerListenerResource */\nexport function brokerListenerDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n brokerName: string,\n listenerName: string,\n options: BrokerListenerDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _brokerListenerDeleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _brokerListenerDeleteSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n brokerName,\n listenerName,\n options,\n ),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _brokerListenerListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n brokerName: string,\n options: BrokerListenerListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n brokerName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _brokerListenerListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_BrokerListenerResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _brokerListenerResourceListResultDeserializer(result.body);\n}\n\n/** List BrokerListenerResource resources by BrokerResource */\nexport function brokerListenerListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n brokerName: string,\n options: BrokerListenerListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<BrokerListenerResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _brokerListenerListByResourceGroupSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n brokerName,\n options,\n ),\n _brokerListenerListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IoTOperationsContext as Client, DataflowCreateOrUpdateOptionalParams, DataflowDeleteOptionalParams, DataflowGetOptionalParams, DataflowListByResourceGroupOptionalParams } from "../index.js";
|
|
2
|
+
import { DataflowResource, _DataflowResourceListResult } from "../../models/models.js";
|
|
3
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
5
|
+
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
6
|
+
export declare function _dataflowGetSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, dataflowName: string, options?: DataflowGetOptionalParams): StreamableMethod;
|
|
7
|
+
export declare function _dataflowGetDeserialize(result: PathUncheckedResponse): Promise<DataflowResource>;
|
|
8
|
+
/** Get a DataflowResource */
|
|
9
|
+
export declare function dataflowGet(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, dataflowName: string, options?: DataflowGetOptionalParams): Promise<DataflowResource>;
|
|
10
|
+
export declare function _dataflowCreateOrUpdateSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, dataflowName: string, resource: DataflowResource, options?: DataflowCreateOrUpdateOptionalParams): StreamableMethod;
|
|
11
|
+
export declare function _dataflowCreateOrUpdateDeserialize(result: PathUncheckedResponse): Promise<DataflowResource>;
|
|
12
|
+
/** Create a DataflowResource */
|
|
13
|
+
export declare function dataflowCreateOrUpdate(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, dataflowName: string, resource: DataflowResource, options?: DataflowCreateOrUpdateOptionalParams): PollerLike<OperationState<DataflowResource>, DataflowResource>;
|
|
14
|
+
export declare function _dataflowDeleteSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, dataflowName: string, options?: DataflowDeleteOptionalParams): StreamableMethod;
|
|
15
|
+
export declare function _dataflowDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
16
|
+
/** Delete a DataflowResource */
|
|
17
|
+
export declare function dataflowDelete(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, dataflowName: string, options?: DataflowDeleteOptionalParams): PollerLike<OperationState<void>, void>;
|
|
18
|
+
export declare function _dataflowListByResourceGroupSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, options?: DataflowListByResourceGroupOptionalParams): StreamableMethod;
|
|
19
|
+
export declare function _dataflowListByResourceGroupDeserialize(result: PathUncheckedResponse): Promise<_DataflowResourceListResult>;
|
|
20
|
+
/** List DataflowResource resources by DataflowProfileResource */
|
|
21
|
+
export declare function dataflowListByResourceGroup(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, options?: DataflowListByResourceGroupOptionalParams): PagedAsyncIterableIterator<DataflowResource>;
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/dataflow/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,oBAAoB,IAAI,MAAM,EAC9B,oCAAoC,EACpC,4BAA4B,EAC5B,yBAAyB,EACzB,yCAAyC,EAC1C,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,gBAAgB,EAGhB,2BAA2B,EAE5B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE7D,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,mBAAmB,EAAE,MAAM,EAC3B,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,yBAAkD,GAC1D,gBAAgB,CAWlB;AAED,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,gBAAgB,CAAC,CAO3B;AAED,6BAA6B;AAC7B,wBAAsB,WAAW,CAC/B,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,mBAAmB,EAAE,MAAM,EAC3B,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,yBAAkD,GAC1D,OAAO,CAAC,gBAAgB,CAAC,CAW3B;AAED,wBAAgB,2BAA2B,CACz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CAC9C,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,GAAE,yCAAkE,GAC1E,gBAAgB,CAUlB;AAED,wBAAsB,uCAAuC,CAC3D,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,2BAA2B,CAAC,CAOtC;AAED,iEAAiE;AACjE,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,GAAE,yCAAkE,GAC1E,0BAA0B,CAAC,gBAAgB,CAAC,CAgB9C"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { dataflowResourceSerializer, dataflowResourceDeserializer, _dataflowResourceListResultDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
|
|
5
|
+
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
6
|
+
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
7
|
+
export function _dataflowGetSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, options = { requestOptions: {} }) {
|
|
8
|
+
return context
|
|
9
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows/{dataflowName}", subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName)
|
|
10
|
+
.get(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
11
|
+
}
|
|
12
|
+
export async function _dataflowGetDeserialize(result) {
|
|
13
|
+
const expectedStatuses = ["200"];
|
|
14
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
15
|
+
throw createRestError(result);
|
|
16
|
+
}
|
|
17
|
+
return dataflowResourceDeserializer(result.body);
|
|
18
|
+
}
|
|
19
|
+
/** Get a DataflowResource */
|
|
20
|
+
export async function dataflowGet(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, options = { requestOptions: {} }) {
|
|
21
|
+
const result = await _dataflowGetSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, options);
|
|
22
|
+
return _dataflowGetDeserialize(result);
|
|
23
|
+
}
|
|
24
|
+
export function _dataflowCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, resource, options = { requestOptions: {} }) {
|
|
25
|
+
return context
|
|
26
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows/{dataflowName}", subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName)
|
|
27
|
+
.put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { body: dataflowResourceSerializer(resource) }));
|
|
28
|
+
}
|
|
29
|
+
export async function _dataflowCreateOrUpdateDeserialize(result) {
|
|
30
|
+
const expectedStatuses = ["200", "201"];
|
|
31
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
32
|
+
throw createRestError(result);
|
|
33
|
+
}
|
|
34
|
+
return dataflowResourceDeserializer(result.body);
|
|
35
|
+
}
|
|
36
|
+
/** Create a DataflowResource */
|
|
37
|
+
export function dataflowCreateOrUpdate(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, resource, options = { requestOptions: {} }) {
|
|
38
|
+
return getLongRunningPoller(context, _dataflowCreateOrUpdateDeserialize, ["200", "201"], {
|
|
39
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
40
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
41
|
+
getInitialResponse: () => _dataflowCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, resource, options),
|
|
42
|
+
resourceLocationConfig: "azure-async-operation",
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
export function _dataflowDeleteSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, options = { requestOptions: {} }) {
|
|
46
|
+
return context
|
|
47
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows/{dataflowName}", subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName)
|
|
48
|
+
.delete(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
49
|
+
}
|
|
50
|
+
export async function _dataflowDeleteDeserialize(result) {
|
|
51
|
+
const expectedStatuses = ["202", "204", "200"];
|
|
52
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
53
|
+
throw createRestError(result);
|
|
54
|
+
}
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
/** Delete a DataflowResource */
|
|
58
|
+
export function dataflowDelete(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, options = { requestOptions: {} }) {
|
|
59
|
+
return getLongRunningPoller(context, _dataflowDeleteDeserialize, ["202", "204", "200"], {
|
|
60
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
61
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
62
|
+
getInitialResponse: () => _dataflowDeleteSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, options),
|
|
63
|
+
resourceLocationConfig: "location",
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
export function _dataflowListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options = { requestOptions: {} }) {
|
|
67
|
+
return context
|
|
68
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows", subscriptionId, resourceGroupName, instanceName, dataflowProfileName)
|
|
69
|
+
.get(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
70
|
+
}
|
|
71
|
+
export async function _dataflowListByResourceGroupDeserialize(result) {
|
|
72
|
+
const expectedStatuses = ["200"];
|
|
73
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
74
|
+
throw createRestError(result);
|
|
75
|
+
}
|
|
76
|
+
return _dataflowResourceListResultDeserializer(result.body);
|
|
77
|
+
}
|
|
78
|
+
/** List DataflowResource resources by DataflowProfileResource */
|
|
79
|
+
export function dataflowListByResourceGroup(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options = { requestOptions: {} }) {
|
|
80
|
+
return buildPagedAsyncIterator(context, () => _dataflowListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options), _dataflowListByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/dataflow/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EAEL,0BAA0B,EAC1B,4BAA4B,EAE5B,uCAAuC,GACxC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,gBAAgB,CAC9B,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,YAAoB,EACpB,mBAA2B,EAC3B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C,CAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,uCAAuC,CAC3D,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC9D,CAAC;AAED,iEAAiE;AACjE,MAAM,UAAU,2BAA2B,CACzC,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,YAAoB,EACpB,mBAA2B,EAC3B,UAAqD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE3E,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CACH,gCAAgC,CAC9B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,OAAO,CACR,EACH,uCAAuC,EACvC,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n IoTOperationsContext as Client,\n DataflowCreateOrUpdateOptionalParams,\n DataflowDeleteOptionalParams,\n DataflowGetOptionalParams,\n DataflowListByResourceGroupOptionalParams,\n} from \"../index.js\";\nimport {\n DataflowResource,\n dataflowResourceSerializer,\n dataflowResourceDeserializer,\n _DataflowResourceListResult,\n _dataflowResourceListResultDeserializer,\n} from \"../../models/models.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _dataflowGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowProfileName: string,\n dataflowName: string,\n options: DataflowGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows/{dataflowName}\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowProfileName,\n dataflowName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _dataflowGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<DataflowResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return dataflowResourceDeserializer(result.body);\n}\n\n/** Get a DataflowResource */\nexport async function dataflowGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowProfileName: string,\n dataflowName: string,\n options: DataflowGetOptionalParams = { requestOptions: {} },\n): Promise<DataflowResource> {\n const result = await _dataflowGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowProfileName,\n dataflowName,\n options,\n );\n return _dataflowGetDeserialize(result);\n}\n\nexport function _dataflowCreateOrUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowProfileName: string,\n dataflowName: string,\n resource: DataflowResource,\n options: DataflowCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows/{dataflowName}\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowProfileName,\n dataflowName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: dataflowResourceSerializer(resource),\n });\n}\n\nexport async function _dataflowCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<DataflowResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return dataflowResourceDeserializer(result.body);\n}\n\n/** Create a DataflowResource */\nexport function dataflowCreateOrUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowProfileName: string,\n dataflowName: string,\n resource: DataflowResource,\n options: DataflowCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<DataflowResource>, DataflowResource> {\n return getLongRunningPoller(context, _dataflowCreateOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _dataflowCreateOrUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowProfileName,\n dataflowName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<DataflowResource>, DataflowResource>;\n}\n\nexport function _dataflowDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowProfileName: string,\n dataflowName: string,\n options: DataflowDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows/{dataflowName}\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowProfileName,\n dataflowName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _dataflowDeleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete a DataflowResource */\nexport function dataflowDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowProfileName: string,\n dataflowName: string,\n options: DataflowDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _dataflowDeleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _dataflowDeleteSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowProfileName,\n dataflowName,\n options,\n ),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _dataflowListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowProfileName: string,\n options: DataflowListByResourceGroupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowProfileName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _dataflowListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_DataflowResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _dataflowResourceListResultDeserializer(result.body);\n}\n\n/** List DataflowResource resources by DataflowProfileResource */\nexport function dataflowListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowProfileName: string,\n options: DataflowListByResourceGroupOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<DataflowResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _dataflowListByResourceGroupSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowProfileName,\n options,\n ),\n _dataflowListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IoTOperationsContext as Client, DataflowEndpointCreateOrUpdateOptionalParams, DataflowEndpointDeleteOptionalParams, DataflowEndpointGetOptionalParams, DataflowEndpointListByResourceGroupOptionalParams } from "../index.js";
|
|
2
|
+
import { DataflowEndpointResource, _DataflowEndpointResourceListResult } from "../../models/models.js";
|
|
3
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
5
|
+
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
6
|
+
export declare function _dataflowEndpointGetSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowEndpointName: string, options?: DataflowEndpointGetOptionalParams): StreamableMethod;
|
|
7
|
+
export declare function _dataflowEndpointGetDeserialize(result: PathUncheckedResponse): Promise<DataflowEndpointResource>;
|
|
8
|
+
/** Get a DataflowEndpointResource */
|
|
9
|
+
export declare function dataflowEndpointGet(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowEndpointName: string, options?: DataflowEndpointGetOptionalParams): Promise<DataflowEndpointResource>;
|
|
10
|
+
export declare function _dataflowEndpointCreateOrUpdateSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowEndpointName: string, resource: DataflowEndpointResource, options?: DataflowEndpointCreateOrUpdateOptionalParams): StreamableMethod;
|
|
11
|
+
export declare function _dataflowEndpointCreateOrUpdateDeserialize(result: PathUncheckedResponse): Promise<DataflowEndpointResource>;
|
|
12
|
+
/** Create a DataflowEndpointResource */
|
|
13
|
+
export declare function dataflowEndpointCreateOrUpdate(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowEndpointName: string, resource: DataflowEndpointResource, options?: DataflowEndpointCreateOrUpdateOptionalParams): PollerLike<OperationState<DataflowEndpointResource>, DataflowEndpointResource>;
|
|
14
|
+
export declare function _dataflowEndpointDeleteSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowEndpointName: string, options?: DataflowEndpointDeleteOptionalParams): StreamableMethod;
|
|
15
|
+
export declare function _dataflowEndpointDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
16
|
+
/** Delete a DataflowEndpointResource */
|
|
17
|
+
export declare function dataflowEndpointDelete(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowEndpointName: string, options?: DataflowEndpointDeleteOptionalParams): PollerLike<OperationState<void>, void>;
|
|
18
|
+
export declare function _dataflowEndpointListByResourceGroupSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, options?: DataflowEndpointListByResourceGroupOptionalParams): StreamableMethod;
|
|
19
|
+
export declare function _dataflowEndpointListByResourceGroupDeserialize(result: PathUncheckedResponse): Promise<_DataflowEndpointResourceListResult>;
|
|
20
|
+
/** List DataflowEndpointResource resources by InstanceResource */
|
|
21
|
+
export declare function dataflowEndpointListByResourceGroup(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, options?: DataflowEndpointListByResourceGroupOptionalParams): PagedAsyncIterableIterator<DataflowEndpointResource>;
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/dataflowEndpoint/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,oBAAoB,IAAI,MAAM,EAC9B,4CAA4C,EAC5C,oCAAoC,EACpC,iCAAiC,EACjC,iDAAiD,EAClD,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,wBAAwB,EAGxB,mCAAmC,EAEpC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;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,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,GAAE,oCAA6D,GACrE,gBAAgB,CAUlB;AAED,wBAAsB,kCAAkC,CACtD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,IAAI,CAAC,CAOf;AAED,wCAAwC;AACxC,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,GAAE,oCAA6D,GACrE,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAexC;AAED,wBAAgB,wCAAwC,CACtD,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,iDAER,GACA,gBAAgB,CASlB;AAED,wBAAsB,+CAA+C,CACnE,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,mCAAmC,CAAC,CAO9C;AAED,kEAAkE;AAClE,wBAAgB,mCAAmC,CACjD,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,iDAER,GACA,0BAA0B,CAAC,wBAAwB,CAAC,CAetD"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { dataflowEndpointResourceSerializer, dataflowEndpointResourceDeserializer, _dataflowEndpointResourceListResultDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
|
|
5
|
+
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
6
|
+
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
7
|
+
export function _dataflowEndpointGetSend(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, options = { requestOptions: {} }) {
|
|
8
|
+
return context
|
|
9
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints/{dataflowEndpointName}", subscriptionId, resourceGroupName, instanceName, dataflowEndpointName)
|
|
10
|
+
.get(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
11
|
+
}
|
|
12
|
+
export async function _dataflowEndpointGetDeserialize(result) {
|
|
13
|
+
const expectedStatuses = ["200"];
|
|
14
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
15
|
+
throw createRestError(result);
|
|
16
|
+
}
|
|
17
|
+
return dataflowEndpointResourceDeserializer(result.body);
|
|
18
|
+
}
|
|
19
|
+
/** Get a DataflowEndpointResource */
|
|
20
|
+
export async function dataflowEndpointGet(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, options = { requestOptions: {} }) {
|
|
21
|
+
const result = await _dataflowEndpointGetSend(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, options);
|
|
22
|
+
return _dataflowEndpointGetDeserialize(result);
|
|
23
|
+
}
|
|
24
|
+
export function _dataflowEndpointCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, resource, options = {
|
|
25
|
+
requestOptions: {},
|
|
26
|
+
}) {
|
|
27
|
+
return context
|
|
28
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints/{dataflowEndpointName}", subscriptionId, resourceGroupName, instanceName, dataflowEndpointName)
|
|
29
|
+
.put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { body: dataflowEndpointResourceSerializer(resource) }));
|
|
30
|
+
}
|
|
31
|
+
export async function _dataflowEndpointCreateOrUpdateDeserialize(result) {
|
|
32
|
+
const expectedStatuses = ["200", "201"];
|
|
33
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
34
|
+
throw createRestError(result);
|
|
35
|
+
}
|
|
36
|
+
return dataflowEndpointResourceDeserializer(result.body);
|
|
37
|
+
}
|
|
38
|
+
/** Create a DataflowEndpointResource */
|
|
39
|
+
export function dataflowEndpointCreateOrUpdate(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, resource, options = {
|
|
40
|
+
requestOptions: {},
|
|
41
|
+
}) {
|
|
42
|
+
return getLongRunningPoller(context, _dataflowEndpointCreateOrUpdateDeserialize, ["200", "201"], {
|
|
43
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
44
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
45
|
+
getInitialResponse: () => _dataflowEndpointCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, resource, options),
|
|
46
|
+
resourceLocationConfig: "azure-async-operation",
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
export function _dataflowEndpointDeleteSend(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, options = { requestOptions: {} }) {
|
|
50
|
+
return context
|
|
51
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints/{dataflowEndpointName}", subscriptionId, resourceGroupName, instanceName, dataflowEndpointName)
|
|
52
|
+
.delete(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
53
|
+
}
|
|
54
|
+
export async function _dataflowEndpointDeleteDeserialize(result) {
|
|
55
|
+
const expectedStatuses = ["202", "204", "200"];
|
|
56
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
57
|
+
throw createRestError(result);
|
|
58
|
+
}
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
/** Delete a DataflowEndpointResource */
|
|
62
|
+
export function dataflowEndpointDelete(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, options = { requestOptions: {} }) {
|
|
63
|
+
return getLongRunningPoller(context, _dataflowEndpointDeleteDeserialize, ["202", "204", "200"], {
|
|
64
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
65
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
66
|
+
getInitialResponse: () => _dataflowEndpointDeleteSend(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, options),
|
|
67
|
+
resourceLocationConfig: "location",
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
export function _dataflowEndpointListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, options = {
|
|
71
|
+
requestOptions: {},
|
|
72
|
+
}) {
|
|
73
|
+
return context
|
|
74
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints", subscriptionId, resourceGroupName, instanceName)
|
|
75
|
+
.get(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
76
|
+
}
|
|
77
|
+
export async function _dataflowEndpointListByResourceGroupDeserialize(result) {
|
|
78
|
+
const expectedStatuses = ["200"];
|
|
79
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
80
|
+
throw createRestError(result);
|
|
81
|
+
}
|
|
82
|
+
return _dataflowEndpointResourceListResultDeserializer(result.body);
|
|
83
|
+
}
|
|
84
|
+
/** List DataflowEndpointResource resources by InstanceResource */
|
|
85
|
+
export function dataflowEndpointListByResourceGroup(context, subscriptionId, resourceGroupName, instanceName, options = {
|
|
86
|
+
requestOptions: {},
|
|
87
|
+
}) {
|
|
88
|
+
return buildPagedAsyncIterator(context, () => _dataflowEndpointListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, options), _dataflowEndpointListByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/dataflowEndpoint/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EAEL,kCAAkC,EAClC,oCAAoC,EAEpC,+CAA+C,GAChD,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,wBAAwB,CACtC,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,YAAoB,EACpB,oBAA4B,EAC5B,UAA6C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEnE,OAAO,OAAO;SACX,IAAI,CACH,wKAAwK,EACxK,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,CACrB;SACA,GAAG,mBAAM,mCAAmC,CAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,+BAA+B,CACnD,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,oCAAoC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC3D,CAAC;AAED,qCAAqC;AACrC,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,YAAoB,EACpB,oBAA4B,EAC5B,UAA6C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEnE,MAAM,MAAM,GAAG,MAAM,wBAAwB,CAC3C,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Y,EACZ,oBAAoB,EACpB,OAAO,CACR;QACH,sBAAsB,EAAE,UAAU;KACnC,CAA2C,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,wCAAwC,CACtD,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,YAAoB,EACpB,UAA6D;IAC3D,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,OAAO;SACX,IAAI,CACH,iJAAiJ,EACjJ,cAAc,EACd,iBAAiB,EACjB,YAAY,CACb;SACA,GAAG,mBAAM,mCAAmC,CAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,+CAA+C,CACnE,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,+CAA+C,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACtE,CAAC;AAED,kEAAkE;AAClE,MAAM,UAAU,mCAAmC,CACjD,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,YAAoB,EACpB,UAA6D;IAC3D,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CACH,wCAAwC,CACtC,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,OAAO,CACR,EACH,+CAA+C,EAC/C,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n IoTOperationsContext as Client,\n DataflowEndpointCreateOrUpdateOptionalParams,\n DataflowEndpointDeleteOptionalParams,\n DataflowEndpointGetOptionalParams,\n DataflowEndpointListByResourceGroupOptionalParams,\n} from \"../index.js\";\nimport {\n DataflowEndpointResource,\n dataflowEndpointResourceSerializer,\n dataflowEndpointResourceDeserializer,\n _DataflowEndpointResourceListResult,\n _dataflowEndpointResourceListResultDeserializer,\n} from \"../../models/models.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _dataflowEndpointGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowEndpointName: string,\n options: DataflowEndpointGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints/{dataflowEndpointName}\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowEndpointName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _dataflowEndpointGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<DataflowEndpointResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return dataflowEndpointResourceDeserializer(result.body);\n}\n\n/** Get a DataflowEndpointResource */\nexport async function dataflowEndpointGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowEndpointName: string,\n options: DataflowEndpointGetOptionalParams = { requestOptions: {} },\n): Promise<DataflowEndpointResource> {\n const result = await _dataflowEndpointGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowEndpointName,\n options,\n );\n return _dataflowEndpointGetDeserialize(result);\n}\n\nexport function _dataflowEndpointCreateOrUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowEndpointName: string,\n resource: DataflowEndpointResource,\n options: DataflowEndpointCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints/{dataflowEndpointName}\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowEndpointName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: dataflowEndpointResourceSerializer(resource),\n });\n}\n\nexport async function _dataflowEndpointCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<DataflowEndpointResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return dataflowEndpointResourceDeserializer(result.body);\n}\n\n/** Create a DataflowEndpointResource */\nexport function dataflowEndpointCreateOrUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowEndpointName: string,\n resource: DataflowEndpointResource,\n options: DataflowEndpointCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<DataflowEndpointResource>, DataflowEndpointResource> {\n return getLongRunningPoller(context, _dataflowEndpointCreateOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _dataflowEndpointCreateOrUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowEndpointName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<DataflowEndpointResource>, DataflowEndpointResource>;\n}\n\nexport function _dataflowEndpointDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowEndpointName: string,\n options: DataflowEndpointDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints/{dataflowEndpointName}\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowEndpointName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _dataflowEndpointDeleteDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete a DataflowEndpointResource */\nexport function dataflowEndpointDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowEndpointName: string,\n options: DataflowEndpointDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _dataflowEndpointDeleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _dataflowEndpointDeleteSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowEndpointName,\n options,\n ),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _dataflowEndpointListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n options: DataflowEndpointListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _dataflowEndpointListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_DataflowEndpointResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _dataflowEndpointResourceListResultDeserializer(result.body);\n}\n\n/** List DataflowEndpointResource resources by InstanceResource */\nexport function dataflowEndpointListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n options: DataflowEndpointListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<DataflowEndpointResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _dataflowEndpointListByResourceGroupSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n options,\n ),\n _dataflowEndpointListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IoTOperationsContext as Client, DataflowProfileCreateOrUpdateOptionalParams, DataflowProfileDeleteOptionalParams, DataflowProfileGetOptionalParams, DataflowProfileListByResourceGroupOptionalParams } from "../index.js";
|
|
2
|
+
import { DataflowProfileResource, _DataflowProfileResourceListResult } from "../../models/models.js";
|
|
3
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
5
|
+
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
6
|
+
export declare function _dataflowProfileGetSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, options?: DataflowProfileGetOptionalParams): StreamableMethod;
|
|
7
|
+
export declare function _dataflowProfileGetDeserialize(result: PathUncheckedResponse): Promise<DataflowProfileResource>;
|
|
8
|
+
/** Get a DataflowProfileResource */
|
|
9
|
+
export declare function dataflowProfileGet(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, options?: DataflowProfileGetOptionalParams): Promise<DataflowProfileResource>;
|
|
10
|
+
export declare function _dataflowProfileCreateOrUpdateSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, resource: DataflowProfileResource, options?: DataflowProfileCreateOrUpdateOptionalParams): StreamableMethod;
|
|
11
|
+
export declare function _dataflowProfileCreateOrUpdateDeserialize(result: PathUncheckedResponse): Promise<DataflowProfileResource>;
|
|
12
|
+
/** Create a DataflowProfileResource */
|
|
13
|
+
export declare function dataflowProfileCreateOrUpdate(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, resource: DataflowProfileResource, options?: DataflowProfileCreateOrUpdateOptionalParams): PollerLike<OperationState<DataflowProfileResource>, DataflowProfileResource>;
|
|
14
|
+
export declare function _dataflowProfileDeleteSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, options?: DataflowProfileDeleteOptionalParams): StreamableMethod;
|
|
15
|
+
export declare function _dataflowProfileDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
16
|
+
/** Delete a DataflowProfileResource */
|
|
17
|
+
export declare function dataflowProfileDelete(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, options?: DataflowProfileDeleteOptionalParams): PollerLike<OperationState<void>, void>;
|
|
18
|
+
export declare function _dataflowProfileListByResourceGroupSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, options?: DataflowProfileListByResourceGroupOptionalParams): StreamableMethod;
|
|
19
|
+
export declare function _dataflowProfileListByResourceGroupDeserialize(result: PathUncheckedResponse): Promise<_DataflowProfileResourceListResult>;
|
|
20
|
+
/** List DataflowProfileResource resources by InstanceResource */
|
|
21
|
+
export declare function dataflowProfileListByResourceGroup(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, options?: DataflowProfileListByResourceGroupOptionalParams): PagedAsyncIterableIterator<DataflowProfileResource>;
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/dataflowProfile/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,oBA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@ -0,0 +1,86 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { dataflowProfileResourceSerializer, dataflowProfileResourceDeserializer, _dataflowProfileResourceListResultDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
|
|
5
|
+
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
6
|
+
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
7
|
+
export function _dataflowProfileGetSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options = { requestOptions: {} }) {
|
|
8
|
+
return context
|
|
9
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}", subscriptionId, resourceGroupName, instanceName, dataflowProfileName)
|
|
10
|
+
.get(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
11
|
+
}
|
|
12
|
+
export async function _dataflowProfileGetDeserialize(result) {
|
|
13
|
+
const expectedStatuses = ["200"];
|
|
14
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
15
|
+
throw createRestError(result);
|
|
16
|
+
}
|
|
17
|
+
return dataflowProfileResourceDeserializer(result.body);
|
|
18
|
+
}
|
|
19
|
+
/** Get a DataflowProfileResource */
|
|
20
|
+
export async function dataflowProfileGet(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options = { requestOptions: {} }) {
|
|
21
|
+
const result = await _dataflowProfileGetSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options);
|
|
22
|
+
return _dataflowProfileGetDeserialize(result);
|
|
23
|
+
}
|
|
24
|
+
export function _dataflowProfileCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, resource, options = { requestOptions: {} }) {
|
|
25
|
+
return context
|
|
26
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}", subscriptionId, resourceGroupName, instanceName, dataflowProfileName)
|
|
27
|
+
.put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { body: dataflowProfileResourceSerializer(resource) }));
|
|
28
|
+
}
|
|
29
|
+
export async function _dataflowProfileCreateOrUpdateDeserialize(result) {
|
|
30
|
+
const expectedStatuses = ["200", "201"];
|
|
31
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
32
|
+
throw createRestError(result);
|
|
33
|
+
}
|
|
34
|
+
return dataflowProfileResourceDeserializer(result.body);
|
|
35
|
+
}
|
|
36
|
+
/** Create a DataflowProfileResource */
|
|
37
|
+
export function dataflowProfileCreateOrUpdate(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, resource, options = { requestOptions: {} }) {
|
|
38
|
+
return getLongRunningPoller(context, _dataflowProfileCreateOrUpdateDeserialize, ["200", "201"], {
|
|
39
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
40
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
41
|
+
getInitialResponse: () => _dataflowProfileCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, resource, options),
|
|
42
|
+
resourceLocationConfig: "azure-async-operation",
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
export function _dataflowProfileDeleteSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options = { requestOptions: {} }) {
|
|
46
|
+
return context
|
|
47
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}", subscriptionId, resourceGroupName, instanceName, dataflowProfileName)
|
|
48
|
+
.delete(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
49
|
+
}
|
|
50
|
+
export async function _dataflowProfileDeleteDeserialize(result) {
|
|
51
|
+
const expectedStatuses = ["202", "204", "200"];
|
|
52
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
53
|
+
throw createRestError(result);
|
|
54
|
+
}
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
/** Delete a DataflowProfileResource */
|
|
58
|
+
export function dataflowProfileDelete(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options = { requestOptions: {} }) {
|
|
59
|
+
return getLongRunningPoller(context, _dataflowProfileDeleteDeserialize, ["202", "204", "200"], {
|
|
60
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
61
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
62
|
+
getInitialResponse: () => _dataflowProfileDeleteSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options),
|
|
63
|
+
resourceLocationConfig: "location",
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
export function _dataflowProfileListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, options = {
|
|
67
|
+
requestOptions: {},
|
|
68
|
+
}) {
|
|
69
|
+
return context
|
|
70
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles", subscriptionId, resourceGroupName, instanceName)
|
|
71
|
+
.get(Object.assign({}, operationOptionsToRequestParameters(options)));
|
|
72
|
+
}
|
|
73
|
+
export async function _dataflowProfileListByResourceGroupDeserialize(result) {
|
|
74
|
+
const expectedStatuses = ["200"];
|
|
75
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
76
|
+
throw createRestError(result);
|
|
77
|
+
}
|
|
78
|
+
return _dataflowProfileResourceListResultDeserializer(result.body);
|
|
79
|
+
}
|
|
80
|
+
/** List DataflowProfileResource resources by InstanceResource */
|
|
81
|
+
export function dataflowProfileListByResourceGroup(context, subscriptionId, resourceGroupName, instanceName, options = {
|
|
82
|
+
requestOptions: {},
|
|
83
|
+
}) {
|
|
84
|
+
return buildPagedAsyncIterator(context, () => _dataflowProfileListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, options), _dataflowProfileListByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=index.js.map
|