@azure/arm-networkfunction 2.0.1-alpha.20250217.1 → 2.0.1-alpha.20250218.2
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/README.md +21 -14
- package/{dist-esm/src → dist/browser}/azureTrafficCollectorClient.d.ts +2 -2
- package/dist/browser/azureTrafficCollectorClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/azureTrafficCollectorClient.js +15 -18
- package/dist/browser/azureTrafficCollectorClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lroImpl.js +25 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/azureTrafficCollectors.d.ts +3 -3
- package/dist/browser/operations/azureTrafficCollectors.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/azureTrafficCollectors.js +69 -78
- package/dist/browser/operations/azureTrafficCollectors.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/azureTrafficCollectorsByResourceGroup.d.ts +3 -3
- package/dist/browser/operations/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/azureTrafficCollectorsByResourceGroup.js +3 -3
- package/dist/browser/operations/azureTrafficCollectorsByResourceGroup.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/azureTrafficCollectorsBySubscription.d.ts +3 -3
- package/dist/browser/operations/azureTrafficCollectorsBySubscription.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/azureTrafficCollectorsBySubscription.js +3 -3
- package/dist/browser/operations/azureTrafficCollectorsBySubscription.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/collectorPolicies.d.ts +3 -3
- package/dist/browser/operations/collectorPolicies.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/collectorPolicies.js +82 -90
- package/dist/browser/operations/collectorPolicies.js.map +1 -0
- package/dist/browser/operations/index.d.ts +6 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +13 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/networkFunction.d.ts +3 -3
- package/dist/browser/operations/networkFunction.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/networkFunction.js +2 -2
- package/dist/browser/operations/networkFunction.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/azureTrafficCollectors.d.ts +1 -1
- package/dist/browser/operationsInterfaces/azureTrafficCollectors.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/azureTrafficCollectors.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/collectorPolicies.d.ts +1 -1
- package/dist/browser/operationsInterfaces/collectorPolicies.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/collectorPolicies.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +6 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +13 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/networkFunction.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/networkFunction.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/networkFunction.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/azureTrafficCollectorClient.d.ts +24 -0
- package/dist/commonjs/azureTrafficCollectorClient.d.ts.map +1 -0
- package/dist/commonjs/azureTrafficCollectorClient.js +106 -0
- package/dist/commonjs/azureTrafficCollectorClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +16 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +29 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +433 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +69 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +21 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +523 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +19 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +139 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/azureTrafficCollectors.d.ts +59 -0
- package/dist/commonjs/operations/azureTrafficCollectors.d.ts.map +1 -0
- package/dist/commonjs/operations/azureTrafficCollectors.js +252 -0
- package/dist/commonjs/operations/azureTrafficCollectors.js.map +1 -0
- package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.d.ts +35 -0
- package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -0
- package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.js +150 -0
- package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.js.map +1 -0
- package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.d.ts +32 -0
- package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.d.ts.map +1 -0
- package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.js +142 -0
- package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.js.map +1 -0
- package/dist/commonjs/operations/collectorPolicies.d.ts +90 -0
- package/dist/commonjs/operations/collectorPolicies.d.ts.map +1 -0
- package/dist/commonjs/operations/collectorPolicies.js +412 -0
- package/dist/commonjs/operations/collectorPolicies.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +6 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +16 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/networkFunction.d.ts +26 -0
- package/dist/commonjs/operations/networkFunction.d.ts.map +1 -0
- package/dist/commonjs/operations/networkFunction.js +100 -0
- package/dist/commonjs/operations/networkFunction.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.d.ts +51 -0
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.js +10 -0
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts +12 -0
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +10 -0
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.js +10 -0
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/collectorPolicies.d.ts +65 -0
- package/dist/commonjs/operationsInterfaces/collectorPolicies.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/collectorPolicies.js +10 -0
- package/dist/commonjs/operationsInterfaces/collectorPolicies.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +6 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +16 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/networkFunction.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/networkFunction.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/networkFunction.js +10 -0
- package/dist/commonjs/operationsInterfaces/networkFunction.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/esm/azureTrafficCollectorClient.d.ts +24 -0
- package/dist/esm/azureTrafficCollectorClient.d.ts.map +1 -0
- package/dist/esm/azureTrafficCollectorClient.js +101 -0
- package/dist/esm/azureTrafficCollectorClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +16 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +25 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +433 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +66 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +21 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +520 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +19 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +136 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/azureTrafficCollectors.d.ts +59 -0
- package/dist/esm/operations/azureTrafficCollectors.d.ts.map +1 -0
- package/dist/esm/operations/azureTrafficCollectors.js +247 -0
- package/dist/esm/operations/azureTrafficCollectors.js.map +1 -0
- package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.d.ts +35 -0
- package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -0
- package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.js +146 -0
- package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.js.map +1 -0
- package/dist/esm/operations/azureTrafficCollectorsBySubscription.d.ts +32 -0
- package/dist/esm/operations/azureTrafficCollectorsBySubscription.d.ts.map +1 -0
- package/dist/esm/operations/azureTrafficCollectorsBySubscription.js +138 -0
- package/dist/esm/operations/azureTrafficCollectorsBySubscription.js.map +1 -0
- package/dist/esm/operations/collectorPolicies.d.ts +90 -0
- package/dist/esm/operations/collectorPolicies.d.ts.map +1 -0
- package/dist/esm/operations/collectorPolicies.js +408 -0
- package/dist/esm/operations/collectorPolicies.js.map +1 -0
- package/dist/esm/operations/index.d.ts +6 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +13 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/networkFunction.d.ts +26 -0
- package/dist/esm/operations/networkFunction.d.ts.map +1 -0
- package/dist/esm/operations/networkFunction.js +96 -0
- package/dist/esm/operations/networkFunction.js.map +1 -0
- package/dist/esm/operationsInterfaces/azureTrafficCollectors.d.ts +51 -0
- package/dist/esm/operationsInterfaces/azureTrafficCollectors.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/azureTrafficCollectors.js +9 -0
- package/dist/esm/operationsInterfaces/azureTrafficCollectors.js.map +1 -0
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts +12 -0
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +9 -0
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +1 -0
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts +11 -0
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.js +9 -0
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +1 -0
- package/dist/esm/operationsInterfaces/collectorPolicies.d.ts +65 -0
- package/dist/esm/operationsInterfaces/collectorPolicies.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/collectorPolicies.js +9 -0
- package/dist/esm/operationsInterfaces/collectorPolicies.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +6 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +13 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/networkFunction.d.ts +11 -0
- package/dist/esm/operationsInterfaces/networkFunction.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/networkFunction.js +9 -0
- package/dist/esm/operationsInterfaces/networkFunction.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/azureTrafficCollectorClient.d.ts +24 -0
- package/dist/react-native/azureTrafficCollectorClient.d.ts.map +1 -0
- package/dist/react-native/azureTrafficCollectorClient.js +101 -0
- package/dist/react-native/azureTrafficCollectorClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +16 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +25 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +433 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +66 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +21 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +520 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +19 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +136 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/azureTrafficCollectors.d.ts +59 -0
- package/dist/react-native/operations/azureTrafficCollectors.d.ts.map +1 -0
- package/dist/react-native/operations/azureTrafficCollectors.js +247 -0
- package/dist/react-native/operations/azureTrafficCollectors.js.map +1 -0
- package/dist/react-native/operations/azureTrafficCollectorsByResourceGroup.d.ts +35 -0
- package/dist/react-native/operations/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -0
- package/dist/react-native/operations/azureTrafficCollectorsByResourceGroup.js +146 -0
- package/dist/react-native/operations/azureTrafficCollectorsByResourceGroup.js.map +1 -0
- package/dist/react-native/operations/azureTrafficCollectorsBySubscription.d.ts +32 -0
- package/dist/react-native/operations/azureTrafficCollectorsBySubscription.d.ts.map +1 -0
- package/dist/react-native/operations/azureTrafficCollectorsBySubscription.js +138 -0
- package/dist/react-native/operations/azureTrafficCollectorsBySubscription.js.map +1 -0
- package/dist/react-native/operations/collectorPolicies.d.ts +90 -0
- package/dist/react-native/operations/collectorPolicies.d.ts.map +1 -0
- package/dist/react-native/operations/collectorPolicies.js +408 -0
- package/dist/react-native/operations/collectorPolicies.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +6 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +13 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/networkFunction.d.ts +26 -0
- package/dist/react-native/operations/networkFunction.d.ts.map +1 -0
- package/dist/react-native/operations/networkFunction.js +96 -0
- package/dist/react-native/operations/networkFunction.js.map +1 -0
- package/dist/react-native/operationsInterfaces/azureTrafficCollectors.d.ts +51 -0
- package/dist/react-native/operationsInterfaces/azureTrafficCollectors.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/azureTrafficCollectors.js +9 -0
- package/dist/react-native/operationsInterfaces/azureTrafficCollectors.js.map +1 -0
- package/dist/react-native/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts +12 -0
- package/dist/react-native/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +9 -0
- package/dist/react-native/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +1 -0
- package/dist/react-native/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/azureTrafficCollectorsBySubscription.js +9 -0
- package/dist/react-native/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +1 -0
- package/dist/react-native/operationsInterfaces/collectorPolicies.d.ts +65 -0
- package/dist/react-native/operationsInterfaces/collectorPolicies.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/collectorPolicies.js +9 -0
- package/dist/react-native/operationsInterfaces/collectorPolicies.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +6 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +13 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/networkFunction.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/networkFunction.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/networkFunction.js +9 -0
- package/dist/react-native/operationsInterfaces/networkFunction.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +70 -41
- package/dist/index.js +0 -1933
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/azureTrafficCollectorsByResourceGroupListSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureTrafficCollectorsByResourceGroupListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureTrafficCollectorsByResourceGroupListSample.js +0 -44
- package/dist-esm/samples-dev/azureTrafficCollectorsByResourceGroupListSample.js.map +0 -1
- package/dist-esm/samples-dev/azureTrafficCollectorsBySubscriptionListSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureTrafficCollectorsBySubscriptionListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureTrafficCollectorsBySubscriptionListSample.js +0 -43
- package/dist-esm/samples-dev/azureTrafficCollectorsBySubscriptionListSample.js.map +0 -1
- package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.js +0 -25
- package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/azureTrafficCollectorsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureTrafficCollectorsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureTrafficCollectorsDeleteSample.js +0 -29
- package/dist-esm/samples-dev/azureTrafficCollectorsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/azureTrafficCollectorsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureTrafficCollectorsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureTrafficCollectorsGetSample.js +0 -29
- package/dist-esm/samples-dev/azureTrafficCollectorsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/azureTrafficCollectorsUpdateTagsSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureTrafficCollectorsUpdateTagsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureTrafficCollectorsUpdateTagsSample.js +0 -23
- package/dist-esm/samples-dev/azureTrafficCollectorsUpdateTagsSample.js.map +0 -1
- package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.js +0 -31
- package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/collectorPoliciesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/collectorPoliciesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/collectorPoliciesDeleteSample.js +0 -30
- package/dist-esm/samples-dev/collectorPoliciesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/collectorPoliciesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/collectorPoliciesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/collectorPoliciesGetSample.js +0 -30
- package/dist-esm/samples-dev/collectorPoliciesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/collectorPoliciesListSample.d.ts +0 -2
- package/dist-esm/samples-dev/collectorPoliciesListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/collectorPoliciesListSample.js +0 -45
- package/dist-esm/samples-dev/collectorPoliciesListSample.js.map +0 -1
- package/dist-esm/samples-dev/collectorPoliciesUpdateTagsSample.d.ts +0 -2
- package/dist-esm/samples-dev/collectorPoliciesUpdateTagsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/collectorPoliciesUpdateTagsSample.js +0 -24
- package/dist-esm/samples-dev/collectorPoliciesUpdateTagsSample.js.map +0 -1
- package/dist-esm/samples-dev/networkFunctionListOperationsSample.d.ts +0 -2
- package/dist-esm/samples-dev/networkFunctionListOperationsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/networkFunctionListOperationsSample.js +0 -43
- package/dist-esm/samples-dev/networkFunctionListOperationsSample.js.map +0 -1
- package/dist-esm/src/azureTrafficCollectorClient.d.ts.map +0 -1
- package/dist-esm/src/azureTrafficCollectorClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.js +0 -29
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/azureTrafficCollectors.d.ts.map +0 -1
- package/dist-esm/src/operations/azureTrafficCollectors.js.map +0 -1
- package/dist-esm/src/operations/azureTrafficCollectorsByResourceGroup.d.ts.map +0 -1
- package/dist-esm/src/operations/azureTrafficCollectorsByResourceGroup.js.map +0 -1
- package/dist-esm/src/operations/azureTrafficCollectorsBySubscription.d.ts.map +0 -1
- package/dist-esm/src/operations/azureTrafficCollectorsBySubscription.js.map +0 -1
- package/dist-esm/src/operations/collectorPolicies.d.ts.map +0 -1
- package/dist-esm/src/operations/collectorPolicies.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -6
- package/dist-esm/src/operations/index.js +0 -13
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/networkFunction.d.ts.map +0 -1
- package/dist-esm/src/operations/networkFunction.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/azureTrafficCollectors.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/azureTrafficCollectors.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/collectorPolicies.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/collectorPolicies.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -6
- package/dist-esm/src/operationsInterfaces/index.js +0 -13
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/networkFunction.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/networkfunction_examples.spec.d.ts +0 -4
- package/dist-esm/test/networkfunction_examples.spec.d.ts.map +0 -1
- package/dist-esm/test/networkfunction_examples.spec.js +0 -73
- package/dist-esm/test/networkfunction_examples.spec.js.map +0 -1
- package/src/azureTrafficCollectorClient.ts +0 -164
- package/src/lroImpl.ts +0 -34
- package/src/models/index.ts +0 -498
- package/src/models/mappers.ts +0 -554
- package/src/models/parameters.ts +0 -162
- package/src/operations/azureTrafficCollectors.ts +0 -362
- package/src/operations/azureTrafficCollectorsByResourceGroup.ts +0 -176
- package/src/operations/azureTrafficCollectorsBySubscription.ts +0 -156
- package/src/operations/collectorPolicies.ts +0 -575
- package/src/operations/index.ts +0 -13
- package/src/operations/networkFunction.ts +0 -106
- package/src/operationsInterfaces/azureTrafficCollectors.ts +0 -100
- package/src/operationsInterfaces/azureTrafficCollectorsByResourceGroup.ts +0 -27
- package/src/operationsInterfaces/azureTrafficCollectorsBySubscription.ts +0 -25
- package/src/operationsInterfaces/collectorPolicies.ts +0 -127
- package/src/operationsInterfaces/index.ts +0 -13
- package/src/operationsInterfaces/networkFunction.ts +0 -25
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- package/types/arm-networkfunction.d.ts +0 -668
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/azureTrafficCollectors.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/azureTrafficCollectorsBySubscription.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/collectorPolicies.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/networkFunction.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
- /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.AzureTrafficCollectorsByResourceGroupImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const pagingHelper_js_1 = require("../pagingHelper.js");
|
|
13
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
14
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
15
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
16
|
+
/// <reference lib="esnext.asynciterable" />
|
|
17
|
+
/** Class containing AzureTrafficCollectorsByResourceGroup operations. */
|
|
18
|
+
class AzureTrafficCollectorsByResourceGroupImpl {
|
|
19
|
+
/**
|
|
20
|
+
* Initialize a new instance of the class AzureTrafficCollectorsByResourceGroup class.
|
|
21
|
+
* @param client Reference to the service client
|
|
22
|
+
*/
|
|
23
|
+
constructor(client) {
|
|
24
|
+
this.client = client;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Return list of Azure Traffic Collectors in a Resource Group
|
|
28
|
+
* @param resourceGroupName The name of the resource group.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
list(resourceGroupName, options) {
|
|
32
|
+
const iter = this.listPagingAll(resourceGroupName, options);
|
|
33
|
+
return {
|
|
34
|
+
next() {
|
|
35
|
+
return iter.next();
|
|
36
|
+
},
|
|
37
|
+
[Symbol.asyncIterator]() {
|
|
38
|
+
return this;
|
|
39
|
+
},
|
|
40
|
+
byPage: (settings) => {
|
|
41
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
42
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
|
+
}
|
|
44
|
+
return this.listPagingPage(resourceGroupName, options, settings);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
listPagingPage(resourceGroupName, options, settings) {
|
|
49
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = yield tslib_1.__await(this._list(resourceGroupName, options));
|
|
54
|
+
let page = result.value || [];
|
|
55
|
+
continuationToken = result.nextLink;
|
|
56
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
57
|
+
yield yield tslib_1.__await(page);
|
|
58
|
+
}
|
|
59
|
+
while (continuationToken) {
|
|
60
|
+
result = yield tslib_1.__await(this._listNext(resourceGroupName, continuationToken, options));
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
64
|
+
yield yield tslib_1.__await(page);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
listPagingAll(resourceGroupName, options) {
|
|
69
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
70
|
+
var _a, e_1, _b, _c;
|
|
71
|
+
try {
|
|
72
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
+
_c = _f.value;
|
|
74
|
+
_d = false;
|
|
75
|
+
const page = _c;
|
|
76
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
+
finally {
|
|
81
|
+
try {
|
|
82
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
83
|
+
}
|
|
84
|
+
finally { if (e_1) throw e_1.error; }
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Return list of Azure Traffic Collectors in a Resource Group
|
|
90
|
+
* @param resourceGroupName The name of the resource group.
|
|
91
|
+
* @param options The options parameters.
|
|
92
|
+
*/
|
|
93
|
+
_list(resourceGroupName, options) {
|
|
94
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listOperationSpec);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* ListNext
|
|
98
|
+
* @param resourceGroupName The name of the resource group.
|
|
99
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
100
|
+
* @param options The options parameters.
|
|
101
|
+
*/
|
|
102
|
+
_listNext(resourceGroupName, nextLink, options) {
|
|
103
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listNextOperationSpec);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exports.AzureTrafficCollectorsByResourceGroupImpl = AzureTrafficCollectorsByResourceGroupImpl;
|
|
107
|
+
// Operation Specifications
|
|
108
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
109
|
+
const listOperationSpec = {
|
|
110
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors",
|
|
111
|
+
httpMethod: "GET",
|
|
112
|
+
responses: {
|
|
113
|
+
200: {
|
|
114
|
+
bodyMapper: Mappers.AzureTrafficCollectorListResult
|
|
115
|
+
},
|
|
116
|
+
default: {
|
|
117
|
+
bodyMapper: Mappers.CloudError
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
queryParameters: [Parameters.apiVersion],
|
|
121
|
+
urlParameters: [
|
|
122
|
+
Parameters.$host,
|
|
123
|
+
Parameters.subscriptionId,
|
|
124
|
+
Parameters.resourceGroupName
|
|
125
|
+
],
|
|
126
|
+
headerParameters: [Parameters.accept],
|
|
127
|
+
serializer
|
|
128
|
+
};
|
|
129
|
+
const listNextOperationSpec = {
|
|
130
|
+
path: "{nextLink}",
|
|
131
|
+
httpMethod: "GET",
|
|
132
|
+
responses: {
|
|
133
|
+
200: {
|
|
134
|
+
bodyMapper: Mappers.AzureTrafficCollectorListResult
|
|
135
|
+
},
|
|
136
|
+
default: {
|
|
137
|
+
bodyMapper: Mappers.CloudError
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
queryParameters: [Parameters.apiVersion],
|
|
141
|
+
urlParameters: [
|
|
142
|
+
Parameters.$host,
|
|
143
|
+
Parameters.subscriptionId,
|
|
144
|
+
Parameters.nextLink,
|
|
145
|
+
Parameters.resourceGroupName
|
|
146
|
+
],
|
|
147
|
+
headerParameters: [Parameters.accept],
|
|
148
|
+
serializer
|
|
149
|
+
};
|
|
150
|
+
//# sourceMappingURL=azureTrafficCollectorsByResourceGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azureTrafficCollectorsByResourceGroup.js","sourceRoot":"","sources":["../../../src/operations/azureTrafficCollectorsByResourceGroup.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,yEAAyE;AACzE,MAAa,yCAAyC;IAIpD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,iBAAyB,EACzB,OAAiE;QAEjE,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC5D,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,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AC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { AzureTrafficCollectorsByResourceGroup } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureTrafficCollectorClient } from \"../azureTrafficCollectorClient.js\";\nimport {\n AzureTrafficCollector,\n AzureTrafficCollectorsByResourceGroupListNextOptionalParams,\n AzureTrafficCollectorsByResourceGroupListOptionalParams,\n AzureTrafficCollectorsByResourceGroupListResponse,\n AzureTrafficCollectorsByResourceGroupListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AzureTrafficCollectorsByResourceGroup operations. */\nexport class AzureTrafficCollectorsByResourceGroupImpl\n implements AzureTrafficCollectorsByResourceGroup {\n private readonly client: AzureTrafficCollectorClient;\n\n /**\n * Initialize a new instance of the class AzureTrafficCollectorsByResourceGroup class.\n * @param client Reference to the service client\n */\n constructor(client: AzureTrafficCollectorClient) {\n this.client = client;\n }\n\n /**\n * Return list of Azure Traffic Collectors in a Resource Group\n * @param resourceGroupName The name of the resource group.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n options?: AzureTrafficCollectorsByResourceGroupListOptionalParams\n ): PagedAsyncIterableIterator<AzureTrafficCollector> {\n const iter = this.listPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(resourceGroupName, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n options?: AzureTrafficCollectorsByResourceGroupListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AzureTrafficCollector[]> {\n let result: AzureTrafficCollectorsByResourceGroupListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n options?: AzureTrafficCollectorsByResourceGroupListOptionalParams\n ): AsyncIterableIterator<AzureTrafficCollector> {\n for await (const page of this.listPagingPage(resourceGroupName, options)) {\n yield* page;\n }\n }\n\n /**\n * Return list of Azure Traffic Collectors in a Resource Group\n * @param resourceGroupName The name of the resource group.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n options?: AzureTrafficCollectorsByResourceGroupListOptionalParams\n ): Promise<AzureTrafficCollectorsByResourceGroupListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n nextLink: string,\n options?: AzureTrafficCollectorsByResourceGroupListNextOptionalParams\n ): Promise<AzureTrafficCollectorsByResourceGroupListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureTrafficCollectorListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureTrafficCollectorListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { AzureTrafficCollectorsBySubscription } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { AzureTrafficCollectorClient } from "../azureTrafficCollectorClient.js";
|
|
4
|
+
import { AzureTrafficCollector, AzureTrafficCollectorsBySubscriptionListOptionalParams } from "../models/index.js";
|
|
5
|
+
/** Class containing AzureTrafficCollectorsBySubscription operations. */
|
|
6
|
+
export declare class AzureTrafficCollectorsBySubscriptionImpl implements AzureTrafficCollectorsBySubscription {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class AzureTrafficCollectorsBySubscription class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AzureTrafficCollectorClient);
|
|
13
|
+
/**
|
|
14
|
+
* Return list of Azure Traffic Collectors in a subscription
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: AzureTrafficCollectorsBySubscriptionListOptionalParams): PagedAsyncIterableIterator<AzureTrafficCollector>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Return list of Azure Traffic Collectors in a subscription
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
/**
|
|
26
|
+
* ListNext
|
|
27
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
private _listNext;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=azureTrafficCollectorsBySubscription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azureTrafficCollectorsBySubscription.d.ts","sourceRoot":"","sources":["../../../src/operations/azureTrafficCollectorsBySubscription.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,oCAAoC,EAAE,MAAM,kCAAkC,CAAC;AAIxF,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EACL,qBAAqB,EAErB,sDAAsD,EAGvD,MAAM,oBAAoB,CAAC;AAG5B,wEAAwE;AACxE,qBAAa,wCACX,YAAW,oCAAoC;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA8B;IAErD;;;OAGG;gBACS,MAAM,EAAE,2BAA2B;IAI/C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,sDAAsD,GAC/D,0BAA0B,CAAC,qBAAqB,CAAC;YAkBrC,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.AzureTrafficCollectorsBySubscriptionImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const pagingHelper_js_1 = require("../pagingHelper.js");
|
|
13
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
14
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
15
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
16
|
+
/// <reference lib="esnext.asynciterable" />
|
|
17
|
+
/** Class containing AzureTrafficCollectorsBySubscription operations. */
|
|
18
|
+
class AzureTrafficCollectorsBySubscriptionImpl {
|
|
19
|
+
/**
|
|
20
|
+
* Initialize a new instance of the class AzureTrafficCollectorsBySubscription class.
|
|
21
|
+
* @param client Reference to the service client
|
|
22
|
+
*/
|
|
23
|
+
constructor(client) {
|
|
24
|
+
this.client = client;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Return list of Azure Traffic Collectors in a subscription
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
list(options) {
|
|
31
|
+
const iter = this.listPagingAll(options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: (settings) => {
|
|
40
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
41
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
|
+
}
|
|
43
|
+
return this.listPagingPage(options, settings);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
listPagingPage(options, settings) {
|
|
48
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = yield tslib_1.__await(this._list(options));
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
56
|
+
yield yield tslib_1.__await(page);
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = yield tslib_1.__await(this._listNext(continuationToken, options));
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
63
|
+
yield yield tslib_1.__await(page);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
listPagingAll(options) {
|
|
68
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
69
|
+
var _a, e_1, _b, _c;
|
|
70
|
+
try {
|
|
71
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
+
_c = _f.value;
|
|
73
|
+
_d = false;
|
|
74
|
+
const page = _c;
|
|
75
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
+
finally {
|
|
80
|
+
try {
|
|
81
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
82
|
+
}
|
|
83
|
+
finally { if (e_1) throw e_1.error; }
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Return list of Azure Traffic Collectors in a subscription
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
_list(options) {
|
|
92
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* ListNext
|
|
96
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
97
|
+
* @param options The options parameters.
|
|
98
|
+
*/
|
|
99
|
+
_listNext(nextLink, options) {
|
|
100
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
exports.AzureTrafficCollectorsBySubscriptionImpl = AzureTrafficCollectorsBySubscriptionImpl;
|
|
104
|
+
// Operation Specifications
|
|
105
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
106
|
+
const listOperationSpec = {
|
|
107
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkFunction/azureTrafficCollectors",
|
|
108
|
+
httpMethod: "GET",
|
|
109
|
+
responses: {
|
|
110
|
+
200: {
|
|
111
|
+
bodyMapper: Mappers.AzureTrafficCollectorListResult
|
|
112
|
+
},
|
|
113
|
+
default: {
|
|
114
|
+
bodyMapper: Mappers.CloudError
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
queryParameters: [Parameters.apiVersion],
|
|
118
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
119
|
+
headerParameters: [Parameters.accept],
|
|
120
|
+
serializer
|
|
121
|
+
};
|
|
122
|
+
const listNextOperationSpec = {
|
|
123
|
+
path: "{nextLink}",
|
|
124
|
+
httpMethod: "GET",
|
|
125
|
+
responses: {
|
|
126
|
+
200: {
|
|
127
|
+
bodyMapper: Mappers.AzureTrafficCollectorListResult
|
|
128
|
+
},
|
|
129
|
+
default: {
|
|
130
|
+
bodyMapper: Mappers.CloudError
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
queryParameters: [Parameters.apiVersion],
|
|
134
|
+
urlParameters: [
|
|
135
|
+
Parameters.$host,
|
|
136
|
+
Parameters.subscriptionId,
|
|
137
|
+
Parameters.nextLink
|
|
138
|
+
],
|
|
139
|
+
headerParameters: [Parameters.accept],
|
|
140
|
+
serializer
|
|
141
|
+
};
|
|
142
|
+
//# sourceMappingURL=azureTrafficCollectorsBySubscription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azureTrafficCollectorsBySubscription.js","sourceRoot":"","sources":["../../../src/operations/azureTrafficCollectorsBySubscription.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,wEAAwE;AACxE,MAAa,wCAAwC;IAInD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAgE;QAEhE,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,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C,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { AzureTrafficCollectorsBySubscription } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureTrafficCollectorClient } from \"../azureTrafficCollectorClient.js\";\nimport {\n AzureTrafficCollector,\n AzureTrafficCollectorsBySubscriptionListNextOptionalParams,\n AzureTrafficCollectorsBySubscriptionListOptionalParams,\n AzureTrafficCollectorsBySubscriptionListResponse,\n AzureTrafficCollectorsBySubscriptionListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AzureTrafficCollectorsBySubscription operations. */\nexport class AzureTrafficCollectorsBySubscriptionImpl\n implements AzureTrafficCollectorsBySubscription {\n private readonly client: AzureTrafficCollectorClient;\n\n /**\n * Initialize a new instance of the class AzureTrafficCollectorsBySubscription class.\n * @param client Reference to the service client\n */\n constructor(client: AzureTrafficCollectorClient) {\n this.client = client;\n }\n\n /**\n * Return list of Azure Traffic Collectors in a subscription\n * @param options The options parameters.\n */\n public list(\n options?: AzureTrafficCollectorsBySubscriptionListOptionalParams\n ): PagedAsyncIterableIterator<AzureTrafficCollector> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: AzureTrafficCollectorsBySubscriptionListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AzureTrafficCollector[]> {\n let result: AzureTrafficCollectorsBySubscriptionListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: AzureTrafficCollectorsBySubscriptionListOptionalParams\n ): AsyncIterableIterator<AzureTrafficCollector> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Return list of Azure Traffic Collectors in a subscription\n * @param options The options parameters.\n */\n private _list(\n options?: AzureTrafficCollectorsBySubscriptionListOptionalParams\n ): Promise<AzureTrafficCollectorsBySubscriptionListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: AzureTrafficCollectorsBySubscriptionListNextOptionalParams\n ): Promise<AzureTrafficCollectorsBySubscriptionListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.NetworkFunction/azureTrafficCollectors\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureTrafficCollectorListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureTrafficCollectorListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { CollectorPolicies } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { AzureTrafficCollectorClient } from "../azureTrafficCollectorClient.js";
|
|
4
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
5
|
+
import { CollectorPolicy, CollectorPoliciesListOptionalParams, CollectorPoliciesGetOptionalParams, CollectorPoliciesGetResponse, CollectorPoliciesCreateOrUpdateOptionalParams, CollectorPoliciesCreateOrUpdateResponse, CollectorPoliciesDeleteOptionalParams, TagsObject, CollectorPoliciesUpdateTagsOptionalParams, CollectorPoliciesUpdateTagsResponse } from "../models/index.js";
|
|
6
|
+
/** Class containing CollectorPolicies operations. */
|
|
7
|
+
export declare class CollectorPoliciesImpl implements CollectorPolicies {
|
|
8
|
+
private readonly client;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of the class CollectorPolicies class.
|
|
11
|
+
* @param client Reference to the service client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client: AzureTrafficCollectorClient);
|
|
14
|
+
/**
|
|
15
|
+
* Return list of Collector policies in a Azure Traffic Collector
|
|
16
|
+
* @param resourceGroupName The name of the resource group.
|
|
17
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
list(resourceGroupName: string, azureTrafficCollectorName: string, options?: CollectorPoliciesListOptionalParams): PagedAsyncIterableIterator<CollectorPolicy>;
|
|
21
|
+
private listPagingPage;
|
|
22
|
+
private listPagingAll;
|
|
23
|
+
/**
|
|
24
|
+
* Return list of Collector policies in a Azure Traffic Collector
|
|
25
|
+
* @param resourceGroupName The name of the resource group.
|
|
26
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
private _list;
|
|
30
|
+
/**
|
|
31
|
+
* Gets the collector policy in a specified Traffic Collector
|
|
32
|
+
* @param resourceGroupName The name of the resource group.
|
|
33
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
34
|
+
* @param collectorPolicyName Collector Policy Name
|
|
35
|
+
* @param options The options parameters.
|
|
36
|
+
*/
|
|
37
|
+
get(resourceGroupName: string, azureTrafficCollectorName: string, collectorPolicyName: string, options?: CollectorPoliciesGetOptionalParams): Promise<CollectorPoliciesGetResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Creates or updates a Collector Policy resource
|
|
40
|
+
* @param resourceGroupName The name of the resource group.
|
|
41
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
42
|
+
* @param collectorPolicyName Collector Policy Name
|
|
43
|
+
* @param location Resource location.
|
|
44
|
+
* @param options The options parameters.
|
|
45
|
+
*/
|
|
46
|
+
beginCreateOrUpdate(resourceGroupName: string, azureTrafficCollectorName: string, collectorPolicyName: string, location: string, options?: CollectorPoliciesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<CollectorPoliciesCreateOrUpdateResponse>, CollectorPoliciesCreateOrUpdateResponse>>;
|
|
47
|
+
/**
|
|
48
|
+
* Creates or updates a Collector Policy resource
|
|
49
|
+
* @param resourceGroupName The name of the resource group.
|
|
50
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
51
|
+
* @param collectorPolicyName Collector Policy Name
|
|
52
|
+
* @param location Resource location.
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, azureTrafficCollectorName: string, collectorPolicyName: string, location: string, options?: CollectorPoliciesCreateOrUpdateOptionalParams): Promise<CollectorPoliciesCreateOrUpdateResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Deletes a specified Collector Policy resource.
|
|
58
|
+
* @param resourceGroupName The name of the resource group.
|
|
59
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
60
|
+
* @param collectorPolicyName Collector Policy Name
|
|
61
|
+
* @param options The options parameters.
|
|
62
|
+
*/
|
|
63
|
+
beginDelete(resourceGroupName: string, azureTrafficCollectorName: string, collectorPolicyName: string, options?: CollectorPoliciesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
64
|
+
/**
|
|
65
|
+
* Deletes a specified Collector Policy resource.
|
|
66
|
+
* @param resourceGroupName The name of the resource group.
|
|
67
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
68
|
+
* @param collectorPolicyName Collector Policy Name
|
|
69
|
+
* @param options The options parameters.
|
|
70
|
+
*/
|
|
71
|
+
beginDeleteAndWait(resourceGroupName: string, azureTrafficCollectorName: string, collectorPolicyName: string, options?: CollectorPoliciesDeleteOptionalParams): Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* Updates the specified Collector Policy tags.
|
|
74
|
+
* @param resourceGroupName The name of the resource group.
|
|
75
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
76
|
+
* @param collectorPolicyName Collector Policy Name
|
|
77
|
+
* @param parameters Parameters supplied to update Collector Policy tags.
|
|
78
|
+
* @param options The options parameters.
|
|
79
|
+
*/
|
|
80
|
+
updateTags(resourceGroupName: string, azureTrafficCollectorName: string, collectorPolicyName: string, parameters: TagsObject, options?: CollectorPoliciesUpdateTagsOptionalParams): Promise<CollectorPoliciesUpdateTagsResponse>;
|
|
81
|
+
/**
|
|
82
|
+
* ListNext
|
|
83
|
+
* @param resourceGroupName The name of the resource group.
|
|
84
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
85
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
86
|
+
* @param options The options parameters.
|
|
87
|
+
*/
|
|
88
|
+
private _listNext;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=collectorPolicies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collectorPolicies.d.ts","sourceRoot":"","sources":["../../../src/operations/collectorPolicies.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAIrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,eAAe,EAEf,mCAAmC,EAEnC,kCAAkC,EAClC,4BAA4B,EAC5B,6CAA6C,EAC7C,uCAAuC,EACvC,qCAAqC,EACrC,UAAU,EACV,yCAAyC,EACzC,mCAAmC,EAEpC,MAAM,oBAAoB,CAAC;AAG5B,qDAAqD;AACrD,qBAAa,qBAAsB,YAAW,iBAAiB;IAC7D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA8B;IAErD;;;OAGG;gBACS,MAAM,EAAE,2BAA2B;IAI/C;;;;;OAKG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,yBAAyB,EAAE,MAAM,EACjC,OAAO,CAAC,EAAE,mCAAmC,GAC5C,0BAA0B,CAAC,eAAe,CAAC;YA2B/B,cAAc;YAiCd,aAAa;IAc5B;;;;;OAKG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB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