@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,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports._brokerListenerGetSend = _brokerListenerGetSend;
|
|
6
|
+
exports._brokerListenerGetDeserialize = _brokerListenerGetDeserialize;
|
|
7
|
+
exports.brokerListenerGet = brokerListenerGet;
|
|
8
|
+
exports._brokerListenerCreateOrUpdateSend = _brokerListenerCreateOrUpdateSend;
|
|
9
|
+
exports._brokerListenerCreateOrUpdateDeserialize = _brokerListenerCreateOrUpdateDeserialize;
|
|
10
|
+
exports.brokerListenerCreateOrUpdate = brokerListenerCreateOrUpdate;
|
|
11
|
+
exports._brokerListenerDeleteSend = _brokerListenerDeleteSend;
|
|
12
|
+
exports._brokerListenerDeleteDeserialize = _brokerListenerDeleteDeserialize;
|
|
13
|
+
exports.brokerListenerDelete = brokerListenerDelete;
|
|
14
|
+
exports._brokerListenerListByResourceGroupSend = _brokerListenerListByResourceGroupSend;
|
|
15
|
+
exports._brokerListenerListByResourceGroupDeserialize = _brokerListenerListByResourceGroupDeserialize;
|
|
16
|
+
exports.brokerListenerListByResourceGroup = brokerListenerListByResourceGroup;
|
|
17
|
+
const models_js_1 = require("../../models/models.js");
|
|
18
|
+
const pollingHelpers_js_1 = require("../../static-helpers/pollingHelpers.js");
|
|
19
|
+
const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
|
|
20
|
+
const core_client_1 = require("@azure-rest/core-client");
|
|
21
|
+
function _brokerListenerGetSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, options = { requestOptions: {} }) {
|
|
22
|
+
return context
|
|
23
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}", subscriptionId, resourceGroupName, instanceName, brokerName, listenerName)
|
|
24
|
+
.get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
25
|
+
}
|
|
26
|
+
async function _brokerListenerGetDeserialize(result) {
|
|
27
|
+
const expectedStatuses = ["200"];
|
|
28
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
29
|
+
throw (0, core_client_1.createRestError)(result);
|
|
30
|
+
}
|
|
31
|
+
return (0, models_js_1.brokerListenerResourceDeserializer)(result.body);
|
|
32
|
+
}
|
|
33
|
+
/** Get a BrokerListenerResource */
|
|
34
|
+
async function brokerListenerGet(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, options = { requestOptions: {} }) {
|
|
35
|
+
const result = await _brokerListenerGetSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, options);
|
|
36
|
+
return _brokerListenerGetDeserialize(result);
|
|
37
|
+
}
|
|
38
|
+
function _brokerListenerCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, resource, options = { requestOptions: {} }) {
|
|
39
|
+
return context
|
|
40
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}", subscriptionId, resourceGroupName, instanceName, brokerName, listenerName)
|
|
41
|
+
.put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: (0, models_js_1.brokerListenerResourceSerializer)(resource) }));
|
|
42
|
+
}
|
|
43
|
+
async function _brokerListenerCreateOrUpdateDeserialize(result) {
|
|
44
|
+
const expectedStatuses = ["200", "201"];
|
|
45
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
46
|
+
throw (0, core_client_1.createRestError)(result);
|
|
47
|
+
}
|
|
48
|
+
return (0, models_js_1.brokerListenerResourceDeserializer)(result.body);
|
|
49
|
+
}
|
|
50
|
+
/** Create a BrokerListenerResource */
|
|
51
|
+
function brokerListenerCreateOrUpdate(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, resource, options = { requestOptions: {} }) {
|
|
52
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _brokerListenerCreateOrUpdateDeserialize, ["200", "201"], {
|
|
53
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
54
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
55
|
+
getInitialResponse: () => _brokerListenerCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, resource, options),
|
|
56
|
+
resourceLocationConfig: "azure-async-operation",
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function _brokerListenerDeleteSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, options = { requestOptions: {} }) {
|
|
60
|
+
return context
|
|
61
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}", subscriptionId, resourceGroupName, instanceName, brokerName, listenerName)
|
|
62
|
+
.delete(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
63
|
+
}
|
|
64
|
+
async function _brokerListenerDeleteDeserialize(result) {
|
|
65
|
+
const expectedStatuses = ["202", "204", "200"];
|
|
66
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
67
|
+
throw (0, core_client_1.createRestError)(result);
|
|
68
|
+
}
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
/** Delete a BrokerListenerResource */
|
|
72
|
+
function brokerListenerDelete(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, options = { requestOptions: {} }) {
|
|
73
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _brokerListenerDeleteDeserialize, ["202", "204", "200"], {
|
|
74
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
75
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
76
|
+
getInitialResponse: () => _brokerListenerDeleteSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, options),
|
|
77
|
+
resourceLocationConfig: "location",
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
function _brokerListenerListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, options = {
|
|
81
|
+
requestOptions: {},
|
|
82
|
+
}) {
|
|
83
|
+
return context
|
|
84
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners", subscriptionId, resourceGroupName, instanceName, brokerName)
|
|
85
|
+
.get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
86
|
+
}
|
|
87
|
+
async function _brokerListenerListByResourceGroupDeserialize(result) {
|
|
88
|
+
const expectedStatuses = ["200"];
|
|
89
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
90
|
+
throw (0, core_client_1.createRestError)(result);
|
|
91
|
+
}
|
|
92
|
+
return (0, models_js_1._brokerListenerResourceListResultDeserializer)(result.body);
|
|
93
|
+
}
|
|
94
|
+
/** List BrokerListenerResource resources by BrokerResource */
|
|
95
|
+
function brokerListenerListByResourceGroup(context, subscriptionId, resourceGroupName, instanceName, brokerName, options = {
|
|
96
|
+
requestOptions: {},
|
|
97
|
+
}) {
|
|
98
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _brokerListenerListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, options), _brokerListenerListByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
99
|
+
}
|
|
100
|
+
//# 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;;AA6BlC,wDAmBC;AAED,sEASC;AAGD,8CAmBC;AAED,8EAuBC;AAED,4FASC;AAGD,oEA0BC;AAED,8DAmBC;AAED,4EASC;AAGD,oDAwBC;AAED,wFAmBC;AAED,sGASC;AAGD,8EAyBC;AAhQD,sDAMgC;AAChC,8EAA8E;AAC9E,4EAG+C;AAC/C,yDAKiC;AAGjC,SAAgB,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,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAEM,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,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,8CAAkC,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACzD,CAAC;AAED,mCAAmC;AAC5B,KAAK,UAAU,iBAAiB,CACrC,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,YAAoB,EACpB,UAAkB,EAClB,YAAoB,EACpB,UAA2C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEjE,MAAM,MAAM,GAAG,MAAM,sBAAsB,CACzC,O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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.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M,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,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports._dataflowGetSend = _dataflowGetSend;
|
|
6
|
+
exports._dataflowGetDeserialize = _dataflowGetDeserialize;
|
|
7
|
+
exports.dataflowGet = dataflowGet;
|
|
8
|
+
exports._dataflowCreateOrUpdateSend = _dataflowCreateOrUpdateSend;
|
|
9
|
+
exports._dataflowCreateOrUpdateDeserialize = _dataflowCreateOrUpdateDeserialize;
|
|
10
|
+
exports.dataflowCreateOrUpdate = dataflowCreateOrUpdate;
|
|
11
|
+
exports._dataflowDeleteSend = _dataflowDeleteSend;
|
|
12
|
+
exports._dataflowDeleteDeserialize = _dataflowDeleteDeserialize;
|
|
13
|
+
exports.dataflowDelete = dataflowDelete;
|
|
14
|
+
exports._dataflowListByResourceGroupSend = _dataflowListByResourceGroupSend;
|
|
15
|
+
exports._dataflowListByResourceGroupDeserialize = _dataflowListByResourceGroupDeserialize;
|
|
16
|
+
exports.dataflowListByResourceGroup = dataflowListByResourceGroup;
|
|
17
|
+
const models_js_1 = require("../../models/models.js");
|
|
18
|
+
const pollingHelpers_js_1 = require("../../static-helpers/pollingHelpers.js");
|
|
19
|
+
const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
|
|
20
|
+
const core_client_1 = require("@azure-rest/core-client");
|
|
21
|
+
function _dataflowGetSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, options = { requestOptions: {} }) {
|
|
22
|
+
return context
|
|
23
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows/{dataflowName}", subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName)
|
|
24
|
+
.get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
25
|
+
}
|
|
26
|
+
async function _dataflowGetDeserialize(result) {
|
|
27
|
+
const expectedStatuses = ["200"];
|
|
28
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
29
|
+
throw (0, core_client_1.createRestError)(result);
|
|
30
|
+
}
|
|
31
|
+
return (0, models_js_1.dataflowResourceDeserializer)(result.body);
|
|
32
|
+
}
|
|
33
|
+
/** Get a DataflowResource */
|
|
34
|
+
async function dataflowGet(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, options = { requestOptions: {} }) {
|
|
35
|
+
const result = await _dataflowGetSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, options);
|
|
36
|
+
return _dataflowGetDeserialize(result);
|
|
37
|
+
}
|
|
38
|
+
function _dataflowCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, resource, options = { requestOptions: {} }) {
|
|
39
|
+
return context
|
|
40
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows/{dataflowName}", subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName)
|
|
41
|
+
.put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: (0, models_js_1.dataflowResourceSerializer)(resource) }));
|
|
42
|
+
}
|
|
43
|
+
async function _dataflowCreateOrUpdateDeserialize(result) {
|
|
44
|
+
const expectedStatuses = ["200", "201"];
|
|
45
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
46
|
+
throw (0, core_client_1.createRestError)(result);
|
|
47
|
+
}
|
|
48
|
+
return (0, models_js_1.dataflowResourceDeserializer)(result.body);
|
|
49
|
+
}
|
|
50
|
+
/** Create a DataflowResource */
|
|
51
|
+
function dataflowCreateOrUpdate(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, resource, options = { requestOptions: {} }) {
|
|
52
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _dataflowCreateOrUpdateDeserialize, ["200", "201"], {
|
|
53
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
54
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
55
|
+
getInitialResponse: () => _dataflowCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, resource, options),
|
|
56
|
+
resourceLocationConfig: "azure-async-operation",
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function _dataflowDeleteSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, options = { requestOptions: {} }) {
|
|
60
|
+
return context
|
|
61
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows/{dataflowName}", subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName)
|
|
62
|
+
.delete(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
63
|
+
}
|
|
64
|
+
async function _dataflowDeleteDeserialize(result) {
|
|
65
|
+
const expectedStatuses = ["202", "204", "200"];
|
|
66
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
67
|
+
throw (0, core_client_1.createRestError)(result);
|
|
68
|
+
}
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
/** Delete a DataflowResource */
|
|
72
|
+
function dataflowDelete(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, options = { requestOptions: {} }) {
|
|
73
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _dataflowDeleteDeserialize, ["202", "204", "200"], {
|
|
74
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
75
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
76
|
+
getInitialResponse: () => _dataflowDeleteSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, options),
|
|
77
|
+
resourceLocationConfig: "location",
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
function _dataflowListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options = { requestOptions: {} }) {
|
|
81
|
+
return context
|
|
82
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows", subscriptionId, resourceGroupName, instanceName, dataflowProfileName)
|
|
83
|
+
.get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
84
|
+
}
|
|
85
|
+
async function _dataflowListByResourceGroupDeserialize(result) {
|
|
86
|
+
const expectedStatuses = ["200"];
|
|
87
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
88
|
+
throw (0, core_client_1.createRestError)(result);
|
|
89
|
+
}
|
|
90
|
+
return (0, models_js_1._dataflowResourceListResultDeserializer)(result.body);
|
|
91
|
+
}
|
|
92
|
+
/** List DataflowResource resources by DataflowProfileResource */
|
|
93
|
+
function dataflowListByResourceGroup(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options = { requestOptions: {} }) {
|
|
94
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _dataflowListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options), _dataflowListByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
95
|
+
}
|
|
96
|
+
//# 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;;AA6BlC,4CAmBC;AAED,0DASC;AAGD,kCAmBC;AAED,kEAuBC;AAED,gFASC;AAGD,wDA0BC;AAED,kDAmBC;AAED,gEAOC;AAGD,wCAwBC;AAED,4EAiBC;AAED,0FASC;AAGD,kEAuBC;AA1PD,sDAMgC;AAChC,8EAA8E;AAC9E,4EAG+C;AAC/C,yDAKiC;AAGjC,SAAgB,gBAAgB,CAC9B,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,YAAoB,EACpB,mBAA2B,EAC3B,YAAoB,EACpB,UAAqC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE3D,OAAO,OAAO;SACX,IAAI,CACH,+LAA+L,EAC/L,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,YAAY,CACb;SACA,GAAG,mBAAM,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,uBAAuB,CAC3C,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,wCAA4B,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACnD,CAAC;AAED,6BAA6B;AACtB,KAAK,UAAU,WAAW,CAC/B,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,YAAoB,EACpB,mBAA2B,EAC3B,YAAoB,EACpB,UAAqC,EAAE,cAAc,EAAE,EAAE,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,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;AACjC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE7D,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,GAAE,iCAA0D,GAClE,gBAAgB,CAUlB;AAED,wBAAsB,+BAA+B,CACnD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,wBAAwB,CAAC,CAOnC;AAED,qCAAqC;AACrC,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,GAAE,iCAA0D,GAClE,OAAO,CAAC,wBAAwB,CAAC,CAUnC;AAED,wBAAgB,mCAAmC,CACjD,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EAC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AAC,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,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports._dataflowEndpointGetSend = _dataflowEndpointGetSend;
|
|
6
|
+
exports._dataflowEndpointGetDeserialize = _dataflowEndpointGetDeserialize;
|
|
7
|
+
exports.dataflowEndpointGet = dataflowEndpointGet;
|
|
8
|
+
exports._dataflowEndpointCreateOrUpdateSend = _dataflowEndpointCreateOrUpdateSend;
|
|
9
|
+
exports._dataflowEndpointCreateOrUpdateDeserialize = _dataflowEndpointCreateOrUpdateDeserialize;
|
|
10
|
+
exports.dataflowEndpointCreateOrUpdate = dataflowEndpointCreateOrUpdate;
|
|
11
|
+
exports._dataflowEndpointDeleteSend = _dataflowEndpointDeleteSend;
|
|
12
|
+
exports._dataflowEndpointDeleteDeserialize = _dataflowEndpointDeleteDeserialize;
|
|
13
|
+
exports.dataflowEndpointDelete = dataflowEndpointDelete;
|
|
14
|
+
exports._dataflowEndpointListByResourceGroupSend = _dataflowEndpointListByResourceGroupSend;
|
|
15
|
+
exports._dataflowEndpointListByResourceGroupDeserialize = _dataflowEndpointListByResourceGroupDeserialize;
|
|
16
|
+
exports.dataflowEndpointListByResourceGroup = dataflowEndpointListByResourceGroup;
|
|
17
|
+
const models_js_1 = require("../../models/models.js");
|
|
18
|
+
const pollingHelpers_js_1 = require("../../static-helpers/pollingHelpers.js");
|
|
19
|
+
const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
|
|
20
|
+
const core_client_1 = require("@azure-rest/core-client");
|
|
21
|
+
function _dataflowEndpointGetSend(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, options = { requestOptions: {} }) {
|
|
22
|
+
return context
|
|
23
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints/{dataflowEndpointName}", subscriptionId, resourceGroupName, instanceName, dataflowEndpointName)
|
|
24
|
+
.get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
25
|
+
}
|
|
26
|
+
async function _dataflowEndpointGetDeserialize(result) {
|
|
27
|
+
const expectedStatuses = ["200"];
|
|
28
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
29
|
+
throw (0, core_client_1.createRestError)(result);
|
|
30
|
+
}
|
|
31
|
+
return (0, models_js_1.dataflowEndpointResourceDeserializer)(result.body);
|
|
32
|
+
}
|
|
33
|
+
/** Get a DataflowEndpointResource */
|
|
34
|
+
async function dataflowEndpointGet(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, options = { requestOptions: {} }) {
|
|
35
|
+
const result = await _dataflowEndpointGetSend(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, options);
|
|
36
|
+
return _dataflowEndpointGetDeserialize(result);
|
|
37
|
+
}
|
|
38
|
+
function _dataflowEndpointCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, resource, options = {
|
|
39
|
+
requestOptions: {},
|
|
40
|
+
}) {
|
|
41
|
+
return context
|
|
42
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints/{dataflowEndpointName}", subscriptionId, resourceGroupName, instanceName, dataflowEndpointName)
|
|
43
|
+
.put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: (0, models_js_1.dataflowEndpointResourceSerializer)(resource) }));
|
|
44
|
+
}
|
|
45
|
+
async function _dataflowEndpointCreateOrUpdateDeserialize(result) {
|
|
46
|
+
const expectedStatuses = ["200", "201"];
|
|
47
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
48
|
+
throw (0, core_client_1.createRestError)(result);
|
|
49
|
+
}
|
|
50
|
+
return (0, models_js_1.dataflowEndpointResourceDeserializer)(result.body);
|
|
51
|
+
}
|
|
52
|
+
/** Create a DataflowEndpointResource */
|
|
53
|
+
function dataflowEndpointCreateOrUpdate(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, resource, options = {
|
|
54
|
+
requestOptions: {},
|
|
55
|
+
}) {
|
|
56
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _dataflowEndpointCreateOrUpdateDeserialize, ["200", "201"], {
|
|
57
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
58
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
59
|
+
getInitialResponse: () => _dataflowEndpointCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, resource, options),
|
|
60
|
+
resourceLocationConfig: "azure-async-operation",
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function _dataflowEndpointDeleteSend(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, options = { requestOptions: {} }) {
|
|
64
|
+
return context
|
|
65
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints/{dataflowEndpointName}", subscriptionId, resourceGroupName, instanceName, dataflowEndpointName)
|
|
66
|
+
.delete(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
67
|
+
}
|
|
68
|
+
async function _dataflowEndpointDeleteDeserialize(result) {
|
|
69
|
+
const expectedStatuses = ["202", "204", "200"];
|
|
70
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
71
|
+
throw (0, core_client_1.createRestError)(result);
|
|
72
|
+
}
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
/** Delete a DataflowEndpointResource */
|
|
76
|
+
function dataflowEndpointDelete(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, options = { requestOptions: {} }) {
|
|
77
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _dataflowEndpointDeleteDeserialize, ["202", "204", "200"], {
|
|
78
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
79
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
80
|
+
getInitialResponse: () => _dataflowEndpointDeleteSend(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, options),
|
|
81
|
+
resourceLocationConfig: "location",
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
function _dataflowEndpointListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, options = {
|
|
85
|
+
requestOptions: {},
|
|
86
|
+
}) {
|
|
87
|
+
return context
|
|
88
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints", subscriptionId, resourceGroupName, instanceName)
|
|
89
|
+
.get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
90
|
+
}
|
|
91
|
+
async function _dataflowEndpointListByResourceGroupDeserialize(result) {
|
|
92
|
+
const expectedStatuses = ["200"];
|
|
93
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
94
|
+
throw (0, core_client_1.createRestError)(result);
|
|
95
|
+
}
|
|
96
|
+
return (0, models_js_1._dataflowEndpointResourceListResultDeserializer)(result.body);
|
|
97
|
+
}
|
|
98
|
+
/** List DataflowEndpointResource resources by InstanceResource */
|
|
99
|
+
function dataflowEndpointListByResourceGroup(context, subscriptionId, resourceGroupName, instanceName, options = {
|
|
100
|
+
requestOptions: {},
|
|
101
|
+
}) {
|
|
102
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _dataflowEndpointListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, options), _dataflowEndpointListByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
103
|
+
}
|
|
104
|
+
//# 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;;AA6BlC,4DAiBC;AAED,0EASC;AAGD,kDAiBC;AAED,kFAuBC;AAED,gGASC;AAGD,wEA0BC;AAED,kEAiBC;AAED,gFASC;AAGD,wDAsBC;AAED,4FAiBC;AAED,0GASC;AAGD,kFAuBC;AApPD,sDAMgC;AAChC,8EAA8E;AAC9E,4EAG+C;AAC/C,yDAKiC;AAGjC,SAAgB,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,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAEM,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,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,gDAAoC,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC3D,CAAC;AAED,qCAAqC;AAC9B,KAAK,UAAU,mBAAmB,CACvC,OAAe,EACf,cAAsB,E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ft 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,oBAAoB,IAAI,MAAM,EAC9B,2CAA2C,EAC3C,mCAAmC,EACnC,gCAAgC,EAChC,gDAAgD,EACjD,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,uBAAuB,EAGvB,kCAAkC,EAEnC,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,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,GAAE,gCAAyD,GACjE,gBAAgB,CAUlB;AAED,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,uBAAuB,CAAC,CAOlC;AAED,oCAAoC;AACpC,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,GAAE,gCAAyD,GACjE,OAAO,CAAC,uBAAuB,CAAC,CAUlC;AAED,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,mBAAmB,EAAE,MAAM,EAC3B,QAAQ,EAAE,uBAAuB,EACjC,OAAO,GAAE,2CAAoE,GAC5E,gBAAgB,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,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,gDAER,GACA,0BAA0B,CAAC,uBAAuB,CAAC,CAerD"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports._dataflowProfileGetSend = _dataflowProfileGetSend;
|
|
6
|
+
exports._dataflowProfileGetDeserialize = _dataflowProfileGetDeserialize;
|
|
7
|
+
exports.dataflowProfileGet = dataflowProfileGet;
|
|
8
|
+
exports._dataflowProfileCreateOrUpdateSend = _dataflowProfileCreateOrUpdateSend;
|
|
9
|
+
exports._dataflowProfileCreateOrUpdateDeserialize = _dataflowProfileCreateOrUpdateDeserialize;
|
|
10
|
+
exports.dataflowProfileCreateOrUpdate = dataflowProfileCreateOrUpdate;
|
|
11
|
+
exports._dataflowProfileDeleteSend = _dataflowProfileDeleteSend;
|
|
12
|
+
exports._dataflowProfileDeleteDeserialize = _dataflowProfileDeleteDeserialize;
|
|
13
|
+
exports.dataflowProfileDelete = dataflowProfileDelete;
|
|
14
|
+
exports._dataflowProfileListByResourceGroupSend = _dataflowProfileListByResourceGroupSend;
|
|
15
|
+
exports._dataflowProfileListByResourceGroupDeserialize = _dataflowProfileListByResourceGroupDeserialize;
|
|
16
|
+
exports.dataflowProfileListByResourceGroup = dataflowProfileListByResourceGroup;
|
|
17
|
+
const models_js_1 = require("../../models/models.js");
|
|
18
|
+
const pollingHelpers_js_1 = require("../../static-helpers/pollingHelpers.js");
|
|
19
|
+
const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
|
|
20
|
+
const core_client_1 = require("@azure-rest/core-client");
|
|
21
|
+
function _dataflowProfileGetSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options = { requestOptions: {} }) {
|
|
22
|
+
return context
|
|
23
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}", subscriptionId, resourceGroupName, instanceName, dataflowProfileName)
|
|
24
|
+
.get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
25
|
+
}
|
|
26
|
+
async function _dataflowProfileGetDeserialize(result) {
|
|
27
|
+
const expectedStatuses = ["200"];
|
|
28
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
29
|
+
throw (0, core_client_1.createRestError)(result);
|
|
30
|
+
}
|
|
31
|
+
return (0, models_js_1.dataflowProfileResourceDeserializer)(result.body);
|
|
32
|
+
}
|
|
33
|
+
/** Get a DataflowProfileResource */
|
|
34
|
+
async function dataflowProfileGet(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options = { requestOptions: {} }) {
|
|
35
|
+
const result = await _dataflowProfileGetSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options);
|
|
36
|
+
return _dataflowProfileGetDeserialize(result);
|
|
37
|
+
}
|
|
38
|
+
function _dataflowProfileCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, resource, options = { requestOptions: {} }) {
|
|
39
|
+
return context
|
|
40
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}", subscriptionId, resourceGroupName, instanceName, dataflowProfileName)
|
|
41
|
+
.put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: (0, models_js_1.dataflowProfileResourceSerializer)(resource) }));
|
|
42
|
+
}
|
|
43
|
+
async function _dataflowProfileCreateOrUpdateDeserialize(result) {
|
|
44
|
+
const expectedStatuses = ["200", "201"];
|
|
45
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
46
|
+
throw (0, core_client_1.createRestError)(result);
|
|
47
|
+
}
|
|
48
|
+
return (0, models_js_1.dataflowProfileResourceDeserializer)(result.body);
|
|
49
|
+
}
|
|
50
|
+
/** Create a DataflowProfileResource */
|
|
51
|
+
function dataflowProfileCreateOrUpdate(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, resource, options = { requestOptions: {} }) {
|
|
52
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _dataflowProfileCreateOrUpdateDeserialize, ["200", "201"], {
|
|
53
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
54
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
55
|
+
getInitialResponse: () => _dataflowProfileCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, resource, options),
|
|
56
|
+
resourceLocationConfig: "azure-async-operation",
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function _dataflowProfileDeleteSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options = { requestOptions: {} }) {
|
|
60
|
+
return context
|
|
61
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}", subscriptionId, resourceGroupName, instanceName, dataflowProfileName)
|
|
62
|
+
.delete(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
63
|
+
}
|
|
64
|
+
async function _dataflowProfileDeleteDeserialize(result) {
|
|
65
|
+
const expectedStatuses = ["202", "204", "200"];
|
|
66
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
67
|
+
throw (0, core_client_1.createRestError)(result);
|
|
68
|
+
}
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
/** Delete a DataflowProfileResource */
|
|
72
|
+
function dataflowProfileDelete(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options = { requestOptions: {} }) {
|
|
73
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _dataflowProfileDeleteDeserialize, ["202", "204", "200"], {
|
|
74
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
75
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
76
|
+
getInitialResponse: () => _dataflowProfileDeleteSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options),
|
|
77
|
+
resourceLocationConfig: "location",
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
function _dataflowProfileListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, options = {
|
|
81
|
+
requestOptions: {},
|
|
82
|
+
}) {
|
|
83
|
+
return context
|
|
84
|
+
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles", subscriptionId, resourceGroupName, instanceName)
|
|
85
|
+
.get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
86
|
+
}
|
|
87
|
+
async function _dataflowProfileListByResourceGroupDeserialize(result) {
|
|
88
|
+
const expectedStatuses = ["200"];
|
|
89
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
90
|
+
throw (0, core_client_1.createRestError)(result);
|
|
91
|
+
}
|
|
92
|
+
return (0, models_js_1._dataflowProfileResourceListResultDeserializer)(result.body);
|
|
93
|
+
}
|
|
94
|
+
/** List DataflowProfileResource resources by InstanceResource */
|
|
95
|
+
function dataflowProfileListByResourceGroup(context, subscriptionId, resourceGroupName, instanceName, options = {
|
|
96
|
+
requestOptions: {},
|
|
97
|
+
}) {
|
|
98
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _dataflowProfileListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, options), _dataflowProfileListByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=index.js.map
|