@azure/arm-networkfunction 1.0.0-alpha.20220714.3

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.
Files changed (151) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +1809 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/azureTrafficCollectorsByResourceGroupListSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/azureTrafficCollectorsByResourceGroupListSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/azureTrafficCollectorsByResourceGroupListSample.js +44 -0
  11. package/dist-esm/samples-dev/azureTrafficCollectorsByResourceGroupListSample.js.map +1 -0
  12. package/dist-esm/samples-dev/azureTrafficCollectorsBySubscriptionListSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/azureTrafficCollectorsBySubscriptionListSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/azureTrafficCollectorsBySubscriptionListSample.js +43 -0
  15. package/dist-esm/samples-dev/azureTrafficCollectorsBySubscriptionListSample.js.map +1 -0
  16. package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.js +37 -0
  19. package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.js.map +1 -0
  20. package/dist-esm/samples-dev/azureTrafficCollectorsDeleteSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/azureTrafficCollectorsDeleteSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/azureTrafficCollectorsDeleteSample.js +31 -0
  23. package/dist-esm/samples-dev/azureTrafficCollectorsDeleteSample.js.map +1 -0
  24. package/dist-esm/samples-dev/azureTrafficCollectorsGetSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/azureTrafficCollectorsGetSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/azureTrafficCollectorsGetSample.js +31 -0
  27. package/dist-esm/samples-dev/azureTrafficCollectorsGetSample.js.map +1 -0
  28. package/dist-esm/samples-dev/azureTrafficCollectorsUpdateTagsSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/azureTrafficCollectorsUpdateTagsSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/azureTrafficCollectorsUpdateTagsSample.js +32 -0
  31. package/dist-esm/samples-dev/azureTrafficCollectorsUpdateTagsSample.js.map +1 -0
  32. package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.js +32 -0
  35. package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.js.map +1 -0
  36. package/dist-esm/samples-dev/collectorPoliciesDeleteSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/collectorPoliciesDeleteSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/collectorPoliciesDeleteSample.js +32 -0
  39. package/dist-esm/samples-dev/collectorPoliciesDeleteSample.js.map +1 -0
  40. package/dist-esm/samples-dev/collectorPoliciesGetSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/collectorPoliciesGetSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/collectorPoliciesGetSample.js +32 -0
  43. package/dist-esm/samples-dev/collectorPoliciesGetSample.js.map +1 -0
  44. package/dist-esm/samples-dev/collectorPoliciesListSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/collectorPoliciesListSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/collectorPoliciesListSample.js +45 -0
  47. package/dist-esm/samples-dev/collectorPoliciesListSample.js.map +1 -0
  48. package/dist-esm/samples-dev/networkFunctionListOperationsSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/networkFunctionListOperationsSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/networkFunctionListOperationsSample.js +43 -0
  51. package/dist-esm/samples-dev/networkFunctionListOperationsSample.js.map +1 -0
  52. package/dist-esm/src/azureTrafficCollectorClient.d.ts +24 -0
  53. package/dist-esm/src/azureTrafficCollectorClient.d.ts.map +1 -0
  54. package/dist-esm/src/azureTrafficCollectorClient.js +102 -0
  55. package/dist-esm/src/azureTrafficCollectorClient.js.map +1 -0
  56. package/dist-esm/src/index.d.ts +5 -0
  57. package/dist-esm/src/index.d.ts.map +1 -0
  58. package/dist-esm/src/index.js +12 -0
  59. package/dist-esm/src/index.js.map +1 -0
  60. package/dist-esm/src/lroImpl.d.ts +16 -0
  61. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  62. package/dist-esm/src/lroImpl.js +29 -0
  63. package/dist-esm/src/lroImpl.js.map +1 -0
  64. package/dist-esm/src/models/index.d.ts +414 -0
  65. package/dist-esm/src/models/index.d.ts.map +1 -0
  66. package/dist-esm/src/models/index.js +56 -0
  67. package/dist-esm/src/models/index.js.map +1 -0
  68. package/dist-esm/src/models/mappers.d.ts +22 -0
  69. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  70. package/dist-esm/src/models/mappers.js +531 -0
  71. package/dist-esm/src/models/mappers.js.map +1 -0
  72. package/dist-esm/src/models/parameters.d.ts +18 -0
  73. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  74. package/dist-esm/src/models/parameters.js +132 -0
  75. package/dist-esm/src/models/parameters.js.map +1 -0
  76. package/dist-esm/src/operations/azureTrafficCollectors.d.ts +57 -0
  77. package/dist-esm/src/operations/azureTrafficCollectors.d.ts.map +1 -0
  78. package/dist-esm/src/operations/azureTrafficCollectors.js +255 -0
  79. package/dist-esm/src/operations/azureTrafficCollectors.js.map +1 -0
  80. package/dist-esm/src/operations/azureTrafficCollectorsByResourceGroup.d.ts +35 -0
  81. package/dist-esm/src/operations/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -0
  82. package/dist-esm/src/operations/azureTrafficCollectorsByResourceGroup.js +132 -0
  83. package/dist-esm/src/operations/azureTrafficCollectorsByResourceGroup.js.map +1 -0
  84. package/dist-esm/src/operations/azureTrafficCollectorsBySubscription.d.ts +32 -0
  85. package/dist-esm/src/operations/azureTrafficCollectorsBySubscription.d.ts.map +1 -0
  86. package/dist-esm/src/operations/azureTrafficCollectorsBySubscription.js +124 -0
  87. package/dist-esm/src/operations/azureTrafficCollectorsBySubscription.js.map +1 -0
  88. package/dist-esm/src/operations/collectorPolicies.d.ts +79 -0
  89. package/dist-esm/src/operations/collectorPolicies.d.ts.map +1 -0
  90. package/dist-esm/src/operations/collectorPolicies.js +356 -0
  91. package/dist-esm/src/operations/collectorPolicies.js.map +1 -0
  92. package/dist-esm/src/operations/index.d.ts +6 -0
  93. package/dist-esm/src/operations/index.d.ts.map +1 -0
  94. package/dist-esm/src/operations/index.js +13 -0
  95. package/dist-esm/src/operations/index.js.map +1 -0
  96. package/dist-esm/src/operations/networkFunction.d.ts +26 -0
  97. package/dist-esm/src/operations/networkFunction.d.ts.map +1 -0
  98. package/dist-esm/src/operations/networkFunction.js +90 -0
  99. package/dist-esm/src/operations/networkFunction.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/azureTrafficCollectors.d.ts +49 -0
  101. package/dist-esm/src/operationsInterfaces/azureTrafficCollectors.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/azureTrafficCollectors.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/azureTrafficCollectors.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts +12 -0
  105. package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts +11 -0
  109. package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsBySubscription.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/collectorPolicies.d.ts +54 -0
  113. package/dist-esm/src/operationsInterfaces/collectorPolicies.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/collectorPolicies.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/collectorPolicies.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  117. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  119. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/networkFunction.d.ts +11 -0
  121. package/dist-esm/src/operationsInterfaces/networkFunction.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/networkFunction.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/networkFunction.js.map +1 -0
  124. package/dist-esm/test/sampleTest.d.ts +2 -0
  125. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  126. package/dist-esm/test/sampleTest.js +38 -0
  127. package/dist-esm/test/sampleTest.js.map +1 -0
  128. package/package.json +121 -0
  129. package/review/arm-networkfunction.api.md +375 -0
  130. package/rollup.config.js +122 -0
  131. package/src/azureTrafficCollectorClient.ts +158 -0
  132. package/src/index.ts +12 -0
  133. package/src/lroImpl.ts +34 -0
  134. package/src/models/index.ts +477 -0
  135. package/src/models/mappers.ts +569 -0
  136. package/src/models/parameters.ts +157 -0
  137. package/src/operations/azureTrafficCollectors.ts +358 -0
  138. package/src/operations/azureTrafficCollectorsByResourceGroup.ts +163 -0
  139. package/src/operations/azureTrafficCollectorsBySubscription.ts +143 -0
  140. package/src/operations/collectorPolicies.ts +498 -0
  141. package/src/operations/index.ts +13 -0
  142. package/src/operations/networkFunction.ts +101 -0
  143. package/src/operationsInterfaces/azureTrafficCollectors.ts +96 -0
  144. package/src/operationsInterfaces/azureTrafficCollectorsByResourceGroup.ts +27 -0
  145. package/src/operationsInterfaces/azureTrafficCollectorsBySubscription.ts +25 -0
  146. package/src/operationsInterfaces/collectorPolicies.ts +105 -0
  147. package/src/operationsInterfaces/index.ts +13 -0
  148. package/src/operationsInterfaces/networkFunction.ts +25 -0
  149. package/tsconfig.json +33 -0
  150. package/types/arm-networkfunction.d.ts +624 -0
  151. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,124 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing AzureTrafficCollectorsBySubscription operations. */
