@azure/arm-networkfunction 2.0.2-alpha.20260306.1 → 3.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/LICENSE +1 -1
- package/README.md +10 -11
- package/dist/browser/api/azureTrafficCollectorContext.d.ts +22 -0
- package/dist/browser/api/azureTrafficCollectorContext.js +26 -0
- package/dist/browser/api/azureTrafficCollectorContext.js.map +1 -0
- package/dist/browser/api/azureTrafficCollectors/index.d.ts +3 -0
- package/dist/browser/api/azureTrafficCollectors/index.js +4 -0
- package/dist/browser/api/azureTrafficCollectors/index.js.map +1 -0
- package/dist/browser/api/azureTrafficCollectors/operations.d.ts +22 -0
- package/dist/browser/api/azureTrafficCollectors/operations.js +138 -0
- package/dist/browser/api/azureTrafficCollectors/operations.js.map +1 -0
- package/dist/browser/api/azureTrafficCollectors/options.d.ts +18 -0
- package/dist/browser/api/azureTrafficCollectors/options.js +4 -0
- package/dist/browser/api/azureTrafficCollectors/options.js.map +1 -0
- package/dist/browser/api/azureTrafficCollectorsByResourceGroup/index.d.ts +3 -0
- package/dist/browser/api/azureTrafficCollectorsByResourceGroup/index.js +4 -0
- package/dist/browser/api/azureTrafficCollectorsByResourceGroup/index.js.map +1 -0
- package/dist/browser/api/azureTrafficCollectorsByResourceGroup/operations.d.ts +10 -0
- package/dist/browser/api/azureTrafficCollectorsByResourceGroup/operations.js +35 -0
- package/dist/browser/api/azureTrafficCollectorsByResourceGroup/operations.js.map +1 -0
- package/dist/browser/api/azureTrafficCollectorsByResourceGroup/options.d.ts +5 -0
- package/dist/browser/api/azureTrafficCollectorsByResourceGroup/options.js +4 -0
- package/dist/browser/api/azureTrafficCollectorsByResourceGroup/options.js.map +1 -0
- package/dist/browser/api/azureTrafficCollectorsBySubscription/index.d.ts +3 -0
- package/dist/browser/api/azureTrafficCollectorsBySubscription/index.js +4 -0
- package/dist/browser/api/azureTrafficCollectorsBySubscription/index.js.map +1 -0
- package/dist/browser/api/azureTrafficCollectorsBySubscription/operations.d.ts +10 -0
- package/dist/browser/api/azureTrafficCollectorsBySubscription/operations.js +34 -0
- package/dist/browser/api/azureTrafficCollectorsBySubscription/operations.js.map +1 -0
- package/dist/browser/api/azureTrafficCollectorsBySubscription/options.d.ts +5 -0
- package/dist/browser/api/azureTrafficCollectorsBySubscription/options.js +4 -0
- package/dist/browser/api/azureTrafficCollectorsBySubscription/options.js.map +1 -0
- package/dist/browser/api/collectorPolicies/index.d.ts +3 -0
- package/dist/browser/api/collectorPolicies/index.js +4 -0
- package/dist/browser/api/collectorPolicies/index.js.map +1 -0
- package/dist/browser/api/collectorPolicies/operations.d.ts +27 -0
- package/dist/browser/api/collectorPolicies/operations.js +172 -0
- package/dist/browser/api/collectorPolicies/operations.js.map +1 -0
- package/dist/browser/api/collectorPolicies/options.d.ts +21 -0
- package/dist/browser/api/collectorPolicies/options.js +4 -0
- package/dist/browser/api/collectorPolicies/options.js.map +1 -0
- package/dist/browser/api/index.d.ts +3 -0
- package/dist/browser/api/index.js +4 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/networkFunction/index.d.ts +3 -0
- package/dist/browser/api/networkFunction/index.js +4 -0
- package/dist/browser/api/networkFunction/index.js.map +1 -0
- package/dist/browser/api/networkFunction/operations.d.ts +10 -0
- package/dist/browser/api/networkFunction/operations.js +33 -0
- package/dist/browser/api/networkFunction/operations.js.map +1 -0
- package/dist/browser/api/networkFunction/options.d.ts +5 -0
- package/dist/browser/api/networkFunction/options.js +4 -0
- package/dist/browser/api/networkFunction/options.js.map +1 -0
- package/dist/browser/azureTrafficCollectorClient.d.ts +25 -22
- package/dist/browser/azureTrafficCollectorClient.js +41 -105
- package/dist/browser/azureTrafficCollectorClient.js.map +1 -1
- package/dist/browser/classic/azureTrafficCollectors/index.d.ts +26 -0
- package/dist/browser/classic/azureTrafficCollectors/index.js +34 -0
- package/dist/browser/classic/azureTrafficCollectors/index.js.map +1 -0
- package/dist/browser/classic/azureTrafficCollectorsByResourceGroup/index.d.ts +11 -0
- package/dist/browser/classic/azureTrafficCollectorsByResourceGroup/index.js +14 -0
- package/dist/browser/classic/azureTrafficCollectorsByResourceGroup/index.js.map +1 -0
- package/dist/browser/classic/azureTrafficCollectorsBySubscription/index.d.ts +11 -0
- package/dist/browser/classic/azureTrafficCollectorsBySubscription/index.js +14 -0
- package/dist/browser/classic/azureTrafficCollectorsBySubscription/index.js.map +1 -0
- package/dist/browser/classic/collectorPolicies/index.d.ts +29 -0
- package/dist/browser/classic/collectorPolicies/index.js +35 -0
- package/dist/browser/classic/collectorPolicies/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +6 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/networkFunction/index.d.ts +11 -0
- package/dist/browser/classic/networkFunction/index.js +14 -0
- package/dist/browser/classic/networkFunction/index.js.map +1 -0
- package/dist/browser/index.d.ts +19 -3
- package/dist/browser/index.js +7 -11
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +2 -432
- package/dist/browser/models/index.js +3 -65
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +335 -0
- package/dist/browser/models/models.js +405 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.js +104 -0
- package/dist/browser/restorePollerHelpers.js.map +1 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/browser/static-helpers/pagingHelpers.js +143 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/browser/static-helpers/pollingHelpers.js +95 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
- package/dist/browser/static-helpers/serialization/check-prop-undefined.js +17 -0
- package/dist/browser/static-helpers/serialization/check-prop-undefined.js.map +1 -0
- package/dist/browser/static-helpers/simplePollerHelpers.d.ts +73 -0
- package/dist/browser/static-helpers/simplePollerHelpers.js +44 -0
- package/dist/browser/static-helpers/simplePollerHelpers.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.js +200 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/azureTrafficCollectorContext.d.ts +22 -0
- package/dist/commonjs/api/azureTrafficCollectorContext.js +47 -0
- package/dist/commonjs/api/azureTrafficCollectorContext.js.map +7 -0
- package/dist/commonjs/api/azureTrafficCollectors/index.d.ts +3 -0
- package/dist/commonjs/api/azureTrafficCollectors/index.js +34 -0
- package/dist/commonjs/api/azureTrafficCollectors/index.js.map +7 -0
- package/dist/commonjs/api/azureTrafficCollectors/operations.d.ts +22 -0
- package/dist/commonjs/api/azureTrafficCollectors/operations.js +208 -0
- package/dist/commonjs/api/azureTrafficCollectors/operations.js.map +7 -0
- package/dist/commonjs/api/azureTrafficCollectors/options.d.ts +18 -0
- package/dist/commonjs/{operationsInterfaces/azureTrafficCollectors.js → api/azureTrafficCollectors/options.js} +3 -2
- package/dist/commonjs/api/azureTrafficCollectors/options.js.map +7 -0
- package/dist/commonjs/api/azureTrafficCollectorsByResourceGroup/index.d.ts +3 -0
- package/dist/commonjs/{operationsInterfaces/azureTrafficCollectorsByResourceGroup.js → api/azureTrafficCollectorsByResourceGroup/index.js} +13 -0
- package/dist/commonjs/api/azureTrafficCollectorsByResourceGroup/index.js.map +7 -0
- package/dist/commonjs/api/azureTrafficCollectorsByResourceGroup/operations.d.ts +10 -0
- package/dist/commonjs/api/azureTrafficCollectorsByResourceGroup/operations.js +72 -0
- package/dist/commonjs/api/azureTrafficCollectorsByResourceGroup/operations.js.map +7 -0
- package/dist/commonjs/api/azureTrafficCollectorsByResourceGroup/options.d.ts +5 -0
- package/dist/commonjs/{operationsInterfaces/collectorPolicies.js → api/azureTrafficCollectorsByResourceGroup/options.js} +3 -2
- package/dist/commonjs/api/azureTrafficCollectorsByResourceGroup/options.js.map +7 -0
- package/dist/commonjs/api/azureTrafficCollectorsBySubscription/index.d.ts +3 -0
- package/dist/commonjs/api/azureTrafficCollectorsBySubscription/index.js +28 -0
- package/dist/commonjs/api/azureTrafficCollectorsBySubscription/index.js.map +7 -0
- package/dist/commonjs/api/azureTrafficCollectorsBySubscription/operations.d.ts +10 -0
- package/dist/commonjs/api/azureTrafficCollectorsBySubscription/operations.js +71 -0
- package/dist/commonjs/api/azureTrafficCollectorsBySubscription/operations.js.map +7 -0
- package/dist/commonjs/api/azureTrafficCollectorsBySubscription/options.d.ts +5 -0
- package/dist/commonjs/{operationsInterfaces/azureTrafficCollectorsBySubscription.js → api/azureTrafficCollectorsBySubscription/options.js} +3 -2
- package/dist/commonjs/api/azureTrafficCollectorsBySubscription/options.js.map +7 -0
- package/dist/commonjs/api/collectorPolicies/index.d.ts +3 -0
- package/dist/commonjs/api/collectorPolicies/index.js +36 -0
- package/dist/commonjs/api/collectorPolicies/index.js.map +7 -0
- package/dist/commonjs/api/collectorPolicies/operations.d.ts +27 -0
- package/dist/commonjs/api/collectorPolicies/operations.js +271 -0
- package/dist/commonjs/api/collectorPolicies/operations.js.map +7 -0
- package/dist/commonjs/api/collectorPolicies/options.d.ts +21 -0
- package/dist/commonjs/api/collectorPolicies/options.js +16 -0
- package/dist/commonjs/api/collectorPolicies/options.js.map +7 -0
- package/dist/commonjs/api/index.d.ts +3 -0
- package/dist/commonjs/api/index.js +28 -0
- package/dist/commonjs/api/index.js.map +7 -0
- package/dist/commonjs/api/networkFunction/index.d.ts +3 -0
- package/dist/commonjs/api/networkFunction/index.js +28 -0
- package/dist/commonjs/api/networkFunction/index.js.map +7 -0
- package/dist/commonjs/api/networkFunction/operations.d.ts +10 -0
- package/dist/commonjs/api/networkFunction/operations.js +70 -0
- package/dist/commonjs/api/networkFunction/operations.js.map +7 -0
- package/dist/commonjs/api/networkFunction/options.d.ts +5 -0
- package/dist/commonjs/api/networkFunction/options.js +16 -0
- package/dist/commonjs/api/networkFunction/options.js.map +7 -0
- package/dist/commonjs/azureTrafficCollectorClient.d.ts +25 -22
- package/dist/commonjs/azureTrafficCollectorClient.js +38 -105
- package/dist/commonjs/azureTrafficCollectorClient.js.map +3 -3
- package/dist/commonjs/classic/azureTrafficCollectors/index.d.ts +26 -0
- package/dist/commonjs/classic/azureTrafficCollectors/index.js +70 -0
- package/dist/commonjs/classic/azureTrafficCollectors/index.js.map +7 -0
- package/dist/commonjs/classic/azureTrafficCollectorsByResourceGroup/index.d.ts +11 -0
- package/dist/commonjs/classic/azureTrafficCollectorsByResourceGroup/index.js +38 -0
- package/dist/commonjs/classic/azureTrafficCollectorsByResourceGroup/index.js.map +7 -0
- package/dist/commonjs/classic/azureTrafficCollectorsBySubscription/index.d.ts +11 -0
- package/dist/commonjs/classic/azureTrafficCollectorsBySubscription/index.js +38 -0
- package/dist/commonjs/classic/azureTrafficCollectorsBySubscription/index.js.map +7 -0
- package/dist/commonjs/classic/collectorPolicies/index.d.ts +29 -0
- package/dist/commonjs/classic/collectorPolicies/index.js +99 -0
- package/dist/commonjs/classic/collectorPolicies/index.js.map +7 -0
- package/dist/commonjs/classic/index.d.ts +6 -0
- package/dist/commonjs/{operationsInterfaces/networkFunction.js → classic/index.js} +3 -2
- package/dist/commonjs/classic/index.js.map +7 -0
- package/dist/commonjs/classic/networkFunction/index.d.ts +11 -0
- package/dist/commonjs/{pagingHelper.js → classic/networkFunction/index.js} +15 -20
- package/dist/commonjs/classic/networkFunction/index.js.map +7 -0
- package/dist/commonjs/index.d.ts +19 -3
- package/dist/commonjs/index.js +27 -8
- package/dist/commonjs/index.js.map +3 -3
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.js +29 -0
- package/dist/commonjs/logger.js.map +7 -0
- package/dist/commonjs/models/index.d.ts +2 -432
- package/dist/commonjs/models/index.js +11 -45
- package/dist/commonjs/models/index.js.map +4 -4
- package/dist/commonjs/models/models.d.ts +335 -0
- package/dist/commonjs/models/models.js +461 -0
- package/dist/commonjs/models/models.js.map +7 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.js +117 -0
- package/dist/commonjs/restorePollerHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +101 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
- package/dist/commonjs/{lroImpl.js → static-helpers/serialization/check-prop-undefined.js} +12 -23
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +7 -0
- package/dist/commonjs/static-helpers/simplePollerHelpers.d.ts +73 -0
- package/dist/commonjs/static-helpers/simplePollerHelpers.js +67 -0
- package/dist/commonjs/static-helpers/simplePollerHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/azureTrafficCollectorContext.d.ts +22 -0
- package/dist/esm/api/azureTrafficCollectorContext.js +26 -0
- package/dist/esm/api/azureTrafficCollectorContext.js.map +1 -0
- package/dist/esm/api/azureTrafficCollectors/index.d.ts +3 -0
- package/dist/esm/api/azureTrafficCollectors/index.js +4 -0
- package/dist/esm/api/azureTrafficCollectors/index.js.map +1 -0
- package/dist/esm/api/azureTrafficCollectors/operations.d.ts +22 -0
- package/dist/esm/api/azureTrafficCollectors/operations.js +138 -0
- package/dist/esm/api/azureTrafficCollectors/operations.js.map +1 -0
- package/dist/esm/api/azureTrafficCollectors/options.d.ts +18 -0
- package/dist/esm/api/azureTrafficCollectors/options.js +4 -0
- package/dist/esm/api/azureTrafficCollectors/options.js.map +1 -0
- package/dist/esm/api/azureTrafficCollectorsByResourceGroup/index.d.ts +3 -0
- package/dist/esm/api/azureTrafficCollectorsByResourceGroup/index.js +4 -0
- package/dist/esm/api/azureTrafficCollectorsByResourceGroup/index.js.map +1 -0
- package/dist/esm/api/azureTrafficCollectorsByResourceGroup/operations.d.ts +10 -0
- package/dist/esm/api/azureTrafficCollectorsByResourceGroup/operations.js +35 -0
- package/dist/esm/api/azureTrafficCollectorsByResourceGroup/operations.js.map +1 -0
- package/dist/esm/api/azureTrafficCollectorsByResourceGroup/options.d.ts +5 -0
- package/dist/esm/api/azureTrafficCollectorsByResourceGroup/options.js +4 -0
- package/dist/esm/api/azureTrafficCollectorsByResourceGroup/options.js.map +1 -0
- package/dist/esm/api/azureTrafficCollectorsBySubscription/index.d.ts +3 -0
- package/dist/esm/api/azureTrafficCollectorsBySubscription/index.js +4 -0
- package/dist/esm/api/azureTrafficCollectorsBySubscription/index.js.map +1 -0
- package/dist/esm/api/azureTrafficCollectorsBySubscription/operations.d.ts +10 -0
- package/dist/esm/api/azureTrafficCollectorsBySubscription/operations.js +34 -0
- package/dist/esm/api/azureTrafficCollectorsBySubscription/operations.js.map +1 -0
- package/dist/esm/api/azureTrafficCollectorsBySubscription/options.d.ts +5 -0
- package/dist/esm/api/azureTrafficCollectorsBySubscription/options.js +4 -0
- package/dist/esm/api/azureTrafficCollectorsBySubscription/options.js.map +1 -0
- package/dist/esm/api/collectorPolicies/index.d.ts +3 -0
- package/dist/esm/api/collectorPolicies/index.js +4 -0
- package/dist/esm/api/collectorPolicies/index.js.map +1 -0
- package/dist/esm/api/collectorPolicies/operations.d.ts +27 -0
- package/dist/esm/api/collectorPolicies/operations.js +172 -0
- package/dist/esm/api/collectorPolicies/operations.js.map +1 -0
- package/dist/esm/api/collectorPolicies/options.d.ts +21 -0
- package/dist/esm/api/collectorPolicies/options.js +4 -0
- package/dist/esm/api/collectorPolicies/options.js.map +1 -0
- package/dist/esm/api/index.d.ts +3 -0
- package/dist/esm/api/index.js +4 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/networkFunction/index.d.ts +3 -0
- package/dist/esm/api/networkFunction/index.js +4 -0
- package/dist/esm/api/networkFunction/index.js.map +1 -0
- package/dist/esm/api/networkFunction/operations.d.ts +10 -0
- package/dist/esm/api/networkFunction/operations.js +33 -0
- package/dist/esm/api/networkFunction/operations.js.map +1 -0
- package/dist/esm/api/networkFunction/options.d.ts +5 -0
- package/dist/esm/api/networkFunction/options.js +4 -0
- package/dist/esm/api/networkFunction/options.js.map +1 -0
- package/dist/esm/azureTrafficCollectorClient.d.ts +25 -22
- package/dist/esm/azureTrafficCollectorClient.js +48 -110
- package/dist/esm/azureTrafficCollectorClient.js.map +1 -7
- package/dist/esm/classic/azureTrafficCollectors/index.d.ts +26 -0
- package/dist/esm/classic/azureTrafficCollectors/index.js +34 -0
- package/dist/esm/classic/azureTrafficCollectors/index.js.map +1 -0
- package/dist/esm/classic/azureTrafficCollectorsByResourceGroup/index.d.ts +11 -0
- package/dist/esm/classic/azureTrafficCollectorsByResourceGroup/index.js +14 -0
- package/dist/esm/classic/azureTrafficCollectorsByResourceGroup/index.js.map +1 -0
- package/dist/esm/classic/azureTrafficCollectorsBySubscription/index.d.ts +11 -0
- package/dist/esm/classic/azureTrafficCollectorsBySubscription/index.js +14 -0
- package/dist/esm/classic/azureTrafficCollectorsBySubscription/index.js.map +1 -0
- package/dist/esm/classic/collectorPolicies/index.d.ts +29 -0
- package/dist/esm/classic/collectorPolicies/index.js +35 -0
- package/dist/esm/classic/collectorPolicies/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +6 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/networkFunction/index.d.ts +11 -0
- package/dist/esm/classic/networkFunction/index.js +14 -0
- package/dist/esm/classic/networkFunction/index.js.map +1 -0
- package/dist/esm/index.d.ts +19 -3
- package/dist/esm/index.js +9 -8
- package/dist/esm/index.js.map +1 -7
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +2 -432
- package/dist/esm/models/index.js +4 -45
- package/dist/esm/models/index.js.map +1 -7
- package/dist/esm/models/models.d.ts +335 -0
- package/dist/esm/models/models.js +405 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.js +104 -0
- package/dist/esm/restorePollerHelpers.js.map +1 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/esm/static-helpers/pagingHelpers.js +143 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/esm/static-helpers/pollingHelpers.js +95 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
- package/dist/esm/static-helpers/serialization/check-prop-undefined.js +17 -0
- package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +1 -0
- package/dist/esm/static-helpers/simplePollerHelpers.d.ts +73 -0
- package/dist/esm/static-helpers/simplePollerHelpers.js +44 -0
- package/dist/esm/static-helpers/simplePollerHelpers.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.js +200 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +189 -80
- package/CHANGELOG.md +0 -44
- package/dist/browser/azureTrafficCollectorClient.d.ts.map +0 -1
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/lroImpl.d.ts +0 -16
- package/dist/browser/lroImpl.d.ts.map +0 -1
- package/dist/browser/lroImpl.js +0 -33
- package/dist/browser/lroImpl.js.map +0 -1
- package/dist/browser/models/index.d.ts.map +0 -1
- package/dist/browser/models/mappers.d.ts +0 -21
- package/dist/browser/models/mappers.d.ts.map +0 -1
- package/dist/browser/models/mappers.js +0 -534
- package/dist/browser/models/mappers.js.map +0 -1
- package/dist/browser/models/parameters.d.ts +0 -19
- package/dist/browser/models/parameters.d.ts.map +0 -1
- package/dist/browser/models/parameters.js +0 -136
- package/dist/browser/models/parameters.js.map +0 -1
- package/dist/browser/operations/azureTrafficCollectors.d.ts +0 -59
- package/dist/browser/operations/azureTrafficCollectors.d.ts.map +0 -1
- package/dist/browser/operations/azureTrafficCollectors.js +0 -258
- package/dist/browser/operations/azureTrafficCollectors.js.map +0 -1
- package/dist/browser/operations/azureTrafficCollectorsByResourceGroup.d.ts +0 -35
- package/dist/browser/operations/azureTrafficCollectorsByResourceGroup.d.ts.map +0 -1
- package/dist/browser/operations/azureTrafficCollectorsByResourceGroup.js +0 -129
- package/dist/browser/operations/azureTrafficCollectorsByResourceGroup.js.map +0 -1
- package/dist/browser/operations/azureTrafficCollectorsBySubscription.d.ts +0 -32
- package/dist/browser/operations/azureTrafficCollectorsBySubscription.d.ts.map +0 -1
- package/dist/browser/operations/azureTrafficCollectorsBySubscription.js +0 -121
- package/dist/browser/operations/azureTrafficCollectorsBySubscription.js.map +0 -1
- package/dist/browser/operations/collectorPolicies.d.ts +0 -90
- package/dist/browser/operations/collectorPolicies.d.ts.map +0 -1
- package/dist/browser/operations/collectorPolicies.js +0 -401
- package/dist/browser/operations/collectorPolicies.js.map +0 -1
- package/dist/browser/operations/index.d.ts +0 -6
- package/dist/browser/operations/index.d.ts.map +0 -1
- package/dist/browser/operations/index.js +0 -13
- package/dist/browser/operations/index.js.map +0 -1
- package/dist/browser/operations/networkFunction.d.ts +0 -26
- package/dist/browser/operations/networkFunction.d.ts.map +0 -1
- package/dist/browser/operations/networkFunction.js +0 -79
- package/dist/browser/operations/networkFunction.js.map +0 -1
- package/dist/browser/operationsInterfaces/azureTrafficCollectors.d.ts +0 -51
- package/dist/browser/operationsInterfaces/azureTrafficCollectors.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/azureTrafficCollectors.js +0 -9
- package/dist/browser/operationsInterfaces/azureTrafficCollectors.js.map +0 -1
- package/dist/browser/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts +0 -12
- package/dist/browser/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +0 -9
- package/dist/browser/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +0 -1
- package/dist/browser/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts +0 -11
- package/dist/browser/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/azureTrafficCollectorsBySubscription.js +0 -9
- package/dist/browser/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +0 -1
- package/dist/browser/operationsInterfaces/collectorPolicies.d.ts +0 -65
- package/dist/browser/operationsInterfaces/collectorPolicies.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/collectorPolicies.js +0 -9
- package/dist/browser/operationsInterfaces/collectorPolicies.js.map +0 -1
- package/dist/browser/operationsInterfaces/index.d.ts +0 -6
- package/dist/browser/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/index.js +0 -13
- package/dist/browser/operationsInterfaces/index.js.map +0 -1
- package/dist/browser/operationsInterfaces/networkFunction.d.ts +0 -11
- package/dist/browser/operationsInterfaces/networkFunction.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/networkFunction.js +0 -9
- package/dist/browser/operationsInterfaces/networkFunction.js.map +0 -1
- package/dist/browser/pagingHelper.d.ts +0 -13
- package/dist/browser/pagingHelper.d.ts.map +0 -1
- package/dist/browser/pagingHelper.js +0 -30
- package/dist/browser/pagingHelper.js.map +0 -1
- package/dist/commonjs/azureTrafficCollectorClient.d.ts.map +0 -1
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/lroImpl.d.ts +0 -16
- package/dist/commonjs/lroImpl.d.ts.map +0 -1
- package/dist/commonjs/lroImpl.js.map +0 -7
- package/dist/commonjs/models/index.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.d.ts +0 -21
- package/dist/commonjs/models/mappers.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.js +0 -588
- package/dist/commonjs/models/mappers.js.map +0 -7
- package/dist/commonjs/models/parameters.d.ts +0 -19
- package/dist/commonjs/models/parameters.d.ts.map +0 -1
- package/dist/commonjs/models/parameters.js +0 -186
- package/dist/commonjs/models/parameters.js.map +0 -7
- package/dist/commonjs/operations/azureTrafficCollectors.d.ts +0 -59
- package/dist/commonjs/operations/azureTrafficCollectors.d.ts.map +0 -1
- package/dist/commonjs/operations/azureTrafficCollectors.js +0 -311
- package/dist/commonjs/operations/azureTrafficCollectors.js.map +0 -7
- package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.d.ts +0 -35
- package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.d.ts.map +0 -1
- package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.js +0 -168
- package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.js.map +0 -7
- package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.d.ts +0 -32
- package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.d.ts.map +0 -1
- package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.js +0 -153
- package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.js.map +0 -7
- package/dist/commonjs/operations/collectorPolicies.d.ts +0 -90
- package/dist/commonjs/operations/collectorPolicies.d.ts.map +0 -1
- package/dist/commonjs/operations/collectorPolicies.js +0 -483
- package/dist/commonjs/operations/collectorPolicies.js.map +0 -7
- package/dist/commonjs/operations/index.d.ts +0 -6
- package/dist/commonjs/operations/index.d.ts.map +0 -1
- package/dist/commonjs/operations/index.js +0 -29
- package/dist/commonjs/operations/index.js.map +0 -7
- package/dist/commonjs/operations/networkFunction.d.ts +0 -26
- package/dist/commonjs/operations/networkFunction.d.ts.map +0 -1
- package/dist/commonjs/operations/networkFunction.js +0 -111
- package/dist/commonjs/operations/networkFunction.js.map +0 -7
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.d.ts +0 -51
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.js.map +0 -7
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts +0 -12
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +0 -7
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts +0 -11
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +0 -7
- package/dist/commonjs/operationsInterfaces/collectorPolicies.d.ts +0 -65
- package/dist/commonjs/operationsInterfaces/collectorPolicies.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/collectorPolicies.js.map +0 -7
- package/dist/commonjs/operationsInterfaces/index.d.ts +0 -6
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.js +0 -29
- package/dist/commonjs/operationsInterfaces/index.js.map +0 -7
- package/dist/commonjs/operationsInterfaces/networkFunction.d.ts +0 -11
- package/dist/commonjs/operationsInterfaces/networkFunction.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/networkFunction.js.map +0 -7
- package/dist/commonjs/pagingHelper.d.ts +0 -13
- package/dist/commonjs/pagingHelper.d.ts.map +0 -1
- package/dist/commonjs/pagingHelper.js.map +0 -7
- package/dist/esm/azureTrafficCollectorClient.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/lroImpl.d.ts +0 -16
- package/dist/esm/lroImpl.d.ts.map +0 -1
- package/dist/esm/lroImpl.js +0 -23
- package/dist/esm/lroImpl.js.map +0 -7
- package/dist/esm/models/index.d.ts.map +0 -1
- package/dist/esm/models/mappers.d.ts +0 -21
- package/dist/esm/models/mappers.d.ts.map +0 -1
- package/dist/esm/models/mappers.js +0 -547
- package/dist/esm/models/mappers.js.map +0 -7
- package/dist/esm/models/parameters.d.ts +0 -19
- package/dist/esm/models/parameters.d.ts.map +0 -1
- package/dist/esm/models/parameters.js +0 -151
- package/dist/esm/models/parameters.js.map +0 -7
- package/dist/esm/operations/azureTrafficCollectors.d.ts +0 -59
- package/dist/esm/operations/azureTrafficCollectors.d.ts.map +0 -1
- package/dist/esm/operations/azureTrafficCollectors.js +0 -278
- package/dist/esm/operations/azureTrafficCollectors.js.map +0 -7
- package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.d.ts +0 -35
- package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.d.ts.map +0 -1
- package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.js +0 -135
- package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.js.map +0 -7
- package/dist/esm/operations/azureTrafficCollectorsBySubscription.d.ts +0 -32
- package/dist/esm/operations/azureTrafficCollectorsBySubscription.d.ts.map +0 -1
- package/dist/esm/operations/azureTrafficCollectorsBySubscription.js +0 -120
- package/dist/esm/operations/azureTrafficCollectorsBySubscription.js.map +0 -7
- package/dist/esm/operations/collectorPolicies.d.ts +0 -90
- package/dist/esm/operations/collectorPolicies.d.ts.map +0 -1
- package/dist/esm/operations/collectorPolicies.js +0 -450
- package/dist/esm/operations/collectorPolicies.js.map +0 -7
- package/dist/esm/operations/index.d.ts +0 -6
- package/dist/esm/operations/index.d.ts.map +0 -1
- package/dist/esm/operations/index.js +0 -5
- package/dist/esm/operations/index.js.map +0 -7
- package/dist/esm/operations/networkFunction.d.ts +0 -26
- package/dist/esm/operations/networkFunction.d.ts.map +0 -1
- package/dist/esm/operations/networkFunction.js +0 -78
- package/dist/esm/operations/networkFunction.js.map +0 -7
- package/dist/esm/operationsInterfaces/azureTrafficCollectors.d.ts +0 -51
- package/dist/esm/operationsInterfaces/azureTrafficCollectors.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/azureTrafficCollectors.js +0 -0
- package/dist/esm/operationsInterfaces/azureTrafficCollectors.js.map +0 -7
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts +0 -12
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +0 -0
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +0 -7
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts +0 -11
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.js +0 -0
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +0 -7
- package/dist/esm/operationsInterfaces/collectorPolicies.d.ts +0 -65
- package/dist/esm/operationsInterfaces/collectorPolicies.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/collectorPolicies.js +0 -0
- package/dist/esm/operationsInterfaces/collectorPolicies.js.map +0 -7
- package/dist/esm/operationsInterfaces/index.d.ts +0 -6
- package/dist/esm/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/index.js +0 -5
- package/dist/esm/operationsInterfaces/index.js.map +0 -7
- package/dist/esm/operationsInterfaces/networkFunction.d.ts +0 -11
- package/dist/esm/operationsInterfaces/networkFunction.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/networkFunction.js +0 -0
- package/dist/esm/operationsInterfaces/networkFunction.js.map +0 -7
- package/dist/esm/pagingHelper.d.ts +0 -13
- package/dist/esm/pagingHelper.d.ts.map +0 -1
- package/dist/esm/pagingHelper.js +0 -19
- package/dist/esm/pagingHelper.js.map +0 -7
- package/dist/react-native/azureTrafficCollectorClient.d.ts +0 -24
- package/dist/react-native/azureTrafficCollectorClient.d.ts.map +0 -1
- package/dist/react-native/azureTrafficCollectorClient.js +0 -114
- package/dist/react-native/azureTrafficCollectorClient.js.map +0 -1
- package/dist/react-native/index.d.ts +0 -5
- package/dist/react-native/index.d.ts.map +0 -1
- package/dist/react-native/index.js +0 -13
- package/dist/react-native/index.js.map +0 -1
- package/dist/react-native/lroImpl.d.ts +0 -16
- package/dist/react-native/lroImpl.d.ts.map +0 -1
- package/dist/react-native/lroImpl.js +0 -33
- package/dist/react-native/lroImpl.js.map +0 -1
- package/dist/react-native/models/index.d.ts +0 -433
- package/dist/react-native/models/index.d.ts.map +0 -1
- package/dist/react-native/models/index.js +0 -66
- package/dist/react-native/models/index.js.map +0 -1
- package/dist/react-native/models/mappers.d.ts +0 -21
- package/dist/react-native/models/mappers.d.ts.map +0 -1
- package/dist/react-native/models/mappers.js +0 -534
- package/dist/react-native/models/mappers.js.map +0 -1
- package/dist/react-native/models/parameters.d.ts +0 -19
- package/dist/react-native/models/parameters.d.ts.map +0 -1
- package/dist/react-native/models/parameters.js +0 -136
- package/dist/react-native/models/parameters.js.map +0 -1
- package/dist/react-native/operations/azureTrafficCollectors.d.ts +0 -59
- package/dist/react-native/operations/azureTrafficCollectors.d.ts.map +0 -1
- package/dist/react-native/operations/azureTrafficCollectors.js +0 -258
- package/dist/react-native/operations/azureTrafficCollectors.js.map +0 -1
- package/dist/react-native/operations/azureTrafficCollectorsByResourceGroup.d.ts +0 -35
- package/dist/react-native/operations/azureTrafficCollectorsByResourceGroup.d.ts.map +0 -1
- package/dist/react-native/operations/azureTrafficCollectorsByResourceGroup.js +0 -129
- package/dist/react-native/operations/azureTrafficCollectorsByResourceGroup.js.map +0 -1
- package/dist/react-native/operations/azureTrafficCollectorsBySubscription.d.ts +0 -32
- package/dist/react-native/operations/azureTrafficCollectorsBySubscription.d.ts.map +0 -1
- package/dist/react-native/operations/azureTrafficCollectorsBySubscription.js +0 -121
- package/dist/react-native/operations/azureTrafficCollectorsBySubscription.js.map +0 -1
- package/dist/react-native/operations/collectorPolicies.d.ts +0 -90
- package/dist/react-native/operations/collectorPolicies.d.ts.map +0 -1
- package/dist/react-native/operations/collectorPolicies.js +0 -401
- package/dist/react-native/operations/collectorPolicies.js.map +0 -1
- package/dist/react-native/operations/index.d.ts +0 -6
- package/dist/react-native/operations/index.d.ts.map +0 -1
- package/dist/react-native/operations/index.js +0 -13
- package/dist/react-native/operations/index.js.map +0 -1
- package/dist/react-native/operations/networkFunction.d.ts +0 -26
- package/dist/react-native/operations/networkFunction.d.ts.map +0 -1
- package/dist/react-native/operations/networkFunction.js +0 -79
- package/dist/react-native/operations/networkFunction.js.map +0 -1
- package/dist/react-native/operationsInterfaces/azureTrafficCollectors.d.ts +0 -51
- package/dist/react-native/operationsInterfaces/azureTrafficCollectors.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/azureTrafficCollectors.js +0 -9
- package/dist/react-native/operationsInterfaces/azureTrafficCollectors.js.map +0 -1
- package/dist/react-native/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts +0 -12
- package/dist/react-native/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +0 -9
- package/dist/react-native/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +0 -1
- package/dist/react-native/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts +0 -11
- package/dist/react-native/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/azureTrafficCollectorsBySubscription.js +0 -9
- package/dist/react-native/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +0 -1
- package/dist/react-native/operationsInterfaces/collectorPolicies.d.ts +0 -65
- package/dist/react-native/operationsInterfaces/collectorPolicies.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/collectorPolicies.js +0 -9
- package/dist/react-native/operationsInterfaces/collectorPolicies.js.map +0 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +0 -6
- package/dist/react-native/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/index.js +0 -13
- package/dist/react-native/operationsInterfaces/index.js.map +0 -1
- package/dist/react-native/operationsInterfaces/networkFunction.d.ts +0 -11
- package/dist/react-native/operationsInterfaces/networkFunction.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/networkFunction.js +0 -9
- package/dist/react-native/operationsInterfaces/networkFunction.js.map +0 -1
- package/dist/react-native/package.json +0 -3
- package/dist/react-native/pagingHelper.d.ts +0 -13
- package/dist/react-native/pagingHelper.d.ts.map +0 -1
- package/dist/react-native/pagingHelper.js +0 -30
- package/dist/react-native/pagingHelper.js.map +0 -1
- package/review/arm-networkfunction-node.api.md +0 -392
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var operations_exports = {};
|
|
19
|
+
__export(operations_exports, {
|
|
20
|
+
$delete: () => $delete,
|
|
21
|
+
_$deleteDeserialize: () => _$deleteDeserialize,
|
|
22
|
+
_$deleteSend: () => _$deleteSend,
|
|
23
|
+
_createOrUpdateDeserialize: () => _createOrUpdateDeserialize,
|
|
24
|
+
_createOrUpdateSend: () => _createOrUpdateSend,
|
|
25
|
+
_getDeserialize: () => _getDeserialize,
|
|
26
|
+
_getSend: () => _getSend,
|
|
27
|
+
_listDeserialize: () => _listDeserialize,
|
|
28
|
+
_listSend: () => _listSend,
|
|
29
|
+
_updateTagsDeserialize: () => _updateTagsDeserialize,
|
|
30
|
+
_updateTagsSend: () => _updateTagsSend,
|
|
31
|
+
createOrUpdate: () => createOrUpdate,
|
|
32
|
+
get: () => get,
|
|
33
|
+
list: () => list,
|
|
34
|
+
updateTags: () => updateTags
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(operations_exports);
|
|
37
|
+
var import_models = require("../../models/models.js");
|
|
38
|
+
var import_pagingHelpers = require("../../static-helpers/pagingHelpers.js");
|
|
39
|
+
var import_pollingHelpers = require("../../static-helpers/pollingHelpers.js");
|
|
40
|
+
var import_urlTemplate = require("../../static-helpers/urlTemplate.js");
|
|
41
|
+
var import_core_client = require("@azure-rest/core-client");
|
|
42
|
+
function _listSend(context, resourceGroupName, azureTrafficCollectorName, options = { requestOptions: {} }) {
|
|
43
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
44
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies{?api%2Dversion}",
|
|
45
|
+
{
|
|
46
|
+
subscriptionId: context.subscriptionId,
|
|
47
|
+
resourceGroupName,
|
|
48
|
+
azureTrafficCollectorName,
|
|
49
|
+
"api%2Dversion": context.apiVersion ?? "2022-11-01"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
return context.path(path).get({
|
|
56
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
57
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
async function _listDeserialize(result) {
|
|
61
|
+
const expectedStatuses = ["200"];
|
|
62
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
63
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
64
|
+
if (result.body) {
|
|
65
|
+
error.details = (0, import_models.cloudErrorDeserializer)(result.body);
|
|
66
|
+
}
|
|
67
|
+
throw error;
|
|
68
|
+
}
|
|
69
|
+
return (0, import_models._collectorPolicyListResultDeserializer)(result.body);
|
|
70
|
+
}
|
|
71
|
+
function list(context, resourceGroupName, azureTrafficCollectorName, options = { requestOptions: {} }) {
|
|
72
|
+
return (0, import_pagingHelpers.buildPagedAsyncIterator)(
|
|
73
|
+
context,
|
|
74
|
+
() => _listSend(context, resourceGroupName, azureTrafficCollectorName, options),
|
|
75
|
+
_listDeserialize,
|
|
76
|
+
["200"],
|
|
77
|
+
{ itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2022-11-01" }
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
function _$deleteSend(context, resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options = { requestOptions: {} }) {
|
|
81
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
82
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}{?api%2Dversion}",
|
|
83
|
+
{
|
|
84
|
+
subscriptionId: context.subscriptionId,
|
|
85
|
+
resourceGroupName,
|
|
86
|
+
azureTrafficCollectorName,
|
|
87
|
+
collectorPolicyName,
|
|
88
|
+
"api%2Dversion": context.apiVersion ?? "2022-11-01"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
return context.path(path).delete({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
|
|
95
|
+
}
|
|
96
|
+
async function _$deleteDeserialize(result) {
|
|
97
|
+
const expectedStatuses = ["200", "202", "204"];
|
|
98
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
99
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
100
|
+
if (result.body) {
|
|
101
|
+
error.details = (0, import_models.cloudErrorDeserializer)(result.body);
|
|
102
|
+
}
|
|
103
|
+
throw error;
|
|
104
|
+
}
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
function $delete(context, resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options = { requestOptions: {} }) {
|
|
108
|
+
return (0, import_pollingHelpers.getLongRunningPoller)(context, _$deleteDeserialize, ["200", "202", "204"], {
|
|
109
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
110
|
+
abortSignal: options?.abortSignal,
|
|
111
|
+
getInitialResponse: () => _$deleteSend(
|
|
112
|
+
context,
|
|
113
|
+
resourceGroupName,
|
|
114
|
+
azureTrafficCollectorName,
|
|
115
|
+
collectorPolicyName,
|
|
116
|
+
options
|
|
117
|
+
),
|
|
118
|
+
resourceLocationConfig: "location",
|
|
119
|
+
apiVersion: context.apiVersion ?? "2022-11-01"
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
function _updateTagsSend(context, resourceGroupName, azureTrafficCollectorName, collectorPolicyName, parameters, options = { requestOptions: {} }) {
|
|
123
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
124
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}{?api%2Dversion}",
|
|
125
|
+
{
|
|
126
|
+
subscriptionId: context.subscriptionId,
|
|
127
|
+
resourceGroupName,
|
|
128
|
+
azureTrafficCollectorName,
|
|
129
|
+
collectorPolicyName,
|
|
130
|
+
"api%2Dversion": context.apiVersion ?? "2022-11-01"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
134
|
+
}
|
|
135
|
+
);
|
|
136
|
+
return context.path(path).patch({
|
|
137
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
138
|
+
contentType: "application/json",
|
|
139
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
140
|
+
body: (0, import_models.tagsObjectSerializer)(parameters)
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
async function _updateTagsDeserialize(result) {
|
|
144
|
+
const expectedStatuses = ["200"];
|
|
145
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
146
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
147
|
+
if (result.body) {
|
|
148
|
+
error.details = (0, import_models.cloudErrorDeserializer)(result.body);
|
|
149
|
+
}
|
|
150
|
+
throw error;
|
|
151
|
+
}
|
|
152
|
+
return (0, import_models.collectorPolicyDeserializer)(result.body);
|
|
153
|
+
}
|
|
154
|
+
async function updateTags(context, resourceGroupName, azureTrafficCollectorName, collectorPolicyName, parameters, options = { requestOptions: {} }) {
|
|
155
|
+
const result = await _updateTagsSend(
|
|
156
|
+
context,
|
|
157
|
+
resourceGroupName,
|
|
158
|
+
azureTrafficCollectorName,
|
|
159
|
+
collectorPolicyName,
|
|
160
|
+
parameters,
|
|
161
|
+
options
|
|
162
|
+
);
|
|
163
|
+
return _updateTagsDeserialize(result);
|
|
164
|
+
}
|
|
165
|
+
function _createOrUpdateSend(context, resourceGroupName, azureTrafficCollectorName, collectorPolicyName, parameters, options = { requestOptions: {} }) {
|
|
166
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
167
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}{?api%2Dversion}",
|
|
168
|
+
{
|
|
169
|
+
subscriptionId: context.subscriptionId,
|
|
170
|
+
resourceGroupName,
|
|
171
|
+
azureTrafficCollectorName,
|
|
172
|
+
collectorPolicyName,
|
|
173
|
+
"api%2Dversion": context.apiVersion ?? "2022-11-01"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
177
|
+
}
|
|
178
|
+
);
|
|
179
|
+
return context.path(path).put({
|
|
180
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
181
|
+
contentType: "application/json",
|
|
182
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
183
|
+
body: (0, import_models.collectorPolicySerializer)(parameters)
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
async function _createOrUpdateDeserialize(result) {
|
|
187
|
+
const expectedStatuses = ["200", "201", "202"];
|
|
188
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
189
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
190
|
+
if (result.body) {
|
|
191
|
+
error.details = (0, import_models.cloudErrorDeserializer)(result.body);
|
|
192
|
+
}
|
|
193
|
+
throw error;
|
|
194
|
+
}
|
|
195
|
+
return (0, import_models.collectorPolicyDeserializer)(result.body);
|
|
196
|
+
}
|
|
197
|
+
function createOrUpdate(context, resourceGroupName, azureTrafficCollectorName, collectorPolicyName, parameters, options = { requestOptions: {} }) {
|
|
198
|
+
return (0, import_pollingHelpers.getLongRunningPoller)(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
|
|
199
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
200
|
+
abortSignal: options?.abortSignal,
|
|
201
|
+
getInitialResponse: () => _createOrUpdateSend(
|
|
202
|
+
context,
|
|
203
|
+
resourceGroupName,
|
|
204
|
+
azureTrafficCollectorName,
|
|
205
|
+
collectorPolicyName,
|
|
206
|
+
parameters,
|
|
207
|
+
options
|
|
208
|
+
),
|
|
209
|
+
resourceLocationConfig: "azure-async-operation",
|
|
210
|
+
apiVersion: context.apiVersion ?? "2022-11-01"
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
function _getSend(context, resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options = { requestOptions: {} }) {
|
|
214
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
215
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}{?api%2Dversion}",
|
|
216
|
+
{
|
|
217
|
+
subscriptionId: context.subscriptionId,
|
|
218
|
+
resourceGroupName,
|
|
219
|
+
azureTrafficCollectorName,
|
|
220
|
+
collectorPolicyName,
|
|
221
|
+
"api%2Dversion": context.apiVersion ?? "2022-11-01"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
225
|
+
}
|
|
226
|
+
);
|
|
227
|
+
return context.path(path).get({
|
|
228
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
229
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
async function _getDeserialize(result) {
|
|
233
|
+
const expectedStatuses = ["200"];
|
|
234
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
235
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
236
|
+
if (result.body) {
|
|
237
|
+
error.details = (0, import_models.cloudErrorDeserializer)(result.body);
|
|
238
|
+
}
|
|
239
|
+
throw error;
|
|
240
|
+
}
|
|
241
|
+
return (0, import_models.collectorPolicyDeserializer)(result.body);
|
|
242
|
+
}
|
|
243
|
+
async function get(context, resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options = { requestOptions: {} }) {
|
|
244
|
+
const result = await _getSend(
|
|
245
|
+
context,
|
|
246
|
+
resourceGroupName,
|
|
247
|
+
azureTrafficCollectorName,
|
|
248
|
+
collectorPolicyName,
|
|
249
|
+
options
|
|
250
|
+
);
|
|
251
|
+
return _getDeserialize(result);
|
|
252
|
+
}
|
|
253
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
254
|
+
0 && (module.exports = {
|
|
255
|
+
$delete,
|
|
256
|
+
_$deleteDeserialize,
|
|
257
|
+
_$deleteSend,
|
|
258
|
+
_createOrUpdateDeserialize,
|
|
259
|
+
_createOrUpdateSend,
|
|
260
|
+
_getDeserialize,
|
|
261
|
+
_getSend,
|
|
262
|
+
_listDeserialize,
|
|
263
|
+
_listSend,
|
|
264
|
+
_updateTagsDeserialize,
|
|
265
|
+
_updateTagsSend,
|
|
266
|
+
createOrUpdate,
|
|
267
|
+
get,
|
|
268
|
+
list,
|
|
269
|
+
updateTags
|
|
270
|
+
});
|
|
271
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/api/collectorPolicies/operations.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AzureTrafficCollectorContext as Client } from \"../index.js\";\nimport type {\n TagsObject,\n CollectorPolicy,\n _CollectorPolicyListResult,\n} from \"../../models/models.js\";\nimport {\n cloudErrorDeserializer,\n tagsObjectSerializer,\n collectorPolicySerializer,\n collectorPolicyDeserializer,\n _collectorPolicyListResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n CollectorPoliciesListOptionalParams,\n CollectorPoliciesDeleteOptionalParams,\n CollectorPoliciesUpdateTagsOptionalParams,\n CollectorPoliciesCreateOrUpdateOptionalParams,\n CollectorPoliciesGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _listSend(\n context: Client,\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n options: CollectorPoliciesListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n azureTrafficCollectorName: azureTrafficCollectorName,\n \"api%2Dversion\": context.apiVersion ?? \"2022-11-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_CollectorPolicyListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = cloudErrorDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _collectorPolicyListResultDeserializer(result.body);\n}\n\n/** Return list of Collector policies in a Azure Traffic Collector */\nexport function list(\n context: Client,\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n options: CollectorPoliciesListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<CollectorPolicy> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, resourceGroupName, azureTrafficCollectorName, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2022-11-01\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n collectorPolicyName: string,\n options: CollectorPoliciesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n azureTrafficCollectorName: azureTrafficCollectorName,\n collectorPolicyName: collectorPolicyName,\n \"api%2Dversion\": context.apiVersion ?? \"2022-11-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"202\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = cloudErrorDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** Deletes a specified Collector Policy resource. */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n collectorPolicyName: string,\n options: CollectorPoliciesDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"200\", \"202\", \"204\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _$deleteSend(\n context,\n resourceGroupName,\n azureTrafficCollectorName,\n collectorPolicyName,\n options,\n ),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2022-11-01\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateTagsSend(\n context: Client,\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n collectorPolicyName: string,\n parameters: TagsObject,\n options: CollectorPoliciesUpdateTagsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n azureTrafficCollectorName: azureTrafficCollectorName,\n collectorPolicyName: collectorPolicyName,\n \"api%2Dversion\": context.apiVersion ?? \"2022-11-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: tagsObjectSerializer(parameters),\n });\n}\n\nexport async function _updateTagsDeserialize(\n result: PathUncheckedResponse,\n): Promise<CollectorPolicy> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = cloudErrorDeserializer(result.body);\n }\n\n throw error;\n }\n\n return collectorPolicyDeserializer(result.body);\n}\n\n/** Updates the specified Collector Policy tags. */\nexport async function updateTags(\n context: Client,\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n collectorPolicyName: string,\n parameters: TagsObject,\n options: CollectorPoliciesUpdateTagsOptionalParams = { requestOptions: {} },\n): Promise<CollectorPolicy> {\n const result = await _updateTagsSend(\n context,\n resourceGroupName,\n azureTrafficCollectorName,\n collectorPolicyName,\n parameters,\n options,\n );\n return _updateTagsDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n collectorPolicyName: string,\n parameters: CollectorPolicy,\n options: CollectorPoliciesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n azureTrafficCollectorName: azureTrafficCollectorName,\n collectorPolicyName: collectorPolicyName,\n \"api%2Dversion\": context.apiVersion ?? \"2022-11-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: collectorPolicySerializer(parameters),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<CollectorPolicy> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = cloudErrorDeserializer(result.body);\n }\n\n throw error;\n }\n\n return collectorPolicyDeserializer(result.body);\n}\n\n/** Creates or updates a Collector Policy resource */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n collectorPolicyName: string,\n parameters: CollectorPolicy,\n options: CollectorPoliciesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<CollectorPolicy>, CollectorPolicy> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(\n context,\n resourceGroupName,\n azureTrafficCollectorName,\n collectorPolicyName,\n parameters,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n apiVersion: context.apiVersion ?? \"2022-11-01\",\n }) as PollerLike<OperationState<CollectorPolicy>, CollectorPolicy>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n collectorPolicyName: string,\n options: CollectorPoliciesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n azureTrafficCollectorName: azureTrafficCollectorName,\n collectorPolicyName: collectorPolicyName,\n \"api%2Dversion\": context.apiVersion ?? \"2022-11-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<CollectorPolicy> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = cloudErrorDeserializer(result.body);\n }\n\n throw error;\n }\n\n return collectorPolicyDeserializer(result.body);\n}\n\n/** Gets the collector policy in a specified Traffic Collector */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n collectorPolicyName: string,\n options: CollectorPoliciesGetOptionalParams = { requestOptions: {} },\n): Promise<CollectorPolicy> {\n const result = await _getSend(\n context,\n resourceGroupName,\n azureTrafficCollectorName,\n collectorPolicyName,\n options,\n );\n return _getDeserialize(result);\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { OperationOptions } from "@azure-rest/core-client";
|
|
2
|
+
/** Optional parameters. */
|
|
3
|
+
export interface CollectorPoliciesListOptionalParams extends OperationOptions {
|
|
4
|
+
}
|
|
5
|
+
/** Optional parameters. */
|
|
6
|
+
export interface CollectorPoliciesDeleteOptionalParams extends OperationOptions {
|
|
7
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
8
|
+
updateIntervalInMs?: number;
|
|
9
|
+
}
|
|
10
|
+
/** Optional parameters. */
|
|
11
|
+
export interface CollectorPoliciesUpdateTagsOptionalParams extends OperationOptions {
|
|
12
|
+
}
|
|
13
|
+
/** Optional parameters. */
|
|
14
|
+
export interface CollectorPoliciesCreateOrUpdateOptionalParams extends OperationOptions {
|
|
15
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
16
|
+
updateIntervalInMs?: number;
|
|
17
|
+
}
|
|
18
|
+
/** Optional parameters. */
|
|
19
|
+
export interface CollectorPoliciesGetOptionalParams extends OperationOptions {
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var options_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(options_exports);
|
|
16
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/api/collectorPolicies/options.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface CollectorPoliciesListOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface CollectorPoliciesDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface CollectorPoliciesUpdateTagsOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface CollectorPoliciesCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface CollectorPoliciesGetOptionalParams extends OperationOptions {}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var api_exports = {};
|
|
19
|
+
__export(api_exports, {
|
|
20
|
+
createAzureTrafficCollector: () => import_azureTrafficCollectorContext.createAzureTrafficCollector
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(api_exports);
|
|
23
|
+
var import_azureTrafficCollectorContext = require("./azureTrafficCollectorContext.js");
|
|
24
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
25
|
+
0 && (module.exports = {
|
|
26
|
+
createAzureTrafficCollector
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/api/index.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type {\n AzureTrafficCollectorContext,\n AzureTrafficCollectorClientOptionalParams,\n} from \"./azureTrafficCollectorContext.js\";\nexport { createAzureTrafficCollector } from \"./azureTrafficCollectorContext.js\";\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,0CAA4C;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var networkFunction_exports = {};
|
|
19
|
+
__export(networkFunction_exports, {
|
|
20
|
+
listOperations: () => import_operations.listOperations
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(networkFunction_exports);
|
|
23
|
+
var import_operations = require("./operations.js");
|
|
24
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
25
|
+
0 && (module.exports = {
|
|
26
|
+
listOperations
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/api/networkFunction/index.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { listOperations } from \"./operations.js\";\nexport type { NetworkFunctionListOperationsOptionalParams } from \"./options.js\";\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,wBAA+B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AzureTrafficCollectorContext as Client } from "../index.js";
|
|
2
|
+
import type { _OperationListResult, Operation } from "../../models/models.js";
|
|
3
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import type { NetworkFunctionListOperationsOptionalParams } from "./options.js";
|
|
5
|
+
import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
|
+
export declare function _listOperationsSend(context: Client, options?: NetworkFunctionListOperationsOptionalParams): StreamableMethod;
|
|
7
|
+
export declare function _listOperationsDeserialize(result: PathUncheckedResponse): Promise<_OperationListResult>;
|
|
8
|
+
/** Lists all of the available NetworkFunction Rest API operations. */
|
|
9
|
+
export declare function listOperations(context: Client, options?: NetworkFunctionListOperationsOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
10
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var operations_exports = {};
|
|
19
|
+
__export(operations_exports, {
|
|
20
|
+
_listOperationsDeserialize: () => _listOperationsDeserialize,
|
|
21
|
+
_listOperationsSend: () => _listOperationsSend,
|
|
22
|
+
listOperations: () => listOperations
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(operations_exports);
|
|
25
|
+
var import_models = require("../../models/models.js");
|
|
26
|
+
var import_pagingHelpers = require("../../static-helpers/pagingHelpers.js");
|
|
27
|
+
var import_urlTemplate = require("../../static-helpers/urlTemplate.js");
|
|
28
|
+
var import_core_client = require("@azure-rest/core-client");
|
|
29
|
+
function _listOperationsSend(context, options = { requestOptions: {} }) {
|
|
30
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
31
|
+
"/providers/Microsoft.NetworkFunction/operations{?api%2Dversion}",
|
|
32
|
+
{
|
|
33
|
+
"api%2Dversion": context.apiVersion ?? "2022-11-01"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
return context.path(path).get({
|
|
40
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
41
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
async function _listOperationsDeserialize(result) {
|
|
45
|
+
const expectedStatuses = ["200"];
|
|
46
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
47
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
48
|
+
if (result.body) {
|
|
49
|
+
error.details = (0, import_models.cloudErrorDeserializer)(result.body);
|
|
50
|
+
}
|
|
51
|
+
throw error;
|
|
52
|
+
}
|
|
53
|
+
return (0, import_models._operationListResultDeserializer)(result.body);
|
|
54
|
+
}
|
|
55
|
+
function listOperations(context, options = { requestOptions: {} }) {
|
|
56
|
+
return (0, import_pagingHelpers.buildPagedAsyncIterator)(
|
|
57
|
+
context,
|
|
58
|
+
() => _listOperationsSend(context, options),
|
|
59
|
+
_listOperationsDeserialize,
|
|
60
|
+
["200"],
|
|
61
|
+
{ itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2022-11-01" }
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
65
|
+
0 && (module.exports = {
|
|
66
|
+
_listOperationsDeserialize,
|
|
67
|
+
_listOperationsSend,
|
|
68
|
+
listOperations
|
|
69
|
+
});
|
|
70
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/api/networkFunction/operations.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AzureTrafficCollectorContext as Client } from \"../index.js\";\nimport type { _OperationListResult, Operation } from \"../../models/models.js\";\nimport { cloudErrorDeserializer, _operationListResultDeserializer } from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type { NetworkFunctionListOperationsOptionalParams } from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listOperationsSend(\n context: Client,\n options: NetworkFunctionListOperationsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.NetworkFunction/operations{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion ?? \"2022-11-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listOperationsDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = cloudErrorDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** Lists all of the available NetworkFunction Rest API operations. */\nexport function listOperations(\n context: Client,\n options: NetworkFunctionListOperationsOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _listOperationsSend(context, options),\n _listOperationsDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2022-11-01\" },\n );\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAAyE;AAEzE,2BAAwC;AACxC,yBAAkC;AAGlC,yBAAqE;AAE9D,SAAS,oBACd,SACA,UAAuD,EAAE,gBAAgB,CAAC,EAAE,GAC1D;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,iBAAiB,QAAQ,cAAc;AAAA,IACzC;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,IAAI;AAAA,IAC5B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,EAC5E,CAAC;AACH;AAEA,eAAsB,2BACpB,QAC+B;AAC/B,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAAI,OAAO,MAAM;AACf,YAAM,cAAU,sCAAuB,OAAO,IAAI;AAAA,IACpD;AAEA,UAAM;AAAA,EACR;AAEA,aAAO,gDAAiC,OAAO,IAAI;AACrD;AAGO,SAAS,eACd,SACA,UAAuD,EAAE,gBAAgB,CAAC,EAAE,GACrC;AACvC,aAAO;AAAA,IACL;AAAA,IACA,MAAM,oBAAoB,SAAS,OAAO;AAAA,IAC1C;AAAA,IACA,CAAC,KAAK;AAAA,IACN,EAAE,UAAU,SAAS,cAAc,YAAY,YAAY,QAAQ,cAAc,aAAa;AAAA,EAChG;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var options_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(options_exports);
|
|
16
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/api/networkFunction/options.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface NetworkFunctionListOperationsOptionalParams extends OperationOptions {}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
constructor(
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
collectorPolicies
|
|
1
|
+
import type { AzureTrafficCollectorClientOptionalParams } from "./api/index.js";
|
|
2
|
+
import type { AzureTrafficCollectorsOperations } from "./classic/azureTrafficCollectors/index.js";
|
|
3
|
+
import type { AzureTrafficCollectorsByResourceGroupOperations } from "./classic/azureTrafficCollectorsByResourceGroup/index.js";
|
|
4
|
+
import type { AzureTrafficCollectorsBySubscriptionOperations } from "./classic/azureTrafficCollectorsBySubscription/index.js";
|
|
5
|
+
import type { CollectorPoliciesOperations } from "./classic/collectorPolicies/index.js";
|
|
6
|
+
import type { NetworkFunctionOperations } from "./classic/networkFunction/index.js";
|
|
7
|
+
import type { TokenCredential } from "@azure/core-auth";
|
|
8
|
+
import type { Pipeline } from "@azure/core-rest-pipeline";
|
|
9
|
+
export type { AzureTrafficCollectorClientOptionalParams } from "./api/azureTrafficCollectorContext.js";
|
|
10
|
+
export declare class AzureTrafficCollectorClient {
|
|
11
|
+
private _client;
|
|
12
|
+
/** The pipeline used by this client to make requests */
|
|
13
|
+
readonly pipeline: Pipeline;
|
|
14
|
+
constructor(credential: TokenCredential, options?: AzureTrafficCollectorClientOptionalParams);
|
|
15
|
+
constructor(credential: TokenCredential, subscriptionId: string, options?: AzureTrafficCollectorClientOptionalParams);
|
|
16
|
+
/** The operation groups for azureTrafficCollectorsBySubscription */
|
|
17
|
+
readonly azureTrafficCollectorsBySubscription: AzureTrafficCollectorsBySubscriptionOperations;
|
|
18
|
+
/** The operation groups for azureTrafficCollectorsByResourceGroup */
|
|
19
|
+
readonly azureTrafficCollectorsByResourceGroup: AzureTrafficCollectorsByResourceGroupOperations;
|
|
20
|
+
/** The operation groups for networkFunction */
|
|
21
|
+
readonly networkFunction: NetworkFunctionOperations;
|
|
22
|
+
/** The operation groups for collectorPolicies */
|
|
23
|
+
readonly collectorPolicies: CollectorPoliciesOperations;
|
|
24
|
+
/** The operation groups for azureTrafficCollectors */
|
|
25
|
+
readonly azureTrafficCollectors: AzureTrafficCollectorsOperations;
|
|
23
26
|
}
|
|
24
27
|
//# sourceMappingURL=azureTrafficCollectorClient.d.ts.map
|