@azure/arm-networkfunction 2.0.2-alpha.20260302.1 → 2.0.2-alpha.20260304.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/commonjs/azureTrafficCollectorClient.js +135 -115
  2. package/dist/commonjs/azureTrafficCollectorClient.js.map +7 -1
  3. package/dist/commonjs/index.js +35 -19
  4. package/dist/commonjs/index.js.map +7 -1
  5. package/dist/commonjs/lroImpl.js +44 -35
  6. package/dist/commonjs/lroImpl.js.map +7 -1
  7. package/dist/commonjs/models/index.js +74 -69
  8. package/dist/commonjs/models/index.js.map +7 -1
  9. package/dist/commonjs/models/mappers.js +524 -473
  10. package/dist/commonjs/models/mappers.js.map +7 -1
  11. package/dist/commonjs/models/parameters.js +179 -132
  12. package/dist/commonjs/models/parameters.js.map +7 -1
  13. package/dist/commonjs/operations/azureTrafficCollectors.js +297 -249
  14. package/dist/commonjs/operations/azureTrafficCollectors.js.map +7 -1
  15. package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.js +156 -122
  16. package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.js.map +7 -1
  17. package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.js +141 -114
  18. package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.js.map +7 -1
  19. package/dist/commonjs/operations/collectorPolicies.js +458 -381
  20. package/dist/commonjs/operations/collectorPolicies.js.map +7 -1
  21. package/dist/commonjs/operations/index.js +29 -16
  22. package/dist/commonjs/operations/index.js.map +7 -1
  23. package/dist/commonjs/operations/networkFunction.js +104 -77
  24. package/dist/commonjs/operations/networkFunction.js.map +7 -1
  25. package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.js +15 -10
  26. package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.js.map +7 -1
  27. package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +15 -10
  28. package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +7 -1
  29. package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.js +15 -10
  30. package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +7 -1
  31. package/dist/commonjs/operationsInterfaces/collectorPolicies.js +15 -10
  32. package/dist/commonjs/operationsInterfaces/collectorPolicies.js.map +7 -1
  33. package/dist/commonjs/operationsInterfaces/index.js +29 -16
  34. package/dist/commonjs/operationsInterfaces/index.js.map +7 -1
  35. package/dist/commonjs/operationsInterfaces/networkFunction.js +15 -10
  36. package/dist/commonjs/operationsInterfaces/networkFunction.js.map +7 -1
  37. package/dist/commonjs/pagingHelper.js +39 -30
  38. package/dist/commonjs/pagingHelper.js.map +7 -1
  39. package/dist/esm/azureTrafficCollectorClient.js +107 -109
  40. package/dist/esm/azureTrafficCollectorClient.js.map +7 -1
  41. package/dist/esm/index.js +6 -11
  42. package/dist/esm/index.js.map +7 -1
  43. package/dist/esm/lroImpl.js +22 -32
  44. package/dist/esm/lroImpl.js.map +7 -1
  45. package/dist/esm/models/index.js +45 -66
  46. package/dist/esm/models/index.js.map +7 -1
  47. package/dist/esm/models/mappers.js +483 -470
  48. package/dist/esm/models/mappers.js.map +7 -1
  49. package/dist/esm/models/parameters.js +143 -128
  50. package/dist/esm/models/parameters.js.map +7 -1
  51. package/dist/esm/operations/azureTrafficCollectors.js +260 -240
  52. package/dist/esm/operations/azureTrafficCollectors.js.map +7 -1
  53. package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.js +120 -114
  54. package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.js.map +7 -1
  55. package/dist/esm/operations/azureTrafficCollectorsBySubscription.js +105 -106
  56. package/dist/esm/operations/azureTrafficCollectorsBySubscription.js.map +7 -1
  57. package/dist/esm/operations/collectorPolicies.js +420 -371
  58. package/dist/esm/operations/collectorPolicies.js.map +7 -1
  59. package/dist/esm/operations/index.js +0 -8
  60. package/dist/esm/operations/index.js.map +7 -1
  61. package/dist/esm/operations/networkFunction.js +69 -70
  62. package/dist/esm/operations/networkFunction.js.map +7 -1
  63. package/dist/esm/operationsInterfaces/azureTrafficCollectors.js +0 -9
  64. package/dist/esm/operationsInterfaces/azureTrafficCollectors.js.map +7 -1
  65. package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +0 -9
  66. package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +7 -1
  67. package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.js +0 -9
  68. package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +7 -1
  69. package/dist/esm/operationsInterfaces/collectorPolicies.js +0 -9
  70. package/dist/esm/operationsInterfaces/collectorPolicies.js.map +7 -1
  71. package/dist/esm/operationsInterfaces/index.js +0 -8
  72. package/dist/esm/operationsInterfaces/index.js.map +7 -1
  73. package/dist/esm/operationsInterfaces/networkFunction.js +0 -9
  74. package/dist/esm/operationsInterfaces/networkFunction.js.map +7 -1
  75. package/dist/esm/pagingHelper.js +17 -28
  76. package/dist/esm/pagingHelper.js.map +7 -1
  77. package/package.json +4 -21
