@azure/arm-datafactory 18.0.0-alpha.20250103.1 → 18.0.0-alpha.20250106.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/index.js CHANGED
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
47
47
  if (typeof page !== "object" || page === null) {
48
48
  return undefined;
49
49
  }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
50
+ return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
51
51
  }
52
52
  function setContinuationToken(page, continuationToken) {
53
53
  var _a;
54
54
  if (typeof page !== "object" || page === null || !continuationToken) {
55
55
  return;
56
56
  }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
58
58
  pageInfo.continuationToken = continuationToken;
59
59
  pageMap.set(page, pageInfo);
60
60
  }
@@ -29625,7 +29625,7 @@ class OperationsImpl {
29625
29625
  return this;
29626
29626
  },
29627
29627
  byPage: (settings) => {
29628
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
29628
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
29629
29629
  throw new Error("maxPageSize is not supported by this operation.");
29630
29630
  }
29631
29631
  return this.listPagingPage(options, settings);
@@ -29635,7 +29635,7 @@ class OperationsImpl {
29635
29635
  listPagingPage(options, settings) {
29636
29636
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
29637
29637
  let result;
29638
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
29638
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
29639
29639
  if (!continuationToken) {
29640
29640
  result = yield tslib.__await(this._list(options));
29641
29641
  let page = result.value || [];
@@ -29753,7 +29753,7 @@ class FactoriesImpl {
29753
29753
  return this;
29754
29754
  },
29755
29755
  byPage: (settings) => {
29756
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
29756
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
29757
29757
  throw new Error("maxPageSize is not supported by this operation.");
29758
29758
  }
29759
29759
  return this.listPagingPage(options, settings);
@@ -29763,7 +29763,7 @@ class FactoriesImpl {
29763
29763
  listPagingPage(options, settings) {
29764
29764
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
29765
29765
  let result;
29766
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
29766
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
29767
29767
  if (!continuationToken) {
29768
29768
  result = yield tslib.__await(this._list(options));
29769
29769
  let page = result.value || [];
@@ -29815,7 +29815,7 @@ class FactoriesImpl {
29815
29815
  return this;
29816
29816
  },
29817
29817
  byPage: (settings) => {
29818
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
29818
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
29819
29819
  throw new Error("maxPageSize is not supported by this operation.");
29820
29820
  }
29821
29821
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -29825,7 +29825,7 @@ class FactoriesImpl {
29825
29825
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
29826
29826
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
29827
29827
  let result;
29828
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
29828
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
29829
29829
  if (!continuationToken) {
29830
29830
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
29831
29831
  let page = result.value || [];
@@ -30332,7 +30332,7 @@ function createLroSpec(inputs) {
30332
30332
  sendInitialRequest: () => sendOperationFn(args, spec),
30333
30333
  sendPollRequest: (path, options) => {
30334
30334
  const restSpec = tslib.__rest(spec, ["requestBody"]);
30335
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
30335
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
30336
30336
  },
30337
30337
  };
30338
30338
  }
@@ -30370,7 +30370,7 @@ class IntegrationRuntimesImpl {
30370
30370
  return this;
30371
30371
  },
30372
30372
  byPage: (settings) => {
30373
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
30373
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
30374
30374
  throw new Error("maxPageSize is not supported by this operation.");
30375
30375
  }
30376
30376
  return this.listByFactoryPagingPage(resourceGroupName, factoryName, options, settings);
@@ -30380,7 +30380,7 @@ class IntegrationRuntimesImpl {
30380
30380
  listByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
30381
30381
  return tslib.__asyncGenerator(this, arguments, function* listByFactoryPagingPage_1() {
30382
30382
  let result;
30383
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
30383
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
30384
30384
  if (!continuationToken) {
30385
30385
  result = yield tslib.__await(this._listByFactory(resourceGroupName, factoryName, options));
30386
30386
  let page = result.value || [];
@@ -30547,17 +30547,17 @@ class IntegrationRuntimesImpl {
30547
30547
  * @param options The options parameters.
30548
30548
  */
30549
30549
  beginStart(resourceGroupName, factoryName, integrationRuntimeName, options) {
30550
- return tslib.__awaiter(this, void 0, void 0, function* () {
30551
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30550
+ return tslib.__awaiter(this, undefined, undefined, function* () {
30551
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
30552
30552
  return this.client.sendOperationRequest(args, spec);
30553
30553
  });
30554
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30554
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
30555
30555
  var _a;
30556
30556
  let currentRawResponse = undefined;
30557
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
30557
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
30558
30558
  const callback = (rawResponse, flatResponse) => {
30559
30559
  currentRawResponse = rawResponse;
30560
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
30560
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
30561
30561
  };
30562
30562
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
30563
30563
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -30576,8 +30576,8 @@ class IntegrationRuntimesImpl {
30576
30576
  spec: startOperationSpec$2,
30577
30577
  });
30578
30578
  const poller = yield coreLro.createHttpPoller(lro, {
30579
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
30580
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
30579
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
30580
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
30581
30581
  });
30582
30582
  yield poller.poll();
30583
30583
  return poller;
@@ -30591,7 +30591,7 @@ class IntegrationRuntimesImpl {
30591
30591
  * @param options The options parameters.
30592
30592
  */
30593
30593
  beginStartAndWait(resourceGroupName, factoryName, integrationRuntimeName, options) {
30594
- return tslib.__awaiter(this, void 0, void 0, function* () {
30594
+ return tslib.__awaiter(this, undefined, undefined, function* () {
30595
30595
  const poller = yield this.beginStart(resourceGroupName, factoryName, integrationRuntimeName, options);
30596
30596
  return poller.pollUntilDone();
30597
30597
  });
@@ -30604,17 +30604,17 @@ class IntegrationRuntimesImpl {
30604
30604
  * @param options The options parameters.
30605
30605
  */
30606
30606
  beginStop(resourceGroupName, factoryName, integrationRuntimeName, options) {
30607
- return tslib.__awaiter(this, void 0, void 0, function* () {
30608
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30607
+ return tslib.__awaiter(this, undefined, undefined, function* () {
30608
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
30609
30609
  return this.client.sendOperationRequest(args, spec);
30610
30610
  });
30611
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30611
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
30612
30612
  var _a;
30613
30613
  let currentRawResponse = undefined;
30614
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
30614
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
30615
30615
  const callback = (rawResponse, flatResponse) => {
30616
30616
  currentRawResponse = rawResponse;
30617
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
30617
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
30618
30618
  };
30619
30619
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
30620
30620
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -30633,8 +30633,8 @@ class IntegrationRuntimesImpl {
30633
30633
  spec: stopOperationSpec$2,
30634
30634
  });
30635
30635
  const poller = yield coreLro.createHttpPoller(lro, {
30636
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
30637
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
30636
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
30637
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
30638
30638
  });
30639
30639
  yield poller.poll();
30640
30640
  return poller;
@@ -30648,7 +30648,7 @@ class IntegrationRuntimesImpl {
30648
30648
  * @param options The options parameters.
30649
30649
  */
30650
30650
  beginStopAndWait(resourceGroupName, factoryName, integrationRuntimeName, options) {
30651
- return tslib.__awaiter(this, void 0, void 0, function* () {
30651
+ return tslib.__awaiter(this, undefined, undefined, function* () {
30652
30652
  const poller = yield this.beginStop(resourceGroupName, factoryName, integrationRuntimeName, options);
30653
30653
  return poller.pollUntilDone();
30654
30654
  });
@@ -31172,17 +31172,17 @@ class IntegrationRuntimeObjectMetadataImpl {
31172
31172
  * @param options The options parameters.
31173
31173
  */
31174
31174
  beginRefresh(resourceGroupName, factoryName, integrationRuntimeName, options) {
31175
- return tslib.__awaiter(this, void 0, void 0, function* () {
31176
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31175
+ return tslib.__awaiter(this, undefined, undefined, function* () {
31176
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
31177
31177
  return this.client.sendOperationRequest(args, spec);
31178
31178
  });
31179
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31179
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
31180
31180
  var _a;
31181
31181
  let currentRawResponse = undefined;
31182
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
31182
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
31183
31183
  const callback = (rawResponse, flatResponse) => {
31184
31184
  currentRawResponse = rawResponse;
31185
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
31185
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
31186
31186
  };
31187
31187
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
31188
31188
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -31201,8 +31201,8 @@ class IntegrationRuntimeObjectMetadataImpl {
31201
31201
  spec: refreshOperationSpec,
31202
31202
  });
31203
31203
  const poller = yield coreLro.createHttpPoller(lro, {
31204
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
31205
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
31204
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
31205
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
31206
31206
  });
31207
31207
  yield poller.poll();
31208
31208
  return poller;
@@ -31216,7 +31216,7 @@ class IntegrationRuntimeObjectMetadataImpl {
31216
31216
  * @param options The options parameters.
31217
31217
  */
31218
31218
  beginRefreshAndWait(resourceGroupName, factoryName, integrationRuntimeName, options) {
31219
- return tslib.__awaiter(this, void 0, void 0, function* () {
31219
+ return tslib.__awaiter(this, undefined, undefined, function* () {
31220
31220
  const poller = yield this.beginRefresh(resourceGroupName, factoryName, integrationRuntimeName, options);
31221
31221
  return poller.pollUntilDone();
31222
31222
  });
@@ -31507,7 +31507,7 @@ class LinkedServicesImpl {
31507
31507
  return this;
31508
31508
  },
31509
31509
  byPage: (settings) => {
31510
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
31510
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
31511
31511
  throw new Error("maxPageSize is not supported by this operation.");
31512
31512
  }
31513
31513
  return this.listByFactoryPagingPage(resourceGroupName, factoryName, options, settings);
@@ -31517,7 +31517,7 @@ class LinkedServicesImpl {
31517
31517
  listByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
31518
31518
  return tslib.__asyncGenerator(this, arguments, function* listByFactoryPagingPage_1() {
31519
31519
  let result;
31520
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
31520
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
31521
31521
  if (!continuationToken) {
31522
31522
  result = yield tslib.__await(this._listByFactory(resourceGroupName, factoryName, options));
31523
31523
  let page = result.value || [];
@@ -31761,7 +31761,7 @@ class DatasetsImpl {
31761
31761
  return this;
31762
31762
  },
31763
31763
  byPage: (settings) => {
31764
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
31764
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
31765
31765
  throw new Error("maxPageSize is not supported by this operation.");
31766
31766
  }
31767
31767
  return this.listByFactoryPagingPage(resourceGroupName, factoryName, options, settings);
@@ -31771,7 +31771,7 @@ class DatasetsImpl {
31771
31771
  listByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
31772
31772
  return tslib.__asyncGenerator(this, arguments, function* listByFactoryPagingPage_1() {
31773
31773
  let result;
31774
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
31774
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
31775
31775
  if (!continuationToken) {
31776
31776
  result = yield tslib.__await(this._listByFactory(resourceGroupName, factoryName, options));
31777
31777
  let page = result.value || [];
@@ -32009,7 +32009,7 @@ class PipelinesImpl {
32009
32009
  return this;
32010
32010
  },
32011
32011
  byPage: (settings) => {
32012
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
32012
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
32013
32013
  throw new Error("maxPageSize is not supported by this operation.");
32014
32014
  }
32015
32015
  return this.listByFactoryPagingPage(resourceGroupName, factoryName, options, settings);
@@ -32019,7 +32019,7 @@ class PipelinesImpl {
32019
32019
  listByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
32020
32020
  return tslib.__asyncGenerator(this, arguments, function* listByFactoryPagingPage_1() {
32021
32021
  let result;
32022
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
32022
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
32023
32023
  if (!continuationToken) {
32024
32024
  result = yield tslib.__await(this._listByFactory(resourceGroupName, factoryName, options));
32025
32025
  let page = result.value || [];
@@ -32467,7 +32467,7 @@ class TriggersImpl {
32467
32467
  return this;
32468
32468
  },
32469
32469
  byPage: (settings) => {
32470
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
32470
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
32471
32471
  throw new Error("maxPageSize is not supported by this operation.");
32472
32472
  }
32473
32473
  return this.listByFactoryPagingPage(resourceGroupName, factoryName, options, settings);
@@ -32477,7 +32477,7 @@ class TriggersImpl {
32477
32477
  listByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
32478
32478
  return tslib.__asyncGenerator(this, arguments, function* listByFactoryPagingPage_1() {
32479
32479
  let result;
32480
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
32480
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
32481
32481
  if (!continuationToken) {
32482
32482
  result = yield tslib.__await(this._listByFactory(resourceGroupName, factoryName, options));
32483
32483
  let page = result.value || [];
@@ -32572,17 +32572,17 @@ class TriggersImpl {
32572
32572
  * @param options The options parameters.
32573
32573
  */
32574
32574
  beginSubscribeToEvents(resourceGroupName, factoryName, triggerName, options) {
32575
- return tslib.__awaiter(this, void 0, void 0, function* () {
32576
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32575
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32576
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32577
32577
  return this.client.sendOperationRequest(args, spec);
32578
32578
  });
32579
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32579
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32580
32580
  var _a;
32581
32581
  let currentRawResponse = undefined;
32582
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
32582
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
32583
32583
  const callback = (rawResponse, flatResponse) => {
32584
32584
  currentRawResponse = rawResponse;
32585
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
32585
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
32586
32586
  };
32587
32587
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
32588
32588
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -32601,8 +32601,8 @@ class TriggersImpl {
32601
32601
  spec: subscribeToEventsOperationSpec,
32602
32602
  });
32603
32603
  const poller = yield coreLro.createHttpPoller(lro, {
32604
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32605
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
32604
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
32605
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
32606
32606
  });
32607
32607
  yield poller.poll();
32608
32608
  return poller;
@@ -32616,7 +32616,7 @@ class TriggersImpl {
32616
32616
  * @param options The options parameters.
32617
32617
  */
32618
32618
  beginSubscribeToEventsAndWait(resourceGroupName, factoryName, triggerName, options) {
32619
- return tslib.__awaiter(this, void 0, void 0, function* () {
32619
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32620
32620
  const poller = yield this.beginSubscribeToEvents(resourceGroupName, factoryName, triggerName, options);
32621
32621
  return poller.pollUntilDone();
32622
32622
  });
@@ -32639,17 +32639,17 @@ class TriggersImpl {
32639
32639
  * @param options The options parameters.
32640
32640
  */
32641
32641
  beginUnsubscribeFromEvents(resourceGroupName, factoryName, triggerName, options) {
32642
- return tslib.__awaiter(this, void 0, void 0, function* () {
32643
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32642
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32643
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32644
32644
  return this.client.sendOperationRequest(args, spec);
32645
32645
  });
32646
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32646
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32647
32647
  var _a;
32648
32648
  let currentRawResponse = undefined;
32649
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
32649
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
32650
32650
  const callback = (rawResponse, flatResponse) => {
32651
32651
  currentRawResponse = rawResponse;
32652
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
32652
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
32653
32653
  };
32654
32654
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
32655
32655
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -32668,8 +32668,8 @@ class TriggersImpl {
32668
32668
  spec: unsubscribeFromEventsOperationSpec,
32669
32669
  });
32670
32670
  const poller = yield coreLro.createHttpPoller(lro, {
32671
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32672
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
32671
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
32672
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
32673
32673
  });
32674
32674
  yield poller.poll();
32675
32675
  return poller;
@@ -32683,7 +32683,7 @@ class TriggersImpl {
32683
32683
  * @param options The options parameters.
32684
32684
  */
32685
32685
  beginUnsubscribeFromEventsAndWait(resourceGroupName, factoryName, triggerName, options) {
32686
- return tslib.__awaiter(this, void 0, void 0, function* () {
32686
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32687
32687
  const poller = yield this.beginUnsubscribeFromEvents(resourceGroupName, factoryName, triggerName, options);
32688
32688
  return poller.pollUntilDone();
32689
32689
  });
@@ -32696,17 +32696,17 @@ class TriggersImpl {
32696
32696
  * @param options The options parameters.
32697
32697
  */
32698
32698
  beginStart(resourceGroupName, factoryName, triggerName, options) {
32699
- return tslib.__awaiter(this, void 0, void 0, function* () {
32700
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32699
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32700
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32701
32701
  return this.client.sendOperationRequest(args, spec);
32702
32702
  });
32703
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32703
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32704
32704
  var _a;
32705
32705
  let currentRawResponse = undefined;
32706
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
32706
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
32707
32707
  const callback = (rawResponse, flatResponse) => {
32708
32708
  currentRawResponse = rawResponse;
32709
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
32709
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
32710
32710
  };
32711
32711
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
32712
32712
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -32725,8 +32725,8 @@ class TriggersImpl {
32725
32725
  spec: startOperationSpec$1,
32726
32726
  });
32727
32727
  const poller = yield coreLro.createHttpPoller(lro, {
32728
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32729
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
32728
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
32729
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
32730
32730
  });
32731
32731
  yield poller.poll();
32732
32732
  return poller;
@@ -32740,7 +32740,7 @@ class TriggersImpl {
32740
32740
  * @param options The options parameters.
32741
32741
  */
32742
32742
  beginStartAndWait(resourceGroupName, factoryName, triggerName, options) {
32743
- return tslib.__awaiter(this, void 0, void 0, function* () {
32743
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32744
32744
  const poller = yield this.beginStart(resourceGroupName, factoryName, triggerName, options);
32745
32745
  return poller.pollUntilDone();
32746
32746
  });
@@ -32753,17 +32753,17 @@ class TriggersImpl {
32753
32753
  * @param options The options parameters.
32754
32754
  */
32755
32755
  beginStop(resourceGroupName, factoryName, triggerName, options) {
32756
- return tslib.__awaiter(this, void 0, void 0, function* () {
32757
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32756
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32757
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32758
32758
  return this.client.sendOperationRequest(args, spec);
32759
32759
  });
32760
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32760
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32761
32761
  var _a;
32762
32762
  let currentRawResponse = undefined;
32763
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
32763
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
32764
32764
  const callback = (rawResponse, flatResponse) => {
32765
32765
  currentRawResponse = rawResponse;
32766
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
32766
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
32767
32767
  };
32768
32768
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
32769
32769
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -32782,8 +32782,8 @@ class TriggersImpl {
32782
32782
  spec: stopOperationSpec$1,
32783
32783
  });
32784
32784
  const poller = yield coreLro.createHttpPoller(lro, {
32785
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32786
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
32785
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
32786
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
32787
32787
  });
32788
32788
  yield poller.poll();
32789
32789
  return poller;
@@ -32797,7 +32797,7 @@ class TriggersImpl {
32797
32797
  * @param options The options parameters.
32798
32798
  */
32799
32799
  beginStopAndWait(resourceGroupName, factoryName, triggerName, options) {
32800
- return tslib.__awaiter(this, void 0, void 0, function* () {
32800
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32801
32801
  const poller = yield this.beginStop(resourceGroupName, factoryName, triggerName, options);
32802
32802
  return poller.pollUntilDone();
32803
32803
  });
@@ -33233,7 +33233,7 @@ class DataFlowsImpl {
33233
33233
  return this;
33234
33234
  },
33235
33235
  byPage: (settings) => {
33236
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
33236
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
33237
33237
  throw new Error("maxPageSize is not supported by this operation.");
33238
33238
  }
33239
33239
  return this.listByFactoryPagingPage(resourceGroupName, factoryName, options, settings);
@@ -33243,7 +33243,7 @@ class DataFlowsImpl {
33243
33243
  listByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
33244
33244
  return tslib.__asyncGenerator(this, arguments, function* listByFactoryPagingPage_1() {
33245
33245
  let result;
33246
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
33246
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
33247
33247
  if (!continuationToken) {
33248
33248
  result = yield tslib.__await(this._listByFactory(resourceGroupName, factoryName, options));
33249
33249
  let page = result.value || [];
@@ -33480,7 +33480,7 @@ class DataFlowDebugSessionImpl {
33480
33480
  return this;
33481
33481
  },
33482
33482
  byPage: (settings) => {
33483
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
33483
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
33484
33484
  throw new Error("maxPageSize is not supported by this operation.");
33485
33485
  }
33486
33486
  return this.queryByFactoryPagingPage(resourceGroupName, factoryName, options, settings);
@@ -33490,7 +33490,7 @@ class DataFlowDebugSessionImpl {
33490
33490
  queryByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
33491
33491
  return tslib.__asyncGenerator(this, arguments, function* queryByFactoryPagingPage_1() {
33492
33492
  let result;
33493
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
33493
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
33494
33494
  if (!continuationToken) {
33495
33495
  result = yield tslib.__await(this._queryByFactory(resourceGroupName, factoryName, options));
33496
33496
  let page = result.value || [];
@@ -33535,17 +33535,17 @@ class DataFlowDebugSessionImpl {
33535
33535
  * @param options The options parameters.
33536
33536
  */
33537
33537
  beginCreate(resourceGroupName, factoryName, request, options) {
33538
- return tslib.__awaiter(this, void 0, void 0, function* () {
33539
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33538
+ return tslib.__awaiter(this, undefined, undefined, function* () {
33539
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
33540
33540
  return this.client.sendOperationRequest(args, spec);
33541
33541
  });
33542
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33542
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
33543
33543
  var _a;
33544
33544
  let currentRawResponse = undefined;
33545
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
33545
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
33546
33546
  const callback = (rawResponse, flatResponse) => {
33547
33547
  currentRawResponse = rawResponse;
33548
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
33548
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
33549
33549
  };
33550
33550
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
33551
33551
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -33564,8 +33564,8 @@ class DataFlowDebugSessionImpl {
33564
33564
  spec: createOperationSpec,
33565
33565
  });
33566
33566
  const poller = yield coreLro.createHttpPoller(lro, {
33567
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33568
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
33567
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
33568
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
33569
33569
  });
33570
33570
  yield poller.poll();
33571
33571
  return poller;
@@ -33579,7 +33579,7 @@ class DataFlowDebugSessionImpl {
33579
33579
  * @param options The options parameters.
33580
33580
  */
33581
33581
  beginCreateAndWait(resourceGroupName, factoryName, request, options) {
33582
- return tslib.__awaiter(this, void 0, void 0, function* () {
33582
+ return tslib.__awaiter(this, undefined, undefined, function* () {
33583
33583
  const poller = yield this.beginCreate(resourceGroupName, factoryName, request, options);
33584
33584
  return poller.pollUntilDone();
33585
33585
  });
@@ -33621,17 +33621,17 @@ class DataFlowDebugSessionImpl {
33621
33621
  * @param options The options parameters.
33622
33622
  */
33623
33623
  beginExecuteCommand(resourceGroupName, factoryName, request, options) {
33624
- return tslib.__awaiter(this, void 0, void 0, function* () {
33625
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33624
+ return tslib.__awaiter(this, undefined, undefined, function* () {
33625
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
33626
33626
  return this.client.sendOperationRequest(args, spec);
33627
33627
  });
33628
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33628
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
33629
33629
  var _a;
33630
33630
  let currentRawResponse = undefined;
33631
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
33631
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
33632
33632
  const callback = (rawResponse, flatResponse) => {
33633
33633
  currentRawResponse = rawResponse;
33634
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
33634
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
33635
33635
  };
33636
33636
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
33637
33637
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -33650,8 +33650,8 @@ class DataFlowDebugSessionImpl {
33650
33650
  spec: executeCommandOperationSpec,
33651
33651
  });
33652
33652
  const poller = yield coreLro.createHttpPoller(lro, {
33653
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33654
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
33653
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
33654
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
33655
33655
  });
33656
33656
  yield poller.poll();
33657
33657
  return poller;
@@ -33665,7 +33665,7 @@ class DataFlowDebugSessionImpl {
33665
33665
  * @param options The options parameters.
33666
33666
  */
33667
33667
  beginExecuteCommandAndWait(resourceGroupName, factoryName, request, options) {
33668
- return tslib.__awaiter(this, void 0, void 0, function* () {
33668
+ return tslib.__awaiter(this, undefined, undefined, function* () {
33669
33669
  const poller = yield this.beginExecuteCommand(resourceGroupName, factoryName, request, options);
33670
33670
  return poller.pollUntilDone();
33671
33671
  });
@@ -33867,7 +33867,7 @@ class ManagedVirtualNetworksImpl {
33867
33867
  return this;
33868
33868
  },
33869
33869
  byPage: (settings) => {
33870
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
33870
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
33871
33871
  throw new Error("maxPageSize is not supported by this operation.");
33872
33872
  }
33873
33873
  return this.listByFactoryPagingPage(resourceGroupName, factoryName, options, settings);
@@ -33877,7 +33877,7 @@ class ManagedVirtualNetworksImpl {
33877
33877
  listByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
33878
33878
  return tslib.__asyncGenerator(this, arguments, function* listByFactoryPagingPage_1() {
33879
33879
  let result;
33880
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
33880
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
33881
33881
  if (!continuationToken) {
33882
33882
  result = yield tslib.__await(this._listByFactory(resourceGroupName, factoryName, options));
33883
33883
  let page = result.value || [];
@@ -34090,7 +34090,7 @@ class ManagedPrivateEndpointsImpl {
34090
34090
  return this;
34091
34091
  },
34092
34092
  byPage: (settings) => {
34093
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
34093
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
34094
34094
  throw new Error("maxPageSize is not supported by this operation.");
34095
34095
  }
34096
34096
  return this.listByFactoryPagingPage(resourceGroupName, factoryName, managedVirtualNetworkName, options, settings);
@@ -34100,7 +34100,7 @@ class ManagedPrivateEndpointsImpl {
34100
34100
  listByFactoryPagingPage(resourceGroupName, factoryName, managedVirtualNetworkName, options, settings) {
34101
34101
  return tslib.__asyncGenerator(this, arguments, function* listByFactoryPagingPage_1() {
34102
34102
  let result;
34103
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
34103
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
34104
34104
  if (!continuationToken) {
34105
34105
  result = yield tslib.__await(this._listByFactory(resourceGroupName, factoryName, managedVirtualNetworkName, options));
34106
34106
  let page = result.value || [];
@@ -34372,7 +34372,7 @@ class CredentialOperationsImpl {
34372
34372
  return this;
34373
34373
  },
34374
34374
  byPage: (settings) => {
34375
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
34375
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
34376
34376
  throw new Error("maxPageSize is not supported by this operation.");
34377
34377
  }
34378
34378
  return this.listByFactoryPagingPage(resourceGroupName, factoryName, options, settings);
@@ -34382,7 +34382,7 @@ class CredentialOperationsImpl {
34382
34382
  listByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
34383
34383
  return tslib.__asyncGenerator(this, arguments, function* listByFactoryPagingPage_1() {
34384
34384
  let result;
34385
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
34385
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
34386
34386
  if (!continuationToken) {
34387
34387
  result = yield tslib.__await(this._listByFactory(resourceGroupName, factoryName, options));
34388
34388
  let page = result.value || [];
@@ -34620,7 +34620,7 @@ class PrivateEndPointConnectionsImpl {
34620
34620
  return this;
34621
34621
  },
34622
34622
  byPage: (settings) => {
34623
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
34623
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
34624
34624
  throw new Error("maxPageSize is not supported by this operation.");
34625
34625
  }
34626
34626
  return this.listByFactoryPagingPage(resourceGroupName, factoryName, options, settings);
@@ -34630,7 +34630,7 @@ class PrivateEndPointConnectionsImpl {
34630
34630
  listByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
34631
34631
  return tslib.__asyncGenerator(this, arguments, function* listByFactoryPagingPage_1() {
34632
34632
  let result;
34633
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
34633
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
34634
34634
  if (!continuationToken) {
34635
34635
  result = yield tslib.__await(this._listByFactory(resourceGroupName, factoryName, options));
34636
34636
  let page = result.value || [];
@@ -34953,7 +34953,7 @@ class GlobalParametersImpl {
34953
34953
  return this;
34954
34954
  },
34955
34955
  byPage: (settings) => {
34956
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
34956
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
34957
34957
  throw new Error("maxPageSize is not supported by this operation.");
34958
34958
  }
34959
34959
  return this.listByFactoryPagingPage(resourceGroupName, factoryName, options, settings);
@@ -34963,7 +34963,7 @@ class GlobalParametersImpl {
34963
34963
  listByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
34964
34964
  return tslib.__asyncGenerator(this, arguments, function* listByFactoryPagingPage_1() {
34965
34965
  let result;
34966
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
34966
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
34967
34967
  if (!continuationToken) {
34968
34968
  result = yield tslib.__await(this._listByFactory(resourceGroupName, factoryName, options));
34969
34969
  let page = result.value || [];
@@ -35202,7 +35202,7 @@ class ChangeDataCaptureImpl {
35202
35202
  return this;
35203
35203
  },
35204
35204
  byPage: (settings) => {
35205
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
35205
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
35206
35206
  throw new Error("maxPageSize is not supported by this operation.");
35207
35207
  }
35208
35208
  return this.listByFactoryPagingPage(resourceGroupName, factoryName, options, settings);
@@ -35212,7 +35212,7 @@ class ChangeDataCaptureImpl {
35212
35212
  listByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
35213
35213
  return tslib.__asyncGenerator(this, arguments, function* listByFactoryPagingPage_1() {
35214
35214
  let result;
35215
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
35215
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
35216
35216
  if (!continuationToken) {
35217
35217
  result = yield tslib.__await(this._listByFactory(resourceGroupName, factoryName, options));
35218
35218
  let page = result.value || [];
@@ -35550,10 +35550,10 @@ class DataFactoryManagementClient extends coreClient__namespace.ServiceClient {
35550
35550
  : `${packageDetails}`;
35551
35551
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
35552
35552
  userAgentPrefix,
35553
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
35553
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
35554
35554
  super(optionsWithDefaults);
35555
35555
  let bearerTokenAuthenticationPolicyFound = false;
35556
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
35556
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
35557
35557
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
35558
35558
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
35559
35559
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -35567,7 +35567,7 @@ class DataFactoryManagementClient extends coreClient__namespace.ServiceClient {
35567
35567
  });
35568
35568
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
35569
35569
  credential: credentials,
35570
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
35570
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
35571
35571
  challengeCallbacks: {
35572
35572
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
35573
35573
  },
@@ -35612,7 +35612,7 @@ class DataFactoryManagementClient extends coreClient__namespace.ServiceClient {
35612
35612
  const apiVersionPolicy = {
35613
35613
  name: "CustomApiVersionPolicy",
35614
35614
  sendRequest(request, next) {
35615
- return tslib.__awaiter(this, void 0, void 0, function* () {
35615
+ return tslib.__awaiter(this, undefined, undefined, function* () {
35616
35616
  const param = request.url.split("?");
35617
35617
  if (param.length > 1) {
35618
35618
  const newParams = param[1].split("&").map((item) => {