14
+ export class AzureTrafficCollectorsBySubscriptionImpl {
15
+ /**
16
+ * Initialize a new instance of the class AzureTrafficCollectorsBySubscription class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Return list of Azure Traffic Collectors in a subscription
24
+ * @param options The options parameters.
25
+ */
26
+ list(options) {
27
+ const iter = this.listPagingAll(options);
28
+ return {
29
+ next() {
30
+ return iter.next();
31
+ },
32
+ [Symbol.asyncIterator]() {
33
+ return this;
34
+ },
35
+ byPage: () => {
36
+ return this.listPagingPage(options);
37
+ }
38
+ };
39
+ }
40
+ listPagingPage(options) {
41
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
42
+ let result = yield __await(this._list(options));
43
+ yield yield __await(result.value || []);
44
+ let continuationToken = result.nextLink;
45
+ while (continuationToken) {
46
+ result = yield __await(this._listNext(continuationToken, options));
47
+ continuationToken = result.nextLink;
48
+ yield yield __await(result.value || []);
49
+ }
50
+ });
51
+ }
52
+ listPagingAll(options) {
53
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
54
+ var e_1, _a;
55
+ try {
56
+ for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
57
+ const page = _c.value;
58
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
59
+ }
60
+ }
61
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
62
+ finally {
63
+ try {
64
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
65
+ }
66
+ finally { if (e_1) throw e_1.error; }
67
+ }
68
+ });
69
+ }
70
+ /**
71
+ * Return list of Azure Traffic Collectors in a subscription
72
+ * @param options The options parameters.
73
+ */
74
+ _list(options) {
75
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
76
+ }
77
+ /**
78
+ * ListNext
79
+ * @param nextLink The nextLink from the previous successful call to the List method.
80
+ * @param options The options parameters.
81
+ */
82
+ _listNext(nextLink, options) {
83
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
84
+ }
85
+ }
86
+ // Operation Specifications
87
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
88
+ const listOperationSpec = {
89
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkFunction/azureTrafficCollectors",
90
+ httpMethod: "GET",
91
+ responses: {
92
+ 200: {
93
+ bodyMapper: Mappers.AzureTrafficCollectorListResult
94
+ },
95
+ default: {
96
+ bodyMapper: Mappers.CloudError
97
+ }
98
+ },
99
+ queryParameters: [Parameters.apiVersion],
100
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
101
+ headerParameters: [Parameters.accept],
102
+ serializer
103
+ };
104
+ const listNextOperationSpec = {
105
+ path: "{nextLink}",
106
+ httpMethod: "GET",
107
+ responses: {
108
+ 200: {
109
+ bodyMapper: Mappers.AzureTrafficCollectorListResult
110
+ },
111
+ default: {
112
+ bodyMapper: Mappers.CloudError
113
+ }
114
+ },
115
+ queryParameters: [Parameters.apiVersion],
116
+ urlParameters: [
117
+ Parameters.$host,
118
+ Parameters.subscriptionId,
119
+ Parameters.nextLink
120
+ ],
121
+ headerParameters: [Parameters.accept],
122
+ serializer
123
+ };
124
+ //# sourceMappingURL=azureTrafficCollectorsBySubscription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureTrafficCollectorsBySubscription.js","sourceRoot":"","sources":["../../../src/operations/azureTrafficCollectorsBySubscription.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAUnD,4CAA4C;AAC5C,wEAAwE;AACxE,MAAM,OAAO,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,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACtC,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAgE;;YAEhE,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,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AE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;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;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,79 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { CollectorPolicies } from "../operationsInterfaces";
3
+ import { AzureTrafficCollectorClient } from "../azureTrafficCollectorClient";
4
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
5
+ import { CollectorPolicy, CollectorPoliciesListOptionalParams, CollectorPoliciesGetOptionalParams, CollectorPoliciesGetResponse, CollectorPoliciesCreateOrUpdateOptionalParams, CollectorPoliciesCreateOrUpdateResponse, CollectorPoliciesDeleteOptionalParams } from "../models";
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 options The options parameters.
44
+ */
45
+ beginCreateOrUpdate(resourceGroupName: string, azureTrafficCollectorName: string, collectorPolicyName: string, options?: CollectorPoliciesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<CollectorPoliciesCreateOrUpdateResponse>, CollectorPoliciesCreateOrUpdateResponse>>;
46
+ /**
47
+ * Creates or updates a Collector Policy resource
48
+ * @param resourceGroupName The name of the resource group.
49
+ * @param azureTrafficCollectorName Azure Traffic Collector name
50
+ * @param collectorPolicyName Collector Policy Name
51
+ * @param options The options parameters.
52
+ */
53
+ beginCreateOrUpdateAndWait(resourceGroupName: string, azureTrafficCollectorName: string, collectorPolicyName: string, options?: CollectorPoliciesCreateOrUpdateOptionalParams): Promise<CollectorPoliciesCreateOrUpdateResponse>;
54
+ /**
55
+ * Deletes a specified Collector Policy resource.
56
+ * @param resourceGroupName The name of the resource group.
57
+ * @param azureTrafficCollectorName Azure Traffic Collector name
58
+ * @param collectorPolicyName Collector Policy Name
59
+ * @param options The options parameters.
60
+ */
61
+ beginDelete(resourceGroupName: string, azureTrafficCollectorName: string, collectorPolicyName: string, options?: CollectorPoliciesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
62
+ /**
63
+ * Deletes a specified Collector Policy resource.
64
+ * @param resourceGroupName The name of the resource group.
65
+ * @param azureTrafficCollectorName Azure Traffic Collector name
66
+ * @param collectorPolicyName Collector Policy Name
67
+ * @param options The options parameters.
68
+ */
69
+ beginDeleteAndWait(resourceGroupName: string, azureTrafficCollectorName: string, collectorPolicyName: string, options?: CollectorPoliciesDeleteOptionalParams): Promise<void>;
70
+ /**
71
+ * ListNext
72
+ * @param resourceGroupName The name of the resource group.
73
+ * @param azureTrafficCollectorName Azure Traffic Collector name
74
+ * @param nextLink The nextLink from the previous successful call to the List method.
75
+ * @param options The options parameters.
76
+ */
77
+ private _listNext;
78
+ }
79
+ //# 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,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAI5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAC7E,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,EAEtC,MAAM,WAAW,CAAC;AAGnB,qDAAqD;AACrD,qBAAa,qBAAsB,YAAW,iBAAiB;IAC7D,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,EAAE,qCAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC;IAUhB;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;CAWlB"}
@@ -0,0 +1,356 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing CollectorPolicies operations. */
16
+ export class CollectorPoliciesImpl {
17
+ /**
18
+ * Initialize a new instance of the class CollectorPolicies class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * Return list of Collector policies in a Azure Traffic Collector
26
+ * @param resourceGroupName The name of the resource group.
27
+ * @param azureTrafficCollectorName Azure Traffic Collector name
28
+ * @param options The options parameters.
29
+ */
30
+ list(resourceGroupName, azureTrafficCollectorName, options) {
31
+ const iter = this.listPagingAll(resourceGroupName, azureTrafficCollectorName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: () => {
40
+ return this.listPagingPage(resourceGroupName, azureTrafficCollectorName, options);
41
+ }
42
+ };
43
+ }
44
+ listPagingPage(resourceGroupName, azureTrafficCollectorName, options) {
45
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
+ let result = yield __await(this._list(resourceGroupName, azureTrafficCollectorName, options));
47
+ yield yield __await(result.value || []);
48
+ let continuationToken = result.nextLink;
49
+ while (continuationToken) {
50
+ result = yield __await(this._listNext(resourceGroupName, azureTrafficCollectorName, continuationToken, options));
51
+ continuationToken = result.nextLink;
52
+ yield yield __await(result.value || []);
53
+ }
54
+ });
55
+ }
56
+ listPagingAll(resourceGroupName, azureTrafficCollectorName, options) {
57
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
58
+ var e_1, _a;
59
+ try {
60
+ for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, azureTrafficCollectorName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
61
+ const page = _c.value;
62
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
63
+ }
64
+ }
65
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
66
+ finally {
67
+ try {
68
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
69
+ }
70
+ finally { if (e_1) throw e_1.error; }
71
+ }
72
+ });
73
+ }
74
+ /**
75
+ * Return list of Collector policies in a Azure Traffic Collector
76
+ * @param resourceGroupName The name of the resource group.
77
+ * @param azureTrafficCollectorName Azure Traffic Collector name
78
+ * @param options The options parameters.
79
+ */
80
+ _list(resourceGroupName, azureTrafficCollectorName, options) {
81
+ return this.client.sendOperationRequest({ resourceGroupName, azureTrafficCollectorName, options }, listOperationSpec);
82
+ }
83
+ /**
84
+ * Gets the collector policy in a specified Traffic Collector
85
+ * @param resourceGroupName The name of the resource group.
86
+ * @param azureTrafficCollectorName Azure Traffic Collector name
87
+ * @param collectorPolicyName Collector Policy Name
88
+ * @param options The options parameters.
89
+ */
90
+ get(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options) {
91
+ return this.client.sendOperationRequest({
92
+ resourceGroupName,
93
+ azureTrafficCollectorName,
94
+ collectorPolicyName,
95
+ options
96
+ }, getOperationSpec);
97
+ }
98
+ /**
99
+ * Creates or updates a Collector Policy resource
100
+ * @param resourceGroupName The name of the resource group.
101
+ * @param azureTrafficCollectorName Azure Traffic Collector name
102
+ * @param collectorPolicyName Collector Policy Name
103
+ * @param options The options parameters.
104
+ */
105
+ beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options) {
106
+ return __awaiter(this, void 0, void 0, function* () {
107
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
108
+ return this.client.sendOperationRequest(args, spec);
109
+ });
110
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
111
+ var _a;
112
+ let currentRawResponse = undefined;
113
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
114
+ const callback = (rawResponse, flatResponse) => {
115
+ currentRawResponse = rawResponse;
116
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
117
+ };
118
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
119
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
120
+ return {
121
+ flatResponse,
122
+ rawResponse: {
123
+ statusCode: currentRawResponse.status,
124
+ body: currentRawResponse.parsedBody,
125
+ headers: currentRawResponse.headers.toJSON()
126
+ }
127
+ };
128
+ });
129
+ const lro = new LroImpl(sendOperation, {
130
+ resourceGroupName,
131
+ azureTrafficCollectorName,
132
+ collectorPolicyName,
133
+ options
134
+ }, createOrUpdateOperationSpec);
135
+ const poller = new LroEngine(lro, {
136
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
137
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
138
+ lroResourceLocationConfig: "azure-async-operation"
139
+ });
140
+ yield poller.poll();
141
+ return poller;
142
+ });
143
+ }
144
+ /**
145
+ * Creates or updates a Collector Policy resource
146
+ * @param resourceGroupName The name of the resource group.
147
+ * @param azureTrafficCollectorName Azure Traffic Collector name
148
+ * @param collectorPolicyName Collector Policy Name
149
+ * @param options The options parameters.
150
+ */
151
+ beginCreateOrUpdateAndWait(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options) {
152
+ return __awaiter(this, void 0, void 0, function* () {
153
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options);
154
+ return poller.pollUntilDone();
155
+ });
156
+ }
157
+ /**
158
+ * Deletes a specified Collector Policy resource.
159
+ * @param resourceGroupName The name of the resource group.
160
+ * @param azureTrafficCollectorName Azure Traffic Collector name
161
+ * @param collectorPolicyName Collector Policy Name
162
+ * @param options The options parameters.
163
+ */
164
+ beginDelete(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options) {
165
+ return __awaiter(this, void 0, void 0, function* () {
166
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
167
+ return this.client.sendOperationRequest(args, spec);
168
+ });
169
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
170
+ var _a;
171
+ let currentRawResponse = undefined;
172
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
173
+ const callback = (rawResponse, flatResponse) => {
174
+ currentRawResponse = rawResponse;
175
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
176
+ };
177
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
178
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
179
+ return {
180
+ flatResponse,
181
+ rawResponse: {
182
+ statusCode: currentRawResponse.status,
183
+ body: currentRawResponse.parsedBody,
184
+ headers: currentRawResponse.headers.toJSON()
185
+ }
186
+ };
187
+ });
188
+ const lro = new LroImpl(sendOperation, {
189
+ resourceGroupName,
190
+ azureTrafficCollectorName,
191
+ collectorPolicyName,
192
+ options
193
+ }, deleteOperationSpec);
194
+ const poller = new LroEngine(lro, {
195
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
196
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
197
+ lroResourceLocationConfig: "location"
198
+ });
199
+ yield poller.poll();
200
+ return poller;
201
+ });
202
+ }
203
+ /**
204
+ * Deletes a specified Collector Policy resource.
205
+ * @param resourceGroupName The name of the resource group.
206
+ * @param azureTrafficCollectorName Azure Traffic Collector name
207
+ * @param collectorPolicyName Collector Policy Name
208
+ * @param options The options parameters.
209
+ */
210
+ beginDeleteAndWait(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options) {
211
+ return __awaiter(this, void 0, void 0, function* () {
212
+ const poller = yield this.beginDelete(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options);
213
+ return poller.pollUntilDone();
214
+ });
215
+ }
216
+ /**
217
+ * ListNext
218
+ * @param resourceGroupName The name of the resource group.
219
+ * @param azureTrafficCollectorName Azure Traffic Collector name
220
+ * @param nextLink The nextLink from the previous successful call to the List method.
221
+ * @param options The options parameters.
222
+ */
223
+ _listNext(resourceGroupName, azureTrafficCollectorName, nextLink, options) {
224
+ return this.client.sendOperationRequest({ resourceGroupName, azureTrafficCollectorName, nextLink, options }, listNextOperationSpec);
225
+ }
226
+ }
227
+ // Operation Specifications
228
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
229
+ const listOperationSpec = {
230
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies",
231
+ httpMethod: "GET",
232
+ responses: {
233
+ 200: {
234
+ bodyMapper: Mappers.CollectorPolicyListResult
235
+ },
236
+ default: {
237
+ bodyMapper: Mappers.CloudError
238
+ }
239
+ },
240
+ queryParameters: [Parameters.apiVersion],
241
+ urlParameters: [
242
+ Parameters.$host,
243
+ Parameters.subscriptionId,
244
+ Parameters.resourceGroupName,
245
+ Parameters.azureTrafficCollectorName
246
+ ],
247
+ headerParameters: [Parameters.accept],
248
+ serializer
249
+ };
250
+ const getOperationSpec = {
251
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}",
252
+ httpMethod: "GET",
253
+ responses: {
254
+ 200: {
255
+ bodyMapper: Mappers.CollectorPolicy
256
+ },
257
+ default: {
258
+ bodyMapper: Mappers.CloudError
259
+ }
260
+ },
261
+ queryParameters: [Parameters.apiVersion],
262
+ urlParameters: [
263
+ Parameters.$host,
264
+ Parameters.subscriptionId,
265
+ Parameters.resourceGroupName,
266
+ Parameters.azureTrafficCollectorName,
267
+ Parameters.collectorPolicyName
268
+ ],
269
+ headerParameters: [Parameters.accept],
270
+ serializer
271
+ };
272
+ const createOrUpdateOperationSpec = {
273
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}",
274
+ httpMethod: "PUT",
275
+ responses: {
276
+ 200: {
277
+ bodyMapper: Mappers.CollectorPolicy
278
+ },
279
+ 201: {
280
+ bodyMapper: Mappers.CollectorPolicy
281
+ },
282
+ 202: {
283
+ bodyMapper: Mappers.CollectorPolicy
284
+ },
285
+ 204: {
286
+ bodyMapper: Mappers.CollectorPolicy
287
+ },
288
+ default: {
289
+ bodyMapper: Mappers.CloudError
290
+ }
291
+ },
292
+ requestBody: {
293
+ parameterPath: {
294
+ ingestionPolicy: ["options", "ingestionPolicy"],
295
+ emissionPolicies: ["options", "emissionPolicies"]
296
+ },
297
+ mapper: Object.assign(Object.assign({}, Mappers.CollectorPolicy), { required: true })
298
+ },
299
+ queryParameters: [Parameters.apiVersion],
300
+ urlParameters: [
301
+ Parameters.$host,
302
+ Parameters.subscriptionId,
303
+ Parameters.resourceGroupName,
304
+ Parameters.azureTrafficCollectorName,
305
+ Parameters.collectorPolicyName
306
+ ],
307
+ headerParameters: [Parameters.accept, Parameters.contentType],
308
+ mediaType: "json",
309
+ serializer
310
+ };
311
+ const deleteOperationSpec = {
312
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}",
313
+ httpMethod: "DELETE",
314
+ responses: {
315
+ 200: {},
316
+ 201: {},
317
+ 202: {},
318
+ 204: {},
319
+ default: {
320
+ bodyMapper: Mappers.CloudError
321
+ }
322
+ },
323
+ queryParameters: [Parameters.apiVersion],
324
+ urlParameters: [
325
+ Parameters.$host,
326
+ Parameters.subscriptionId,
327
+ Parameters.resourceGroupName,
328
+ Parameters.azureTrafficCollectorName,
329
+ Parameters.collectorPolicyName
330
+ ],
331
+ headerParameters: [Parameters.accept],
332
+ serializer
333
+ };
334
+ const listNextOperationSpec = {
335
+ path: "{nextLink}",
336
+ httpMethod: "GET",
337
+ responses: {
338
+ 200: {
339
+ bodyMapper: Mappers.CollectorPolicyListResult
340
+ },
341
+ default: {
342
+ bodyMapper: Mappers.CloudError
343
+ }
344
+ },
345
+ queryParameters: [Parameters.apiVersion],
346
+ urlParameters: [
347
+ Parameters.$host,
348
+ Parameters.subscriptionId,
349
+ Parameters.nextLink,
350
+ Parameters.resourceGroupName,
351
+ Parameters.azureTrafficCollectorName
352
+ ],
353
+ headerParameters: [Parameters.accept],
354
+ serializer
355
+ };
356
+ //# sourceMappingURL=collectorPolicies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collectorPolicies.js","sourceRoot":"","sources":["../../../src/operations/collectorPolicies.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAcrC,4CAA4C;AAC5C,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IAGhC;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAA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CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,mMAAmM;IACrM,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,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,iBAAiB;QAC5B,UAAU,CAAC,yBAAyB;QACpC,UAAU,CAAC,mBAAmB;KAC/B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;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;QAC5B,UAAU,CAAC,yBAAyB;KACrC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from "./networkFunction";
2
+ export * from "./azureTrafficCollectorsBySubscription";
3
+ export * from "./azureTrafficCollectorsByResourceGroup";
4
+ export * from "./azureTrafficCollectors";
5
+ export * from "./collectorPolicies";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC;AAClC,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./networkFunction";
9
+ export * from "./azureTrafficCollectorsBySubscription";
10
+ export * from "./azureTrafficCollectorsByResourceGroup";
11
+ export * from "./azureTrafficCollectors";
12
+ export * from "./collectorPolicies";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC;AAClC,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { NetworkFunction } from "../operationsInterfaces";
3
+ import { AzureTrafficCollectorClient } from "../azureTrafficCollectorClient";
4
+ import { Operation, NetworkFunctionListOperationsOptionalParams } from "../models";
5
+ /** Class containing NetworkFunction operations. */
6
+ export declare class NetworkFunctionImpl implements NetworkFunction {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class NetworkFunction class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: AzureTrafficCollectorClient);
13
+ /**
14
+ * Lists all of the available NetworkFunction Rest API operations.
15
+ * @param options The options parameters.
16
+ */
17
+ listOperations(options?: NetworkFunctionListOperationsOptionalParams): PagedAsyncIterableIterator<Operation>;
18
+ private listOperationsPagingPage;
19
+ private listOperationsPagingAll;
20
+ /**
21
+ * Lists all of the available NetworkFunction Rest API operations.
22
+ * @param options The options parameters.
23
+ */
24
+ private _listOperations;
25
+ }
26
+ //# sourceMappingURL=networkFunction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networkFunction.d.ts","sourceRoot":"","sources":["../../../src/operations/networkFunction.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EACL,SAAS,EACT,2CAA2C,EAE5C,MAAM,WAAW,CAAC;AAGnB,mDAAmD;AACnD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA8B;IAErD;;;OAGG;gBACS,MAAM,EAAE,2BAA2B;IAI/C;;;OAGG;IACI,cAAc,CACnB,OAAO,CAAC,EAAE,2CAA2C,GACpD,0BAA0B,CAAC,SAAS,CAAC;YAezB,wBAAwB;YAOxB,uBAAuB;IAQtC;;;OAGG;IACH,OAAO,CAAC,eAAe;CAQxB"}