@@ -1,126 +1,153 @@
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. */
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var azureTrafficCollectorsBySubscription_exports = {};
29
+ __export(azureTrafficCollectorsBySubscription_exports, {
30
+ AzureTrafficCollectorsBySubscriptionImpl: () => AzureTrafficCollectorsBySubscriptionImpl
31
+ });
32
+ module.exports = __toCommonJS(azureTrafficCollectorsBySubscription_exports);
33
+ var import_pagingHelper = require("../pagingHelper.js");
34
+ var coreClient = __toESM(require("@azure/core-client"));
35
+ var Mappers = __toESM(require("../models/mappers.js"));
36
+ var Parameters = __toESM(require("../models/parameters.js"));
18
37
  class AzureTrafficCollectorsBySubscriptionImpl {
19
- client;
20
- /**
21
- * Initialize a new instance of the class AzureTrafficCollectorsBySubscription class.
22
- * @param client Reference to the service client
23
- */
24
- constructor(client) {
25
- this.client = client;
26
- }
27
- /**
28
- * Return list of Azure Traffic Collectors in a subscription
29
- * @param options The options parameters.
30
- */
31
- list(options) {
32
- const iter = this.listPagingAll(options);
33
- return {
34
- next() {
35
- return iter.next();
36
- },
37
- [Symbol.asyncIterator]() {
38
- return this;
39
- },
40
- byPage: (settings) => {
41
- if (settings?.maxPageSize) {
42
- throw new Error("maxPageSize is not supported by this operation.");
43
- }
44
- return this.listPagingPage(options, settings);
45
- }
46
- };
47
- }
48
- async *listPagingPage(options, settings) {
49
- let result;
50
- let continuationToken = settings?.continuationToken;
51
- if (!continuationToken) {
52
- result = await this._list(options);
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
- yield page;
57
- }
58
- while (continuationToken) {
59
- result = await this._listNext(continuationToken, options);
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
- yield page;
38
+ client;
39
+ /**
40
+ * Initialize a new instance of the class AzureTrafficCollectorsBySubscription class.
41
+ * @param client Reference to the service client
42
+ */
43
+ constructor(client) {
44
+ this.client = client;
45
+ }
46
+ /**
47
+ * Return list of Azure Traffic Collectors in a subscription
48
+ * @param options The options parameters.
49
+ */
50
+ list(options) {
51
+ const iter = this.listPagingAll(options);
52
+ return {
53
+ next() {
54
+ return iter.next();
55
+ },
56
+ [Symbol.asyncIterator]() {
57
+ return this;
58
+ },
59
+ byPage: (settings) => {
60
+ if (settings?.maxPageSize) {
61
+ throw new Error("maxPageSize is not supported by this operation.");
64
62
  }
63
+ return this.listPagingPage(options, settings);
64
+ }
65
+ };
66
+ }
67
+ async *listPagingPage(options, settings) {
68
+ let result;
69
+ let continuationToken = settings?.continuationToken;
70
+ if (!continuationToken) {
71
+ result = await this._list(options);
72
+ let page = result.value || [];
73
+ continuationToken = result.nextLink;
74
+ (0, import_pagingHelper.setContinuationToken)(page, continuationToken);
75
+ yield page;
65
76
  }
66
- async *listPagingAll(options) {
67
- for await (const page of this.listPagingPage(options)) {
68
- yield* page;
69
- }
77
+ while (continuationToken) {
78
+ result = await this._listNext(continuationToken, options);
79
+ continuationToken = result.nextLink;
80
+ let page = result.value || [];
81
+ (0, import_pagingHelper.setContinuationToken)(page, continuationToken);
82
+ yield page;
70
83
  }
71
- /**
72
- * Return list of Azure Traffic Collectors in a subscription
73
- * @param options The options parameters.
74
- */
75
- _list(options) {
76
- return this.client.sendOperationRequest({ options }, listOperationSpec);
77
- }
78
- /**
79
- * ListNext
80
- * @param nextLink The nextLink from the previous successful call to the List method.
81
- * @param options The options parameters.
82
- */
83
- _listNext(nextLink, options) {
84
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
84
+ }
85
+ async *listPagingAll(options) {
86
+ for await (const page of this.listPagingPage(options)) {
87
+ yield* page;
85
88
  }
89
+ }
90
+ /**
91
+ * Return list of Azure Traffic Collectors in a subscription
92
+ * @param options The options parameters.
93
+ */
94
+ _list(options) {
95
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
96
+ }
97
+ /**
98
+ * ListNext
99
+ * @param nextLink The nextLink from the previous successful call to the List method.
100
+ * @param options The options parameters.
101
+ */
102
+ _listNext(nextLink, options) {
103
+ return this.client.sendOperationRequest(
104
+ { nextLink, options },
105
+ listNextOperationSpec
106
+ );
107
+ }
86
108
  }
87
- exports.AzureTrafficCollectorsBySubscriptionImpl = AzureTrafficCollectorsBySubscriptionImpl;
88
- // Operation Specifications
89
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
109
+ const serializer = coreClient.createSerializer(
110
+ Mappers,
111
+ /* isXml */
112
+ false
113
+ );
90
114
  const listOperationSpec = {
91
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkFunction/azureTrafficCollectors",
92
- httpMethod: "GET",
93
- responses: {
94
- 200: {
95
- bodyMapper: Mappers.AzureTrafficCollectorListResult
96
- },
97
- default: {
98
- bodyMapper: Mappers.CloudError
99
- }
115
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkFunction/azureTrafficCollectors",
116
+ httpMethod: "GET",
117
+ responses: {
118
+ 200: {
119
+ bodyMapper: Mappers.AzureTrafficCollectorListResult
100
120
  },
101
- queryParameters: [Parameters.apiVersion],
102
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
103
- headerParameters: [Parameters.accept],
104
- serializer
121
+ default: {
122
+ bodyMapper: Mappers.CloudError
123
+ }
124
+ },
125
+ queryParameters: [Parameters.apiVersion],
126
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
127
+ headerParameters: [Parameters.accept],
128
+ serializer
105
129
  };
106
130
  const listNextOperationSpec = {
107
- path: "{nextLink}",
108
- httpMethod: "GET",
109
- responses: {
110
- 200: {
111
- bodyMapper: Mappers.AzureTrafficCollectorListResult
112
- },
113
- default: {
114
- bodyMapper: Mappers.CloudError
115
- }
131
+ path: "{nextLink}",
132
+ httpMethod: "GET",
133
+ responses: {
134
+ 200: {
135
+ bodyMapper: Mappers.AzureTrafficCollectorListResult
116
136
  },
117
- queryParameters: [Parameters.apiVersion],
118
- urlParameters: [
119
- Parameters.$host,
120
- Parameters.subscriptionId,
121
- Parameters.nextLink
122
- ],
123
- headerParameters: [Parameters.accept],
124
- serializer
137
+ default: {
138
+ bodyMapper: Mappers.CloudError
139
+ }
140
+ },
141
+ queryParameters: [Parameters.apiVersion],
142
+ urlParameters: [
143
+ Parameters.$host,
144
+ Parameters.subscriptionId,
145
+ Parameters.nextLink
146
+ ],
147
+ headerParameters: [Parameters.accept],
148
+ serializer
125
149
  };
126
- //# sourceMappingURL=azureTrafficCollectorsBySubscription.js.map
150
+ // Annotate the CommonJS export names for ESM import in node:
151
+ 0 && (module.exports = {
152
+ AzureTrafficCollectorsBySubscriptionImpl
153
+ });
@@ -1 +1,7 @@
1
- {"version":3,"file":"azureTrafficCollectorsBySubscription.js","sourceRoot":"","sources":["../../../src/operations/azureTrafficCollectorsBySubscription.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;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AC,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","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"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/networkfunction/arm-networkfunction/src/operations/azureTrafficCollectorsBySubscription.ts"],
4
+ "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"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,0BAAqC;AAErC,iBAA4B;AAC5B,cAAyB;AACzB,iBAA4B;AAYrB,MAAM,yCACqC;AAAA,EAC/B;AAAA;AAAA;AAAA;AAAA;AAAA,EAMjB,YAAY,QAAqC;AAC/C,SAAK,SAAS;AAAA,EAChB;AAAA;AAAA;AAAA;A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