@azure/arm-servicelinker 2.2.0-alpha.20250619.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.
Files changed (75) hide show
  1. package/dist/browser/lroImpl.js +7 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +187 -79
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/configurationNames.js +23 -40
  6. package/dist/browser/operations/configurationNames.js.map +1 -1
  7. package/dist/browser/operations/connector.js +111 -115
  8. package/dist/browser/operations/connector.js.map +1 -1
  9. package/dist/browser/operations/linker.js +67 -64
  10. package/dist/browser/operations/linker.js.map +1 -1
  11. package/dist/browser/operations/linkers.js +67 -91
  12. package/dist/browser/operations/linkers.js.map +1 -1
  13. package/dist/browser/operations/operations.js +23 -40
  14. package/dist/browser/operations/operations.js.map +1 -1
  15. package/dist/browser/pagingHelper.js +2 -4
  16. package/dist/browser/pagingHelper.js.map +1 -1
  17. package/dist/browser/serviceLinkerManagementClient.js +17 -5
  18. package/dist/browser/serviceLinkerManagementClient.js.map +1 -1
  19. package/dist/commonjs/lroImpl.js +7 -3
  20. package/dist/commonjs/lroImpl.js.map +1 -1
  21. package/dist/commonjs/models/mappers.js +187 -79
  22. package/dist/commonjs/models/mappers.js.map +1 -1
  23. package/dist/commonjs/operations/configurationNames.js +23 -39
  24. package/dist/commonjs/operations/configurationNames.js.map +1 -1
  25. package/dist/commonjs/operations/connector.js +111 -114
  26. package/dist/commonjs/operations/connector.js.map +1 -1
  27. package/dist/commonjs/operations/linker.js +67 -63
  28. package/dist/commonjs/operations/linker.js.map +1 -1
  29. package/dist/commonjs/operations/linkers.js +67 -90
  30. package/dist/commonjs/operations/linkers.js.map +1 -1
  31. package/dist/commonjs/operations/operations.js +23 -39
  32. package/dist/commonjs/operations/operations.js.map +1 -1
  33. package/dist/commonjs/pagingHelper.js +2 -4
  34. package/dist/commonjs/pagingHelper.js.map +1 -1
  35. package/dist/commonjs/serviceLinkerManagementClient.js +17 -5
  36. package/dist/commonjs/serviceLinkerManagementClient.js.map +1 -1
  37. package/dist/commonjs/tsdoc-metadata.json +11 -11
  38. package/dist/esm/lroImpl.js +7 -3
  39. package/dist/esm/lroImpl.js.map +1 -1
  40. package/dist/esm/models/mappers.js +187 -79
  41. package/dist/esm/models/mappers.js.map +1 -1
  42. package/dist/esm/operations/configurationNames.js +23 -40
  43. package/dist/esm/operations/configurationNames.js.map +1 -1
  44. package/dist/esm/operations/connector.js +111 -115
  45. package/dist/esm/operations/connector.js.map +1 -1
  46. package/dist/esm/operations/linker.js +67 -64
  47. package/dist/esm/operations/linker.js.map +1 -1
  48. package/dist/esm/operations/linkers.js +67 -91
  49. package/dist/esm/operations/linkers.js.map +1 -1
  50. package/dist/esm/operations/operations.js +23 -40
  51. package/dist/esm/operations/operations.js.map +1 -1
  52. package/dist/esm/pagingHelper.js +2 -4
  53. package/dist/esm/pagingHelper.js.map +1 -1
  54. package/dist/esm/serviceLinkerManagementClient.js +17 -5
  55. package/dist/esm/serviceLinkerManagementClient.js.map +1 -1
  56. package/dist/react-native/lroImpl.js +7 -3
  57. package/dist/react-native/lroImpl.js.map +1 -1
  58. package/dist/react-native/models/mappers.js +187 -79
  59. package/dist/react-native/models/mappers.js.map +1 -1
  60. package/dist/react-native/operations/configurationNames.js +23 -40
  61. package/dist/react-native/operations/configurationNames.js.map +1 -1
  62. package/dist/react-native/operations/connector.js +111 -115
  63. package/dist/react-native/operations/connector.js.map +1 -1
  64. package/dist/react-native/operations/linker.js +67 -64
  65. package/dist/react-native/operations/linker.js.map +1 -1
  66. package/dist/react-native/operations/linkers.js +67 -91
  67. package/dist/react-native/operations/linkers.js.map +1 -1
  68. package/dist/react-native/operations/operations.js +23 -40
  69. package/dist/react-native/operations/operations.js.map +1 -1
  70. package/dist/react-native/pagingHelper.js +2 -4
  71. package/dist/react-native/pagingHelper.js.map +1 -1
  72. package/dist/react-native/serviceLinkerManagementClient.js +17 -5
  73. package/dist/react-native/serviceLinkerManagementClient.js.map +1 -1
  74. package/package.json +2 -2
  75. /package/review/{arm-servicelinker.api.md → arm-servicelinker-node.api.md} +0 -0
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing Connector operations. */
17
16
  export class ConnectorImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class Connector class.
