@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
package/LICENSE
CHANGED
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -4,10 +4,12 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f
|
|
|
4
4
|
|
|
5
5
|
Azure Traffic Collector service
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[
|
|
10
|
-
[
|
|
7
|
+
Key links:
|
|
8
|
+
|
|
9
|
+
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkfunction/arm-networkfunction)
|
|
10
|
+
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-networkfunction)
|
|
11
|
+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-networkfunction?view=azure-node-preview)
|
|
12
|
+
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkfunction/arm-networkfunction/samples)
|
|
11
13
|
|
|
12
14
|
## Getting started
|
|
13
15
|
|
|
@@ -35,7 +37,7 @@ npm install @azure/arm-networkfunction
|
|
|
35
37
|
To create a client object to access the AzureTrafficCollector API, you will need the `endpoint` of your AzureTrafficCollector resource and a `credential`. The AzureTrafficCollector client can use Azure Active Directory credentials to authenticate.
|
|
36
38
|
You can find the endpoint for your AzureTrafficCollector resource in the [Azure Portal][azure_portal].
|
|
37
39
|
|
|
38
|
-
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/
|
|
40
|
+
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
|
|
39
41
|
|
|
40
42
|
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
|
|
41
43
|
|
|
@@ -44,7 +46,6 @@ npm install @azure/identity
|
|
|
44
46
|
```
|
|
45
47
|
|
|
46
48
|
You will also need to **register a new AAD application and grant access to AzureTrafficCollector** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
|
|
47
|
-
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
|
|
48
49
|
|
|
49
50
|
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
|
50
51
|
|
|
@@ -64,16 +65,16 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
|
|
|
64
65
|
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
65
66
|
import { AzureTrafficCollectorClient } from "@azure/arm-networkfunction";
|
|
66
67
|
|
|
67
|
-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
68
68
|
const credential = new InteractiveBrowserCredential({
|
|
69
69
|
tenantId: "<YOUR_TENANT_ID>",
|
|
70
70
|
clientId: "<YOUR_CLIENT_ID>",
|
|
71
71
|
});
|
|
72
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
72
73
|
const client = new AzureTrafficCollectorClient(credential, subscriptionId);
|
|
73
74
|
```
|
|
74
75
|
|
|
75
|
-
### JavaScript Bundle
|
|
76
76
|
|
|
77
|
+
### JavaScript Bundle
|
|
77
78
|
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
|
|
78
79
|
|
|
79
80
|
## Key concepts
|
|
@@ -98,7 +99,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur
|
|
|
98
99
|
|
|
99
100
|
## Next steps
|
|
100
101
|
|
|
101
|
-
Please take a look at the [samples](https://github.com/Azure
|
|
102
|
+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkfunction/arm-networkfunction/samples) directory for detailed examples on how to use this library.
|
|
102
103
|
|
|
103
104
|
## Contributing
|
|
104
105
|
|
|
@@ -108,8 +109,6 @@ If you'd like to contribute to this library, please read the [contributing guide
|
|
|
108
109
|
|
|
109
110
|
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
|
|
110
111
|
|
|
111
|
-
[azure_cli]: https://learn.microsoft.com/cli/azure
|
|
112
|
-
[azure_sub]: https://azure.microsoft.com/free/
|
|
113
112
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
114
113
|
[azure_portal]: https://portal.azure.com
|
|
115
114
|
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AzureSupportedClouds } from "../static-helpers/cloudSettingHelpers.js";
|
|
2
|
+
import type { Client, ClientOptions } from "@azure-rest/core-client";
|
|
3
|
+
import type { TokenCredential } from "@azure/core-auth";
|
|
4
|
+
/** Azure Traffic Collector service */
|
|
5
|
+
export interface AzureTrafficCollectorContext extends Client {
|
|
6
|
+
/** The ID of the target subscription. The value must be an UUID. */
|
|
7
|
+
subscriptionId: string;
|
|
8
|
+
/** The API version to use for this operation. */
|
|
9
|
+
/** Known values of {@link KnownVersions} that the service accepts. */
|
|
10
|
+
apiVersion?: string;
|
|
11
|
+
}
|
|
12
|
+
/** Optional parameters for the client. */
|
|
13
|
+
export interface AzureTrafficCollectorClientOptionalParams extends ClientOptions {
|
|
14
|
+
/** The API version to use for this operation. */
|
|
15
|
+
/** Known values of {@link KnownVersions} that the service accepts. */
|
|
16
|
+
apiVersion?: string;
|
|
17
|
+
/** Specifies the Azure cloud environment for the client. */
|
|
18
|
+
cloudSetting?: AzureSupportedClouds;
|
|
19
|
+
}
|
|
20
|
+
/** Azure Traffic Collector service */
|
|
21
|
+
export declare function createAzureTrafficCollector(credential: TokenCredential, subscriptionId: string, options?: AzureTrafficCollectorClientOptionalParams): AzureTrafficCollectorContext;
|
|
22
|
+
//# sourceMappingURL=azureTrafficCollectorContext.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { logger } from "../logger.js";
|
|
4
|
+
import { getArmEndpoint } from "../static-helpers/cloudSettingHelpers.js";
|
|
5
|
+
import { getClient } from "@azure-rest/core-client";
|
|
6
|
+
/** Azure Traffic Collector service */
|
|
7
|
+
export function createAzureTrafficCollector(credential, subscriptionId, options = {}) {
|
|
8
|
+
const endpointUrl = options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com";
|
|
9
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
10
|
+
const userAgentInfo = `azsdk-js-arm-networkfunction/3.0.0-beta.1`;
|
|
11
|
+
const userAgentPrefix = prefixFromOptions
|
|
12
|
+
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
13
|
+
: `azsdk-js-api ${userAgentInfo}`;
|
|
14
|
+
const { apiVersion: _, ...updatedOptions } = {
|
|
15
|
+
...options,
|
|
16
|
+
userAgentOptions: { userAgentPrefix },
|
|
17
|
+
loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
|
|
18
|
+
credentials: {
|
|
19
|
+
scopes: options.credentials?.scopes ?? ["https://management.azure.com/.default"],
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
const clientContext = getClient(endpointUrl, credential, updatedOptions);
|
|
23
|
+
const apiVersion = options.apiVersion;
|
|
24
|
+
return { ...clientContext, apiVersion, subscriptionId };
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=azureTrafficCollectorContext.js.map
|
|
@@ -0,0 +1 @@
|
|
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1F,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport type { AzureSupportedClouds } from \"../static-helpers/cloudSettingHelpers.js\";\nimport { getArmEndpoint } from \"../static-helpers/cloudSettingHelpers.js\";\nimport type { Client, ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\n\n/** Azure Traffic Collector service */\nexport interface AzureTrafficCollectorContext extends Client {\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** Optional parameters for the client. */\nexport interface AzureTrafficCollectorClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n /** Specifies the Azure cloud environment for the client. */\n cloudSetting?: AzureSupportedClouds;\n}\n\n/** Azure Traffic Collector service */\nexport function createAzureTrafficCollector(\n credential: TokenCredential,\n subscriptionId: string,\n options: AzureTrafficCollectorClientOptionalParams = {},\n): AzureTrafficCollectorContext {\n const endpointUrl =\n options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-networkfunction/3.0.0-beta.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://management.azure.com/.default\"],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n const apiVersion = options.apiVersion;\n return { ...clientContext, apiVersion, subscriptionId } as AzureTrafficCollectorContext;\n}\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { $delete, updateTags, createOrUpdate, get } from "./operations.js";
|
|
2
|
+
export type { AzureTrafficCollectorsDeleteOptionalParams, AzureTrafficCollectorsUpdateTagsOptionalParams, AzureTrafficCollectorsCreateOrUpdateOptionalParams, AzureTrafficCollectorsGetOptionalParams, } from "./options.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/azureTrafficCollectors/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { $delete, updateTags, createOrUpdate, get } from \"./operations.js\";\nexport type {\n AzureTrafficCollectorsDeleteOptionalParams,\n AzureTrafficCollectorsUpdateTagsOptionalParams,\n AzureTrafficCollectorsCreateOrUpdateOptionalParams,\n AzureTrafficCollectorsGetOptionalParams,\n} from \"./options.js\";\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AzureTrafficCollectorContext as Client } from "../index.js";
|
|
2
|
+
import type { AzureTrafficCollector, TagsObject } from "../../models/models.js";
|
|
3
|
+
import type { AzureTrafficCollectorsDeleteOptionalParams, AzureTrafficCollectorsUpdateTagsOptionalParams, AzureTrafficCollectorsCreateOrUpdateOptionalParams, AzureTrafficCollectorsGetOptionalParams } from "./options.js";
|
|
4
|
+
import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
5
|
+
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
6
|
+
export declare function _$deleteSend(context: Client, resourceGroupName: string, azureTrafficCollectorName: string, options?: AzureTrafficCollectorsDeleteOptionalParams): StreamableMethod;
|
|
7
|
+
export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
8
|
+
/** Deletes a specified Azure Traffic Collector resource. */
|
|
9
|
+
export declare function $delete(context: Client, resourceGroupName: string, azureTrafficCollectorName: string, options?: AzureTrafficCollectorsDeleteOptionalParams): PollerLike<OperationState<void>, void>;
|
|
10
|
+
export declare function _updateTagsSend(context: Client, resourceGroupName: string, azureTrafficCollectorName: string, parameters: TagsObject, options?: AzureTrafficCollectorsUpdateTagsOptionalParams): StreamableMethod;
|
|
11
|
+
export declare function _updateTagsDeserialize(result: PathUncheckedResponse): Promise<AzureTrafficCollector>;
|
|
12
|
+
/** Updates the specified Azure Traffic Collector tags. */
|
|
13
|
+
export declare function updateTags(context: Client, resourceGroupName: string, azureTrafficCollectorName: string, parameters: TagsObject, options?: AzureTrafficCollectorsUpdateTagsOptionalParams): Promise<AzureTrafficCollector>;
|
|
14
|
+
export declare function _createOrUpdateSend(context: Client, resourceGroupName: string, azureTrafficCollectorName: string, parameters: AzureTrafficCollector, options?: AzureTrafficCollectorsCreateOrUpdateOptionalParams): StreamableMethod;
|
|
15
|
+
export declare function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<AzureTrafficCollector>;
|
|
16
|
+
/** Creates or updates a Azure Traffic Collector resource */
|
|
17
|
+
export declare function createOrUpdate(context: Client, resourceGroupName: string, azureTrafficCollectorName: string, parameters: AzureTrafficCollector, options?: AzureTrafficCollectorsCreateOrUpdateOptionalParams): PollerLike<OperationState<AzureTrafficCollector>, AzureTrafficCollector>;
|
|
18
|
+
export declare function _getSend(context: Client, resourceGroupName: string, azureTrafficCollectorName: string, options?: AzureTrafficCollectorsGetOptionalParams): StreamableMethod;
|
|
19
|
+
export declare function _getDeserialize(result: PathUncheckedResponse): Promise<AzureTrafficCollector>;
|
|
20
|
+
/** Gets the specified Azure Traffic Collector in a specified resource group */
|
|
21
|
+
export declare function get(context: Client, resourceGroupName: string, azureTrafficCollectorName: string, options?: AzureTrafficCollectorsGetOptionalParams): Promise<AzureTrafficCollector>;
|
|
22
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { azureTrafficCollectorSerializer, azureTrafficCollectorDeserializer, cloudErrorDeserializer, tagsObjectSerializer, } from "../../models/models.js";
|
|
4
|
+
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
|
|
5
|
+
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
6
|
+
import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
|
|
7
|
+
export function _$deleteSend(context, resourceGroupName, azureTrafficCollectorName, options = { requestOptions: {} }) {
|
|
8
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}{?api%2Dversion}", {
|
|
9
|
+
subscriptionId: context.subscriptionId,
|
|
10
|
+
resourceGroupName: resourceGroupName,
|
|
11
|
+
azureTrafficCollectorName: azureTrafficCollectorName,
|
|
12
|
+
"api%2Dversion": context.apiVersion ?? "2022-11-01",
|
|
13
|
+
}, {
|
|
14
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
15
|
+
});
|
|
16
|
+
return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });
|
|
17
|
+
}
|
|
18
|
+
export async function _$deleteDeserialize(result) {
|
|
19
|
+
const expectedStatuses = ["200", "202", "204"];
|
|
20
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
21
|
+
const error = createRestError(result);
|
|
22
|
+
if (result.body) {
|
|
23
|
+
error.details = cloudErrorDeserializer(result.body);
|
|
24
|
+
}
|
|
25
|
+
throw error;
|
|
26
|
+
}
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
/** Deletes a specified Azure Traffic Collector resource. */
|
|
30
|
+
export function $delete(context, resourceGroupName, azureTrafficCollectorName, options = { requestOptions: {} }) {
|
|
31
|
+
return getLongRunningPoller(context, _$deleteDeserialize, ["200", "202", "204"], {
|
|
32
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
33
|
+
abortSignal: options?.abortSignal,
|
|
34
|
+
getInitialResponse: () => _$deleteSend(context, resourceGroupName, azureTrafficCollectorName, options),
|
|
35
|
+
resourceLocationConfig: "location",
|
|
36
|
+
apiVersion: context.apiVersion ?? "2022-11-01",
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
export function _updateTagsSend(context, resourceGroupName, azureTrafficCollectorName, parameters, options = { requestOptions: {} }) {
|
|
40
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}{?api%2Dversion}", {
|
|
41
|
+
subscriptionId: context.subscriptionId,
|
|
42
|
+
resourceGroupName: resourceGroupName,
|
|
43
|
+
azureTrafficCollectorName: azureTrafficCollectorName,
|
|
44
|
+
"api%2Dversion": context.apiVersion ?? "2022-11-01",
|
|
45
|
+
}, {
|
|
46
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
47
|
+
});
|
|
48
|
+
return context.path(path).patch({
|
|
49
|
+
...operationOptionsToRequestParameters(options),
|
|
50
|
+
contentType: "application/json",
|
|
51
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
52
|
+
body: tagsObjectSerializer(parameters),
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
export async function _updateTagsDeserialize(result) {
|
|
56
|
+
const expectedStatuses = ["200"];
|
|
57
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
58
|
+
const error = createRestError(result);
|
|
59
|
+
if (result.body) {
|
|
60
|
+
error.details = cloudErrorDeserializer(result.body);
|
|
61
|
+
}
|
|
62
|
+
throw error;
|
|
63
|
+
}
|
|
64
|
+
return azureTrafficCollectorDeserializer(result.body);
|
|
65
|
+
}
|
|
66
|
+
/** Updates the specified Azure Traffic Collector tags. */
|
|
67
|
+
export async function updateTags(context, resourceGroupName, azureTrafficCollectorName, parameters, options = { requestOptions: {} }) {
|
|
68
|
+
const result = await _updateTagsSend(context, resourceGroupName, azureTrafficCollectorName, parameters, options);
|
|
69
|
+
return _updateTagsDeserialize(result);
|
|
70
|
+
}
|
|
71
|
+
export function _createOrUpdateSend(context, resourceGroupName, azureTrafficCollectorName, parameters, options = { requestOptions: {} }) {
|
|
72
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}{?api%2Dversion}", {
|
|
73
|
+
subscriptionId: context.subscriptionId,
|
|
74
|
+
resourceGroupName: resourceGroupName,
|
|
75
|
+
azureTrafficCollectorName: azureTrafficCollectorName,
|
|
76
|
+
"api%2Dversion": context.apiVersion ?? "2022-11-01",
|
|
77
|
+
}, {
|
|
78
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
79
|
+
});
|
|
80
|
+
return context.path(path).put({
|
|
81
|
+
...operationOptionsToRequestParameters(options),
|
|
82
|
+
contentType: "application/json",
|
|
83
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
84
|
+
body: azureTrafficCollectorSerializer(parameters),
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
export async function _createOrUpdateDeserialize(result) {
|
|
88
|
+
const expectedStatuses = ["200", "201", "202"];
|
|
89
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
90
|
+
const error = createRestError(result);
|
|
91
|
+
if (result.body) {
|
|
92
|
+
error.details = cloudErrorDeserializer(result.body);
|
|
93
|
+
}
|
|
94
|
+
throw error;
|
|
95
|
+
}
|
|
96
|
+
return azureTrafficCollectorDeserializer(result.body);
|
|
97
|
+
}
|
|
98
|
+
/** Creates or updates a Azure Traffic Collector resource */
|
|
99
|
+
export function createOrUpdate(context, resourceGroupName, azureTrafficCollectorName, parameters, options = { requestOptions: {} }) {
|
|
100
|
+
return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
|
|
101
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
102
|
+
abortSignal: options?.abortSignal,
|
|
103
|
+
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, azureTrafficCollectorName, parameters, options),
|
|
104
|
+
resourceLocationConfig: "azure-async-operation",
|
|
105
|
+
apiVersion: context.apiVersion ?? "2022-11-01",
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
export function _getSend(context, resourceGroupName, azureTrafficCollectorName, options = { requestOptions: {} }) {
|
|
109
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}{?api%2Dversion}", {
|
|
110
|
+
subscriptionId: context.subscriptionId,
|
|
111
|
+
resourceGroupName: resourceGroupName,
|
|
112
|
+
azureTrafficCollectorName: azureTrafficCollectorName,
|
|
113
|
+
"api%2Dversion": context.apiVersion ?? "2022-11-01",
|
|
114
|
+
}, {
|
|
115
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
116
|
+
});
|
|
117
|
+
return context.path(path).get({
|
|
118
|
+
...operationOptionsToRequestParameters(options),
|
|
119
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
export async function _getDeserialize(result) {
|
|
123
|
+
const expectedStatuses = ["200"];
|
|
124
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
125
|
+
const error = createRestError(result);
|
|
126
|
+
if (result.body) {
|
|
127
|
+
error.details = cloudErrorDeserializer(result.body);
|
|
128
|
+
}
|
|
129
|
+
throw error;
|
|
130
|
+
}
|
|
131
|
+
return azureTrafficCollectorDeserializer(result.body);
|
|
132
|
+
}
|
|
133
|
+
/** Gets the specified Azure Traffic Collector in a specified resource group */
|
|
134
|
+
export async function get(context, resourceGroupName, azureTrafficCollectorName, options = { requestOptions: {} }) {
|
|
135
|
+
const result = await _getSend(context, resourceGroupName, azureTrafficCollectorName, options);
|
|
136
|
+
return _getDeserialize(result);
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/azureTrafficCollectors/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,+BAA+B,EAC/B,iCAAiC,EACjC,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAQxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAG/F,MAAM,UAAU,YAAY,CAC1B,OAAe,EACf,iBAAyB,EACzB,yBAAiC,EACjC,UAAsD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE5E,MAAM,IAAI,GAAG,iBAAiB,CAC5B,2KAA2K,EAC3K;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,yBAAyB,EAAE,yBAAyB;QACpD,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,YAAY;KACpD,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,mCAAmC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AACxF,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,MAA6B;IACrE,MAAM,gBAAgB,GAAG,CAAC,KAAK,EA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C,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,sBAAsB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACtD,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,iCAAiC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACxD,CAAC;AAED,+EAA+E;AAC/E,MAAM,CAAC,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 type { AzureTrafficCollectorContext as Client } from \"../index.js\";\nimport type { AzureTrafficCollector, TagsObject } from \"../../models/models.js\";\nimport {\n azureTrafficCollectorSerializer,\n azureTrafficCollectorDeserializer,\n cloudErrorDeserializer,\n tagsObjectSerializer,\n} from \"../../models/models.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n AzureTrafficCollectorsDeleteOptionalParams,\n AzureTrafficCollectorsUpdateTagsOptionalParams,\n AzureTrafficCollectorsCreateOrUpdateOptionalParams,\n AzureTrafficCollectorsGetOptionalParams,\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 _$deleteSend(\n context: Client,\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n options: AzureTrafficCollectorsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}{?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).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 Azure Traffic Collector resource. */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n options: AzureTrafficCollectorsDeleteOptionalParams = { 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(context, resourceGroupName, azureTrafficCollectorName, options),\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 parameters: TagsObject,\n options: AzureTrafficCollectorsUpdateTagsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}{?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).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<AzureTrafficCollector> {\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 azureTrafficCollectorDeserializer(result.body);\n}\n\n/** Updates the specified Azure Traffic Collector tags. */\nexport async function updateTags(\n context: Client,\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n parameters: TagsObject,\n options: AzureTrafficCollectorsUpdateTagsOptionalParams = { requestOptions: {} },\n): Promise<AzureTrafficCollector> {\n const result = await _updateTagsSend(\n context,\n resourceGroupName,\n azureTrafficCollectorName,\n parameters,\n options,\n );\n return _updateTagsDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n parameters: AzureTrafficCollector,\n options: AzureTrafficCollectorsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}{?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).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: azureTrafficCollectorSerializer(parameters),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<AzureTrafficCollector> {\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 azureTrafficCollectorDeserializer(result.body);\n}\n\n/** Creates or updates a Azure Traffic Collector resource */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n parameters: AzureTrafficCollector,\n options: AzureTrafficCollectorsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<AzureTrafficCollector>, AzureTrafficCollector> {\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 parameters,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n apiVersion: context.apiVersion ?? \"2022-11-01\",\n }) as PollerLike<OperationState<AzureTrafficCollector>, AzureTrafficCollector>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n options: AzureTrafficCollectorsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}{?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 _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<AzureTrafficCollector> {\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 azureTrafficCollectorDeserializer(result.body);\n}\n\n/** Gets the specified Azure Traffic Collector in a specified resource group */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n azureTrafficCollectorName: string,\n options: AzureTrafficCollectorsGetOptionalParams = { requestOptions: {} },\n): Promise<AzureTrafficCollector> {\n const result = await _getSend(context, resourceGroupName, azureTrafficCollectorName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { OperationOptions } from "@azure-rest/core-client";
|
|
2
|
+
/** Optional parameters. */
|
|
3
|
+
export interface AzureTrafficCollectorsDeleteOptionalParams extends OperationOptions {
|
|
4
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
5
|
+
updateIntervalInMs?: number;
|
|
6
|
+
}
|
|
7
|
+
/** Optional parameters. */
|
|
8
|
+
export interface AzureTrafficCollectorsUpdateTagsOptionalParams extends OperationOptions {
|
|
9
|
+
}
|
|
10
|
+
/** Optional parameters. */
|
|
11
|
+
export interface AzureTrafficCollectorsCreateOrUpdateOptionalParams extends OperationOptions {
|
|
12
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
13
|
+
updateIntervalInMs?: number;
|
|
14
|
+
}
|
|
15
|
+
/** Optional parameters. */
|
|
16
|
+
export interface AzureTrafficCollectorsGetOptionalParams extends OperationOptions {
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/azureTrafficCollectors/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","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 AzureTrafficCollectorsDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface AzureTrafficCollectorsUpdateTagsOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AzureTrafficCollectorsCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface AzureTrafficCollectorsGetOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/azureTrafficCollectorsByResourceGroup/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { list } from \"./operations.js\";\nexport type { AzureTrafficCollectorsByResourceGroupListOptionalParams } from \"./options.js\";\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AzureTrafficCollectorContext as Client } from "../index.js";
|
|
2
|
+
import type { AzureTrafficCollector, _AzureTrafficCollectorListResult } from "../../models/models.js";
|
|
3
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import type { AzureTrafficCollectorsByResourceGroupListOptionalParams } from "./options.js";
|
|
5
|
+
import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
|
+
export declare function _listSend(context: Client, resourceGroupName: string, options?: AzureTrafficCollectorsByResourceGroupListOptionalParams): StreamableMethod;
|
|
7
|
+
export declare function _listDeserialize(result: PathUncheckedResponse): Promise<_AzureTrafficCollectorListResult>;
|
|
8
|
+
/** Return list of Azure Traffic Collectors in a Resource Group */
|
|
9
|
+
export declare function list(context: Client, resourceGroupName: string, options?: AzureTrafficCollectorsByResourceGroupListOptionalParams): PagedAsyncIterableIterator<AzureTrafficCollector>;
|
|
10
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { cloudErrorDeserializer, _azureTrafficCollectorListResultDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
6
|
+
import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
|
|
7
|
+
export function _listSend(context, resourceGroupName, options = { requestOptions: {} }) {
|
|
8
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors{?api%2Dversion}", {
|
|
9
|
+
subscriptionId: context.subscriptionId,
|
|
10
|
+
resourceGroupName: resourceGroupName,
|
|
11
|
+
"api%2Dversion": context.apiVersion ?? "2022-11-01",
|
|
12
|
+
}, {
|
|
13
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
14
|
+
});
|
|
15
|
+
return context.path(path).get({
|
|
16
|
+
...operationOptionsToRequestParameters(options),
|
|
17
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
export async function _listDeserialize(result) {
|
|
21
|
+
const expectedStatuses = ["200"];
|
|
22
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
23
|
+
const error = createRestError(result);
|
|
24
|
+
if (result.body) {
|
|
25
|
+
error.details = cloudErrorDeserializer(result.body);
|
|
26
|
+
}
|
|
27
|
+
throw error;
|
|
28
|
+
}
|
|
29
|
+
return _azureTrafficCollectorListResultDeserializer(result.body);
|
|
30
|
+
}
|
|
31
|
+
/** Return list of Azure Traffic Collectors in a Resource Group */
|
|
32
|
+
export function list(context, resourceGroupName, options = { requestOptions: {} }) {
|
|
33
|
+
return buildPagedAsyncIterator(context, () => _listSend(context, resourceGroupName, options), _listDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2022-11-01" });
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/azureTrafficCollectorsByResourceGroup/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EACL,sBAAsB,EACtB,4CAA4C,GAC7C,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAGxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,iBAAyB,EACzB,UAAmE,EAAE,cAAc,EAAE,EAAE,EAAE;IAEzF,MAAM,IAAI,GAAG,iBAAiB,CAC5B,+IAA+I,EAC/I;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,YAAY;KACpD,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE;KAC5E,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,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,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,sBAAsB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACtD,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,4CAA4C,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACnE,CAAC;AAED,kEAAkE;AAClE,MAAM,UAAU,IAAI,CAClB,OAAe,EACf,iBAAyB,EACzB,UAAmE,EAAE,cAAc,EAAE,EAAE,EAAE;IAEzF,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC,EACpD,gBAAgB,EAChB,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,YAAY,EAAE,CAChG,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AzureTrafficCollectorContext as Client } from \"../index.js\";\nimport type {\n AzureTrafficCollector,\n _AzureTrafficCollectorListResult,\n} from \"../../models/models.js\";\nimport {\n cloudErrorDeserializer,\n _azureTrafficCollectorListResultDeserializer,\n} 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 { AzureTrafficCollectorsByResourceGroupListOptionalParams } from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n resourceGroupName: string,\n options: AzureTrafficCollectorsByResourceGroupListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\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<_AzureTrafficCollectorListResult> {\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 _azureTrafficCollectorListResultDeserializer(result.body);\n}\n\n/** Return list of Azure Traffic Collectors in a Resource Group */\nexport function list(\n context: Client,\n resourceGroupName: string,\n options: AzureTrafficCollectorsByResourceGroupListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<AzureTrafficCollector> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, resourceGroupName, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2022-11-01\" },\n );\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/azureTrafficCollectorsByResourceGroup/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","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 AzureTrafficCollectorsByResourceGroupListOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/azureTrafficCollectorsBySubscription/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { list } from \"./operations.js\";\nexport type { AzureTrafficCollectorsBySubscriptionListOptionalParams } from \"./options.js\";\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AzureTrafficCollectorContext as Client } from "../index.js";
|
|
2
|
+
import type { AzureTrafficCollector, _AzureTrafficCollectorListResult } from "../../models/models.js";
|
|
3
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import type { AzureTrafficCollectorsBySubscriptionListOptionalParams } from "./options.js";
|
|
5
|
+
import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
|
+
export declare function _listSend(context: Client, options?: AzureTrafficCollectorsBySubscriptionListOptionalParams): StreamableMethod;
|
|
7
|
+
export declare function _listDeserialize(result: PathUncheckedResponse): Promise<_AzureTrafficCollectorListResult>;
|
|
8
|
+
/** Return list of Azure Traffic Collectors in a subscription */
|
|
9
|
+
export declare function list(context: Client, options?: AzureTrafficCollectorsBySubscriptionListOptionalParams): PagedAsyncIterableIterator<AzureTrafficCollector>;
|
|
10
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { cloudErrorDeserializer, _azureTrafficCollectorListResultDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
6
|
+
import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
|
|
7
|
+
export function _listSend(context, options = { requestOptions: {} }) {
|
|
8
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.NetworkFunction/azureTrafficCollectors{?api%2Dversion}", {
|
|
9
|
+
subscriptionId: context.subscriptionId,
|
|
10
|
+
"api%2Dversion": context.apiVersion ?? "2022-11-01",
|
|
11
|
+
}, {
|
|
12
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
13
|
+
});
|
|
14
|
+
return context.path(path).get({
|
|
15
|
+
...operationOptionsToRequestParameters(options),
|
|
16
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export async function _listDeserialize(result) {
|
|
20
|
+
const expectedStatuses = ["200"];
|
|
21
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
22
|
+
const error = createRestError(result);
|
|
23
|
+
if (result.body) {
|
|
24
|
+
error.details = cloudErrorDeserializer(result.body);
|
|
25
|
+
}
|
|
26
|
+
throw error;
|
|
27
|
+
}
|
|
28
|
+
return _azureTrafficCollectorListResultDeserializer(result.body);
|
|
29
|
+
}
|
|
30
|
+
/** Return list of Azure Traffic Collectors in a subscription */
|
|
31
|
+
export function list(context, options = { requestOptions: {} }) {
|
|
32
|
+
return buildPagedAsyncIterator(context, () => _listSend(context, options), _listDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2022-11-01" });
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","s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AAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,4CAA4C,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACnE,CAAC;AAED,gEAAgE;AAChE,MAAM,UAAU,IAAI,CAClB,OAAe,EACf,UAAkE,EAAE,cAAc,EAAE,EAAE,EAAE;IAExF,OAAO,uBAAuB,CAC5B,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,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,YAAY,EAAE,CAChG,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AzureTrafficCollectorContext as Client } from \"../index.js\";\nimport type {\n AzureTrafficCollector,\n _AzureTrafficCollectorListResult,\n} from \"../../models/models.js\";\nimport {\n cloudErrorDeserializer,\n _azureTrafficCollectorListResultDeserializer,\n} 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 { AzureTrafficCollectorsBySubscriptionListOptionalParams } from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: AzureTrafficCollectorsBySubscriptionListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.NetworkFunction/azureTrafficCollectors{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\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<_AzureTrafficCollectorListResult> {\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 _azureTrafficCollectorListResultDeserializer(result.body);\n}\n\n/** Return list of Azure Traffic Collectors in a subscription */\nexport function list(\n context: Client,\n options: AzureTrafficCollectorsBySubscriptionListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<AzureTrafficCollector> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2022-11-01\" },\n );\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/azureTrafficCollectorsBySubscription/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","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 AzureTrafficCollectorsBySubscriptionListOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { list, $delete, updateTags, createOrUpdate, get } from "./operations.js";
|
|
2
|
+
export type { CollectorPoliciesListOptionalParams, CollectorPoliciesDeleteOptionalParams, CollectorPoliciesUpdateTagsOptionalParams, CollectorPoliciesCreateOrUpdateOptionalParams, CollectorPoliciesGetOptionalParams, } from "./options.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/collectorPolicies/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { list, $delete, updateTags, createOrUpdate, get } from \"./operations.js\";\nexport type {\n CollectorPoliciesListOptionalParams,\n CollectorPoliciesDeleteOptionalParams,\n CollectorPoliciesUpdateTagsOptionalParams,\n CollectorPoliciesCreateOrUpdateOptionalParams,\n CollectorPoliciesGetOptionalParams,\n} from \"./options.js\";\n"]}
|