@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,263 +1,311 @@
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.AzureTrafficCollectorsImpl = void 0;
11
- const tslib_1 = require("tslib");
12
- const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
- const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
- const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
- const core_lro_1 = require("@azure/core-lro");
16
- const lroImpl_js_1 = require("../lroImpl.js");
17
- /** Class containing AzureTrafficCollectors 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 azureTrafficCollectors_exports = {};
29
+ __export(azureTrafficCollectors_exports, {
30
+ AzureTrafficCollectorsImpl: () => AzureTrafficCollectorsImpl
31
+ });
32
+ module.exports = __toCommonJS(azureTrafficCollectors_exports);
33
+ var coreClient = __toESM(require("@azure/core-client"));
34
+ var Mappers = __toESM(require("../models/mappers.js"));
35
+ var Parameters = __toESM(require("../models/parameters.js"));
36
+ var import_core_lro = require("@azure/core-lro");
37
+ var import_lroImpl = require("../lroImpl.js");
18
38
  class AzureTrafficCollectorsImpl {
19
- client;
20
- /**
21
- * Initialize a new instance of the class AzureTrafficCollectors class.
22
- * @param client Reference to the service client
23
- */
24
- constructor(client) {
25
- this.client = client;
26
- }
27
- /**
28
- * Gets the specified Azure Traffic Collector in a specified resource group
29
- * @param resourceGroupName The name of the resource group.
30
- * @param azureTrafficCollectorName Azure Traffic Collector name
31
- * @param options The options parameters.
32
- */
33
- get(resourceGroupName, azureTrafficCollectorName, options) {
34
- return this.client.sendOperationRequest({ resourceGroupName, azureTrafficCollectorName, options }, getOperationSpec);
35
- }
36
- /**
37
- * Creates or updates a Azure Traffic Collector resource
38
- * @param resourceGroupName The name of the resource group.
39
- * @param azureTrafficCollectorName Azure Traffic Collector name
40
- * @param location Resource location.
41
- * @param options The options parameters.
42
- */
43
- async beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, location, options) {
44
- const directSendOperation = async (args, spec) => {
45
- return this.client.sendOperationRequest(args, spec);
46
- };
47
- const sendOperation = async (args, spec) => {
48
- let currentRawResponse = undefined;
49
- const providedCallback = args.options?.onResponse;
50
- const callback = (rawResponse, flatResponse) => {
51
- currentRawResponse = rawResponse;
52
- providedCallback?.(rawResponse, flatResponse);
53
- };
54
- const updatedArgs = {
55
- ...args,
56
- options: {
57
- ...args.options,
58
- onResponse: callback
59
- }
60
- };
61
- const flatResponse = await directSendOperation(updatedArgs, spec);
62
- return {
63
- flatResponse,
64
- rawResponse: {
65
- statusCode: currentRawResponse.status,
66
- body: currentRawResponse.parsedBody,
67
- headers: currentRawResponse.headers.toJSON()
68
- }
69
- };
70
- };
71
- const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, azureTrafficCollectorName, location, options }, createOrUpdateOperationSpec);
72
- const poller = new core_lro_1.LroEngine(lro, {
73
- resumeFrom: options?.resumeFrom,
74
- intervalInMs: options?.updateIntervalInMs,
75
- lroResourceLocationConfig: "azure-async-operation"
76
- });
77
- await poller.poll();
78
- return poller;
79
- }
80
- /**
81
- * Creates or updates a Azure Traffic Collector resource
82
- * @param resourceGroupName The name of the resource group.
83
- * @param azureTrafficCollectorName Azure Traffic Collector name
84
- * @param location Resource location.
85
- * @param options The options parameters.
86
- */
87
- async beginCreateOrUpdateAndWait(resourceGroupName, azureTrafficCollectorName, location, options) {
88
- const poller = await this.beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, location, options);
89
- return poller.pollUntilDone();
90
- }
91
- /**
92
- * Deletes a specified Azure Traffic Collector resource.
93
- * @param resourceGroupName The name of the resource group.
94
- * @param azureTrafficCollectorName Azure Traffic Collector name
95
- * @param options The options parameters.
96
- */
97
- async beginDelete(resourceGroupName, azureTrafficCollectorName, options) {
98
- const directSendOperation = async (args, spec) => {
99
- return this.client.sendOperationRequest(args, spec);
100
- };
101
- const sendOperation = async (args, spec) => {
102
- let currentRawResponse = undefined;
103
- const providedCallback = args.options?.onResponse;
104
- const callback = (rawResponse, flatResponse) => {
105
- currentRawResponse = rawResponse;
106
- providedCallback?.(rawResponse, flatResponse);
107
- };
108
- const updatedArgs = {
109
- ...args,
110
- options: {
111
- ...args.options,
112
- onResponse: callback
113
- }
114
- };
115
- const flatResponse = await directSendOperation(updatedArgs, spec);
116
- return {
117
- flatResponse,
118
- rawResponse: {
119
- statusCode: currentRawResponse.status,
120
- body: currentRawResponse.parsedBody,
121
- headers: currentRawResponse.headers.toJSON()
122
- }
123
- };
124
- };
125
- const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, azureTrafficCollectorName, options }, deleteOperationSpec);
126
- const poller = new core_lro_1.LroEngine(lro, {
127
- resumeFrom: options?.resumeFrom,
128
- intervalInMs: options?.updateIntervalInMs,
129
- lroResourceLocationConfig: "location"
130
- });
131
- await poller.poll();
132
- return poller;
133
- }
134
- /**
135
- * Deletes a specified Azure Traffic Collector resource.
136
- * @param resourceGroupName The name of the resource group.
137
- * @param azureTrafficCollectorName Azure Traffic Collector name
138
- * @param options The options parameters.
139
- */
140
- async beginDeleteAndWait(resourceGroupName, azureTrafficCollectorName, options) {
141
- const poller = await this.beginDelete(resourceGroupName, azureTrafficCollectorName, options);
142
- return poller.pollUntilDone();
143
- }
144
- /**
145
- * Updates the specified Azure Traffic Collector tags.
146
- * @param resourceGroupName The name of the resource group.
147
- * @param azureTrafficCollectorName Azure Traffic Collector name
148
- * @param parameters Parameters supplied to update Azure Traffic Collector tags.
149
- * @param options The options parameters.
150
- */
151
- updateTags(resourceGroupName, azureTrafficCollectorName, parameters, options) {
152
- return this.client.sendOperationRequest({ resourceGroupName, azureTrafficCollectorName, parameters, options }, updateTagsOperationSpec);
153
- }
39
+ client;
40
+ /**
41
+ * Initialize a new instance of the class AzureTrafficCollectors class.
42
+ * @param client Reference to the service client
43
+ */
44
+ constructor(client) {
45
+ this.client = client;
46
+ }
47
+ /**
48
+ * Gets the specified Azure Traffic Collector in a specified resource group
49
+ * @param resourceGroupName The name of the resource group.
50
+ * @param azureTrafficCollectorName Azure Traffic Collector name
51
+ * @param options The options parameters.
52
+ */
53
+ get(resourceGroupName, azureTrafficCollectorName, options) {
54
+ return this.client.sendOperationRequest(
55
+ { resourceGroupName, azureTrafficCollectorName, options },
56
+ getOperationSpec
57
+ );
58
+ }
59
+ /**
60
+ * Creates or updates a Azure Traffic Collector resource
61
+ * @param resourceGroupName The name of the resource group.
62
+ * @param azureTrafficCollectorName Azure Traffic Collector name
63
+ * @param location Resource location.
64
+ * @param options The options parameters.
65
+ */
66
+ async beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, location, options) {
67
+ const directSendOperation = async (args, spec) => {
68
+ return this.client.sendOperationRequest(args, spec);
69
+ };
70
+ const sendOperation = async (args, spec) => {
71
+ let currentRawResponse = void 0;
72
+ const providedCallback = args.options?.onResponse;
73
+ const callback = (rawResponse, flatResponse2) => {
74
+ currentRawResponse = rawResponse;
75
+ providedCallback?.(rawResponse, flatResponse2);
76
+ };
77
+ const updatedArgs = {
78
+ ...args,
79
+ options: {
80
+ ...args.options,
81
+ onResponse: callback
82
+ }
83
+ };
84
+ const flatResponse = await directSendOperation(updatedArgs, spec);
85
+ return {
86
+ flatResponse,
87
+ rawResponse: {
88
+ statusCode: currentRawResponse.status,
89
+ body: currentRawResponse.parsedBody,
90
+ headers: currentRawResponse.headers.toJSON()
91
+ }
92
+ };
93
+ };
94
+ const lro = new import_lroImpl.LroImpl(
95
+ sendOperation,
96
+ { resourceGroupName, azureTrafficCollectorName, location, options },
97
+ createOrUpdateOperationSpec
98
+ );
99
+ const poller = new import_core_lro.LroEngine(lro, {
100
+ resumeFrom: options?.resumeFrom,
101
+ intervalInMs: options?.updateIntervalInMs,
102
+ lroResourceLocationConfig: "azure-async-operation"
103
+ });
104
+ await poller.poll();
105
+ return poller;
106
+ }
107
+ /**
108
+ * Creates or updates a Azure Traffic Collector resource
109
+ * @param resourceGroupName The name of the resource group.
110
+ * @param azureTrafficCollectorName Azure Traffic Collector name
111
+ * @param location Resource location.
112
+ * @param options The options parameters.
113
+ */
114
+ async beginCreateOrUpdateAndWait(resourceGroupName, azureTrafficCollectorName, location, options) {
115
+ const poller = await this.beginCreateOrUpdate(
116
+ resourceGroupName,
117
+ azureTrafficCollectorName,
118
+ location,
119
+ options
120
+ );
121
+ return poller.pollUntilDone();
122
+ }
123
+ /**
124
+ * Deletes a specified Azure Traffic Collector resource.
125
+ * @param resourceGroupName The name of the resource group.
126
+ * @param azureTrafficCollectorName Azure Traffic Collector name
127
+ * @param options The options parameters.
128
+ */
129
+ async beginDelete(resourceGroupName, azureTrafficCollectorName, options) {
130
+ const directSendOperation = async (args, spec) => {
131
+ return this.client.sendOperationRequest(args, spec);
132
+ };
133
+ const sendOperation = async (args, spec) => {
134
+ let currentRawResponse = void 0;
135
+ const providedCallback = args.options?.onResponse;
136
+ const callback = (rawResponse, flatResponse2) => {
137
+ currentRawResponse = rawResponse;
138
+ providedCallback?.(rawResponse, flatResponse2);
139
+ };
140
+ const updatedArgs = {
141
+ ...args,
142
+ options: {
143
+ ...args.options,
144
+ onResponse: callback
145
+ }
146
+ };
147
+ const flatResponse = await directSendOperation(updatedArgs, spec);
148
+ return {
149
+ flatResponse,
150
+ rawResponse: {
151
+ statusCode: currentRawResponse.status,
152
+ body: currentRawResponse.parsedBody,
153
+ headers: currentRawResponse.headers.toJSON()
154
+ }
155
+ };
156
+ };
157
+ const lro = new import_lroImpl.LroImpl(
158
+ sendOperation,
159
+ { resourceGroupName, azureTrafficCollectorName, options },
160
+ deleteOperationSpec
161
+ );
162
+ const poller = new import_core_lro.LroEngine(lro, {
163
+ resumeFrom: options?.resumeFrom,
164
+ intervalInMs: options?.updateIntervalInMs,
165
+ lroResourceLocationConfig: "location"
166
+ });
167
+ await poller.poll();
168
+ return poller;
169
+ }
170
+ /**
171
+ * Deletes a specified Azure Traffic Collector resource.
172
+ * @param resourceGroupName The name of the resource group.
173
+ * @param azureTrafficCollectorName Azure Traffic Collector name
174
+ * @param options The options parameters.
175
+ */
176
+ async beginDeleteAndWait(resourceGroupName, azureTrafficCollectorName, options) {
177
+ const poller = await this.beginDelete(
178
+ resourceGroupName,
179
+ azureTrafficCollectorName,
180
+ options
181
+ );
182
+ return poller.pollUntilDone();
183
+ }
184
+ /**
185
+ * Updates the specified Azure Traffic Collector tags.
186
+ * @param resourceGroupName The name of the resource group.
187
+ * @param azureTrafficCollectorName Azure Traffic Collector name
188
+ * @param parameters Parameters supplied to update Azure Traffic Collector tags.
189
+ * @param options The options parameters.
190
+ */
191
+ updateTags(resourceGroupName, azureTrafficCollectorName, parameters, options) {
192
+ return this.client.sendOperationRequest(
193
+ { resourceGroupName, azureTrafficCollectorName, parameters, options },
194
+ updateTagsOperationSpec
195
+ );
196
+ }
154
197
  }