20
20
  * @param client Reference to the service client
@@ -39,52 +39,35 @@ export class ConnectorImpl {
39
39
  return this;
40
40
  },
41
41
  byPage: (settings) => {
42
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ if (settings?.maxPageSize) {
43
43
  throw new Error("maxPageSize is not supported by this operation.");
44
44
  }
45
45
  return this.listDryrunPagingPage(subscriptionId, resourceGroupName, location, options, settings);
46
46
  },
47
47
  };
48
48
  }
49
- listDryrunPagingPage(subscriptionId, resourceGroupName, location, options, settings) {
50
- return __asyncGenerator(this, arguments, function* listDryrunPagingPage_1() {
51
- let result;
52
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
- if (!continuationToken) {
54
- result = yield __await(this._listDryrun(subscriptionId, resourceGroupName, location, options));
55
- let page = result.value || [];
56
- continuationToken = result.nextLink;
57
- setContinuationToken(page, continuationToken);
58
- yield yield __await(page);
59
- }
60
- while (continuationToken) {
61
- result = yield __await(this._listDryrunNext(subscriptionId, resourceGroupName, location, continuationToken, options));
62
- continuationToken = result.nextLink;
63
- let page = result.value || [];
64
- setContinuationToken(page, continuationToken);
65
- yield yield __await(page);
66
- }
67
- });
49
+ async *listDryrunPagingPage(subscriptionId, resourceGroupName, location, options, settings) {
50
+ let result;
51
+ let continuationToken = settings?.continuationToken;
52
+ if (!continuationToken) {
53
+ result = await this._listDryrun(subscriptionId, resourceGroupName, location, options);
54
+ let page = result.value || [];
55
+ continuationToken = result.nextLink;
56
+ setContinuationToken(page, continuationToken);
57
+ yield page;
58
+ }
59
+ while (continuationToken) {
60
+ result = await this._listDryrunNext(subscriptionId, resourceGroupName, location, continuationToken, options);
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ setContinuationToken(page, continuationToken);
64
+ yield page;
65
+ }
68
66
  }
69
- listDryrunPagingAll(subscriptionId, resourceGroupName, location, options) {
70
- return __asyncGenerator(this, arguments, function* listDryrunPagingAll_1() {
71
- var _a, e_1, _b, _c;
72
- try {
73
- for (var _d = true, _e = __asyncValues(this.listDryrunPagingPage(subscriptionId, resourceGroupName, location, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
74
- _c = _f.value;
75
- _d = false;
76
- const page = _c;
77
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
78
- }
79
- }
80
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
- finally {
82
- try {
83
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
84
- }
85
- finally { if (e_1) throw e_1.error; }
86
- }
87
- });
67
+ async *listDryrunPagingAll(subscriptionId, resourceGroupName, location, options) {
68
+ for await (const page of this.listDryrunPagingPage(subscriptionId, resourceGroupName, location, options)) {
69
+ yield* page;
70
+ }
88
71
  }
89
72
  /**
90
73
  * Returns list of connector which connects to the resource, which supports to config the target
@@ -104,52 +87,35 @@ export class ConnectorImpl {
104
87
  return this;
105
88
  },
106
89
  byPage: (settings) => {
107
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
90
+ if (settings?.maxPageSize) {
108
91
  throw new Error("maxPageSize is not supported by this operation.");
109
92
  }
110
93
  return this.listPagingPage(subscriptionId, resourceGroupName, location, options, settings);
111
94
  },
112
95
  };
113
96
  }
114
- listPagingPage(subscriptionId, resourceGroupName, location, options, settings) {
115
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
116
- let result;
117
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
118
- if (!continuationToken) {
119
- result = yield __await(this._list(subscriptionId, resourceGroupName, location, options));
120
- let page = result.value || [];
121
- continuationToken = result.nextLink;
122
- setContinuationToken(page, continuationToken);
123
- yield yield __await(page);
124
- }
125
- while (continuationToken) {
126
- result = yield __await(this._listNext(subscriptionId, resourceGroupName, location, continuationToken, options));
127
- continuationToken = result.nextLink;
128
- let page = result.value || [];
129
- setContinuationToken(page, continuationToken);
130
- yield yield __await(page);
131
- }
132
- });
97
+ async *listPagingPage(subscriptionId, resourceGroupName, location, options, settings) {
98
+ let result;
99
+ let continuationToken = settings?.continuationToken;
100
+ if (!continuationToken) {
101
+ result = await this._list(subscriptionId, resourceGroupName, location, options);
102
+ let page = result.value || [];
103
+ continuationToken = result.nextLink;
104
+ setContinuationToken(page, continuationToken);
105
+ yield page;
106
+ }
107
+ while (continuationToken) {
108
+ result = await this._listNext(subscriptionId, resourceGroupName, location, continuationToken, options);
109
+ continuationToken = result.nextLink;
110
+ let page = result.value || [];
111
+ setContinuationToken(page, continuationToken);
112
+ yield page;
113
+ }
133
114
  }
134
- listPagingAll(subscriptionId, resourceGroupName, location, options) {
135
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
136
- var _a, e_2, _b, _c;
137
- try {
138
- for (var _d = true, _e = __asyncValues(this.listPagingPage(subscriptionId, resourceGroupName, location, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
139
- _c = _f.value;
140
- _d = false;
141
- const page = _c;
142
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
143
- }
144
- }
145
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
146
- finally {
147
- try {
148
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
149
- }
150
- finally { if (e_2) throw e_2.error; }
151
- }
152
- });
115
+ async *listPagingAll(subscriptionId, resourceGroupName, location, options) {
116
+ for await (const page of this.listPagingPage(subscriptionId, resourceGroupName, location, options)) {
117
+ yield* page;
118
+ }
153
119
  }
154
120
  /**
155
121
  * list dryrun jobs
@@ -186,14 +152,19 @@ export class ConnectorImpl {
186
152
  return this.client.sendOperationRequest(args, spec);
187
153
  };
188
154
  const sendOperationFn = async (args, spec) => {
189
- var _a;
190
155
  let currentRawResponse = undefined;
191
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
156
+ const providedCallback = args.options?.onResponse;
192
157
  const callback = (rawResponse, flatResponse) => {
193
158
  currentRawResponse = rawResponse;
194
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
159
+ providedCallback?.(rawResponse, flatResponse);
160
+ };
161
+ const updatedArgs = {
162
+ ...args,
163
+ options: {
164
+ ...args.options,
165
+ onResponse: callback,
166
+ },
195
167
  };
196
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
197
168
  const flatResponse = await directSendOperation(updatedArgs, spec);
198
169
  return {
199
170
  flatResponse,
@@ -217,8 +188,8 @@ export class ConnectorImpl {
217
188
  spec: createDryrunOperationSpec,
218
189
  });
219
190
  const poller = await createHttpPoller(lro, {
220
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
221
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
191
+ restoreFrom: options?.resumeFrom,
192
+ intervalInMs: options?.updateIntervalInMs,
222
193
  resourceLocationConfig: "azure-async-operation",
223
194
  });
224
195
  await poller.poll();
@@ -251,14 +222,19 @@ export class ConnectorImpl {
251
222
  return this.client.sendOperationRequest(args, spec);
252
223
  };
253
224
  const sendOperationFn = async (args, spec) => {
254
- var _a;
255
225
  let currentRawResponse = undefined;
256
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
226
+ const providedCallback = args.options?.onResponse;
257
227
  const callback = (rawResponse, flatResponse) => {
258
228
  currentRawResponse = rawResponse;
259
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
229
+ providedCallback?.(rawResponse, flatResponse);
230
+ };
231
+ const updatedArgs = {
232
+ ...args,
233
+ options: {
234
+ ...args.options,
235
+ onResponse: callback,
236
+ },
260
237
  };
261
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
262
238
  const flatResponse = await directSendOperation(updatedArgs, spec);
263
239
  return {
264
240
  flatResponse,
@@ -282,8 +258,8 @@ export class ConnectorImpl {
282
258
  spec: updateDryrunOperationSpec,
283
259
  });
284
260
  const poller = await createHttpPoller(lro, {
285
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
286
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
261
+ restoreFrom: options?.resumeFrom,
262
+ intervalInMs: options?.updateIntervalInMs,
287
263
  resourceLocationConfig: "azure-async-operation",
288
264
  });
289
265
  await poller.poll();
@@ -349,14 +325,19 @@ export class ConnectorImpl {
349
325
  return this.client.sendOperationRequest(args, spec);
350
326
  };
351
327
  const sendOperationFn = async (args, spec) => {
352
- var _a;
353
328
  let currentRawResponse = undefined;
354
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
329
+ const providedCallback = args.options?.onResponse;
355
330
  const callback = (rawResponse, flatResponse) => {
356
331
  currentRawResponse = rawResponse;
357
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
332
+ providedCallback?.(rawResponse, flatResponse);
333
+ };
334
+ const updatedArgs = {
335
+ ...args,
336
+ options: {
337
+ ...args.options,
338
+ onResponse: callback,
339
+ },
358
340
  };
359
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
360
341
  const flatResponse = await directSendOperation(updatedArgs, spec);
361
342
  return {
362
343
  flatResponse,
@@ -380,8 +361,8 @@ export class ConnectorImpl {
380
361
  spec: createOrUpdateOperationSpec,
381
362
  });
382
363
  const poller = await createHttpPoller(lro, {
383
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
384
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
364
+ restoreFrom: options?.resumeFrom,
365
+ intervalInMs: options?.updateIntervalInMs,
385
366
  resourceLocationConfig: "azure-async-operation",
386
367
  });
387
368
  await poller.poll();
@@ -413,14 +394,19 @@ export class ConnectorImpl {
413
394
  return this.client.sendOperationRequest(args, spec);
414
395
  };
415
396
  const sendOperationFn = async (args, spec) => {
416
- var _a;
417
397
  let currentRawResponse = undefined;
418
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
398
+ const providedCallback = args.options?.onResponse;
419
399
  const callback = (rawResponse, flatResponse) => {
420
400
  currentRawResponse = rawResponse;
421
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
401
+ providedCallback?.(rawResponse, flatResponse);
402
+ };
403
+ const updatedArgs = {
404
+ ...args,
405
+ options: {
406
+ ...args.options,
407
+ onResponse: callback,
408
+ },
422
409
  };
423
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
424
410
  const flatResponse = await directSendOperation(updatedArgs, spec);
425
411
  return {
426
412
  flatResponse,
@@ -443,8 +429,8 @@ export class ConnectorImpl {
443
429
  spec: deleteOperationSpec,
444
430
  });
445
431
  const poller = await createHttpPoller(lro, {
446
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
447
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
432
+ restoreFrom: options?.resumeFrom,
433
+ intervalInMs: options?.updateIntervalInMs,
448
434
  resourceLocationConfig: "azure-async-operation",
449
435
  });
450
436
  await poller.poll();
@@ -476,14 +462,19 @@ export class ConnectorImpl {
476
462
  return this.client.sendOperationRequest(args, spec);
477
463
  };
478
464
  const sendOperationFn = async (args, spec) => {
479
- var _a;
480
465
  let currentRawResponse = undefined;
481
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
466
+ const providedCallback = args.options?.onResponse;
482
467
  const callback = (rawResponse, flatResponse) => {
483
468
  currentRawResponse = rawResponse;
484
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
469
+ providedCallback?.(rawResponse, flatResponse);
470
+ };
471
+ const updatedArgs = {
472
+ ...args,
473
+ options: {
474
+ ...args.options,
475
+ onResponse: callback,
476
+ },
485
477
  };
486
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
487
478
  const flatResponse = await directSendOperation(updatedArgs, spec);
488
479
  return {
489
480
  flatResponse,
@@ -507,8 +498,8 @@ export class ConnectorImpl {
507
498
  spec: updateOperationSpec,
508
499
  });
509
500
  const poller = await createHttpPoller(lro, {
510
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
511
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
501
+ restoreFrom: options?.resumeFrom,
502
+ intervalInMs: options?.updateIntervalInMs,
512
503
  resourceLocationConfig: "azure-async-operation",
513
504
  });
514
505
  await poller.poll();
@@ -540,14 +531,19 @@ export class ConnectorImpl {
540
531
  return this.client.sendOperationRequest(args, spec);
541
532
  };
542
533
  const sendOperationFn = async (args, spec) => {
543
- var _a;
544
534
  let currentRawResponse = undefined;
545
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
535
+ const providedCallback = args.options?.onResponse;
546
536
  const callback = (rawResponse, flatResponse) => {
547
537
  currentRawResponse = rawResponse;
548
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
538
+ providedCallback?.(rawResponse, flatResponse);
539
+ };
540
+ const updatedArgs = {
541
+ ...args,
542
+ options: {
543
+ ...args.options,
544
+ onResponse: callback,
545
+ },
549
546
  };
550
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
551
547
  const flatResponse = await directSendOperation(updatedArgs, spec);
552
548
  return {
553
549
  flatResponse,
@@ -570,8 +566,8 @@ export class ConnectorImpl {
570
566
  spec: validateOperationSpec,
571
567
  });
572
568
  const poller = await createHttpPoller(lro, {
573
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
574
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
569
+ restoreFrom: options?.resumeFrom,
570
+ intervalInMs: options?.updateIntervalInMs,
575
571
  resourceLocationConfig: "location",
576
572
  });
577
573
  await poller.poll();