@azure/arm-networkfunction 1.0.1-alpha.20221128.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -8
- package/dist/index.js +368 -251
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/azureTrafficCollectorsByResourceGroupListSample.js +1 -1
- package/dist-esm/samples-dev/azureTrafficCollectorsBySubscriptionListSample.js +1 -1
- package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.js +3 -6
- package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/azureTrafficCollectorsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/azureTrafficCollectorsGetSample.js +1 -1
- package/dist-esm/samples-dev/azureTrafficCollectorsUpdateTagsSample.js +1 -1
- package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.js +3 -2
- package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/collectorPoliciesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/collectorPoliciesGetSample.js +1 -1
- package/dist-esm/samples-dev/collectorPoliciesListSample.js +1 -1
- package/dist-esm/samples-dev/collectorPoliciesUpdateTagsSample.d.ts +2 -0
- package/dist-esm/samples-dev/collectorPoliciesUpdateTagsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/collectorPoliciesUpdateTagsSample.js +33 -0
- package/dist-esm/samples-dev/collectorPoliciesUpdateTagsSample.js.map +1 -0
- package/dist-esm/samples-dev/networkFunctionListOperationsSample.js +1 -1
- package/dist-esm/src/azureTrafficCollectorClient.d.ts.map +1 -1
- package/dist-esm/src/azureTrafficCollectorClient.js +21 -19
- package/dist-esm/src/azureTrafficCollectorClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +138 -119
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +34 -24
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +7 -8
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +152 -163
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +2 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +10 -6
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/azureTrafficCollectors.d.ts +4 -2
- package/dist-esm/src/operations/azureTrafficCollectors.d.ts.map +1 -1
- package/dist-esm/src/operations/azureTrafficCollectors.js +7 -6
- package/dist-esm/src/operations/azureTrafficCollectors.js.map +1 -1
- package/dist-esm/src/operations/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -1
- package/dist-esm/src/operations/azureTrafficCollectorsByResourceGroup.js +19 -7
- package/dist-esm/src/operations/azureTrafficCollectorsByResourceGroup.js.map +1 -1
- package/dist-esm/src/operations/azureTrafficCollectorsBySubscription.d.ts.map +1 -1
- package/dist-esm/src/operations/azureTrafficCollectorsBySubscription.js +19 -7
- package/dist-esm/src/operations/azureTrafficCollectorsBySubscription.js.map +1 -1
- package/dist-esm/src/operations/collectorPolicies.d.ts +14 -3
- package/dist-esm/src/operations/collectorPolicies.d.ts.map +1 -1
- package/dist-esm/src/operations/collectorPolicies.js +68 -10
- package/dist-esm/src/operations/collectorPolicies.js.map +1 -1
- package/dist-esm/src/operations/networkFunction.d.ts.map +1 -1
- package/dist-esm/src/operations/networkFunction.js +8 -4
- package/dist-esm/src/operations/networkFunction.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/azureTrafficCollectors.d.ts +4 -2
- package/dist-esm/src/operationsInterfaces/azureTrafficCollectors.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/collectorPolicies.d.ts +14 -3
- package/dist-esm/src/operationsInterfaces/collectorPolicies.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/networkfunction_examples.spec.d.ts +4 -0
- package/dist-esm/test/networkfunction_examples.spec.d.ts.map +1 -0
- package/dist-esm/test/networkfunction_examples.spec.js +69 -0
- package/dist-esm/test/networkfunction_examples.spec.js.map +1 -0
- package/package.json +7 -6
- package/review/arm-networkfunction.api.md +31 -14
- package/src/azureTrafficCollectorClient.ts +27 -21
- package/src/index.ts +1 -0
- package/src/models/index.ts +148 -127
- package/src/models/mappers.ts +157 -172
- package/src/models/parameters.ts +12 -7
- package/src/operations/azureTrafficCollectors.ts +7 -3
- package/src/operations/azureTrafficCollectorsByResourceGroup.ts +21 -8
- package/src/operations/azureTrafficCollectorsBySubscription.ts +21 -8
- package/src/operations/collectorPolicies.ts +89 -12
- package/src/operations/networkFunction.ts +10 -5
- package/src/operationsInterfaces/azureTrafficCollectors.ts +4 -0
- package/src/operationsInterfaces/collectorPolicies.ts +23 -1
- package/src/pagingHelper.ts +39 -0
- package/types/arm-networkfunction.d.ts +65 -21
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -35,30 +35,38 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
|
|
|
35
35
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
36
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
37
|
*/
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
38
|
+
const pageMap = new WeakMap();
|
|
39
|
+
/**
|
|
40
|
+
* Given a result page from a pageable operation, returns a
|
|
41
|
+
* continuation token that can be used to begin paging from
|
|
42
|
+
* that point later.
|
|
43
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
44
|
+
* @returns The continuation token that can be passed into byPage().
|
|
45
|
+
*/
|
|
46
|
+
function getContinuationToken(page) {
|
|
47
|
+
var _a;
|
|
48
|
+
if (typeof page !== "object" || page === null) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
+
}
|
|
53
|
+
function setContinuationToken(page, continuationToken) {
|
|
54
|
+
var _a;
|
|
55
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
+
pageInfo.continuationToken = continuationToken;
|
|
60
|
+
pageMap.set(page, pageInfo);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/*
|
|
64
|
+
* Copyright (c) Microsoft Corporation.
|
|
65
|
+
* Licensed under the MIT License.
|
|
66
|
+
*
|
|
67
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
68
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
69
|
+
*/
|
|
62
70
|
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
63
71
|
exports.KnownProvisioningState = void 0;
|
|
64
72
|
(function (KnownProvisioningState) {
|
|
@@ -83,6 +91,40 @@ exports.KnownCreatedByType = void 0;
|
|
|
83
91
|
/** Key */
|
|
84
92
|
KnownCreatedByType["Key"] = "Key";
|
|
85
93
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
94
|
+
/** Known values of {@link IngestionType} that the service accepts. */
|
|
95
|
+
exports.KnownIngestionType = void 0;
|
|
96
|
+
(function (KnownIngestionType) {
|
|
97
|
+
/** Ipfix */
|
|
98
|
+
KnownIngestionType["Ipfix"] = "IPFIX";
|
|
99
|
+
})(exports.KnownIngestionType || (exports.KnownIngestionType = {}));
|
|
100
|
+
/** Known values of {@link SourceType} that the service accepts. */
|
|
101
|
+
exports.KnownSourceType = void 0;
|
|
102
|
+
(function (KnownSourceType) {
|
|
103
|
+
/** Resource */
|
|
104
|
+
KnownSourceType["Resource"] = "Resource";
|
|
105
|
+
})(exports.KnownSourceType || (exports.KnownSourceType = {}));
|
|
106
|
+
/** Known values of {@link EmissionType} that the service accepts. */
|
|
107
|
+
exports.KnownEmissionType = void 0;
|
|
108
|
+
(function (KnownEmissionType) {
|
|
109
|
+
/** Ipfix */
|
|
110
|
+
KnownEmissionType["Ipfix"] = "IPFIX";
|
|
111
|
+
})(exports.KnownEmissionType || (exports.KnownEmissionType = {}));
|
|
112
|
+
/** Known values of {@link DestinationType} that the service accepts. */
|
|
113
|
+
exports.KnownDestinationType = void 0;
|
|
114
|
+
(function (KnownDestinationType) {
|
|
115
|
+
/** AzureMonitor */
|
|
116
|
+
KnownDestinationType["AzureMonitor"] = "AzureMonitor";
|
|
117
|
+
})(exports.KnownDestinationType || (exports.KnownDestinationType = {}));
|
|
118
|
+
/** Known values of {@link ApiVersionParameter} that the service accepts. */
|
|
119
|
+
exports.KnownApiVersionParameter = void 0;
|
|
120
|
+
(function (KnownApiVersionParameter) {
|
|
121
|
+
/** TwoThousandTwentyTwo0501 */
|
|
122
|
+
KnownApiVersionParameter["TwoThousandTwentyTwo0501"] = "2022-05-01";
|
|
123
|
+
/** TwoThousandTwentyTwo0801 */
|
|
124
|
+
KnownApiVersionParameter["TwoThousandTwentyTwo0801"] = "2022-08-01";
|
|
125
|
+
/** TwoThousandTwentyTwo1101 */
|
|
126
|
+
KnownApiVersionParameter["TwoThousandTwentyTwo1101"] = "2022-11-01";
|
|
127
|
+
})(exports.KnownApiVersionParameter || (exports.KnownApiVersionParameter = {}));
|
|
86
128
|
|
|
87
129
|
/*
|
|
88
130
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -263,87 +305,66 @@ const AzureTrafficCollectorListResult = {
|
|
|
263
305
|
}
|
|
264
306
|
}
|
|
265
307
|
};
|
|
266
|
-
const
|
|
308
|
+
const ResourceReference = {
|
|
267
309
|
type: {
|
|
268
310
|
name: "Composite",
|
|
269
|
-
className: "
|
|
311
|
+
className: "ResourceReference",
|
|
270
312
|
modelProperties: {
|
|
271
|
-
|
|
272
|
-
serializedName: "
|
|
313
|
+
id: {
|
|
314
|
+
serializedName: "id",
|
|
315
|
+
readOnly: true,
|
|
273
316
|
type: {
|
|
274
317
|
name: "String"
|
|
275
318
|
}
|
|
276
|
-
},
|
|
277
|
-
ingestionSources: {
|
|
278
|
-
serializedName: "ingestionSources",
|
|
279
|
-
type: {
|
|
280
|
-
name: "Sequence",
|
|
281
|
-
element: {
|
|
282
|
-
type: {
|
|
283
|
-
name: "Composite",
|
|
284
|
-
className: "IngestionSourcesPropertiesFormat"
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
319
|
}
|
|
289
320
|
}
|
|
290
321
|
}
|
|
291
322
|
};
|
|
292
|
-
const
|
|
323
|
+
const TrackedResource = {
|
|
293
324
|
type: {
|
|
294
325
|
name: "Composite",
|
|
295
|
-
className: "
|
|
326
|
+
className: "TrackedResource",
|
|
296
327
|
modelProperties: {
|
|
297
|
-
|
|
298
|
-
serializedName: "
|
|
328
|
+
id: {
|
|
329
|
+
serializedName: "id",
|
|
330
|
+
readOnly: true,
|
|
299
331
|
type: {
|
|
300
332
|
name: "String"
|
|
301
333
|
}
|
|
302
334
|
},
|
|
303
|
-
|
|
304
|
-
serializedName: "
|
|
335
|
+
name: {
|
|
336
|
+
serializedName: "name",
|
|
337
|
+
readOnly: true,
|
|
305
338
|
type: {
|
|
306
339
|
name: "String"
|
|
307
340
|
}
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
const EmissionPoliciesPropertiesFormat = {
|
|
313
|
-
type: {
|
|
314
|
-
name: "Composite",
|
|
315
|
-
className: "EmissionPoliciesPropertiesFormat",
|
|
316
|
-
modelProperties: {
|
|
317
|
-
emissionType: {
|
|
318
|
-
serializedName: "emissionType",
|
|
341
|
+
},
|
|
342
|
+
type: {
|
|
343
|
+
serializedName: "type",
|
|
344
|
+
readOnly: true,
|
|
319
345
|
type: {
|
|
320
346
|
name: "String"
|
|
321
347
|
}
|
|
322
348
|
},
|
|
323
|
-
|
|
324
|
-
serializedName: "
|
|
349
|
+
location: {
|
|
350
|
+
serializedName: "location",
|
|
351
|
+
required: true,
|
|
325
352
|
type: {
|
|
326
|
-
name: "
|
|
327
|
-
element: {
|
|
328
|
-
type: {
|
|
329
|
-
name: "Composite",
|
|
330
|
-
className: "EmissionPolicyDestination"
|
|
331
|
-
}
|
|
332
|
-
}
|
|
353
|
+
name: "String"
|
|
333
354
|
}
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
};
|
|
338
|
-
const EmissionPolicyDestination = {
|
|
339
|
-
type: {
|
|
340
|
-
name: "Composite",
|
|
341
|
-
className: "EmissionPolicyDestination",
|
|
342
|
-
modelProperties: {
|
|
343
|
-
destinationType: {
|
|
344
|
-
serializedName: "destinationType",
|
|
355
|
+
},
|
|
356
|
+
tags: {
|
|
357
|
+
serializedName: "tags",
|
|
345
358
|
type: {
|
|
346
|
-
name: "
|
|
359
|
+
name: "Dictionary",
|
|
360
|
+
value: { type: { name: "String" } }
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
systemData: {
|
|
364
|
+
serializedName: "systemData",
|
|
365
|
+
type: {
|
|
366
|
+
name: "Composite",
|
|
367
|
+
className: "TrackedResourceSystemData"
|
|
347
368
|
}
|
|
348
369
|
}
|
|
349
370
|
}
|
|
@@ -387,27 +408,40 @@ const SystemData = {
|
|
|
387
408
|
}
|
|
388
409
|
}
|
|
389
410
|
};
|
|
390
|
-
const
|
|
411
|
+
const TagsObject = {
|
|
391
412
|
type: {
|
|
392
413
|
name: "Composite",
|
|
393
|
-
className: "
|
|
414
|
+
className: "TagsObject",
|
|
394
415
|
modelProperties: {
|
|
395
|
-
|
|
396
|
-
serializedName: "
|
|
397
|
-
readOnly: true,
|
|
416
|
+
tags: {
|
|
417
|
+
serializedName: "tags",
|
|
398
418
|
type: {
|
|
399
|
-
name: "
|
|
419
|
+
name: "Dictionary",
|
|
420
|
+
value: { type: { name: "String" } }
|
|
400
421
|
}
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
const CollectorPolicyListResult = {
|
|
427
|
+
type: {
|
|
428
|
+
name: "Composite",
|
|
429
|
+
className: "CollectorPolicyListResult",
|
|
430
|
+
modelProperties: {
|
|
431
|
+
value: {
|
|
432
|
+
serializedName: "value",
|
|
405
433
|
type: {
|
|
406
|
-
name: "
|
|
434
|
+
name: "Sequence",
|
|
435
|
+
element: {
|
|
436
|
+
type: {
|
|
437
|
+
name: "Composite",
|
|
438
|
+
className: "CollectorPolicy"
|
|
439
|
+
}
|
|
440
|
+
}
|
|
407
441
|
}
|
|
408
442
|
},
|
|
409
|
-
|
|
410
|
-
serializedName: "
|
|
443
|
+
nextLink: {
|
|
444
|
+
serializedName: "nextLink",
|
|
411
445
|
readOnly: true,
|
|
412
446
|
type: {
|
|
413
447
|
name: "String"
|
|
@@ -416,104 +450,113 @@ const ProxyResource = {
|
|
|
416
450
|
}
|
|
417
451
|
}
|
|
418
452
|
};
|
|
419
|
-
const
|
|
453
|
+
const IngestionPolicyPropertiesFormat = {
|
|
420
454
|
type: {
|
|
421
455
|
name: "Composite",
|
|
422
|
-
className: "
|
|
456
|
+
className: "IngestionPolicyPropertiesFormat",
|
|
423
457
|
modelProperties: {
|
|
424
|
-
|
|
425
|
-
serializedName: "
|
|
426
|
-
readOnly: true,
|
|
458
|
+
ingestionType: {
|
|
459
|
+
serializedName: "ingestionType",
|
|
427
460
|
type: {
|
|
428
461
|
name: "String"
|
|
429
462
|
}
|
|
463
|
+
},
|
|
464
|
+
ingestionSources: {
|
|
465
|
+
serializedName: "ingestionSources",
|
|
466
|
+
type: {
|
|
467
|
+
name: "Sequence",
|
|
468
|
+
element: {
|
|
469
|
+
type: {
|
|
470
|
+
name: "Composite",
|
|
471
|
+
className: "IngestionSourcesPropertiesFormat"
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
430
475
|
}
|
|
431
476
|
}
|
|
432
477
|
}
|
|
433
478
|
};
|
|
434
|
-
const
|
|
479
|
+
const IngestionSourcesPropertiesFormat = {
|
|
435
480
|
type: {
|
|
436
481
|
name: "Composite",
|
|
437
|
-
className: "
|
|
482
|
+
className: "IngestionSourcesPropertiesFormat",
|
|
438
483
|
modelProperties: {
|
|
439
|
-
|
|
440
|
-
serializedName: "
|
|
441
|
-
readOnly: true,
|
|
442
|
-
type: {
|
|
443
|
-
name: "String"
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
name: {
|
|
447
|
-
serializedName: "name",
|
|
448
|
-
readOnly: true,
|
|
484
|
+
sourceType: {
|
|
485
|
+
serializedName: "sourceType",
|
|
449
486
|
type: {
|
|
450
487
|
name: "String"
|
|
451
488
|
}
|
|
452
489
|
},
|
|
453
|
-
|
|
454
|
-
serializedName: "
|
|
455
|
-
readOnly: true,
|
|
490
|
+
resourceId: {
|
|
491
|
+
serializedName: "resourceId",
|
|
456
492
|
type: {
|
|
457
493
|
name: "String"
|
|
458
494
|
}
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
};
|
|
499
|
+
const EmissionPoliciesPropertiesFormat = {
|
|
500
|
+
type: {
|
|
501
|
+
name: "Composite",
|
|
502
|
+
className: "EmissionPoliciesPropertiesFormat",
|
|
503
|
+
modelProperties: {
|
|
504
|
+
emissionType: {
|
|
505
|
+
serializedName: "emissionType",
|
|
462
506
|
type: {
|
|
463
507
|
name: "String"
|
|
464
508
|
}
|
|
465
509
|
},
|
|
466
|
-
|
|
467
|
-
serializedName: "
|
|
468
|
-
type: {
|
|
469
|
-
name: "Dictionary",
|
|
470
|
-
value: { type: { name: "String" } }
|
|
471
|
-
}
|
|
472
|
-
},
|
|
473
|
-
systemData: {
|
|
474
|
-
serializedName: "systemData",
|
|
510
|
+
emissionDestinations: {
|
|
511
|
+
serializedName: "emissionDestinations",
|
|
475
512
|
type: {
|
|
476
|
-
name: "
|
|
477
|
-
|
|
513
|
+
name: "Sequence",
|
|
514
|
+
element: {
|
|
515
|
+
type: {
|
|
516
|
+
name: "Composite",
|
|
517
|
+
className: "EmissionPolicyDestination"
|
|
518
|
+
}
|
|
519
|
+
}
|
|
478
520
|
}
|
|
479
521
|
}
|
|
480
522
|
}
|
|
481
523
|
}
|
|
482
524
|
};
|
|
483
|
-
const
|
|
525
|
+
const EmissionPolicyDestination = {
|
|
484
526
|
type: {
|
|
485
527
|
name: "Composite",
|
|
486
|
-
className: "
|
|
528
|
+
className: "EmissionPolicyDestination",
|
|
487
529
|
modelProperties: {
|
|
488
|
-
|
|
489
|
-
serializedName: "
|
|
530
|
+
destinationType: {
|
|
531
|
+
serializedName: "destinationType",
|
|
490
532
|
type: {
|
|
491
|
-
name: "
|
|
492
|
-
value: { type: { name: "String" } }
|
|
533
|
+
name: "String"
|
|
493
534
|
}
|
|
494
535
|
}
|
|
495
536
|
}
|
|
496
537
|
}
|
|
497
538
|
};
|
|
498
|
-
const
|
|
539
|
+
const ProxyResource = {
|
|
499
540
|
type: {
|
|
500
541
|
name: "Composite",
|
|
501
|
-
className: "
|
|
542
|
+
className: "ProxyResource",
|
|
502
543
|
modelProperties: {
|
|
503
|
-
|
|
504
|
-
serializedName: "
|
|
544
|
+
id: {
|
|
545
|
+
serializedName: "id",
|
|
546
|
+
readOnly: true,
|
|
505
547
|
type: {
|
|
506
|
-
name: "
|
|
507
|
-
element: {
|
|
508
|
-
type: {
|
|
509
|
-
name: "Composite",
|
|
510
|
-
className: "CollectorPolicy"
|
|
511
|
-
}
|
|
512
|
-
}
|
|
548
|
+
name: "String"
|
|
513
549
|
}
|
|
514
550
|
},
|
|
515
|
-
|
|
516
|
-
serializedName: "
|
|
551
|
+
type: {
|
|
552
|
+
serializedName: "type",
|
|
553
|
+
readOnly: true,
|
|
554
|
+
type: {
|
|
555
|
+
name: "String"
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
name: {
|
|
559
|
+
serializedName: "name",
|
|
517
560
|
readOnly: true,
|
|
518
561
|
type: {
|
|
519
562
|
name: "String"
|
|
@@ -522,53 +565,34 @@ const CollectorPolicyListResult = {
|
|
|
522
565
|
}
|
|
523
566
|
}
|
|
524
567
|
};
|
|
525
|
-
const
|
|
526
|
-
type: {
|
|
527
|
-
name: "Composite",
|
|
528
|
-
className: "CollectorPolicySystemData",
|
|
529
|
-
modelProperties: Object.assign({}, SystemData.type.modelProperties)
|
|
530
|
-
}
|
|
531
|
-
};
|
|
532
|
-
const TrackedResourceSystemData = {
|
|
533
|
-
type: {
|
|
534
|
-
name: "Composite",
|
|
535
|
-
className: "TrackedResourceSystemData",
|
|
536
|
-
modelProperties: Object.assign({}, SystemData.type.modelProperties)
|
|
537
|
-
}
|
|
538
|
-
};
|
|
539
|
-
const CollectorPolicy = {
|
|
568
|
+
const AzureTrafficCollector = {
|
|
540
569
|
type: {
|
|
541
570
|
name: "Composite",
|
|
542
|
-
className: "
|
|
543
|
-
modelProperties: Object.assign(Object.assign({},
|
|
571
|
+
className: "AzureTrafficCollector",
|
|
572
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { etag: {
|
|
544
573
|
serializedName: "etag",
|
|
545
574
|
readOnly: true,
|
|
546
575
|
type: {
|
|
547
576
|
name: "String"
|
|
548
577
|
}
|
|
549
|
-
},
|
|
550
|
-
serializedName: "
|
|
551
|
-
|
|
552
|
-
name: "Composite",
|
|
553
|
-
className: "CollectorPolicySystemData"
|
|
554
|
-
}
|
|
555
|
-
}, ingestionPolicy: {
|
|
556
|
-
serializedName: "properties.ingestionPolicy",
|
|
557
|
-
type: {
|
|
558
|
-
name: "Composite",
|
|
559
|
-
className: "IngestionPolicyPropertiesFormat"
|
|
560
|
-
}
|
|
561
|
-
}, emissionPolicies: {
|
|
562
|
-
serializedName: "properties.emissionPolicies",
|
|
578
|
+
}, collectorPolicies: {
|
|
579
|
+
serializedName: "properties.collectorPolicies",
|
|
580
|
+
readOnly: true,
|
|
563
581
|
type: {
|
|
564
582
|
name: "Sequence",
|
|
565
583
|
element: {
|
|
566
584
|
type: {
|
|
567
585
|
name: "Composite",
|
|
568
|
-
className: "
|
|
586
|
+
className: "ResourceReference"
|
|
569
587
|
}
|
|
570
588
|
}
|
|
571
589
|
}
|
|
590
|
+
}, virtualHub: {
|
|
591
|
+
serializedName: "properties.virtualHub",
|
|
592
|
+
type: {
|
|
593
|
+
name: "Composite",
|
|
594
|
+
className: "ResourceReference"
|
|
595
|
+
}
|
|
572
596
|
}, provisioningState: {
|
|
573
597
|
serializedName: "properties.provisioningState",
|
|
574
598
|
readOnly: true,
|
|
@@ -578,33 +602,33 @@ const CollectorPolicy = {
|
|
|
578
602
|
} })
|
|
579
603
|
}
|
|
580
604
|
};
|
|
581
|
-
const
|
|
605
|
+
const CollectorPolicy = {
|
|
582
606
|
type: {
|
|
583
607
|
name: "Composite",
|
|
584
|
-
className: "
|
|
608
|
+
className: "CollectorPolicy",
|
|
585
609
|
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { etag: {
|
|
586
610
|
serializedName: "etag",
|
|
587
611
|
readOnly: true,
|
|
588
612
|
type: {
|
|
589
613
|
name: "String"
|
|
590
614
|
}
|
|
591
|
-
},
|
|
592
|
-
serializedName: "properties.
|
|
615
|
+
}, ingestionPolicy: {
|
|
616
|
+
serializedName: "properties.ingestionPolicy",
|
|
617
|
+
type: {
|
|
618
|
+
name: "Composite",
|
|
619
|
+
className: "IngestionPolicyPropertiesFormat"
|
|
620
|
+
}
|
|
621
|
+
}, emissionPolicies: {
|
|
622
|
+
serializedName: "properties.emissionPolicies",
|
|
593
623
|
type: {
|
|
594
624
|
name: "Sequence",
|
|
595
625
|
element: {
|
|
596
626
|
type: {
|
|
597
627
|
name: "Composite",
|
|
598
|
-
className: "
|
|
628
|
+
className: "EmissionPoliciesPropertiesFormat"
|
|
599
629
|
}
|
|
600
630
|
}
|
|
601
631
|
}
|
|
602
|
-
}, virtualHub: {
|
|
603
|
-
serializedName: "properties.virtualHub",
|
|
604
|
-
type: {
|
|
605
|
-
name: "Composite",
|
|
606
|
-
className: "ResourceReference"
|
|
607
|
-
}
|
|
608
632
|
}, provisioningState: {
|
|
609
633
|
serializedName: "properties.provisioningState",
|
|
610
634
|
readOnly: true,
|
|
@@ -614,6 +638,13 @@ const AzureTrafficCollector = {
|
|
|
614
638
|
} })
|
|
615
639
|
}
|
|
616
640
|
};
|
|
641
|
+
const TrackedResourceSystemData = {
|
|
642
|
+
type: {
|
|
643
|
+
name: "Composite",
|
|
644
|
+
className: "TrackedResourceSystemData",
|
|
645
|
+
modelProperties: Object.assign({}, SystemData.type.modelProperties)
|
|
646
|
+
}
|
|
647
|
+
};
|
|
617
648
|
|
|
618
649
|
var Mappers = /*#__PURE__*/Object.freeze({
|
|
619
650
|
__proto__: null,
|
|
@@ -623,20 +654,19 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
623
654
|
CloudError: CloudError,
|
|
624
655
|
CloudErrorBody: CloudErrorBody,
|
|
625
656
|
AzureTrafficCollectorListResult: AzureTrafficCollectorListResult,
|
|
657
|
+
ResourceReference: ResourceReference,
|
|
658
|
+
TrackedResource: TrackedResource,
|
|
659
|
+
SystemData: SystemData,
|
|
660
|
+
TagsObject: TagsObject,
|
|
661
|
+
CollectorPolicyListResult: CollectorPolicyListResult,
|
|
626
662
|
IngestionPolicyPropertiesFormat: IngestionPolicyPropertiesFormat,
|
|
627
663
|
IngestionSourcesPropertiesFormat: IngestionSourcesPropertiesFormat,
|
|
628
664
|
EmissionPoliciesPropertiesFormat: EmissionPoliciesPropertiesFormat,
|
|
629
665
|
EmissionPolicyDestination: EmissionPolicyDestination,
|
|
630
|
-
SystemData: SystemData,
|
|
631
666
|
ProxyResource: ProxyResource,
|
|
632
|
-
|
|
633
|
-
TrackedResource: TrackedResource,
|
|
634
|
-
TagsObject: TagsObject,
|
|
635
|
-
CollectorPolicyListResult: CollectorPolicyListResult,
|
|
636
|
-
CollectorPolicySystemData: CollectorPolicySystemData,
|
|
637
|
-
TrackedResourceSystemData: TrackedResourceSystemData,
|
|
667
|
+
AzureTrafficCollector: AzureTrafficCollector,
|
|
638
668
|
CollectorPolicy: CollectorPolicy,
|
|
639
|
-
|
|
669
|
+
TrackedResourceSystemData: TrackedResourceSystemData
|
|
640
670
|
});
|
|
641
671
|
|
|
642
672
|
/*
|
|
@@ -671,7 +701,7 @@ const $host = {
|
|
|
671
701
|
const apiVersion = {
|
|
672
702
|
parameterPath: "apiVersion",
|
|
673
703
|
mapper: {
|
|
674
|
-
defaultValue: "2022-
|
|
704
|
+
defaultValue: "2022-11-01",
|
|
675
705
|
isConstant: true,
|
|
676
706
|
serializedName: "api-version",
|
|
677
707
|
type: {
|
|
@@ -776,14 +806,18 @@ class NetworkFunctionImpl {
|
|
|
776
806
|
[Symbol.asyncIterator]() {
|
|
777
807
|
return this;
|
|
778
808
|
},
|
|
779
|
-
byPage: () => {
|
|
780
|
-
|
|
809
|
+
byPage: (settings) => {
|
|
810
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
811
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
812
|
+
}
|
|
813
|
+
return this.listOperationsPagingPage(options, settings);
|
|
781
814
|
}
|
|
782
815
|
};
|
|
783
816
|
}
|
|
784
|
-
listOperationsPagingPage(options) {
|
|
817
|
+
listOperationsPagingPage(options, _settings) {
|
|
785
818
|
return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingPage_1() {
|
|
786
|
-
let result
|
|
819
|
+
let result;
|
|
820
|
+
result = yield tslib.__await(this._listOperations(options));
|
|
787
821
|
yield yield tslib.__await(result.value || []);
|
|
788
822
|
});
|
|
789
823
|
}
|
|
@@ -862,20 +896,31 @@ class AzureTrafficCollectorsBySubscriptionImpl {
|
|
|
862
896
|
[Symbol.asyncIterator]() {
|
|
863
897
|
return this;
|
|
864
898
|
},
|
|
865
|
-
byPage: () => {
|
|
866
|
-
|
|
899
|
+
byPage: (settings) => {
|
|
900
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
901
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
902
|
+
}
|
|
903
|
+
return this.listPagingPage(options, settings);
|
|
867
904
|
}
|
|
868
905
|
};
|
|
869
906
|
}
|
|
870
|
-
listPagingPage(options) {
|
|
907
|
+
listPagingPage(options, settings) {
|
|
871
908
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
872
|
-
let result
|
|
873
|
-
|
|
874
|
-
|
|
909
|
+
let result;
|
|
910
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
911
|
+
if (!continuationToken) {
|
|
912
|
+
result = yield tslib.__await(this._list(options));
|
|
913
|
+
let page = result.value || [];
|
|
914
|
+
continuationToken = result.nextLink;
|
|
915
|
+
setContinuationToken(page, continuationToken);
|
|
916
|
+
yield yield tslib.__await(page);
|
|
917
|
+
}
|
|
875
918
|
while (continuationToken) {
|
|
876
919
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
877
920
|
continuationToken = result.nextLink;
|
|
878
|
-
|
|
921
|
+
let page = result.value || [];
|
|
922
|
+
setContinuationToken(page, continuationToken);
|
|
923
|
+
yield yield tslib.__await(page);
|
|
879
924
|
}
|
|
880
925
|
});
|
|
881
926
|
}
|
|
@@ -983,20 +1028,31 @@ class AzureTrafficCollectorsByResourceGroupImpl {
|
|
|
983
1028
|
[Symbol.asyncIterator]() {
|
|
984
1029
|
return this;
|
|
985
1030
|
},
|
|
986
|
-
byPage: () => {
|
|
987
|
-
|
|
1031
|
+
byPage: (settings) => {
|
|
1032
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1033
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1034
|
+
}
|
|
1035
|
+
return this.listPagingPage(resourceGroupName, options, settings);
|
|
988
1036
|
}
|
|
989
1037
|
};
|
|
990
1038
|
}
|
|
991
|
-
listPagingPage(resourceGroupName, options) {
|
|
1039
|
+
listPagingPage(resourceGroupName, options, settings) {
|
|
992
1040
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
993
|
-
let result
|
|
994
|
-
|
|
995
|
-
|
|
1041
|
+
let result;
|
|
1042
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1043
|
+
if (!continuationToken) {
|
|
1044
|
+
result = yield tslib.__await(this._list(resourceGroupName, options));
|
|
1045
|
+
let page = result.value || [];
|
|
1046
|
+
continuationToken = result.nextLink;
|
|
1047
|
+
setContinuationToken(page, continuationToken);
|
|
1048
|
+
yield yield tslib.__await(page);
|
|
1049
|
+
}
|
|
996
1050
|
while (continuationToken) {
|
|
997
1051
|
result = yield tslib.__await(this._listNext(resourceGroupName, continuationToken, options));
|
|
998
1052
|
continuationToken = result.nextLink;
|
|
999
|
-
|
|
1053
|
+
let page = result.value || [];
|
|
1054
|
+
setContinuationToken(page, continuationToken);
|
|
1055
|
+
yield yield tslib.__await(page);
|
|
1000
1056
|
}
|
|
1001
1057
|
});
|
|
1002
1058
|
}
|
|
@@ -1137,9 +1193,10 @@ class AzureTrafficCollectorsImpl {
|
|
|
1137
1193
|
* Creates or updates a Azure Traffic Collector resource
|
|
1138
1194
|
* @param resourceGroupName The name of the resource group.
|
|
1139
1195
|
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
1196
|
+
* @param location Resource location.
|
|
1140
1197
|
* @param options The options parameters.
|
|
1141
1198
|
*/
|
|
1142
|
-
beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, options) {
|
|
1199
|
+
beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, location, options) {
|
|
1143
1200
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1144
1201
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1145
1202
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -1163,7 +1220,7 @@ class AzureTrafficCollectorsImpl {
|
|
|
1163
1220
|
}
|
|
1164
1221
|
};
|
|
1165
1222
|
});
|
|
1166
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, azureTrafficCollectorName, options }, createOrUpdateOperationSpec$1);
|
|
1223
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, azureTrafficCollectorName, location, options }, createOrUpdateOperationSpec$1);
|
|
1167
1224
|
const poller = new coreLro.LroEngine(lro, {
|
|
1168
1225
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1169
1226
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
@@ -1177,11 +1234,12 @@ class AzureTrafficCollectorsImpl {
|
|
|
1177
1234
|
* Creates or updates a Azure Traffic Collector resource
|
|
1178
1235
|
* @param resourceGroupName The name of the resource group.
|
|
1179
1236
|
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
1237
|
+
* @param location Resource location.
|
|
1180
1238
|
* @param options The options parameters.
|
|
1181
1239
|
*/
|
|
1182
|
-
beginCreateOrUpdateAndWait(resourceGroupName, azureTrafficCollectorName, options) {
|
|
1240
|
+
beginCreateOrUpdateAndWait(resourceGroupName, azureTrafficCollectorName, location, options) {
|
|
1183
1241
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1184
|
-
const poller = yield this.beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, options);
|
|
1242
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, location, options);
|
|
1185
1243
|
return poller.pollUntilDone();
|
|
1186
1244
|
});
|
|
1187
1245
|
}
|
|
@@ -1245,7 +1303,7 @@ class AzureTrafficCollectorsImpl {
|
|
|
1245
1303
|
* @param options The options parameters.
|
|
1246
1304
|
*/
|
|
1247
1305
|
updateTags(resourceGroupName, azureTrafficCollectorName, parameters, options) {
|
|
1248
|
-
return this.client.sendOperationRequest({ resourceGroupName, azureTrafficCollectorName, parameters, options }, updateTagsOperationSpec);
|
|
1306
|
+
return this.client.sendOperationRequest({ resourceGroupName, azureTrafficCollectorName, parameters, options }, updateTagsOperationSpec$1);
|
|
1249
1307
|
}
|
|
1250
1308
|
}
|
|
1251
1309
|
// Operation Specifications
|
|
@@ -1293,9 +1351,8 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
1293
1351
|
},
|
|
1294
1352
|
requestBody: {
|
|
1295
1353
|
parameterPath: {
|
|
1296
|
-
location: ["
|
|
1354
|
+
location: ["location"],
|
|
1297
1355
|
tags: ["options", "tags"],
|
|
1298
|
-
collectorPolicies: ["options", "collectorPolicies"],
|
|
1299
1356
|
virtualHub: ["options", "virtualHub"]
|
|
1300
1357
|
},
|
|
1301
1358
|
mapper: Object.assign(Object.assign({}, AzureTrafficCollector), { required: true })
|
|
@@ -1333,7 +1390,7 @@ const deleteOperationSpec$1 = {
|
|
|
1333
1390
|
headerParameters: [accept],
|
|
1334
1391
|
serializer: serializer$1
|
|
1335
1392
|
};
|
|
1336
|
-
const updateTagsOperationSpec = {
|
|
1393
|
+
const updateTagsOperationSpec$1 = {
|
|
1337
1394
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}",
|
|
1338
1395
|
httpMethod: "PATCH",
|
|
1339
1396
|
responses: {
|
|
@@ -1389,20 +1446,31 @@ class CollectorPoliciesImpl {
|
|
|
1389
1446
|
[Symbol.asyncIterator]() {
|
|
1390
1447
|
return this;
|
|
1391
1448
|
},
|
|
1392
|
-
byPage: () => {
|
|
1393
|
-
|
|
1449
|
+
byPage: (settings) => {
|
|
1450
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1451
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1452
|
+
}
|
|
1453
|
+
return this.listPagingPage(resourceGroupName, azureTrafficCollectorName, options, settings);
|
|
1394
1454
|
}
|
|
1395
1455
|
};
|
|
1396
1456
|
}
|
|
1397
|
-
listPagingPage(resourceGroupName, azureTrafficCollectorName, options) {
|
|
1457
|
+
listPagingPage(resourceGroupName, azureTrafficCollectorName, options, settings) {
|
|
1398
1458
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1399
|
-
let result
|
|
1400
|
-
|
|
1401
|
-
|
|
1459
|
+
let result;
|
|
1460
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1461
|
+
if (!continuationToken) {
|
|
1462
|
+
result = yield tslib.__await(this._list(resourceGroupName, azureTrafficCollectorName, options));
|
|
1463
|
+
let page = result.value || [];
|
|
1464
|
+
continuationToken = result.nextLink;
|
|
1465
|
+
setContinuationToken(page, continuationToken);
|
|
1466
|
+
yield yield tslib.__await(page);
|
|
1467
|
+
}
|
|
1402
1468
|
while (continuationToken) {
|
|
1403
1469
|
result = yield tslib.__await(this._listNext(resourceGroupName, azureTrafficCollectorName, continuationToken, options));
|
|
1404
1470
|
continuationToken = result.nextLink;
|
|
1405
|
-
|
|
1471
|
+
let page = result.value || [];
|
|
1472
|
+
setContinuationToken(page, continuationToken);
|
|
1473
|
+
yield yield tslib.__await(page);
|
|
1406
1474
|
}
|
|
1407
1475
|
});
|
|
1408
1476
|
}
|
|
@@ -1453,9 +1521,10 @@ class CollectorPoliciesImpl {
|
|
|
1453
1521
|
* @param resourceGroupName The name of the resource group.
|
|
1454
1522
|
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
1455
1523
|
* @param collectorPolicyName Collector Policy Name
|
|
1524
|
+
* @param location Resource location.
|
|
1456
1525
|
* @param options The options parameters.
|
|
1457
1526
|
*/
|
|
1458
|
-
beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options) {
|
|
1527
|
+
beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, location, options) {
|
|
1459
1528
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1460
1529
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1461
1530
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -1483,6 +1552,7 @@ class CollectorPoliciesImpl {
|
|
|
1483
1552
|
resourceGroupName,
|
|
1484
1553
|
azureTrafficCollectorName,
|
|
1485
1554
|
collectorPolicyName,
|
|
1555
|
+
location,
|
|
1486
1556
|
options
|
|
1487
1557
|
}, createOrUpdateOperationSpec);
|
|
1488
1558
|
const poller = new coreLro.LroEngine(lro, {
|
|
@@ -1499,11 +1569,12 @@ class CollectorPoliciesImpl {
|
|
|
1499
1569
|
* @param resourceGroupName The name of the resource group.
|
|
1500
1570
|
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
1501
1571
|
* @param collectorPolicyName Collector Policy Name
|
|
1572
|
+
* @param location Resource location.
|
|
1502
1573
|
* @param options The options parameters.
|
|
1503
1574
|
*/
|
|
1504
|
-
beginCreateOrUpdateAndWait(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options) {
|
|
1575
|
+
beginCreateOrUpdateAndWait(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, location, options) {
|
|
1505
1576
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1506
|
-
const poller = yield this.beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options);
|
|
1577
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, location, options);
|
|
1507
1578
|
return poller.pollUntilDone();
|
|
1508
1579
|
});
|
|
1509
1580
|
}
|
|
@@ -1566,6 +1637,23 @@ class CollectorPoliciesImpl {
|
|
|
1566
1637
|
return poller.pollUntilDone();
|
|
1567
1638
|
});
|
|
1568
1639
|
}
|
|
1640
|
+
/**
|
|
1641
|
+
* Updates the specified Collector Policy tags.
|
|
1642
|
+
* @param resourceGroupName The name of the resource group.
|
|
1643
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
1644
|
+
* @param collectorPolicyName Collector Policy Name
|
|
1645
|
+
* @param parameters Parameters supplied to update Collector Policy tags.
|
|
1646
|
+
* @param options The options parameters.
|
|
1647
|
+
*/
|
|
1648
|
+
updateTags(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, parameters, options) {
|
|
1649
|
+
return this.client.sendOperationRequest({
|
|
1650
|
+
resourceGroupName,
|
|
1651
|
+
azureTrafficCollectorName,
|
|
1652
|
+
collectorPolicyName,
|
|
1653
|
+
parameters,
|
|
1654
|
+
options
|
|
1655
|
+
}, updateTagsOperationSpec);
|
|
1656
|
+
}
|
|
1569
1657
|
/**
|
|
1570
1658
|
* ListNext
|
|
1571
1659
|
* @param resourceGroupName The name of the resource group.
|
|
@@ -1644,6 +1732,8 @@ const createOrUpdateOperationSpec = {
|
|
|
1644
1732
|
},
|
|
1645
1733
|
requestBody: {
|
|
1646
1734
|
parameterPath: {
|
|
1735
|
+
location: ["location"],
|
|
1736
|
+
tags: ["options", "tags"],
|
|
1647
1737
|
ingestionPolicy: ["options", "ingestionPolicy"],
|
|
1648
1738
|
emissionPolicies: ["options", "emissionPolicies"]
|
|
1649
1739
|
},
|
|
@@ -1684,6 +1774,30 @@ const deleteOperationSpec = {
|
|
|
1684
1774
|
headerParameters: [accept],
|
|
1685
1775
|
serializer
|
|
1686
1776
|
};
|
|
1777
|
+
const updateTagsOperationSpec = {
|
|
1778
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}",
|
|
1779
|
+
httpMethod: "PATCH",
|
|
1780
|
+
responses: {
|
|
1781
|
+
200: {
|
|
1782
|
+
bodyMapper: CollectorPolicy
|
|
1783
|
+
},
|
|
1784
|
+
default: {
|
|
1785
|
+
bodyMapper: CloudError
|
|
1786
|
+
}
|
|
1787
|
+
},
|
|
1788
|
+
requestBody: parameters1,
|
|
1789
|
+
queryParameters: [apiVersion],
|
|
1790
|
+
urlParameters: [
|
|
1791
|
+
$host,
|
|
1792
|
+
subscriptionId,
|
|
1793
|
+
resourceGroupName,
|
|
1794
|
+
azureTrafficCollectorName,
|
|
1795
|
+
collectorPolicyName
|
|
1796
|
+
],
|
|
1797
|
+
headerParameters: [accept, contentType],
|
|
1798
|
+
mediaType: "json",
|
|
1799
|
+
serializer
|
|
1800
|
+
};
|
|
1687
1801
|
const listNextOperationSpec = {
|
|
1688
1802
|
path: "{nextLink}",
|
|
1689
1803
|
httpMethod: "GET",
|
|
@@ -1722,7 +1836,7 @@ class AzureTrafficCollectorClient extends coreClient__namespace.ServiceClient {
|
|
|
1722
1836
|
* @param options The parameter options
|
|
1723
1837
|
*/
|
|
1724
1838
|
constructor(credentials, subscriptionId, options) {
|
|
1725
|
-
var _a, _b;
|
|
1839
|
+
var _a, _b, _c;
|
|
1726
1840
|
if (credentials === undefined) {
|
|
1727
1841
|
throw new Error("'credentials' cannot be null");
|
|
1728
1842
|
}
|
|
@@ -1737,38 +1851,40 @@ class AzureTrafficCollectorClient extends coreClient__namespace.ServiceClient {
|
|
|
1737
1851
|
requestContentType: "application/json; charset=utf-8",
|
|
1738
1852
|
credential: credentials
|
|
1739
1853
|
};
|
|
1740
|
-
const packageDetails = `azsdk-js-arm-networkfunction/
|
|
1854
|
+
const packageDetails = `azsdk-js-arm-networkfunction/2.0.0`;
|
|
1741
1855
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1742
1856
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1743
1857
|
: `${packageDetails}`;
|
|
1744
|
-
if (!options.credentialScopes) {
|
|
1745
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
1746
|
-
}
|
|
1747
1858
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1748
1859
|
userAgentPrefix
|
|
1749
|
-
},
|
|
1860
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
1750
1861
|
super(optionsWithDefaults);
|
|
1862
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
1751
1863
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
1752
1864
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
1753
|
-
|
|
1865
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
1754
1866
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1867
|
+
}
|
|
1868
|
+
if (!options ||
|
|
1869
|
+
!options.pipeline ||
|
|
1870
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
1871
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
1872
|
+
this.pipeline.removePolicy({
|
|
1873
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
1874
|
+
});
|
|
1875
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
1876
|
+
credential: credentials,
|
|
1877
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
1878
|
+
challengeCallbacks: {
|
|
1879
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
1880
|
+
}
|
|
1881
|
+
}));
|
|
1766
1882
|
}
|
|
1767
1883
|
// Parameter assignments
|
|
1768
1884
|
this.subscriptionId = subscriptionId;
|
|
1769
1885
|
// Assigning values to Constant parameters
|
|
1770
1886
|
this.$host = options.$host || "https://management.azure.com";
|
|
1771
|
-
this.apiVersion = options.apiVersion || "2022-
|
|
1887
|
+
this.apiVersion = options.apiVersion || "2022-11-01";
|
|
1772
1888
|
this.networkFunction = new NetworkFunctionImpl(this);
|
|
1773
1889
|
this.azureTrafficCollectorsBySubscription = new AzureTrafficCollectorsBySubscriptionImpl(this);
|
|
1774
1890
|
this.azureTrafficCollectorsByResourceGroup = new AzureTrafficCollectorsByResourceGroupImpl(this);
|
|
@@ -1806,4 +1922,5 @@ class AzureTrafficCollectorClient extends coreClient__namespace.ServiceClient {
|
|
|
1806
1922
|
}
|
|
1807
1923
|
|
|
1808
1924
|
exports.AzureTrafficCollectorClient = AzureTrafficCollectorClient;
|
|
1925
|
+
exports.getContinuationToken = getContinuationToken;
|
|
1809
1926
|
//# sourceMappingURL=index.js.map
|