155
- exports.AzureTrafficCollectorsImpl = AzureTrafficCollectorsImpl;
156
- // Operation Specifications
157
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
198
+ const serializer = coreClient.createSerializer(
199
+ Mappers,
200
+ /* isXml */
201
+ false
202
+ );
158
203
  const getOperationSpec = {
159
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}",
160
- httpMethod: "GET",
161
- responses: {
162
- 200: {
163
- bodyMapper: Mappers.AzureTrafficCollector
164
- },
165
- default: {
166
- bodyMapper: Mappers.CloudError
167
- }
204
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}",
205
+ httpMethod: "GET",
206
+ responses: {
207
+ 200: {
208
+ bodyMapper: Mappers.AzureTrafficCollector
168
209
  },
169
- queryParameters: [Parameters.apiVersion],
170
- urlParameters: [
171
- Parameters.$host,
172
- Parameters.subscriptionId,
173
- Parameters.resourceGroupName,
174
- Parameters.azureTrafficCollectorName
175
- ],
176
- headerParameters: [Parameters.accept],
177
- serializer
210
+ default: {
211
+ bodyMapper: Mappers.CloudError
212
+ }
213
+ },
214
+ queryParameters: [Parameters.apiVersion],
215
+ urlParameters: [
216
+ Parameters.$host,
217
+ Parameters.subscriptionId,
218
+ Parameters.resourceGroupName,
219
+ Parameters.azureTrafficCollectorName
220
+ ],
221
+ headerParameters: [Parameters.accept],
222
+ serializer
178
223
  };
