@azure/arm-programmableconnectivity 1.0.0-alpha.20250505.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 +115 -0
- package/dist/browser/api/gateways/index.d.ts +3 -0
- package/dist/browser/api/gateways/index.d.ts.map +1 -0
- package/dist/browser/api/gateways/index.js +4 -0
- package/dist/browser/api/gateways/index.js.map +1 -0
- package/dist/browser/api/gateways/operations.d.ts +36 -0
- package/dist/browser/api/gateways/operations.d.ts.map +1 -0
- package/dist/browser/api/gateways/operations.js +172 -0
- package/dist/browser/api/gateways/operations.js.map +1 -0
- package/dist/browser/api/gateways/options.d.ts +24 -0
- package/dist/browser/api/gateways/options.d.ts.map +1 -0
- package/dist/browser/api/gateways/options.js +4 -0
- package/dist/browser/api/gateways/options.js.map +1 -0
- package/dist/browser/api/index.d.ts +2 -0
- package/dist/browser/api/index.d.ts.map +1 -0
- package/dist/browser/api/index.js +4 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +3 -0
- package/dist/browser/api/operations/index.d.ts.map +1 -0
- package/dist/browser/api/operations/index.js +4 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/operations/operations.d.ts +10 -0
- package/dist/browser/api/operations/operations.d.ts.map +1 -0
- package/dist/browser/api/operations/operations.js +29 -0
- package/dist/browser/api/operations/operations.js.map +1 -0
- package/dist/browser/api/operations/options.d.ts +5 -0
- package/dist/browser/api/operations/options.d.ts.map +1 -0
- package/dist/browser/api/operations/options.js +4 -0
- package/dist/browser/api/operations/options.js.map +1 -0
- package/dist/browser/api/operatorApiConnections/index.d.ts +3 -0
- package/dist/browser/api/operatorApiConnections/index.d.ts.map +1 -0
- package/dist/browser/api/operatorApiConnections/index.js +4 -0
- package/dist/browser/api/operatorApiConnections/index.js.map +1 -0
- package/dist/browser/api/operatorApiConnections/operations.d.ts +36 -0
- package/dist/browser/api/operatorApiConnections/operations.d.ts.map +1 -0
- package/dist/browser/api/operatorApiConnections/operations.js +184 -0
- package/dist/browser/api/operatorApiConnections/operations.js.map +1 -0
- package/dist/browser/api/operatorApiConnections/options.d.ts +26 -0
- package/dist/browser/api/operatorApiConnections/options.d.ts.map +1 -0
- package/dist/browser/api/operatorApiConnections/options.js +4 -0
- package/dist/browser/api/operatorApiConnections/options.js.map +1 -0
- package/dist/browser/api/operatorApiPlans/index.d.ts +3 -0
- package/dist/browser/api/operatorApiPlans/index.d.ts.map +1 -0
- package/dist/browser/api/operatorApiPlans/index.js +4 -0
- package/dist/browser/api/operatorApiPlans/index.js.map +1 -0
- package/dist/browser/api/operatorApiPlans/operations.d.ts +14 -0
- package/dist/browser/api/operatorApiPlans/operations.d.ts.map +1 -0
- package/dist/browser/api/operatorApiPlans/operations.js +62 -0
- package/dist/browser/api/operatorApiPlans/operations.js.map +1 -0
- package/dist/browser/api/operatorApiPlans/options.d.ts +14 -0
- package/dist/browser/api/operatorApiPlans/options.d.ts.map +1 -0
- package/dist/browser/api/operatorApiPlans/options.js +4 -0
- package/dist/browser/api/operatorApiPlans/options.js.map +1 -0
- package/dist/browser/api/programmableConnectivityContext.d.ts +19 -0
- package/dist/browser/api/programmableConnectivityContext.d.ts.map +1 -0
- package/dist/browser/api/programmableConnectivityContext.js +36 -0
- package/dist/browser/api/programmableConnectivityContext.js.map +1 -0
- package/dist/browser/classic/gateways/index.d.ts +27 -0
- package/dist/browser/classic/gateways/index.d.ts.map +1 -0
- package/dist/browser/classic/gateways/index.js +17 -0
- package/dist/browser/classic/gateways/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +5 -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/operations/index.d.ts +11 -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/classic/operatorApiConnections/index.d.ts +27 -0
- package/dist/browser/classic/operatorApiConnections/index.d.ts.map +1 -0
- package/dist/browser/classic/operatorApiConnections/index.js +17 -0
- package/dist/browser/classic/operatorApiConnections/index.js.map +1 -0
- package/dist/browser/classic/operatorApiPlans/index.d.ts +13 -0
- package/dist/browser/classic/operatorApiPlans/index.d.ts.map +1 -0
- package/dist/browser/classic/operatorApiPlans/index.js +13 -0
- package/dist/browser/classic/operatorApiPlans/index.js.map +1 -0
- package/dist/browser/index.d.ts +12 -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/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 +403 -0
- package/dist/browser/models/models.d.ts.map +1 -0
- package/dist/browser/models/models.js +427 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/programmableConnectivityClient.d.ts +24 -0
- package/dist/browser/programmableConnectivityClient.d.ts.map +1 -0
- package/dist/browser/programmableConnectivityClient.js +24 -0
- package/dist/browser/programmableConnectivityClient.js.map +1 -0
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.d.ts.map +1 -0
- package/dist/browser/restorePollerHelpers.js +104 -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/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.js +169 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/gateways/index.d.ts +3 -0
- package/dist/commonjs/api/gateways/index.d.ts.map +1 -0
- package/dist/commonjs/api/gateways/index.js +13 -0
- package/dist/commonjs/api/gateways/index.js.map +1 -0
- package/dist/commonjs/api/gateways/operations.d.ts +36 -0
- package/dist/commonjs/api/gateways/operations.d.ts.map +1 -0
- package/dist/commonjs/api/gateways/operations.js +192 -0
- package/dist/commonjs/api/gateways/operations.js.map +1 -0
- package/dist/commonjs/api/gateways/options.d.ts +24 -0
- package/dist/commonjs/api/gateways/options.d.ts.map +1 -0
- package/dist/commonjs/api/gateways/options.js +5 -0
- package/dist/commonjs/api/gateways/options.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +2 -0
- package/dist/commonjs/api/index.d.ts.map +1 -0
- package/dist/commonjs/api/index.js +8 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/operations/index.d.ts +3 -0
- package/dist/commonjs/api/operations/index.d.ts.map +1 -0
- package/dist/commonjs/api/operations/index.js +8 -0
- package/dist/commonjs/api/operations/index.js.map +1 -0
- package/dist/commonjs/api/operations/operations.d.ts +10 -0
- package/dist/commonjs/api/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/api/operations/operations.js +34 -0
- package/dist/commonjs/api/operations/operations.js.map +1 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/api/operations/options.d.ts.map +1 -0
- package/dist/commonjs/api/operations/options.js +5 -0
- package/dist/commonjs/api/operations/options.js.map +1 -0
- package/dist/commonjs/api/operatorApiConnections/index.d.ts +3 -0
- package/dist/commonjs/api/operatorApiConnections/index.d.ts.map +1 -0
- package/dist/commonjs/api/operatorApiConnections/index.js +13 -0
- package/dist/commonjs/api/operatorApiConnections/index.js.map +1 -0
- package/dist/commonjs/api/operatorApiConnections/operations.d.ts +36 -0
- package/dist/commonjs/api/operatorApiConnections/operations.d.ts.map +1 -0
- package/dist/commonjs/api/operatorApiConnections/operations.js +204 -0
- package/dist/commonjs/api/operatorApiConnections/operations.js.map +1 -0
- package/dist/commonjs/api/operatorApiConnections/options.d.ts +26 -0
- package/dist/commonjs/api/operatorApiConnections/options.d.ts.map +1 -0
- package/dist/commonjs/api/operatorApiConnections/options.js +5 -0
- package/dist/commonjs/api/operatorApiConnections/options.js.map +1 -0
- package/dist/commonjs/api/operatorApiPlans/index.d.ts +3 -0
- package/dist/commonjs/api/operatorApiPlans/index.d.ts.map +1 -0
- package/dist/commonjs/api/operatorApiPlans/index.js +9 -0
- package/dist/commonjs/api/operatorApiPlans/index.js.map +1 -0
- package/dist/commonjs/api/operatorApiPlans/operations.d.ts +14 -0
- package/dist/commonjs/api/operatorApiPlans/operations.d.ts.map +1 -0
- package/dist/commonjs/api/operatorApiPlans/operations.js +70 -0
- package/dist/commonjs/api/operatorApiPlans/operations.js.map +1 -0
- package/dist/commonjs/api/operatorApiPlans/options.d.ts +14 -0
- package/dist/commonjs/api/operatorApiPlans/options.d.ts.map +1 -0
- package/dist/commonjs/api/operatorApiPlans/options.js +5 -0
- package/dist/commonjs/api/operatorApiPlans/options.js.map +1 -0
- package/dist/commonjs/api/programmableConnectivityContext.d.ts +19 -0
- package/dist/commonjs/api/programmableConnectivityContext.d.ts.map +1 -0
- package/dist/commonjs/api/programmableConnectivityContext.js +39 -0
- package/dist/commonjs/api/programmableConnectivityContext.js.map +1 -0
- package/dist/commonjs/classic/gateways/index.d.ts +27 -0
- package/dist/commonjs/classic/gateways/index.d.ts.map +1 -0
- package/dist/commonjs/classic/gateways/index.js +20 -0
- package/dist/commonjs/classic/gateways/index.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +5 -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/operations/index.d.ts +11 -0
- package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
- package/dist/commonjs/classic/operations/index.js +15 -0
- package/dist/commonjs/classic/operations/index.js.map +1 -0
- package/dist/commonjs/classic/operatorApiConnections/index.d.ts +27 -0
- package/dist/commonjs/classic/operatorApiConnections/index.d.ts.map +1 -0
- package/dist/commonjs/classic/operatorApiConnections/index.js +20 -0
- package/dist/commonjs/classic/operatorApiConnections/index.js.map +1 -0
- package/dist/commonjs/classic/operatorApiPlans/index.d.ts +13 -0
- package/dist/commonjs/classic/operatorApiPlans/index.d.ts.map +1 -0
- package/dist/commonjs/classic/operatorApiPlans/index.js +16 -0
- package/dist/commonjs/classic/operatorApiPlans/index.js.map +1 -0
- package/dist/commonjs/index.d.ts +12 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +17 -0
- package/dist/commonjs/index.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 +13 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/models.d.ts +403 -0
- package/dist/commonjs/models/models.d.ts.map +1 -0
- package/dist/commonjs/models/models.js +473 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/programmableConnectivityClient.d.ts +24 -0
- package/dist/commonjs/programmableConnectivityClient.d.ts.map +1 -0
- package/dist/commonjs/programmableConnectivityClient.js +28 -0
- package/dist/commonjs/programmableConnectivityClient.js.map +1 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -0
- package/dist/commonjs/restorePollerHelpers.js +107 -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/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +172 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/api/gateways/index.d.ts +3 -0
- package/dist/esm/api/gateways/index.d.ts.map +1 -0
- package/dist/esm/api/gateways/index.js +4 -0
- package/dist/esm/api/gateways/index.js.map +1 -0
- package/dist/esm/api/gateways/operations.d.ts +36 -0
- package/dist/esm/api/gateways/operations.d.ts.map +1 -0
- package/dist/esm/api/gateways/operations.js +172 -0
- package/dist/esm/api/gateways/operations.js.map +1 -0
- package/dist/esm/api/gateways/options.d.ts +24 -0
- package/dist/esm/api/gateways/options.d.ts.map +1 -0
- package/dist/esm/api/gateways/options.js +4 -0
- package/dist/esm/api/gateways/options.js.map +1 -0
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/api/index.d.ts.map +1 -0
- package/dist/esm/api/index.js +4 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +3 -0
- package/dist/esm/api/operations/index.d.ts.map +1 -0
- package/dist/esm/api/operations/index.js +4 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/operations/operations.d.ts +10 -0
- package/dist/esm/api/operations/operations.d.ts.map +1 -0
- package/dist/esm/api/operations/operations.js +29 -0
- package/dist/esm/api/operations/operations.js.map +1 -0
- package/dist/esm/api/operations/options.d.ts +5 -0
- package/dist/esm/api/operations/options.d.ts.map +1 -0
- package/dist/esm/api/operations/options.js +4 -0
- package/dist/esm/api/operations/options.js.map +1 -0
- package/dist/esm/api/operatorApiConnections/index.d.ts +3 -0
- package/dist/esm/api/operatorApiConnections/index.d.ts.map +1 -0
- package/dist/esm/api/operatorApiConnections/index.js +4 -0
- package/dist/esm/api/operatorApiConnections/index.js.map +1 -0
- package/dist/esm/api/operatorApiConnections/operations.d.ts +36 -0
- package/dist/esm/api/operatorApiConnections/operations.d.ts.map +1 -0
- package/dist/esm/api/operatorApiConnections/operations.js +184 -0
- package/dist/esm/api/operatorApiConnections/operations.js.map +1 -0
- package/dist/esm/api/operatorApiConnections/options.d.ts +26 -0
- package/dist/esm/api/operatorApiConnections/options.d.ts.map +1 -0
- package/dist/esm/api/operatorApiConnections/options.js +4 -0
- package/dist/esm/api/operatorApiConnections/options.js.map +1 -0
- package/dist/esm/api/operatorApiPlans/index.d.ts +3 -0
- package/dist/esm/api/operatorApiPlans/index.d.ts.map +1 -0
- package/dist/esm/api/operatorApiPlans/index.js +4 -0
- package/dist/esm/api/operatorApiPlans/index.js.map +1 -0
- package/dist/esm/api/operatorApiPlans/operations.d.ts +14 -0
- package/dist/esm/api/operatorApiPlans/operations.d.ts.map +1 -0
- package/dist/esm/api/operatorApiPlans/operations.js +62 -0
- package/dist/esm/api/operatorApiPlans/operations.js.map +1 -0
- package/dist/esm/api/operatorApiPlans/options.d.ts +14 -0
- package/dist/esm/api/operatorApiPlans/options.d.ts.map +1 -0
- package/dist/esm/api/operatorApiPlans/options.js +4 -0
- package/dist/esm/api/operatorApiPlans/options.js.map +1 -0
- package/dist/esm/api/programmableConnectivityContext.d.ts +19 -0
- package/dist/esm/api/programmableConnectivityContext.d.ts.map +1 -0
- package/dist/esm/api/programmableConnectivityContext.js +36 -0
- package/dist/esm/api/programmableConnectivityContext.js.map +1 -0
- package/dist/esm/classic/gateways/index.d.ts +27 -0
- package/dist/esm/classic/gateways/index.d.ts.map +1 -0
- package/dist/esm/classic/gateways/index.js +17 -0
- package/dist/esm/classic/gateways/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +5 -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/operations/index.d.ts +11 -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/classic/operatorApiConnections/index.d.ts +27 -0
- package/dist/esm/classic/operatorApiConnections/index.d.ts.map +1 -0
- package/dist/esm/classic/operatorApiConnections/index.js +17 -0
- package/dist/esm/classic/operatorApiConnections/index.js.map +1 -0
- package/dist/esm/classic/operatorApiPlans/index.d.ts +13 -0
- package/dist/esm/classic/operatorApiPlans/index.d.ts.map +1 -0
- package/dist/esm/classic/operatorApiPlans/index.js +13 -0
- package/dist/esm/classic/operatorApiPlans/index.js.map +1 -0
- package/dist/esm/index.d.ts +12 -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/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 +403 -0
- package/dist/esm/models/models.d.ts.map +1 -0
- package/dist/esm/models/models.js +427 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/programmableConnectivityClient.d.ts +24 -0
- package/dist/esm/programmableConnectivityClient.d.ts.map +1 -0
- package/dist/esm/programmableConnectivityClient.js +24 -0
- package/dist/esm/programmableConnectivityClient.js.map +1 -0
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.d.ts.map +1 -0
- package/dist/esm/restorePollerHelpers.js +104 -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/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.js +169 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/dist/react-native/api/gateways/index.d.ts +3 -0
- package/dist/react-native/api/gateways/index.d.ts.map +1 -0
- package/dist/react-native/api/gateways/index.js +4 -0
- package/dist/react-native/api/gateways/index.js.map +1 -0
- package/dist/react-native/api/gateways/operations.d.ts +36 -0
- package/dist/react-native/api/gateways/operations.d.ts.map +1 -0
- package/dist/react-native/api/gateways/operations.js +172 -0
- package/dist/react-native/api/gateways/operations.js.map +1 -0
- package/dist/react-native/api/gateways/options.d.ts +24 -0
- package/dist/react-native/api/gateways/options.d.ts.map +1 -0
- package/dist/react-native/api/gateways/options.js +4 -0
- package/dist/react-native/api/gateways/options.js.map +1 -0
- package/dist/react-native/api/index.d.ts +2 -0
- package/dist/react-native/api/index.d.ts.map +1 -0
- package/dist/react-native/api/index.js +4 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/api/operations/index.d.ts +3 -0
- package/dist/react-native/api/operations/index.d.ts.map +1 -0
- package/dist/react-native/api/operations/index.js +4 -0
- package/dist/react-native/api/operations/index.js.map +1 -0
- package/dist/react-native/api/operations/operations.d.ts +10 -0
- package/dist/react-native/api/operations/operations.d.ts.map +1 -0
- package/dist/react-native/api/operations/operations.js +29 -0
- package/dist/react-native/api/operations/operations.js.map +1 -0
- package/dist/react-native/api/operations/options.d.ts +5 -0
- package/dist/react-native/api/operations/options.d.ts.map +1 -0
- package/dist/react-native/api/operations/options.js +4 -0
- package/dist/react-native/api/operations/options.js.map +1 -0
- package/dist/react-native/api/operatorApiConnections/index.d.ts +3 -0
- package/dist/react-native/api/operatorApiConnections/index.d.ts.map +1 -0
- package/dist/react-native/api/operatorApiConnections/index.js +4 -0
- package/dist/react-native/api/operatorApiConnections/index.js.map +1 -0
- package/dist/react-native/api/operatorApiConnections/operations.d.ts +36 -0
- package/dist/react-native/api/operatorApiConnections/operations.d.ts.map +1 -0
- package/dist/react-native/api/operatorApiConnections/operations.js +184 -0
- package/dist/react-native/api/operatorApiConnections/operations.js.map +1 -0
- package/dist/react-native/api/operatorApiConnections/options.d.ts +26 -0
- package/dist/react-native/api/operatorApiConnections/options.d.ts.map +1 -0
- package/dist/react-native/api/operatorApiConnections/options.js +4 -0
- package/dist/react-native/api/operatorApiConnections/options.js.map +1 -0
- package/dist/react-native/api/operatorApiPlans/index.d.ts +3 -0
- package/dist/react-native/api/operatorApiPlans/index.d.ts.map +1 -0
- package/dist/react-native/api/operatorApiPlans/index.js +4 -0
- package/dist/react-native/api/operatorApiPlans/index.js.map +1 -0
- package/dist/react-native/api/operatorApiPlans/operations.d.ts +14 -0
- package/dist/react-native/api/operatorApiPlans/operations.d.ts.map +1 -0
- package/dist/react-native/api/operatorApiPlans/operations.js +62 -0
- package/dist/react-native/api/operatorApiPlans/operations.js.map +1 -0
- package/dist/react-native/api/operatorApiPlans/options.d.ts +14 -0
- package/dist/react-native/api/operatorApiPlans/options.d.ts.map +1 -0
- package/dist/react-native/api/operatorApiPlans/options.js +4 -0
- package/dist/react-native/api/operatorApiPlans/options.js.map +1 -0
- package/dist/react-native/api/programmableConnectivityContext.d.ts +19 -0
- package/dist/react-native/api/programmableConnectivityContext.d.ts.map +1 -0
- package/dist/react-native/api/programmableConnectivityContext.js +36 -0
- package/dist/react-native/api/programmableConnectivityContext.js.map +1 -0
- package/dist/react-native/classic/gateways/index.d.ts +27 -0
- package/dist/react-native/classic/gateways/index.d.ts.map +1 -0
- package/dist/react-native/classic/gateways/index.js +17 -0
- package/dist/react-native/classic/gateways/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +5 -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/operations/index.d.ts +11 -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/classic/operatorApiConnections/index.d.ts +27 -0
- package/dist/react-native/classic/operatorApiConnections/index.d.ts.map +1 -0
- package/dist/react-native/classic/operatorApiConnections/index.js +17 -0
- package/dist/react-native/classic/operatorApiConnections/index.js.map +1 -0
- package/dist/react-native/classic/operatorApiPlans/index.d.ts +13 -0
- package/dist/react-native/classic/operatorApiPlans/index.d.ts.map +1 -0
- package/dist/react-native/classic/operatorApiPlans/index.js +13 -0
- package/dist/react-native/classic/operatorApiPlans/index.js.map +1 -0
- package/dist/react-native/index.d.ts +12 -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/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 +403 -0
- package/dist/react-native/models/models.d.ts.map +1 -0
- package/dist/react-native/models/models.js +427 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/programmableConnectivityClient.d.ts +24 -0
- package/dist/react-native/programmableConnectivityClient.d.ts.map +1 -0
- package/dist/react-native/programmableConnectivityClient.js +24 -0
- package/dist/react-native/programmableConnectivityClient.js.map +1 -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 +104 -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/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.js +169 -0
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +258 -0
- package/review/arm-programmableconnectivity-api-gateways.api.md +58 -0
- package/review/arm-programmableconnectivity-api-operations.api.md +19 -0
- package/review/arm-programmableconnectivity-api-operatorApiConnections.api.md +59 -0
- package/review/arm-programmableconnectivity-api-operatorApiPlans.api.md +29 -0
- package/review/arm-programmableconnectivity-api.api.md +27 -0
- package/review/arm-programmableconnectivity-models.api.md +232 -0
- package/review/arm-programmableconnectivity.api.md +382 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports._listSend = _listSend;
|
|
6
|
+
exports._listDeserialize = _listDeserialize;
|
|
7
|
+
exports.list = list;
|
|
8
|
+
const models_js_1 = require("../../models/models.js");
|
|
9
|
+
const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
|
|
10
|
+
const urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
|
|
11
|
+
const core_client_1 = require("@azure-rest/core-client");
|
|
12
|
+
function _listSend(context, options = { requestOptions: {} }) {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/providers/Microsoft.ProgrammableConnectivity/operations{?api%2Dversion}", {
|
|
15
|
+
"api%2Dversion": context.apiVersion,
|
|
16
|
+
}, {
|
|
17
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
18
|
+
});
|
|
19
|
+
return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
20
|
+
}
|
|
21
|
+
async function _listDeserialize(result) {
|
|
22
|
+
const expectedStatuses = ["200"];
|
|
23
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
24
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
25
|
+
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
26
|
+
throw error;
|
|
27
|
+
}
|
|
28
|
+
return (0, models_js_1._operationListResultDeserializer)(result.body);
|
|
29
|
+
}
|
|
30
|
+
/** List the operations for the provider */
|
|
31
|
+
function list(context, options = { requestOptions: {} }) {
|
|
32
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listSend(context, options), _listDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAsBlC,8BAoBC;AAED,4CAWC;AAGD,oBAWC;AAlED,sDAKgC;AAEhC,4EAG+C;AAC/C,wEAAwE;AACxE,yDAKiC;AAEjC,SAAgB,SAAS,CACvB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;;IAE9D,MAAM,IAAI,GAAG,IAAA,kCAAiB,EAC5B,0EAA0E,EAC1E;QACE,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,0CAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,iCACxB,IAAA,iDAAmC,EAAC,OAAO,CAAC,KAC/C,OAAO,kBACL,MAAM,EAAE,kBAAkB,IACvB,MAAA,OAAO,CAAC,cAAc,0CAAE,OAAO,KAEpC,CAAC;AACL,CAAC;AAEM,KAAK,UAAU,gBAAgB,CACpC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,IAAA,qCAAyB,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,IAAA,4CAAgC,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,SAAgB,IAAI,CAClB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,EACjC,gBAAgB,EAChB,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ProgrammableConnectivityContext as Client } from \"../index.js\";\nimport {\n _OperationListResult,\n _operationListResultDeserializer,\n Operation,\n errorResponseDeserializer,\n} from \"../../models/models.js\";\nimport { OperationsListOptionalParams } from \"./options.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.ProgrammableConnectivity/operations{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function list(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,2BAA2B;AAC3B,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/operations/options.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { listBySubscription, listByResourceGroup, $delete, update, create, get, } from "./operations.js";
|
|
2
|
+
export { OperatorApiConnectionsListBySubscriptionOptionalParams, OperatorApiConnectionsListByResourceGroupOptionalParams, OperatorApiConnectionsDeleteOptionalParams, OperatorApiConnectionsUpdateOptionalParams, OperatorApiConnectionsCreateOptionalParams, OperatorApiConnectionsGetOptionalParams, } from "./options.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/operatorApiConnections/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,MAAM,EACN,GAAG,GACJ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,sDAAsD,EACtD,uDAAuD,EACvD,0CAA0C,EAC1C,0CAA0C,EAC1C,0CAA0C,EAC1C,uCAAuC,GACxC,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.get = exports.create = exports.update = exports.$delete = exports.listByResourceGroup = exports.listBySubscription = void 0;
|
|
6
|
+
var operations_js_1 = require("./operations.js");
|
|
7
|
+
Object.defineProperty(exports, "listBySubscription", { enumerable: true, get: function () { return operations_js_1.listBySubscription; } });
|
|
8
|
+
Object.defineProperty(exports, "listByResourceGroup", { enumerable: true, get: function () { return operations_js_1.listByResourceGroup; } });
|
|
9
|
+
Object.defineProperty(exports, "$delete", { enumerable: true, get: function () { return operations_js_1.$delete; } });
|
|
10
|
+
Object.defineProperty(exports, "update", { enumerable: true, get: function () { return operations_js_1.update; } });
|
|
11
|
+
Object.defineProperty(exports, "create", { enumerable: true, get: function () { return operations_js_1.create; } });
|
|
12
|
+
Object.defineProperty(exports, "get", { enumerable: true, get: function () { return operations_js_1.get; } });
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operatorApiConnections/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iDAOyB;AANvB,mHAAA,kBAAkB,OAAA;AAClB,oHAAA,mBAAmB,OAAA;AACnB,wGAAA,OAAO,OAAA;AACP,uGAAA,MAAM,OAAA;AACN,uGAAA,MAAM,OAAA;AACN,oGAAA,GAAG,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n listBySubscription,\n listByResourceGroup,\n $delete,\n update,\n create,\n get,\n} from \"./operations.js\";\nexport {\n OperatorApiConnectionsListBySubscriptionOptionalParams,\n OperatorApiConnectionsListByResourceGroupOptionalParams,\n OperatorApiConnectionsDeleteOptionalParams,\n OperatorApiConnectionsUpdateOptionalParams,\n OperatorApiConnectionsCreateOptionalParams,\n OperatorApiConnectionsGetOptionalParams,\n} from \"./options.js\";\n"]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ProgrammableConnectivityContext as Client } from "../index.js";
|
|
2
|
+
import { OperatorApiConnection, OperatorApiConnectionUpdate, _OperatorApiConnectionListResult } from "../../models/models.js";
|
|
3
|
+
import { OperatorApiConnectionsListBySubscriptionOptionalParams, OperatorApiConnectionsListByResourceGroupOptionalParams, OperatorApiConnectionsDeleteOptionalParams, OperatorApiConnectionsUpdateOptionalParams, OperatorApiConnectionsCreateOptionalParams, OperatorApiConnectionsGetOptionalParams } from "./options.js";
|
|
4
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
|
+
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
7
|
+
export declare function _listBySubscriptionSend(context: Client, options?: OperatorApiConnectionsListBySubscriptionOptionalParams): StreamableMethod;
|
|
8
|
+
export declare function _listBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_OperatorApiConnectionListResult>;
|
|
9
|
+
/** List OperatorApiConnection resources by subscription ID. */
|
|
10
|
+
export declare function listBySubscription(context: Client, options?: OperatorApiConnectionsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<OperatorApiConnection>;
|
|
11
|
+
export declare function _listByResourceGroupSend(context: Client, resourceGroupName: string, options?: OperatorApiConnectionsListByResourceGroupOptionalParams): StreamableMethod;
|
|
12
|
+
export declare function _listByResourceGroupDeserialize(result: PathUncheckedResponse): Promise<_OperatorApiConnectionListResult>;
|
|
13
|
+
/** List OperatorApiConnection resources by resource group. */
|
|
14
|
+
export declare function listByResourceGroup(context: Client, resourceGroupName: string, options?: OperatorApiConnectionsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<OperatorApiConnection>;
|
|
15
|
+
export declare function _$deleteSend(context: Client, resourceGroupName: string, operatorApiConnectionName: string, options?: OperatorApiConnectionsDeleteOptionalParams): StreamableMethod;
|
|
16
|
+
export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
17
|
+
/** Delete an Operator API Connection. */
|
|
18
|
+
/**
|
|
19
|
+
* @fixme delete is a reserved word that cannot be used as an operation name.
|
|
20
|
+
* Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
|
|
21
|
+
* to the operation to override the generated name.
|
|
22
|
+
*/
|
|
23
|
+
export declare function $delete(context: Client, resourceGroupName: string, operatorApiConnectionName: string, options?: OperatorApiConnectionsDeleteOptionalParams): PollerLike<OperationState<void>, void>;
|
|
24
|
+
export declare function _updateSend(context: Client, resourceGroupName: string, operatorApiConnectionName: string, properties: OperatorApiConnectionUpdate, options?: OperatorApiConnectionsUpdateOptionalParams): StreamableMethod;
|
|
25
|
+
export declare function _updateDeserialize(result: PathUncheckedResponse): Promise<OperatorApiConnection>;
|
|
26
|
+
/** Update an Operator API Connection. */
|
|
27
|
+
export declare function update(context: Client, resourceGroupName: string, operatorApiConnectionName: string, properties: OperatorApiConnectionUpdate, options?: OperatorApiConnectionsUpdateOptionalParams): PollerLike<OperationState<OperatorApiConnection>, OperatorApiConnection>;
|
|
28
|
+
export declare function _createSend(context: Client, resourceGroupName: string, operatorApiConnectionName: string, resource: OperatorApiConnection, options?: OperatorApiConnectionsCreateOptionalParams): StreamableMethod;
|
|
29
|
+
export declare function _createDeserialize(result: PathUncheckedResponse): Promise<OperatorApiConnection>;
|
|
30
|
+
/** Create an Operator API Connection. */
|
|
31
|
+
export declare function create(context: Client, resourceGroupName: string, operatorApiConnectionName: string, resource: OperatorApiConnection, options?: OperatorApiConnectionsCreateOptionalParams): PollerLike<OperationState<OperatorApiConnection>, OperatorApiConnection>;
|
|
32
|
+
export declare function _getSend(context: Client, resourceGroupName: string, operatorApiConnectionName: string, options?: OperatorApiConnectionsGetOptionalParams): StreamableMethod;
|
|
33
|
+
export declare function _getDeserialize(result: PathUncheckedResponse): Promise<OperatorApiConnection>;
|
|
34
|
+
/** Get an Operator API Connection. */
|
|
35
|
+
export declare function get(context: Client, resourceGroupName: string, operatorApiConnectionName: string, options?: OperatorApiConnectionsGetOptionalParams): Promise<OperatorApiConnection>;
|
|
36
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/operatorApiConnections/operations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,+BAA+B,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EAEL,qBAAqB,EAGrB,2BAA2B,EAE3B,gCAAgC,EAEjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,sDAAsD,EACtD,uDAAuD,EACvD,0CAA0C,EAC1C,0CAA0C,EAC1C,0CAA0C,EAC1C,uCAAuC,EACxC,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAG/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,OAAO,GAAE,sDAER,GACA,gBAAgB,CAkBlB;AAED,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,gCAAgC,CAAC,CAS3C;AAED,+DAA+D;AAC/D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ACf,iBAAiB,EAAE,MAAM,EACzB,yBAAyB,EAAE,MAAM,EACjC,UAAU,EAAE,2BAA2B,EACvC,OAAO,GAAE,0CAAmE,GAC3E,UAAU,CAAC,cAAc,CAAC,qBAAqB,CAAC,EAAE,qBAAqB,CAAC,CAQ1E;AAED,wBAAgB,WAAW,CACzB,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,yBAAyB,EAAE,MAAM,EACjC,QAAQ,EAAE,qBAAqB,EAC/B,OAAO,GAAE,0CAAmE,GAC3E,gBAAgB,CAsBlB;AAED,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,qBAAqB,CAAC,CAShC;AAED,yCAAyC;AACzC,wBAAgB,MAAM,CACpB,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,yBAAyB,EAAE,MAAM,EACjC,QAAQ,EAAE,qBAAqB,EAC/B,OAAO,GAAE,0CAAmE,GAC3E,UAAU,CAAC,cAAc,CAAC,qBAAqB,CAAC,EAAE,qBAAqB,CAAC,CAQ1E;AAED,wBAAgB,QAAQ,CACtB,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,yBAAyB,EAAE,MAAM,EACjC,OAAO,GAAE,uCAAgE,GACxE,gBAAgB,CAoBlB;AAED,wBAAsB,eAAe,CACnC,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,qBAAqB,CAAC,CAShC;AAED,sCAAsC;AACtC,wBAAsB,GAAG,CACvB,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,yBAAyB,EAAE,MAAM,EACjC,OAAO,GAAE,uCAAgE,GACxE,OAAO,CAAC,qBAAqB,CAAC,CAGhC"}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports._listBySubscriptionSend = _listBySubscriptionSend;
|
|
6
|
+
exports._listBySubscriptionDeserialize = _listBySubscriptionDeserialize;
|
|
7
|
+
exports.listBySubscription = listBySubscription;
|
|
8
|
+
exports._listByResourceGroupSend = _listByResourceGroupSend;
|
|
9
|
+
exports._listByResourceGroupDeserialize = _listByResourceGroupDeserialize;
|
|
10
|
+
exports.listByResourceGroup = listByResourceGroup;
|
|
11
|
+
exports._$deleteSend = _$deleteSend;
|
|
12
|
+
exports._$deleteDeserialize = _$deleteDeserialize;
|
|
13
|
+
exports.$delete = $delete;
|
|
14
|
+
exports._updateSend = _updateSend;
|
|
15
|
+
exports._updateDeserialize = _updateDeserialize;
|
|
16
|
+
exports.update = update;
|
|
17
|
+
exports._createSend = _createSend;
|
|
18
|
+
exports._createDeserialize = _createDeserialize;
|
|
19
|
+
exports.create = create;
|
|
20
|
+
exports._getSend = _getSend;
|
|
21
|
+
exports._getDeserialize = _getDeserialize;
|
|
22
|
+
exports.get = get;
|
|
23
|
+
const models_js_1 = require("../../models/models.js");
|
|
24
|
+
const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
|
|
25
|
+
const urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
|
|
26
|
+
const pollingHelpers_js_1 = require("../../static-helpers/pollingHelpers.js");
|
|
27
|
+
const core_client_1 = require("@azure-rest/core-client");
|
|
28
|
+
function _listBySubscriptionSend(context, options = {
|
|
29
|
+
requestOptions: {},
|
|
30
|
+
}) {
|
|
31
|
+
var _a, _b;
|
|
32
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/providers/Microsoft.ProgrammableConnectivity/operatorApiConnections{?api%2Dversion}", {
|
|
33
|
+
subscriptionId: context.subscriptionId,
|
|
34
|
+
"api%2Dversion": context.apiVersion,
|
|
35
|
+
}, {
|
|
36
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
37
|
+
});
|
|
38
|
+
return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
39
|
+
}
|
|
40
|
+
async function _listBySubscriptionDeserialize(result) {
|
|
41
|
+
const expectedStatuses = ["200"];
|
|
42
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
43
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
44
|
+
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
45
|
+
throw error;
|
|
46
|
+
}
|
|
47
|
+
return (0, models_js_1._operatorApiConnectionListResultDeserializer)(result.body);
|
|
48
|
+
}
|
|
49
|
+
/** List OperatorApiConnection resources by subscription ID. */
|
|
50
|
+
function listBySubscription(context, options = {
|
|
51
|
+
requestOptions: {},
|
|
52
|
+
}) {
|
|
53
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listBySubscriptionSend(context, options), _listBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
54
|
+
}
|
|
55
|
+
function _listByResourceGroupSend(context, resourceGroupName, options = {
|
|
56
|
+
requestOptions: {},
|
|
57
|
+
}) {
|
|
58
|
+
var _a, _b;
|
|
59
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ProgrammableConnectivity/operatorApiConnections{?api%2Dversion}", {
|
|
60
|
+
subscriptionId: context.subscriptionId,
|
|
61
|
+
resourceGroupName: resourceGroupName,
|
|
62
|
+
"api%2Dversion": context.apiVersion,
|
|
63
|
+
}, {
|
|
64
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
65
|
+
});
|
|
66
|
+
return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
67
|
+
}
|
|
68
|
+
async function _listByResourceGroupDeserialize(result) {
|
|
69
|
+
const expectedStatuses = ["200"];
|
|
70
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
71
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
72
|
+
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
73
|
+
throw error;
|
|
74
|
+
}
|
|
75
|
+
return (0, models_js_1._operatorApiConnectionListResultDeserializer)(result.body);
|
|
76
|
+
}
|
|
77
|
+
/** List OperatorApiConnection resources by resource group. */
|
|
78
|
+
function listByResourceGroup(context, resourceGroupName, options = {
|
|
79
|
+
requestOptions: {},
|
|
80
|
+
}) {
|
|
81
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listByResourceGroupSend(context, resourceGroupName, options), _listByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
82
|
+
}
|
|
83
|
+
function _$deleteSend(context, resourceGroupName, operatorApiConnectionName, options = { requestOptions: {} }) {
|
|
84
|
+
var _a, _b;
|
|
85
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ProgrammableConnectivity/operatorApiConnections/{operatorApiConnectionName}{?api%2Dversion}", {
|
|
86
|
+
subscriptionId: context.subscriptionId,
|
|
87
|
+
resourceGroupName: resourceGroupName,
|
|
88
|
+
operatorApiConnectionName: operatorApiConnectionName,
|
|
89
|
+
"api%2Dversion": context.apiVersion,
|
|
90
|
+
}, {
|
|
91
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
92
|
+
});
|
|
93
|
+
return context.path(path).delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
94
|
+
}
|
|
95
|
+
async function _$deleteDeserialize(result) {
|
|
96
|
+
const expectedStatuses = ["202", "204", "200"];
|
|
97
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
98
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
99
|
+
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
100
|
+
throw error;
|
|
101
|
+
}
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
/** Delete an Operator API Connection. */
|
|
105
|
+
/**
|
|
106
|
+
* @fixme delete is a reserved word that cannot be used as an operation name.
|
|
107
|
+
* Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
|
|
108
|
+
* to the operation to override the generated name.
|
|
109
|
+
*/
|
|
110
|
+
function $delete(context, resourceGroupName, operatorApiConnectionName, options = { requestOptions: {} }) {
|
|
111
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _$deleteDeserialize, ["202", "204", "200"], {
|
|
112
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
113
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
114
|
+
getInitialResponse: () => _$deleteSend(context, resourceGroupName, operatorApiConnectionName, options),
|
|
115
|
+
resourceLocationConfig: "location",
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function _updateSend(context, resourceGroupName, operatorApiConnectionName, properties, options = { requestOptions: {} }) {
|
|
119
|
+
var _a, _b;
|
|
120
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ProgrammableConnectivity/operatorApiConnections/{operatorApiConnectionName}{?api%2Dversion}", {
|
|
121
|
+
subscriptionId: context.subscriptionId,
|
|
122
|
+
resourceGroupName: resourceGroupName,
|
|
123
|
+
operatorApiConnectionName: operatorApiConnectionName,
|
|
124
|
+
"api%2Dversion": context.apiVersion,
|
|
125
|
+
}, {
|
|
126
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
127
|
+
});
|
|
128
|
+
return context.path(path).patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.operatorApiConnectionUpdateSerializer)(properties) }));
|
|
129
|
+
}
|
|
130
|
+
async function _updateDeserialize(result) {
|
|
131
|
+
const expectedStatuses = ["200", "202"];
|
|
132
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
133
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
134
|
+
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
135
|
+
throw error;
|
|
136
|
+
}
|
|
137
|
+
return (0, models_js_1.operatorApiConnectionDeserializer)(result.body);
|
|
138
|
+
}
|
|
139
|
+
/** Update an Operator API Connection. */
|
|
140
|
+
function update(context, resourceGroupName, operatorApiConnectionName, properties, options = { requestOptions: {} }) {
|
|
141
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _updateDeserialize, ["200", "202"], {
|
|
142
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
143
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
144
|
+
getInitialResponse: () => _updateSend(context, resourceGroupName, operatorApiConnectionName, properties, options),
|
|
145
|
+
resourceLocationConfig: "location",
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
function _createSend(context, resourceGroupName, operatorApiConnectionName, resource, options = { requestOptions: {} }) {
|
|
149
|
+
var _a, _b;
|
|
150
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ProgrammableConnectivity/operatorApiConnections/{operatorApiConnectionName}{?api%2Dversion}", {
|
|
151
|
+
subscriptionId: context.subscriptionId,
|
|
152
|
+
resourceGroupName: resourceGroupName,
|
|
153
|
+
operatorApiConnectionName: operatorApiConnectionName,
|
|
154
|
+
"api%2Dversion": context.apiVersion,
|
|
155
|
+
}, {
|
|
156
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
157
|
+
});
|
|
158
|
+
return context.path(path).put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.operatorApiConnectionSerializer)(resource) }));
|
|
159
|
+
}
|
|
160
|
+
async function _createDeserialize(result) {
|
|
161
|
+
const expectedStatuses = ["200", "201"];
|
|
162
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
163
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
164
|
+
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
165
|
+
throw error;
|
|
166
|
+
}
|
|
167
|
+
return (0, models_js_1.operatorApiConnectionDeserializer)(result.body);
|
|
168
|
+
}
|
|
169
|
+
/** Create an Operator API Connection. */
|
|
170
|
+
function create(context, resourceGroupName, operatorApiConnectionName, resource, options = { requestOptions: {} }) {
|
|
171
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _createDeserialize, ["200", "201"], {
|
|
172
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
173
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
174
|
+
getInitialResponse: () => _createSend(context, resourceGroupName, operatorApiConnectionName, resource, options),
|
|
175
|
+
resourceLocationConfig: "azure-async-operation",
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
function _getSend(context, resourceGroupName, operatorApiConnectionName, options = { requestOptions: {} }) {
|
|
179
|
+
var _a, _b;
|
|
180
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ProgrammableConnectivity/operatorApiConnections/{operatorApiConnectionName}{?api%2Dversion}", {
|
|
181
|
+
subscriptionId: context.subscriptionId,
|
|
182
|
+
resourceGroupName: resourceGroupName,
|
|
183
|
+
operatorApiConnectionName: operatorApiConnectionName,
|
|
184
|
+
"api%2Dversion": context.apiVersion,
|
|
185
|
+
}, {
|
|
186
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
187
|
+
});
|
|
188
|
+
return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
189
|
+
}
|
|
190
|
+
async function _getDeserialize(result) {
|
|
191
|
+
const expectedStatuses = ["200"];
|
|
192
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
193
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
194
|
+
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
195
|
+
throw error;
|
|
196
|
+
}
|
|
197
|
+
return (0, models_js_1.operatorApiConnectionDeserializer)(result.body);
|
|
198
|
+
}
|
|
199
|
+
/** Get an Operator API Connection. */
|
|
200
|
+
async function get(context, resourceGroupName, operatorApiConnectionName, options = { requestOptions: {} }) {
|
|
201
|
+
const result = await _getSend(context, resourceGroupName, operatorApiConnectionName, options);
|
|
202
|
+
return _getDeserialize(result);
|
|
203
|
+
}
|
|
204
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/operatorApiConnections/operations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6BAAe,EAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,IAAA,qCAAyB,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,IAAA,6CAAiC,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACxD,CAAC;AAED,sCAAsC;AAC/B,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,yBAAiC,EACjC,UAAmD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEzE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC9F,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ProgrammableConnectivityContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n OperatorApiConnection,\n operatorApiConnectionSerializer,\n operatorApiConnectionDeserializer,\n OperatorApiConnectionUpdate,\n operatorApiConnectionUpdateSerializer,\n _OperatorApiConnectionListResult,\n _operatorApiConnectionListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n OperatorApiConnectionsListBySubscriptionOptionalParams,\n OperatorApiConnectionsListByResourceGroupOptionalParams,\n OperatorApiConnectionsDeleteOptionalParams,\n OperatorApiConnectionsUpdateOptionalParams,\n OperatorApiConnectionsCreateOptionalParams,\n OperatorApiConnectionsGetOptionalParams,\n} from \"./options.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.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 _listBySubscriptionSend(\n context: Client,\n options: OperatorApiConnectionsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ProgrammableConnectivity/operatorApiConnections{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperatorApiConnectionListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _operatorApiConnectionListResultDeserializer(result.body);\n}\n\n/** List OperatorApiConnection resources by subscription ID. */\nexport function listBySubscription(\n context: Client,\n options: OperatorApiConnectionsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<OperatorApiConnection> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: OperatorApiConnectionsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ProgrammableConnectivity/operatorApiConnections{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperatorApiConnectionListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _operatorApiConnectionListResultDeserializer(result.body);\n}\n\n/** List OperatorApiConnection resources by resource group. */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: OperatorApiConnectionsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<OperatorApiConnection> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n operatorApiConnectionName: string,\n options: OperatorApiConnectionsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ProgrammableConnectivity/operatorApiConnections/{operatorApiConnectionName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n operatorApiConnectionName: operatorApiConnectionName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete an Operator API Connection. */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n operatorApiConnectionName: string,\n options: OperatorApiConnectionsDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _$deleteSend(context, resourceGroupName, operatorApiConnectionName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n operatorApiConnectionName: string,\n properties: OperatorApiConnectionUpdate,\n options: OperatorApiConnectionsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ProgrammableConnectivity/operatorApiConnections/{operatorApiConnectionName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n operatorApiConnectionName: operatorApiConnectionName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: operatorApiConnectionUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<OperatorApiConnection> {\n const expectedStatuses = [\"200\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return operatorApiConnectionDeserializer(result.body);\n}\n\n/** Update an Operator API Connection. */\nexport function update(\n context: Client,\n resourceGroupName: string,\n operatorApiConnectionName: string,\n properties: OperatorApiConnectionUpdate,\n options: OperatorApiConnectionsUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<OperatorApiConnection>, OperatorApiConnection> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, operatorApiConnectionName, properties, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<OperatorApiConnection>, OperatorApiConnection>;\n}\n\nexport function _createSend(\n context: Client,\n resourceGroupName: string,\n operatorApiConnectionName: string,\n resource: OperatorApiConnection,\n options: OperatorApiConnectionsCreateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ProgrammableConnectivity/operatorApiConnections/{operatorApiConnectionName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n operatorApiConnectionName: operatorApiConnectionName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: operatorApiConnectionSerializer(resource),\n });\n}\n\nexport async function _createDeserialize(\n result: PathUncheckedResponse,\n): Promise<OperatorApiConnection> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return operatorApiConnectionDeserializer(result.body);\n}\n\n/** Create an Operator API Connection. */\nexport function create(\n context: Client,\n resourceGroupName: string,\n operatorApiConnectionName: string,\n resource: OperatorApiConnection,\n options: OperatorApiConnectionsCreateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<OperatorApiConnection>, OperatorApiConnection> {\n return getLongRunningPoller(context, _createDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createSend(context, resourceGroupName, operatorApiConnectionName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<OperatorApiConnection>, OperatorApiConnection>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n operatorApiConnectionName: string,\n options: OperatorApiConnectionsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ProgrammableConnectivity/operatorApiConnections/{operatorApiConnectionName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n operatorApiConnectionName: operatorApiConnectionName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<OperatorApiConnection> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return operatorApiConnectionDeserializer(result.body);\n}\n\n/** Get an Operator API Connection. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n operatorApiConnectionName: string,\n options: OperatorApiConnectionsGetOptionalParams = { requestOptions: {} },\n): Promise<OperatorApiConnection> {\n const result = await _getSend(context, resourceGroupName, operatorApiConnectionName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
2
|
+
/** Optional parameters. */
|
|
3
|
+
export interface OperatorApiConnectionsListBySubscriptionOptionalParams extends OperationOptions {
|
|
4
|
+
}
|
|
5
|
+
/** Optional parameters. */
|
|
6
|
+
export interface OperatorApiConnectionsListByResourceGroupOptionalParams extends OperationOptions {
|
|
7
|
+
}
|
|
8
|
+
/** Optional parameters. */
|
|
9
|
+
export interface OperatorApiConnectionsDeleteOptionalParams extends OperationOptions {
|
|
10
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
11
|
+
updateIntervalInMs?: number;
|
|
12
|
+
}
|
|
13
|
+
/** Optional parameters. */
|
|
14
|
+
export interface OperatorApiConnectionsUpdateOptionalParams extends OperationOptions {
|
|
15
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
16
|
+
updateIntervalInMs?: number;
|
|
17
|
+
}
|
|
18
|
+
/** Optional parameters. */
|
|
19
|
+
export interface OperatorApiConnectionsCreateOptionalParams extends OperationOptions {
|
|
20
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
21
|
+
updateIntervalInMs?: number;
|
|
22
|
+
}
|
|
23
|
+
/** Optional parameters. */
|
|
24
|
+
export interface OperatorApiConnectionsGetOptionalParams extends OperationOptions {
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/operatorApiConnections/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,2BAA2B;AAC3B,MAAM,WAAW,sDAAuD,SAAQ,gBAAgB;CAAG;AAEnG,2BAA2B;AAC3B,MAAM,WAAW,uDAAwD,SAAQ,gBAAgB;CAAG;AAEpG,2BAA2B;AAC3B,MAAM,WAAW,0CAA2C,SAAQ,gBAAgB;IAClF,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,2BAA2B;AAC3B,MAAM,WAAW,0CAA2C,SAAQ,gBAAgB;IAClF,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,2BAA2B;AAC3B,MAAM,WAAW,0CAA2C,SAAQ,gBAAgB;IAClF,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,2BAA2B;AAC3B,MAAM,WAAW,uCAAwC,SAAQ,gBAAgB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/operatorApiConnections/options.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface OperatorApiConnectionsListBySubscriptionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface OperatorApiConnectionsListByResourceGroupOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface OperatorApiConnectionsDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface OperatorApiConnectionsUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface OperatorApiConnectionsCreateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface OperatorApiConnectionsGetOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/operatorApiPlans/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EACL,gDAAgD,EAChD,iCAAiC,GAClC,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.get = exports.listBySubscription = void 0;
|
|
6
|
+
var operations_js_1 = require("./operations.js");
|
|
7
|
+
Object.defineProperty(exports, "listBySubscription", { enumerable: true, get: function () { return operations_js_1.listBySubscription; } });
|
|
8
|
+
Object.defineProperty(exports, "get", { enumerable: true, get: function () { return operations_js_1.get; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operatorApiPlans/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iDAA0D;AAAjD,mHAAA,kBAAkB,OAAA;AAAE,oGAAA,GAAG,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { listBySubscription, get } from \"./operations.js\";\nexport {\n OperatorApiPlansListBySubscriptionOptionalParams,\n OperatorApiPlansGetOptionalParams,\n} from \"./options.js\";\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ProgrammableConnectivityContext as Client } from "../index.js";
|
|
2
|
+
import { OperatorApiPlan, _OperatorApiPlanListResult } from "../../models/models.js";
|
|
3
|
+
import { OperatorApiPlansListBySubscriptionOptionalParams, OperatorApiPlansGetOptionalParams } from "./options.js";
|
|
4
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
|
+
export declare function _listBySubscriptionSend(context: Client, options?: OperatorApiPlansListBySubscriptionOptionalParams): StreamableMethod;
|
|
7
|
+
export declare function _listBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_OperatorApiPlanListResult>;
|
|
8
|
+
/** List OperatorApiPlan resources by subscription ID. */
|
|
9
|
+
export declare function listBySubscription(context: Client, options?: OperatorApiPlansListBySubscriptionOptionalParams): PagedAsyncIterableIterator<OperatorApiPlan>;
|
|
10
|
+
export declare function _getSend(context: Client, operatorApiPlanName: string, options?: OperatorApiPlansGetOptionalParams): StreamableMethod;
|
|
11
|
+
export declare function _getDeserialize(result: PathUncheckedResponse): Promise<OperatorApiPlan>;
|
|
12
|
+
/** Get an OperatorApiPlan resource by name. */
|
|
13
|
+
export declare function get(context: Client, operatorApiPlanName: string, options?: OperatorApiPlansGetOptionalParams): Promise<OperatorApiPlan>;
|
|
14
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/operatorApiPlans/operations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,+BAA+B,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EAEL,eAAe,EAEf,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,gDAAgD,EAChD,iCAAiC,EAClC,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,gDAER,GACA,gBAAgB,CAqBlB;AAED,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,0BAA0B,CAAC,CASrC;AAED,yDAAyD;AACzD,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,gDAER,GACA,0BAA0B,CAAC,eAAe,CAAC,CAQ7C;AAED,wBAAgB,QAAQ,CACtB,OAAO,EAAE,MAAM,EACf,mBAAmB,EAAE,MAAM,EAC3B,OAAO,GAAE,iCAA0D,GAClE,gBAAgB,CAmBlB;AAED,wBAAsB,eAAe,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,eAAe,CAAC,CAS7F;AAED,+CAA+C;AAC/C,wBAAsB,GAAG,CACvB,OAAO,EAAE,MAAM,EACf,mBAAmB,EAAE,MAAM,EAC3B,OAAO,GAAE,iCAA0D,GAClE,OAAO,CAAC,eAAe,CAAC,CAG1B"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports._listBySubscriptionSend = _listBySubscriptionSend;
|
|
6
|
+
exports._listBySubscriptionDeserialize = _listBySubscriptionDeserialize;
|
|
7
|
+
exports.listBySubscription = listBySubscription;
|
|
8
|
+
exports._getSend = _getSend;
|
|
9
|
+
exports._getDeserialize = _getDeserialize;
|
|
10
|
+
exports.get = get;
|
|
11
|
+
const models_js_1 = require("../../models/models.js");
|
|
12
|
+
const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
|
|
13
|
+
const urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
|
|
14
|
+
const core_client_1 = require("@azure-rest/core-client");
|
|
15
|
+
function _listBySubscriptionSend(context, options = {
|
|
16
|
+
requestOptions: {},
|
|
17
|
+
}) {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/providers/Microsoft.ProgrammableConnectivity/operatorApiPlans{?api%2Dversion,%24filter,%24top,%24skip}", {
|
|
20
|
+
subscriptionId: context.subscriptionId,
|
|
21
|
+
"api%2Dversion": context.apiVersion,
|
|
22
|
+
"%24filter": options === null || options === void 0 ? void 0 : options.filter,
|
|
23
|
+
"%24top": options === null || options === void 0 ? void 0 : options.top,
|
|
24
|
+
"%24skip": options === null || options === void 0 ? void 0 : options.skip,
|
|
25
|
+
}, {
|
|
26
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
27
|
+
});
|
|
28
|
+
return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
29
|
+
}
|
|
30
|
+
async function _listBySubscriptionDeserialize(result) {
|
|
31
|
+
const expectedStatuses = ["200"];
|
|
32
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
33
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
34
|
+
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
35
|
+
throw error;
|
|
36
|
+
}
|
|
37
|
+
return (0, models_js_1._operatorApiPlanListResultDeserializer)(result.body);
|
|
38
|
+
}
|
|
39
|
+
/** List OperatorApiPlan resources by subscription ID. */
|
|
40
|
+
function listBySubscription(context, options = {
|
|
41
|
+
requestOptions: {},
|
|
42
|
+
}) {
|
|
43
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listBySubscriptionSend(context, options), _listBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
44
|
+
}
|
|
45
|
+
function _getSend(context, operatorApiPlanName, options = { requestOptions: {} }) {
|
|
46
|
+
var _a, _b;
|
|
47
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/providers/Microsoft.ProgrammableConnectivity/operatorApiPlans/{operatorApiPlanName}{?api%2Dversion}", {
|
|
48
|
+
subscriptionId: context.subscriptionId,
|
|
49
|
+
operatorApiPlanName: operatorApiPlanName,
|
|
50
|
+
"api%2Dversion": context.apiVersion,
|
|
51
|
+
}, {
|
|
52
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
53
|
+
});
|
|
54
|
+
return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
55
|
+
}
|
|
56
|
+
async function _getDeserialize(result) {
|
|
57
|
+
const expectedStatuses = ["200"];
|
|
58
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
59
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
60
|
+
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
61
|
+
throw error;
|
|
62
|
+
}
|
|
63
|
+
return (0, models_js_1.operatorApiPlanDeserializer)(result.body);
|
|
64
|
+
}
|
|
65
|
+
/** Get an OperatorApiPlan resource by name. */
|
|
66
|
+
async function get(context, operatorApiPlanName, options = { requestOptions: {} }) {
|
|
67
|
+
const result = await _getSend(context, operatorApiPlanName, options);
|
|
68
|
+
return _getDeserialize(result);
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/operatorApiPlans/operations.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA0BlC,0DA0BC;AAED,wEAWC;AAGD,gDAaC;AAED,4BAuBC;AAED,0CASC;AAGD,kBAOC;AA5HD,sDAMgC;AAKhC,4EAG+C;AAC/C,wEAAwE;AACxE,yDAKiC;AAEjC,SAAgB,uBAAuB,CACrC,OAAe,EACf,UAA4D;IAC1D,cAAc,EAAE,EAAE;CACnB;;IAED,MAAM,IAAI,GAAG,IAAA,kCAAiB,EAC5B,wIAAwI,EACxI;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,eAAe,EAAE,OAAO,CAAC,UAAU;QACnC,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,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IT License.\n\nimport { ProgrammableConnectivityContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n OperatorApiPlan,\n operatorApiPlanDeserializer,\n _OperatorApiPlanListResult,\n _operatorApiPlanListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n OperatorApiPlansListBySubscriptionOptionalParams,\n OperatorApiPlansGetOptionalParams,\n} from \"./options.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: OperatorApiPlansListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ProgrammableConnectivity/operatorApiPlans{?api%2Dversion,%24filter,%24top,%24skip}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n \"%24filter\": options?.filter,\n \"%24top\": options?.top,\n \"%24skip\": options?.skip,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperatorApiPlanListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _operatorApiPlanListResultDeserializer(result.body);\n}\n\n/** List OperatorApiPlan resources by subscription ID. */\nexport function listBySubscription(\n context: Client,\n options: OperatorApiPlansListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<OperatorApiPlan> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _getSend(\n context: Client,\n operatorApiPlanName: string,\n options: OperatorApiPlansGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ProgrammableConnectivity/operatorApiPlans/{operatorApiPlanName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n operatorApiPlanName: operatorApiPlanName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<OperatorApiPlan> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return operatorApiPlanDeserializer(result.body);\n}\n\n/** Get an OperatorApiPlan resource by name. */\nexport async function get(\n context: Client,\n operatorApiPlanName: string,\n options: OperatorApiPlansGetOptionalParams = { requestOptions: {} },\n): Promise<OperatorApiPlan> {\n const result = await _getSend(context, operatorApiPlanName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
2
|
+
/** Optional parameters. */
|
|
3
|
+
export interface OperatorApiPlansListBySubscriptionOptionalParams extends OperationOptions {
|
|
4
|
+
/** An optional OData based filter expression to apply on the operation. */
|
|
5
|
+
filter?: string;
|
|
6
|
+
/** An optional query parameter which specifies the maximum number of records to be returned. */
|
|
7
|
+
top?: number;
|
|
8
|
+
/** An optional query parameter which specifies the number of records to be skipped. */
|
|
9
|
+
skip?: number;
|
|
10
|
+
}
|
|
11
|
+
/** Optional parameters. */
|
|
12
|
+
export interface OperatorApiPlansGetOptionalParams extends OperationOptions {
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/operatorApiPlans/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,2BAA2B;AAC3B,MAAM,WAAW,gDAAiD,SAAQ,gBAAgB;IACxF,2EAA2E;IAC3E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gGAAgG;IAChG,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,uFAAuF;IACvF,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,2BAA2B;AAC3B,MAAM,WAAW,iCAAkC,SAAQ,gBAAgB;CAAG"}
|