@azure/arm-servicelinker 2.2.0-alpha.20250717.1 → 2.2.0-alpha.20250718.2
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/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +187 -79
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/configurationNames.js +23 -40
- package/dist/browser/operations/configurationNames.js.map +1 -1
- package/dist/browser/operations/connector.js +111 -115
- package/dist/browser/operations/connector.js.map +1 -1
- package/dist/browser/operations/linker.js +67 -64
- package/dist/browser/operations/linker.js.map +1 -1
- package/dist/browser/operations/linkers.js +67 -91
- package/dist/browser/operations/linkers.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/serviceLinkerManagementClient.js +17 -5
- package/dist/browser/serviceLinkerManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +187 -79
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/configurationNames.js +23 -39
- package/dist/commonjs/operations/configurationNames.js.map +1 -1
- package/dist/commonjs/operations/connector.js +111 -114
- package/dist/commonjs/operations/connector.js.map +1 -1
- package/dist/commonjs/operations/linker.js +67 -63
- package/dist/commonjs/operations/linker.js.map +1 -1
- package/dist/commonjs/operations/linkers.js +67 -90
- package/dist/commonjs/operations/linkers.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/serviceLinkerManagementClient.js +17 -5
- package/dist/commonjs/serviceLinkerManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +187 -79
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/configurationNames.js +23 -40
- package/dist/esm/operations/configurationNames.js.map +1 -1
- package/dist/esm/operations/connector.js +111 -115
- package/dist/esm/operations/connector.js.map +1 -1
- package/dist/esm/operations/linker.js +67 -64
- package/dist/esm/operations/linker.js.map +1 -1
- package/dist/esm/operations/linkers.js +67 -91
- package/dist/esm/operations/linkers.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/serviceLinkerManagementClient.js +17 -5
- package/dist/esm/serviceLinkerManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +187 -79
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/configurationNames.js +23 -40
- package/dist/react-native/operations/configurationNames.js.map +1 -1
- package/dist/react-native/operations/connector.js +111 -115
- package/dist/react-native/operations/connector.js.map +1 -1
- package/dist/react-native/operations/linker.js +67 -64
- package/dist/react-native/operations/linker.js.map +1 -1
- package/dist/react-native/operations/linkers.js +67 -91
- package/dist/react-native/operations/linkers.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/serviceLinkerManagementClient.js +17 -5
- package/dist/react-native/serviceLinkerManagementClient.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-servicelinker-node.api.md +1067 -1067
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing Connector operations. */
|
|
20
20
|
class ConnectorImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class Connector class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -42,52 +43,35 @@ class ConnectorImpl {
|
|
|
42
43
|
return this;
|
|
43
44
|
},
|
|
44
45
|
byPage: (settings) => {
|
|
45
|
-
if (settings
|
|
46
|
+
if (settings?.maxPageSize) {
|
|
46
47
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
47
48
|
}
|
|
48
49
|
return this.listDryrunPagingPage(subscriptionId, resourceGroupName, location, options, settings);
|
|
49
50
|
},
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
|
-
listDryrunPagingPage(subscriptionId, resourceGroupName, location, options, settings) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
});
|
|
53
|
+
async *listDryrunPagingPage(subscriptionId, resourceGroupName, location, options, settings) {
|
|
54
|
+
let result;
|
|
55
|
+
let continuationToken = settings?.continuationToken;
|
|
56
|
+
if (!continuationToken) {
|
|
57
|
+
result = await this._listDryrun(subscriptionId, resourceGroupName, location, options);
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
63
|
+
while (continuationToken) {
|
|
64
|
+
result = await this._listDryrunNext(subscriptionId, resourceGroupName, location, continuationToken, options);
|
|
65
|
+
continuationToken = result.nextLink;
|
|
66
|
+
let page = result.value || [];
|
|
67
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
68
|
+
yield page;
|
|
69
|
+
}
|
|
71
70
|
}
|
|
72
|
-
listDryrunPagingAll(subscriptionId, resourceGroupName, location, options) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listDryrunPagingPage(subscriptionId, resourceGroupName, location, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
77
|
-
_c = _f.value;
|
|
78
|
-
_d = false;
|
|
79
|
-
const page = _c;
|
|
80
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
84
|
-
finally {
|
|
85
|
-
try {
|
|
86
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
87
|
-
}
|
|
88
|
-
finally { if (e_1) throw e_1.error; }
|
|
89
|
-
}
|
|
90
|
-
});
|
|
71
|
+
async *listDryrunPagingAll(subscriptionId, resourceGroupName, location, options) {
|
|
72
|
+
for await (const page of this.listDryrunPagingPage(subscriptionId, resourceGroupName, location, options)) {
|
|
73
|
+
yield* page;
|
|
74
|
+
}
|
|
91
75
|
}
|
|
92
76
|
/**
|
|
93
77
|
* Returns list of connector which connects to the resource, which supports to config the target
|
|
@@ -107,52 +91,35 @@ class ConnectorImpl {
|
|
|
107
91
|
return this;
|
|
108
92
|
},
|
|
109
93
|
byPage: (settings) => {
|
|
110
|
-
if (settings
|
|
94
|
+
if (settings?.maxPageSize) {
|
|
111
95
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
112
96
|
}
|
|
113
97
|
return this.listPagingPage(subscriptionId, resourceGroupName, location, options, settings);
|
|
114
98
|
},
|
|
115
99
|
};
|
|
116
100
|
}
|
|
117
|
-
listPagingPage(subscriptionId, resourceGroupName, location, options, settings) {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
});
|
|
101
|
+
async *listPagingPage(subscriptionId, resourceGroupName, location, options, settings) {
|
|
102
|
+
let result;
|
|
103
|
+
let continuationToken = settings?.continuationToken;
|
|
104
|
+
if (!continuationToken) {
|
|
105
|
+
result = await this._list(subscriptionId, resourceGroupName, location, options);
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
109
|
+
yield page;
|
|
110
|
+
}
|
|
111
|
+
while (continuationToken) {
|
|
112
|
+
result = await this._listNext(subscriptionId, resourceGroupName, location, continuationToken, options);
|
|
113
|
+
continuationToken = result.nextLink;
|
|
114
|
+
let page = result.value || [];
|
|
115
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
116
|
+
yield page;
|
|
117
|
+
}
|
|
136
118
|
}
|
|
137
|
-
listPagingAll(subscriptionId, resourceGroupName, location, options) {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(subscriptionId, resourceGroupName, location, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
142
|
-
_c = _f.value;
|
|
143
|
-
_d = false;
|
|
144
|
-
const page = _c;
|
|
145
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
149
|
-
finally {
|
|
150
|
-
try {
|
|
151
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
152
|
-
}
|
|
153
|
-
finally { if (e_2) throw e_2.error; }
|
|
154
|
-
}
|
|
155
|
-
});
|
|
119
|
+
async *listPagingAll(subscriptionId, resourceGroupName, location, options) {
|
|
120
|
+
for await (const page of this.listPagingPage(subscriptionId, resourceGroupName, location, options)) {
|
|
121
|
+
yield* page;
|
|
122
|
+
}
|
|
156
123
|
}
|
|
157
124
|
/**
|
|
158
125
|
* list dryrun jobs
|
|
@@ -189,14 +156,19 @@ class ConnectorImpl {
|
|
|
189
156
|
return this.client.sendOperationRequest(args, spec);
|
|
190
157
|
};
|
|
191
158
|
const sendOperationFn = async (args, spec) => {
|
|
192
|
-
var _a;
|
|
193
159
|
let currentRawResponse = undefined;
|
|
194
|
-
const providedCallback =
|
|
160
|
+
const providedCallback = args.options?.onResponse;
|
|
195
161
|
const callback = (rawResponse, flatResponse) => {
|
|
196
162
|
currentRawResponse = rawResponse;
|
|
197
|
-
providedCallback
|
|
163
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
164
|
+
};
|
|
165
|
+
const updatedArgs = {
|
|
166
|
+
...args,
|
|
167
|
+
options: {
|
|
168
|
+
...args.options,
|
|
169
|
+
onResponse: callback,
|
|
170
|
+
},
|
|
198
171
|
};
|
|
199
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
200
172
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
201
173
|
return {
|
|
202
174
|
flatResponse,
|
|
@@ -220,8 +192,8 @@ class ConnectorImpl {
|
|
|
220
192
|
spec: createDryrunOperationSpec,
|
|
221
193
|
});
|
|
222
194
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
223
|
-
restoreFrom: options
|
|
224
|
-
intervalInMs: options
|
|
195
|
+
restoreFrom: options?.resumeFrom,
|
|
196
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
225
197
|
resourceLocationConfig: "azure-async-operation",
|
|
226
198
|
});
|
|
227
199
|
await poller.poll();
|
|
@@ -254,14 +226,19 @@ class ConnectorImpl {
|
|
|
254
226
|
return this.client.sendOperationRequest(args, spec);
|
|
255
227
|
};
|
|
256
228
|
const sendOperationFn = async (args, spec) => {
|
|
257
|
-
var _a;
|
|
258
229
|
let currentRawResponse = undefined;
|
|
259
|
-
const providedCallback =
|
|
230
|
+
const providedCallback = args.options?.onResponse;
|
|
260
231
|
const callback = (rawResponse, flatResponse) => {
|
|
261
232
|
currentRawResponse = rawResponse;
|
|
262
|
-
providedCallback
|
|
233
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
234
|
+
};
|
|
235
|
+
const updatedArgs = {
|
|
236
|
+
...args,
|
|
237
|
+
options: {
|
|
238
|
+
...args.options,
|
|
239
|
+
onResponse: callback,
|
|
240
|
+
},
|
|
263
241
|
};
|
|
264
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
265
242
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
266
243
|
return {
|
|
267
244
|
flatResponse,
|
|
@@ -285,8 +262,8 @@ class ConnectorImpl {
|
|
|
285
262
|
spec: updateDryrunOperationSpec,
|
|
286
263
|
});
|
|
287
264
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
288
|
-
restoreFrom: options
|
|
289
|
-
intervalInMs: options
|
|
265
|
+
restoreFrom: options?.resumeFrom,
|
|
266
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
290
267
|
resourceLocationConfig: "azure-async-operation",
|
|
291
268
|
});
|
|
292
269
|
await poller.poll();
|
|
@@ -352,14 +329,19 @@ class ConnectorImpl {
|
|
|
352
329
|
return this.client.sendOperationRequest(args, spec);
|
|
353
330
|
};
|
|
354
331
|
const sendOperationFn = async (args, spec) => {
|
|
355
|
-
var _a;
|
|
356
332
|
let currentRawResponse = undefined;
|
|
357
|
-
const providedCallback =
|
|
333
|
+
const providedCallback = args.options?.onResponse;
|
|
358
334
|
const callback = (rawResponse, flatResponse) => {
|
|
359
335
|
currentRawResponse = rawResponse;
|
|
360
|
-
providedCallback
|
|
336
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
337
|
+
};
|
|
338
|
+
const updatedArgs = {
|
|
339
|
+
...args,
|
|
340
|
+
options: {
|
|
341
|
+
...args.options,
|
|
342
|
+
onResponse: callback,
|
|
343
|
+
},
|
|
361
344
|
};
|
|
362
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
363
345
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
364
346
|
return {
|
|
365
347
|
flatResponse,
|
|
@@ -383,8 +365,8 @@ class ConnectorImpl {
|
|
|
383
365
|
spec: createOrUpdateOperationSpec,
|
|
384
366
|
});
|
|
385
367
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
386
|
-
restoreFrom: options
|
|
387
|
-
intervalInMs: options
|
|
368
|
+
restoreFrom: options?.resumeFrom,
|
|
369
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
388
370
|
resourceLocationConfig: "azure-async-operation",
|
|
389
371
|
});
|
|
390
372
|
await poller.poll();
|
|
@@ -416,14 +398,19 @@ class ConnectorImpl {
|
|
|
416
398
|
return this.client.sendOperationRequest(args, spec);
|
|
417
399
|
};
|
|
418
400
|
const sendOperationFn = async (args, spec) => {
|
|
419
|
-
var _a;
|
|
420
401
|
let currentRawResponse = undefined;
|
|
421
|
-
const providedCallback =
|
|
402
|
+
const providedCallback = args.options?.onResponse;
|
|
422
403
|
const callback = (rawResponse, flatResponse) => {
|
|
423
404
|
currentRawResponse = rawResponse;
|
|
424
|
-
providedCallback
|
|
405
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
406
|
+
};
|
|
407
|
+
const updatedArgs = {
|
|
408
|
+
...args,
|
|
409
|
+
options: {
|
|
410
|
+
...args.options,
|
|
411
|
+
onResponse: callback,
|
|
412
|
+
},
|
|
425
413
|
};
|
|
426
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
427
414
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
428
415
|
return {
|
|
429
416
|
flatResponse,
|
|
@@ -446,8 +433,8 @@ class ConnectorImpl {
|
|
|
446
433
|
spec: deleteOperationSpec,
|
|
447
434
|
});
|
|
448
435
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
449
|
-
restoreFrom: options
|
|
450
|
-
intervalInMs: options
|
|
436
|
+
restoreFrom: options?.resumeFrom,
|
|
437
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
451
438
|
resourceLocationConfig: "azure-async-operation",
|
|
452
439
|
});
|
|
453
440
|
await poller.poll();
|
|
@@ -479,14 +466,19 @@ class ConnectorImpl {
|
|
|
479
466
|
return this.client.sendOperationRequest(args, spec);
|
|
480
467
|
};
|
|
481
468
|
const sendOperationFn = async (args, spec) => {
|
|
482
|
-
var _a;
|
|
483
469
|
let currentRawResponse = undefined;
|
|
484
|
-
const providedCallback =
|
|
470
|
+
const providedCallback = args.options?.onResponse;
|
|
485
471
|
const callback = (rawResponse, flatResponse) => {
|
|
486
472
|
currentRawResponse = rawResponse;
|
|
487
|
-
providedCallback
|
|
473
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
474
|
+
};
|
|
475
|
+
const updatedArgs = {
|
|
476
|
+
...args,
|
|
477
|
+
options: {
|
|
478
|
+
...args.options,
|
|
479
|
+
onResponse: callback,
|
|
480
|
+
},
|
|
488
481
|
};
|
|
489
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
490
482
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
491
483
|
return {
|
|
492
484
|
flatResponse,
|
|
@@ -510,8 +502,8 @@ class ConnectorImpl {
|
|
|
510
502
|
spec: updateOperationSpec,
|
|
511
503
|
});
|
|
512
504
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
513
|
-
restoreFrom: options
|
|
514
|
-
intervalInMs: options
|
|
505
|
+
restoreFrom: options?.resumeFrom,
|
|
506
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
515
507
|
resourceLocationConfig: "azure-async-operation",
|
|
516
508
|
});
|
|
517
509
|
await poller.poll();
|
|
@@ -543,14 +535,19 @@ class ConnectorImpl {
|
|
|
543
535
|
return this.client.sendOperationRequest(args, spec);
|
|
544
536
|
};
|
|
545
537
|
const sendOperationFn = async (args, spec) => {
|
|
546
|
-
var _a;
|
|
547
538
|
let currentRawResponse = undefined;
|
|
548
|
-
const providedCallback =
|
|
539
|
+
const providedCallback = args.options?.onResponse;
|
|
549
540
|
const callback = (rawResponse, flatResponse) => {
|
|
550
541
|
currentRawResponse = rawResponse;
|
|
551
|
-
providedCallback
|
|
542
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
543
|
+
};
|
|
544
|
+
const updatedArgs = {
|
|
545
|
+
...args,
|
|
546
|
+
options: {
|
|
547
|
+
...args.options,
|
|
548
|
+
onResponse: callback,
|
|
549
|
+
},
|
|
552
550
|
};
|
|
553
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
554
551
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
555
552
|
return {
|
|
556
553
|
flatResponse,
|
|
@@ -573,8 +570,8 @@ class ConnectorImpl {
|
|
|
573
570
|
spec: validateOperationSpec,
|
|
574
571
|
});
|
|
575
572
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
576
|
-
restoreFrom: options
|
|
577
|
-
intervalInMs: options
|
|
573
|
+
restoreFrom: options?.resumeFrom,
|
|
574
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
578
575
|
resourceLocationConfig: "location",
|
|
579
576
|
});
|
|
580
577
|
await poller.poll();
|