179
224
  const createOrUpdateOperationSpec = {
180
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}",
181
- httpMethod: "PUT",
182
- responses: {
183
- 200: {
184
- bodyMapper: Mappers.AzureTrafficCollector
185
- },
186
- 201: {
187
- bodyMapper: Mappers.AzureTrafficCollector
188
- },
189
- 202: {
190
- bodyMapper: Mappers.AzureTrafficCollector
191
- },
192
- 204: {
193
- bodyMapper: Mappers.AzureTrafficCollector
194
- },
195
- default: {
196
- bodyMapper: Mappers.CloudError
197
- }
225
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}",
226
+ httpMethod: "PUT",
227
+ responses: {
228
+ 200: {
229
+ bodyMapper: Mappers.AzureTrafficCollector
230
+ },
231
+ 201: {
232
+ bodyMapper: Mappers.AzureTrafficCollector
233
+ },
234
+ 202: {
235
+ bodyMapper: Mappers.AzureTrafficCollector
236
+ },
237
+ 204: {
238
+ bodyMapper: Mappers.AzureTrafficCollector
198
239
  },
199
- requestBody: {
200
- parameterPath: {
201
- location: ["location"],
202
- tags: ["options", "tags"],
203
- virtualHub: ["options", "virtualHub"]
204
- },
205
- mapper: { ...Mappers.AzureTrafficCollector, required: true }
240
+ default: {
241
+ bodyMapper: Mappers.CloudError
242
+ }
243
+ },
244
+ requestBody: {
245
+ parameterPath: {
246
+ location: ["location"],
247
+ tags: ["options", "tags"],
248
+ virtualHub: ["options", "virtualHub"]
206
249
  },
207
- queryParameters: [Parameters.apiVersion],
208
- urlParameters: [
209
- Parameters.$host,
210
- Parameters.subscriptionId,
211
- Parameters.resourceGroupName,
212
- Parameters.azureTrafficCollectorName
213
- ],
214
- headerParameters: [Parameters.accept, Parameters.contentType],
215
- mediaType: "json",
216
- serializer
250
+ mapper: { ...Mappers.AzureTrafficCollector, required: true }
251
+ },
252
+ queryParameters: [Parameters.apiVersion],
253
+ urlParameters: [
254
+ Parameters.$host,
255
+ Parameters.subscriptionId,
256
+ Parameters.resourceGroupName,
257
+ Parameters.azureTrafficCollectorName
258
+ ],
259
+ headerParameters: [Parameters.accept, Parameters.contentType],
260
+ mediaType: "json",
261
+ serializer
217
262
  };
