@azure/arm-networkfunction 2.0.2-alpha.20260302.1 → 2.0.2-alpha.20260303.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.
- package/dist/commonjs/azureTrafficCollectorClient.js +131 -115
- package/dist/commonjs/azureTrafficCollectorClient.js.map +7 -1
- package/dist/commonjs/index.js +28 -19
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/lroImpl.js +40 -35
- package/dist/commonjs/lroImpl.js.map +7 -1
- package/dist/commonjs/models/index.js +64 -69
- package/dist/commonjs/models/index.js.map +7 -1
- package/dist/commonjs/models/mappers.js +502 -473
- package/dist/commonjs/models/mappers.js.map +7 -1
- package/dist/commonjs/models/parameters.js +154 -127
- package/dist/commonjs/models/parameters.js.map +7 -1
- package/dist/commonjs/operations/azureTrafficCollectors.js +293 -249
- package/dist/commonjs/operations/azureTrafficCollectors.js.map +7 -1
- package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.js +152 -122
- package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.js.map +7 -1
- package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.js +137 -114
- package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.js.map +7 -1
- package/dist/commonjs/operations/collectorPolicies.js +454 -381
- package/dist/commonjs/operations/collectorPolicies.js.map +7 -1
- package/dist/commonjs/operations/index.js +21 -16
- package/dist/commonjs/operations/index.js.map +7 -1
- package/dist/commonjs/operations/networkFunction.js +100 -77
- package/dist/commonjs/operations/networkFunction.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.js +15 -10
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +15 -10
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.js +15 -10
- package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/collectorPolicies.js +15 -10
- package/dist/commonjs/operationsInterfaces/collectorPolicies.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/index.js +21 -16
- package/dist/commonjs/operationsInterfaces/index.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/networkFunction.js +15 -10
- package/dist/commonjs/operationsInterfaces/networkFunction.js.map +7 -1
- package/dist/commonjs/pagingHelper.js +34 -30
- package/dist/commonjs/pagingHelper.js.map +7 -1
- package/dist/esm/azureTrafficCollectorClient.js +107 -109
- package/dist/esm/azureTrafficCollectorClient.js.map +7 -1
- package/dist/esm/index.js +6 -11
- package/dist/esm/index.js.map +7 -1
- package/dist/esm/lroImpl.js +22 -32
- package/dist/esm/lroImpl.js.map +7 -1
- package/dist/esm/models/index.js +45 -66
- package/dist/esm/models/index.js.map +7 -1
- package/dist/esm/models/mappers.js +483 -470
- package/dist/esm/models/mappers.js.map +7 -1
- package/dist/esm/models/parameters.js +143 -128
- package/dist/esm/models/parameters.js.map +7 -1
- package/dist/esm/operations/azureTrafficCollectors.js +260 -240
- package/dist/esm/operations/azureTrafficCollectors.js.map +7 -1
- package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.js +120 -114
- package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.js.map +7 -1
- package/dist/esm/operations/azureTrafficCollectorsBySubscription.js +105 -106
- package/dist/esm/operations/azureTrafficCollectorsBySubscription.js.map +7 -1
- package/dist/esm/operations/collectorPolicies.js +420 -371
- package/dist/esm/operations/collectorPolicies.js.map +7 -1
- package/dist/esm/operations/index.js +0 -8
- package/dist/esm/operations/index.js.map +7 -1
- package/dist/esm/operations/networkFunction.js +69 -70
- package/dist/esm/operations/networkFunction.js.map +7 -1
- package/dist/esm/operationsInterfaces/azureTrafficCollectors.js +0 -9
- package/dist/esm/operationsInterfaces/azureTrafficCollectors.js.map +7 -1
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +0 -9
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +7 -1
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.js +0 -9
- package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +7 -1
- package/dist/esm/operationsInterfaces/collectorPolicies.js +0 -9
- package/dist/esm/operationsInterfaces/collectorPolicies.js.map +7 -1
- package/dist/esm/operationsInterfaces/index.js +0 -8
- package/dist/esm/operationsInterfaces/index.js.map +7 -1
- package/dist/esm/operationsInterfaces/networkFunction.js +0 -9
- package/dist/esm/operationsInterfaces/networkFunction.js.map +7 -1
- package/dist/esm/pagingHelper.js +17 -28
- package/dist/esm/pagingHelper.js.map +7 -1
- package/package.json +4 -21
|
@@ -1,406 +1,479 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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 collectorPolicies_exports = {};
|
|
29
|
+
__export(collectorPolicies_exports, {
|
|
30
|
+
CollectorPoliciesImpl: () => CollectorPoliciesImpl
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(collectorPolicies_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"));
|
|
37
|
+
var import_core_lro = require("@azure/core-lro");
|
|
38
|
+
var import_lroImpl = require("../lroImpl.js");
|
|
20
39
|
class CollectorPoliciesImpl {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
40
|
+
client;
|
|
41
|
+
/**
|
|
42
|
+
* Initialize a new instance of the class CollectorPolicies class.
|
|
43
|
+
* @param client Reference to the service client
|
|
44
|
+
*/
|
|
45
|
+
constructor(client) {
|
|
46
|
+
this.client = client;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Return list of Collector policies in a Azure Traffic Collector
|
|
50
|
+
* @param resourceGroupName The name of the resource group.
|
|
51
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
52
|
+
* @param options The options parameters.
|
|
53
|
+
*/
|
|
54
|
+
list(resourceGroupName, azureTrafficCollectorName, options) {
|
|
55
|
+
const iter = this.listPagingAll(
|
|
56
|
+
resourceGroupName,
|
|
57
|
+
azureTrafficCollectorName,
|
|
58
|
+
options
|
|
59
|
+
);
|
|
60
|
+
return {
|
|
61
|
+
next() {
|
|
62
|
+
return iter.next();
|
|
63
|
+
},
|
|
64
|
+
[Symbol.asyncIterator]() {
|
|
65
|
+
return this;
|
|
66
|
+
},
|
|
67
|
+
byPage: (settings) => {
|
|
68
|
+
if (settings?.maxPageSize) {
|
|
69
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
70
|
+
}
|
|
71
|
+
return this.listPagingPage(
|
|
72
|
+
resourceGroupName,
|
|
73
|
+
azureTrafficCollectorName,
|
|
74
|
+
options,
|
|
75
|
+
settings
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
async *listPagingPage(resourceGroupName, azureTrafficCollectorName, options, settings) {
|
|
81
|
+
let result;
|
|
82
|
+
let continuationToken = settings?.continuationToken;
|
|
83
|
+
if (!continuationToken) {
|
|
84
|
+
result = await this._list(
|
|
85
|
+
resourceGroupName,
|
|
86
|
+
azureTrafficCollectorName,
|
|
87
|
+
options
|
|
88
|
+
);
|
|
89
|
+
let page = result.value || [];
|
|
90
|
+
continuationToken = result.nextLink;
|
|
91
|
+
(0, import_pagingHelper.setContinuationToken)(page, continuationToken);
|
|
92
|
+
yield page;
|
|
93
|
+
}
|
|
94
|
+
while (continuationToken) {
|
|
95
|
+
result = await this._listNext(
|
|
96
|
+
resourceGroupName,
|
|
97
|
+
azureTrafficCollectorName,
|
|
98
|
+
continuationToken,
|
|
99
|
+
options
|
|
100
|
+
);
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
let page = result.value || [];
|
|
103
|
+
(0, import_pagingHelper.setContinuationToken)(page, continuationToken);
|
|
104
|
+
yield page;
|
|
28
105
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return {
|
|
38
|
-
next() {
|
|
39
|
-
return iter.next();
|
|
40
|
-
},
|
|
41
|
-
[Symbol.asyncIterator]() {
|
|
42
|
-
return this;
|
|
43
|
-
},
|
|
44
|
-
byPage: (settings) => {
|
|
45
|
-
if (settings?.maxPageSize) {
|
|
46
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
47
|
-
}
|
|
48
|
-
return this.listPagingPage(resourceGroupName, azureTrafficCollectorName, options, settings);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
106
|
+
}
|
|
107
|
+
async *listPagingAll(resourceGroupName, azureTrafficCollectorName, options) {
|
|
108
|
+
for await (const page of this.listPagingPage(
|
|
109
|
+
resourceGroupName,
|
|
110
|
+
azureTrafficCollectorName,
|
|
111
|
+
options
|
|
112
|
+
)) {
|
|
113
|
+
yield* page;
|
|
51
114
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Return list of Collector policies in a Azure Traffic Collector
|
|
118
|
+
* @param resourceGroupName The name of the resource group.
|
|
119
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
120
|
+
* @param options The options parameters.
|
|
121
|
+
*/
|
|
122
|
+
_list(resourceGroupName, azureTrafficCollectorName, options) {
|
|
123
|
+
return this.client.sendOperationRequest(
|
|
124
|
+
{ resourceGroupName, azureTrafficCollectorName, options },
|
|
125
|
+
listOperationSpec
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Gets the collector policy in a specified Traffic Collector
|
|
130
|
+
* @param resourceGroupName The name of the resource group.
|
|
131
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
132
|
+
* @param collectorPolicyName Collector Policy Name
|
|
133
|
+
* @param options The options parameters.
|
|
134
|
+
*/
|
|
135
|
+
get(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options) {
|
|
136
|
+
return this.client.sendOperationRequest(
|
|
137
|
+
{
|
|
138
|
+
resourceGroupName,
|
|
139
|
+
azureTrafficCollectorName,
|
|
140
|
+
collectorPolicyName,
|
|
141
|
+
options
|
|
142
|
+
},
|
|
143
|
+
getOperationSpec
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Creates or updates a Collector Policy resource
|
|
148
|
+
* @param resourceGroupName The name of the resource group.
|
|
149
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
150
|
+
* @param collectorPolicyName Collector Policy Name
|
|
151
|
+
* @param location Resource location.
|
|
152
|
+
* @param options The options parameters.
|
|
153
|
+
*/
|
|
154
|
+
async beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, location, options) {
|
|
155
|
+
const directSendOperation = async (args, spec) => {
|
|
156
|
+
return this.client.sendOperationRequest(args, spec);
|
|
157
|
+
};
|
|
158
|
+
const sendOperation = async (args, spec) => {
|
|
159
|
+
let currentRawResponse = void 0;
|
|
160
|
+
const providedCallback = args.options?.onResponse;
|
|
161
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
162
|
+
currentRawResponse = rawResponse;
|
|
163
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
164
|
+
};
|
|
165
|
+
const updatedArgs = {
|
|
166
|
+
...args,
|
|
167
|
+
options: {
|
|
168
|
+
...args.options,
|
|
169
|
+
onResponse: callback
|
|
61
170
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
171
|
+
};
|
|
172
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
173
|
+
return {
|
|
174
|
+
flatResponse,
|
|
175
|
+
rawResponse: {
|
|
176
|
+
statusCode: currentRawResponse.status,
|
|
177
|
+
body: currentRawResponse.parsedBody,
|
|
178
|
+
headers: currentRawResponse.headers.toJSON()
|
|
68
179
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
const lro = new import_lroImpl.LroImpl(
|
|
183
|
+
sendOperation,
|
|
184
|
+
{
|
|
185
|
+
resourceGroupName,
|
|
186
|
+
azureTrafficCollectorName,
|
|
187
|
+
collectorPolicyName,
|
|
188
|
+
location,
|
|
189
|
+
options
|
|
190
|
+
},
|
|
191
|
+
createOrUpdateOperationSpec
|
|
192
|
+
);
|
|
193
|
+
const poller = new import_core_lro.LroEngine(lro, {
|
|
194
|
+
resumeFrom: options?.resumeFrom,
|
|
195
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
196
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
197
|
+
});
|
|
198
|
+
await poller.poll();
|
|
199
|
+
return poller;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Creates or updates a Collector Policy resource
|
|
203
|
+
* @param resourceGroupName The name of the resource group.
|
|
204
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
205
|
+
* @param collectorPolicyName Collector Policy Name
|
|
206
|
+
* @param location Resource location.
|
|
207
|
+
* @param options The options parameters.
|
|
208
|
+
*/
|
|
209
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, location, options) {
|
|
210
|
+
const poller = await this.beginCreateOrUpdate(
|
|
211
|
+
resourceGroupName,
|
|
212
|
+
azureTrafficCollectorName,
|
|
213
|
+
collectorPolicyName,
|
|
214
|
+
location,
|
|
215
|
+
options
|
|
216
|
+
);
|
|
217
|
+
return poller.pollUntilDone();
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Deletes a specified Collector Policy resource.
|
|
221
|
+
* @param resourceGroupName The name of the resource group.
|
|
222
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
223
|
+
* @param collectorPolicyName Collector Policy Name
|
|
224
|
+
* @param options The options parameters.
|
|
225
|
+
*/
|
|
226
|
+
async beginDelete(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options) {
|
|
227
|
+
const directSendOperation = async (args, spec) => {
|
|
228
|
+
return this.client.sendOperationRequest(args, spec);
|
|
229
|
+
};
|
|
230
|
+
const sendOperation = async (args, spec) => {
|
|
231
|
+
let currentRawResponse = void 0;
|
|
232
|
+
const providedCallback = args.options?.onResponse;
|
|
233
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
234
|
+
currentRawResponse = rawResponse;
|
|
235
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
236
|
+
};
|
|
237
|
+
const updatedArgs = {
|
|
238
|
+
...args,
|
|
239
|
+
options: {
|
|
240
|
+
...args.options,
|
|
241
|
+
onResponse: callback
|
|
73
242
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
* @param resourceGroupName The name of the resource group.
|
|
153
|
-
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
154
|
-
* @param collectorPolicyName Collector Policy Name
|
|
155
|
-
* @param location Resource location.
|
|
156
|
-
* @param options The options parameters.
|
|
157
|
-
*/
|
|
158
|
-
async beginCreateOrUpdateAndWait(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, location, options) {
|
|
159
|
-
const poller = await this.beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, location, options);
|
|
160
|
-
return poller.pollUntilDone();
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Deletes a specified Collector Policy resource.
|
|
164
|
-
* @param resourceGroupName The name of the resource group.
|
|
165
|
-
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
166
|
-
* @param collectorPolicyName Collector Policy Name
|
|
167
|
-
* @param options The options parameters.
|
|
168
|
-
*/
|
|
169
|
-
async beginDelete(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options) {
|
|
170
|
-
const directSendOperation = async (args, spec) => {
|
|
171
|
-
return this.client.sendOperationRequest(args, spec);
|
|
172
|
-
};
|
|
173
|
-
const sendOperation = async (args, spec) => {
|
|
174
|
-
let currentRawResponse = undefined;
|
|
175
|
-
const providedCallback = args.options?.onResponse;
|
|
176
|
-
const callback = (rawResponse, flatResponse) => {
|
|
177
|
-
currentRawResponse = rawResponse;
|
|
178
|
-
providedCallback?.(rawResponse, flatResponse);
|
|
179
|
-
};
|
|
180
|
-
const updatedArgs = {
|
|
181
|
-
...args,
|
|
182
|
-
options: {
|
|
183
|
-
...args.options,
|
|
184
|
-
onResponse: callback
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
188
|
-
return {
|
|
189
|
-
flatResponse,
|
|
190
|
-
rawResponse: {
|
|
191
|
-
statusCode: currentRawResponse.status,
|
|
192
|
-
body: currentRawResponse.parsedBody,
|
|
193
|
-
headers: currentRawResponse.headers.toJSON()
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
const lro = new lroImpl_js_1.LroImpl(sendOperation, {
|
|
198
|
-
resourceGroupName,
|
|
199
|
-
azureTrafficCollectorName,
|
|
200
|
-
collectorPolicyName,
|
|
201
|
-
options
|
|
202
|
-
}, deleteOperationSpec);
|
|
203
|
-
const poller = new core_lro_1.LroEngine(lro, {
|
|
204
|
-
resumeFrom: options?.resumeFrom,
|
|
205
|
-
intervalInMs: options?.updateIntervalInMs,
|
|
206
|
-
lroResourceLocationConfig: "location"
|
|
207
|
-
});
|
|
208
|
-
await poller.poll();
|
|
209
|
-
return poller;
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* Deletes a specified Collector Policy resource.
|
|
213
|
-
* @param resourceGroupName The name of the resource group.
|
|
214
|
-
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
215
|
-
* @param collectorPolicyName Collector Policy Name
|
|
216
|
-
* @param options The options parameters.
|
|
217
|
-
*/
|
|
218
|
-
async beginDeleteAndWait(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options) {
|
|
219
|
-
const poller = await this.beginDelete(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options);
|
|
220
|
-
return poller.pollUntilDone();
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* Updates the specified Collector Policy tags.
|
|
224
|
-
* @param resourceGroupName The name of the resource group.
|
|
225
|
-
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
226
|
-
* @param collectorPolicyName Collector Policy Name
|
|
227
|
-
* @param parameters Parameters supplied to update Collector Policy tags.
|
|
228
|
-
* @param options The options parameters.
|
|
229
|
-
*/
|
|
230
|
-
updateTags(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, parameters, options) {
|
|
231
|
-
return this.client.sendOperationRequest({
|
|
232
|
-
resourceGroupName,
|
|
233
|
-
azureTrafficCollectorName,
|
|
234
|
-
collectorPolicyName,
|
|
235
|
-
parameters,
|
|
236
|
-
options
|
|
237
|
-
}, updateTagsOperationSpec);
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* ListNext
|
|
241
|
-
* @param resourceGroupName The name of the resource group.
|
|
242
|
-
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
243
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
244
|
-
* @param options The options parameters.
|
|
245
|
-
*/
|
|
246
|
-
_listNext(resourceGroupName, azureTrafficCollectorName, nextLink, options) {
|
|
247
|
-
return this.client.sendOperationRequest({ resourceGroupName, azureTrafficCollectorName, nextLink, options }, listNextOperationSpec);
|
|
248
|
-
}
|
|
243
|
+
};
|
|
244
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
245
|
+
return {
|
|
246
|
+
flatResponse,
|
|
247
|
+
rawResponse: {
|
|
248
|
+
statusCode: currentRawResponse.status,
|
|
249
|
+
body: currentRawResponse.parsedBody,
|
|
250
|
+
headers: currentRawResponse.headers.toJSON()
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
const lro = new import_lroImpl.LroImpl(
|
|
255
|
+
sendOperation,
|
|
256
|
+
{
|
|
257
|
+
resourceGroupName,
|
|
258
|
+
azureTrafficCollectorName,
|
|
259
|
+
collectorPolicyName,
|
|
260
|
+
options
|
|
261
|
+
},
|
|
262
|
+
deleteOperationSpec
|
|
263
|
+
);
|
|
264
|
+
const poller = new import_core_lro.LroEngine(lro, {
|
|
265
|
+
resumeFrom: options?.resumeFrom,
|
|
266
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
267
|
+
lroResourceLocationConfig: "location"
|
|
268
|
+
});
|
|
269
|
+
await poller.poll();
|
|
270
|
+
return poller;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Deletes a specified Collector Policy resource.
|
|
274
|
+
* @param resourceGroupName The name of the resource group.
|
|
275
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
276
|
+
* @param collectorPolicyName Collector Policy Name
|
|
277
|
+
* @param options The options parameters.
|
|
278
|
+
*/
|
|
279
|
+
async beginDeleteAndWait(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options) {
|
|
280
|
+
const poller = await this.beginDelete(
|
|
281
|
+
resourceGroupName,
|
|
282
|
+
azureTrafficCollectorName,
|
|
283
|
+
collectorPolicyName,
|
|
284
|
+
options
|
|
285
|
+
);
|
|
286
|
+
return poller.pollUntilDone();
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Updates the specified Collector Policy tags.
|
|
290
|
+
* @param resourceGroupName The name of the resource group.
|
|
291
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
292
|
+
* @param collectorPolicyName Collector Policy Name
|
|
293
|
+
* @param parameters Parameters supplied to update Collector Policy tags.
|
|
294
|
+
* @param options The options parameters.
|
|
295
|
+
*/
|
|
296
|
+
updateTags(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, parameters, options) {
|
|
297
|
+
return this.client.sendOperationRequest(
|
|
298
|
+
{
|
|
299
|
+
resourceGroupName,
|
|
300
|
+
azureTrafficCollectorName,
|
|
301
|
+
collectorPolicyName,
|
|
302
|
+
parameters,
|
|
303
|
+
options
|
|
304
|
+
},
|
|
305
|
+
updateTagsOperationSpec
|
|
306
|
+
);
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* ListNext
|
|
310
|
+
* @param resourceGroupName The name of the resource group.
|
|
311
|
+
* @param azureTrafficCollectorName Azure Traffic Collector name
|
|
312
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
313
|
+
* @param options The options parameters.
|
|
314
|
+
*/
|
|
315
|
+
_listNext(resourceGroupName, azureTrafficCollectorName, nextLink, options) {
|
|
316
|
+
return this.client.sendOperationRequest(
|
|
317
|
+
{ resourceGroupName, azureTrafficCollectorName, nextLink, options },
|
|
318
|
+
listNextOperationSpec
|
|
319
|
+
);
|
|
320
|
+
}
|
|
249
321
|
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
322
|
+
const serializer = coreClient.createSerializer(
|
|
323
|
+
Mappers,
|
|
324
|
+
/* isXml */
|
|
325
|
+
false
|
|
326
|
+
);
|
|
253
327
|
const listOperationSpec = {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
},
|
|
260
|
-
default: {
|
|
261
|
-
bodyMapper: Mappers.CloudError
|
|
262
|
-
}
|
|
328
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies",
|
|
329
|
+
httpMethod: "GET",
|
|
330
|
+
responses: {
|
|
331
|
+
200: {
|
|
332
|
+
bodyMapper: Mappers.CollectorPolicyListResult
|
|
263
333
|
},
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
334
|
+
default: {
|
|
335
|
+
bodyMapper: Mappers.CloudError
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
queryParameters: [Parameters.apiVersion],
|
|
339
|
+
urlParameters: [
|
|
340
|
+
Parameters.$host,
|
|
341
|
+
Parameters.subscriptionId,
|
|
342
|
+
Parameters.resourceGroupName,
|
|
343
|
+
Parameters.azureTrafficCollectorName
|
|
344
|
+
],
|
|
345
|
+
headerParameters: [Parameters.accept],
|
|
346
|
+
serializer
|
|
273
347
|
};
|
|
274
348
|
const getOperationSpec = {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
},
|
|
281
|
-
default: {
|
|
282
|
-
bodyMapper: Mappers.CloudError
|
|
283
|
-
}
|
|
349
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}",
|
|
350
|
+
httpMethod: "GET",
|
|
351
|
+
responses: {
|
|
352
|
+
200: {
|
|
353
|
+
bodyMapper: Mappers.CollectorPolicy
|
|
284
354
|
},
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
355
|
+
default: {
|
|
356
|
+
bodyMapper: Mappers.CloudError
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
queryParameters: [Parameters.apiVersion],
|
|
360
|
+
urlParameters: [
|
|
361
|
+
Parameters.$host,
|
|
362
|
+
Parameters.subscriptionId,
|
|
363
|
+
Parameters.resourceGroupName,
|
|
364
|
+
Parameters.azureTrafficCollectorName,
|
|
365
|
+
Parameters.collectorPolicyName
|
|
366
|
+
],
|
|
367
|
+
headerParameters: [Parameters.accept],
|
|
368
|
+
serializer
|
|
295
369
|
};
|
|
296
370
|
const createOrUpdateOperationSpec = {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
},
|
|
303
|
-
201: {
|
|
304
|
-
bodyMapper: Mappers.CollectorPolicy
|
|
305
|
-
},
|
|
306
|
-
202: {
|
|
307
|
-
bodyMapper: Mappers.CollectorPolicy
|
|
308
|
-
},
|
|
309
|
-
204: {
|
|
310
|
-
bodyMapper: Mappers.CollectorPolicy
|
|
311
|
-
},
|
|
312
|
-
default: {
|
|
313
|
-
bodyMapper: Mappers.CloudError
|
|
314
|
-
}
|
|
371
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}",
|
|
372
|
+
httpMethod: "PUT",
|
|
373
|
+
responses: {
|
|
374
|
+
200: {
|
|
375
|
+
bodyMapper: Mappers.CollectorPolicy
|
|
315
376
|
},
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
377
|
+
201: {
|
|
378
|
+
bodyMapper: Mappers.CollectorPolicy
|
|
379
|
+
},
|
|
380
|
+
202: {
|
|
381
|
+
bodyMapper: Mappers.CollectorPolicy
|
|
382
|
+
},
|
|
383
|
+
204: {
|
|
384
|
+
bodyMapper: Mappers.CollectorPolicy
|
|
385
|
+
},
|
|
386
|
+
default: {
|
|
387
|
+
bodyMapper: Mappers.CloudError
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
requestBody: {
|
|
391
|
+
parameterPath: {
|
|
392
|
+
location: ["location"],
|
|
393
|
+
tags: ["options", "tags"],
|
|
394
|
+
ingestionPolicy: ["options", "ingestionPolicy"],
|
|
395
|
+
emissionPolicies: ["options", "emissionPolicies"]
|
|
324
396
|
},
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
397
|
+
mapper: { ...Mappers.CollectorPolicy, required: true }
|
|
398
|
+
},
|
|
399
|
+
queryParameters: [Parameters.apiVersion],
|
|
400
|
+
urlParameters: [
|
|
401
|
+
Parameters.$host,
|
|
402
|
+
Parameters.subscriptionId,
|
|
403
|
+
Parameters.resourceGroupName,
|
|
404
|
+
Parameters.azureTrafficCollectorName,
|
|
405
|
+
Parameters.collectorPolicyName
|
|
406
|
+
],
|
|
407
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
408
|
+
mediaType: "json",
|
|
409
|
+
serializer
|
|
336
410
|
};
|
|
337
411
|
const deleteOperationSpec = {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
412
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}",
|
|
413
|
+
httpMethod: "DELETE",
|
|
414
|
+
responses: {
|
|
415
|
+
200: {},
|
|
416
|
+
201: {},
|
|
417
|
+
202: {},
|
|
418
|
+
204: {},
|
|
419
|
+
default: {
|
|
420
|
+
bodyMapper: Mappers.CloudError
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
queryParameters: [Parameters.apiVersion],
|
|
424
|
+
urlParameters: [
|
|
425
|
+
Parameters.$host,
|
|
426
|
+
Parameters.subscriptionId,
|
|
427
|
+
Parameters.resourceGroupName,
|
|
428
|
+
Parameters.azureTrafficCollectorName,
|
|
429
|
+
Parameters.collectorPolicyName
|
|
430
|
+
],
|
|
431
|
+
headerParameters: [Parameters.accept],
|
|
432
|
+
serializer
|
|
359
433
|
};
|
|
360
434
|
const updateTagsOperationSpec = {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
},
|
|
367
|
-
default: {
|
|
368
|
-
bodyMapper: Mappers.CloudError
|
|
369
|
-
}
|
|
435
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}",
|
|
436
|
+
httpMethod: "PATCH",
|
|
437
|
+
responses: {
|
|
438
|
+
200: {
|
|
439
|
+
bodyMapper: Mappers.CollectorPolicy
|
|
370
440
|
},
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
441
|
+
default: {
|
|
442
|
+
bodyMapper: Mappers.CloudError
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
requestBody: Parameters.parameters1,
|
|
446
|
+
queryParameters: [Parameters.apiVersion],
|
|
447
|
+
urlParameters: [
|
|
448
|
+
Parameters.$host,
|
|
449
|
+
Parameters.subscriptionId,
|
|
450
|
+
Parameters.resourceGroupName,
|
|
451
|
+
Parameters.azureTrafficCollectorName,
|
|
452
|
+
Parameters.collectorPolicyName
|
|
453
|
+
],
|
|
454
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
455
|
+
mediaType: "json",
|
|
456
|
+
serializer
|
|
383
457
|
};
|
|
384
458
|
const listNextOperationSpec = {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
},
|
|
391
|
-
default: {
|
|
392
|
-
bodyMapper: Mappers.CloudError
|
|
393
|
-
}
|
|
459
|
+
path: "{nextLink}",
|
|
460
|
+
httpMethod: "GET",
|
|
461
|
+
responses: {
|
|
462
|
+
200: {
|
|
463
|
+
bodyMapper: Mappers.CollectorPolicyListResult
|
|
394
464
|
},
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
465
|
+
default: {
|
|
466
|
+
bodyMapper: Mappers.CloudError
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
queryParameters: [Parameters.apiVersion],
|
|
470
|
+
urlParameters: [
|
|
471
|
+
Parameters.$host,
|
|
472
|
+
Parameters.subscriptionId,
|
|
473
|
+
Parameters.nextLink,
|
|
474
|
+
Parameters.resourceGroupName,
|
|
475
|
+
Parameters.azureTrafficCollectorName
|
|
476
|
+
],
|
|
477
|
+
headerParameters: [Parameters.accept],
|
|
478
|
+
serializer
|
|
405
479
|
};
|
|
406
|
-
//# sourceMappingURL=collectorPolicies.js.map
|