218
263
  const deleteOperationSpec = {
219
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}",
220
- httpMethod: "DELETE",
221
- responses: {
222
- 200: {},
223
- 201: {},
224
- 202: {},
225
- 204: {},
226
- default: {
227
- bodyMapper: Mappers.CloudError
228
- }
229
- },
230
- queryParameters: [Parameters.apiVersion],
231
- urlParameters: [
232
- Parameters.$host,
233
- Parameters.subscriptionId,
234
- Parameters.resourceGroupName,
235
- Parameters.azureTrafficCollectorName
236
- ],
237
- headerParameters: [Parameters.accept],
238
- serializer
264
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}",
265
+ httpMethod: "DELETE",
266
+ responses: {
267
+ 200: {},
268
+ 201: {},
269
+ 202: {},
270
+ 204: {},
271
+ default: {
272
+ bodyMapper: Mappers.CloudError
273
+ }
274
+ },
275
+ queryParameters: [Parameters.apiVersion],
276
+ urlParameters: [
277
+ Parameters.$host,
278
+ Parameters.subscriptionId,
279
+ Parameters.resourceGroupName,
280
+ Parameters.azureTrafficCollectorName
281
+ ],
282
+ headerParameters: [Parameters.accept],
283
+ serializer
239
284
  };
240
285
  const updateTagsOperationSpec = {
241
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}",
242
- httpMethod: "PATCH",
243
- responses: {
244
- 200: {
245
- bodyMapper: Mappers.AzureTrafficCollector
246
- },
247
- default: {
248
- bodyMapper: Mappers.CloudError
249
- }
286
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}",
287
+ httpMethod: "PATCH",
288
+ responses: {
289
+ 200: {
290
+ bodyMapper: Mappers.AzureTrafficCollector
250
291
  },
251
- requestBody: Parameters.parameters1,
252
- queryParameters: [Parameters.apiVersion],
253
- urlParameters: [
254
- Parameters.$host,
255
- Parameters.subscriptionId,
256
- Parameters.resourceGroupName,
257
- Parameters.azureTrafficCollectorName
258
- ],
259
- headerParameters: [Parameters.accept, Parameters.contentType],
260
- mediaType: "json",
261
- serializer
292
+ default: {
293
+ bodyMapper: Mappers.CloudError
294
+ }
295
+ },
296
+ requestBody: Parameters.parameters1,
297
+ queryParameters: [Parameters.apiVersion],
298
+ urlParameters: [
299
+ Parameters.$host,
300
+ Parameters.subscriptionId,
301
+ Parameters.resourceGroupName,
302
+ Parameters.azureTrafficCollectorName
303
+ ],
304
+ headerParameters: [Parameters.accept, Parameters.contentType],
305
+ mediaType: "json",
306
+ serializer
262
307
  };
263
- //# sourceMappingURL=azureTrafficCollectors.js.map
308
+ // Annotate the CommonJS export names for ESM import in node:
309
+ 0 && (module.exports = {
310
+ AzureTrafficCollectorsImpl
311
+ });