@azure/arm-servicelinker 2.2.0-alpha.20250103.1 → 2.2.0-alpha.20250107.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
  }
@@ -2501,7 +2501,7 @@ function createLroSpec(inputs) {
2501
2501
  sendInitialRequest: () => sendOperationFn(args, spec),
2502
2502
  sendPollRequest: (path, options) => {
2503
2503
  const restSpec = tslib.__rest(spec, ["requestBody"]);
2504
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
2504
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
2505
2505
  },
2506
2506
  };
2507
2507
  }
@@ -2540,7 +2540,7 @@ class ConnectorImpl {
2540
2540
  return this;
2541
2541
  },
2542
2542
  byPage: (settings) => {
2543
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2543
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2544
2544
  throw new Error("maxPageSize is not supported by this operation.");
2545
2545
  }
2546
2546
  return this.listDryrunPagingPage(subscriptionId, resourceGroupName, location, options, settings);
@@ -2550,7 +2550,7 @@ class ConnectorImpl {
2550
2550
  listDryrunPagingPage(subscriptionId, resourceGroupName, location, options, settings) {
2551
2551
  return tslib.__asyncGenerator(this, arguments, function* listDryrunPagingPage_1() {
2552
2552
  let result;
2553
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2553
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2554
2554
  if (!continuationToken) {
2555
2555
  result = yield tslib.__await(this._listDryrun(subscriptionId, resourceGroupName, location, options));
2556
2556
  let page = result.value || [];
@@ -2605,7 +2605,7 @@ class ConnectorImpl {
2605
2605
  return this;
2606
2606
  },
2607
2607
  byPage: (settings) => {
2608
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2608
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2609
2609
  throw new Error("maxPageSize is not supported by this operation.");
2610
2610
  }
2611
2611
  return this.listPagingPage(subscriptionId, resourceGroupName, location, options, settings);
@@ -2615,7 +2615,7 @@ class ConnectorImpl {
2615
2615
  listPagingPage(subscriptionId, resourceGroupName, location, options, settings) {
2616
2616
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2617
2617
  let result;
2618
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2618
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2619
2619
  if (!continuationToken) {
2620
2620
  result = yield tslib.__await(this._list(subscriptionId, resourceGroupName, location, options));
2621
2621
  let page = result.value || [];
@@ -2683,17 +2683,17 @@ class ConnectorImpl {
2683
2683
  * @param options The options parameters.
2684
2684
  */
2685
2685
  beginCreateDryrun(subscriptionId, resourceGroupName, location, dryrunName, parameters, options) {
2686
- return tslib.__awaiter(this, void 0, void 0, function* () {
2687
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2686
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2687
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2688
2688
  return this.client.sendOperationRequest(args, spec);
2689
2689
  });
2690
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2690
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2691
2691
  var _a;
2692
2692
  let currentRawResponse = undefined;
2693
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2693
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2694
2694
  const callback = (rawResponse, flatResponse) => {
2695
2695
  currentRawResponse = rawResponse;
2696
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2696
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2697
2697
  };
2698
2698
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2699
2699
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2719,8 +2719,8 @@ class ConnectorImpl {
2719
2719
  spec: createDryrunOperationSpec$1,
2720
2720
  });
2721
2721
  const poller = yield coreLro.createHttpPoller(lro, {
2722
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2723
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2722
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2723
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2724
2724
  resourceLocationConfig: "azure-async-operation",
2725
2725
  });
2726
2726
  yield poller.poll();
@@ -2737,7 +2737,7 @@ class ConnectorImpl {
2737
2737
  * @param options The options parameters.
2738
2738
  */
2739
2739
  beginCreateDryrunAndWait(subscriptionId, resourceGroupName, location, dryrunName, parameters, options) {
2740
- return tslib.__awaiter(this, void 0, void 0, function* () {
2740
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2741
2741
  const poller = yield this.beginCreateDryrun(subscriptionId, resourceGroupName, location, dryrunName, parameters, options);
2742
2742
  return poller.pollUntilDone();
2743
2743
  });
@@ -2752,17 +2752,17 @@ class ConnectorImpl {
2752
2752
  * @param options The options parameters.
2753
2753
  */
2754
2754
  beginUpdateDryrun(subscriptionId, resourceGroupName, location, dryrunName, parameters, options) {
2755
- return tslib.__awaiter(this, void 0, void 0, function* () {
2756
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2755
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2756
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2757
2757
  return this.client.sendOperationRequest(args, spec);
2758
2758
  });
2759
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2759
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2760
2760
  var _a;
2761
2761
  let currentRawResponse = undefined;
2762
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2762
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2763
2763
  const callback = (rawResponse, flatResponse) => {
2764
2764
  currentRawResponse = rawResponse;
2765
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2765
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2766
2766
  };
2767
2767
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2768
2768
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2788,8 +2788,8 @@ class ConnectorImpl {
2788
2788
  spec: updateDryrunOperationSpec$1,
2789
2789
  });
2790
2790
  const poller = yield coreLro.createHttpPoller(lro, {
2791
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2792
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2791
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2792
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2793
2793
  resourceLocationConfig: "azure-async-operation",
2794
2794
  });
2795
2795
  yield poller.poll();
@@ -2806,7 +2806,7 @@ class ConnectorImpl {
2806
2806
  * @param options The options parameters.
2807
2807
  */
2808
2808
  beginUpdateDryrunAndWait(subscriptionId, resourceGroupName, location, dryrunName, parameters, options) {
2809
- return tslib.__awaiter(this, void 0, void 0, function* () {
2809
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2810
2810
  const poller = yield this.beginUpdateDryrun(subscriptionId, resourceGroupName, location, dryrunName, parameters, options);
2811
2811
  return poller.pollUntilDone();
2812
2812
  });
@@ -2854,17 +2854,17 @@ class ConnectorImpl {
2854
2854
  * @param options The options parameters.
2855
2855
  */
2856
2856
  beginCreateOrUpdate(subscriptionId, resourceGroupName, location, connectorName, parameters, options) {
2857
- return tslib.__awaiter(this, void 0, void 0, function* () {
2858
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2857
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2858
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2859
2859
  return this.client.sendOperationRequest(args, spec);
2860
2860
  });
2861
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2861
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2862
2862
  var _a;
2863
2863
  let currentRawResponse = undefined;
2864
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2864
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2865
2865
  const callback = (rawResponse, flatResponse) => {
2866
2866
  currentRawResponse = rawResponse;
2867
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2867
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2868
2868
  };
2869
2869
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2870
2870
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2890,8 +2890,8 @@ class ConnectorImpl {
2890
2890
  spec: createOrUpdateOperationSpec$1,
2891
2891
  });
2892
2892
  const poller = yield coreLro.createHttpPoller(lro, {
2893
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2894
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2893
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2894
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2895
2895
  resourceLocationConfig: "azure-async-operation",
2896
2896
  });
2897
2897
  yield poller.poll();
@@ -2908,7 +2908,7 @@ class ConnectorImpl {
2908
2908
  * @param options The options parameters.
2909
2909
  */
2910
2910
  beginCreateOrUpdateAndWait(subscriptionId, resourceGroupName, location, connectorName, parameters, options) {
2911
- return tslib.__awaiter(this, void 0, void 0, function* () {
2911
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2912
2912
  const poller = yield this.beginCreateOrUpdate(subscriptionId, resourceGroupName, location, connectorName, parameters, options);
2913
2913
  return poller.pollUntilDone();
2914
2914
  });
@@ -2922,17 +2922,17 @@ class ConnectorImpl {
2922
2922
  * @param options The options parameters.
2923
2923
  */
2924
2924
  beginDelete(subscriptionId, resourceGroupName, location, connectorName, options) {
2925
- return tslib.__awaiter(this, void 0, void 0, function* () {
2926
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2925
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2926
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2927
2927
  return this.client.sendOperationRequest(args, spec);
2928
2928
  });
2929
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2929
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2930
2930
  var _a;
2931
2931
  let currentRawResponse = undefined;
2932
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2932
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2933
2933
  const callback = (rawResponse, flatResponse) => {
2934
2934
  currentRawResponse = rawResponse;
2935
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2935
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2936
2936
  };
2937
2937
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2938
2938
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2957,8 +2957,8 @@ class ConnectorImpl {
2957
2957
  spec: deleteOperationSpec$1,
2958
2958
  });
2959
2959
  const poller = yield coreLro.createHttpPoller(lro, {
2960
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2961
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2960
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2961
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2962
2962
  resourceLocationConfig: "azure-async-operation",
2963
2963
  });
2964
2964
  yield poller.poll();
@@ -2974,7 +2974,7 @@ class ConnectorImpl {
2974
2974
  * @param options The options parameters.
2975
2975
  */
2976
2976
  beginDeleteAndWait(subscriptionId, resourceGroupName, location, connectorName, options) {
2977
- return tslib.__awaiter(this, void 0, void 0, function* () {
2977
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2978
2978
  const poller = yield this.beginDelete(subscriptionId, resourceGroupName, location, connectorName, options);
2979
2979
  return poller.pollUntilDone();
2980
2980
  });
@@ -2989,17 +2989,17 @@ class ConnectorImpl {
2989
2989
  * @param options The options parameters.
2990
2990
  */
2991
2991
  beginUpdate(subscriptionId, resourceGroupName, location, connectorName, parameters, options) {
2992
- return tslib.__awaiter(this, void 0, void 0, function* () {
2993
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2992
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2993
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2994
2994
  return this.client.sendOperationRequest(args, spec);
2995
2995
  });
2996
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2996
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2997
2997
  var _a;
2998
2998
  let currentRawResponse = undefined;
2999
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2999
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3000
3000
  const callback = (rawResponse, flatResponse) => {
3001
3001
  currentRawResponse = rawResponse;
3002
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3002
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3003
3003
  };
3004
3004
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3005
3005
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3025,8 +3025,8 @@ class ConnectorImpl {
3025
3025
  spec: updateOperationSpec$1,
3026
3026
  });
3027
3027
  const poller = yield coreLro.createHttpPoller(lro, {
3028
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3029
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3028
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3029
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3030
3030
  resourceLocationConfig: "azure-async-operation",
3031
3031
  });
3032
3032
  yield poller.poll();
@@ -3043,7 +3043,7 @@ class ConnectorImpl {
3043
3043
  * @param options The options parameters.
3044
3044
  */
3045
3045
  beginUpdateAndWait(subscriptionId, resourceGroupName, location, connectorName, parameters, options) {
3046
- return tslib.__awaiter(this, void 0, void 0, function* () {
3046
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3047
3047
  const poller = yield this.beginUpdate(subscriptionId, resourceGroupName, location, connectorName, parameters, options);
3048
3048
  return poller.pollUntilDone();
3049
3049
  });
@@ -3057,17 +3057,17 @@ class ConnectorImpl {
3057
3057
  * @param options The options parameters.
3058
3058
  */
3059
3059
  beginValidate(subscriptionId, resourceGroupName, location, connectorName, options) {
3060
- return tslib.__awaiter(this, void 0, void 0, function* () {
3061
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3060
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3061
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3062
3062
  return this.client.sendOperationRequest(args, spec);
3063
3063
  });
3064
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3064
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3065
3065
  var _a;
3066
3066
  let currentRawResponse = undefined;
3067
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3067
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3068
3068
  const callback = (rawResponse, flatResponse) => {
3069
3069
  currentRawResponse = rawResponse;
3070
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3070
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3071
3071
  };
3072
3072
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3073
3073
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3092,8 +3092,8 @@ class ConnectorImpl {
3092
3092
  spec: validateOperationSpec$1,
3093
3093
  });
3094
3094
  const poller = yield coreLro.createHttpPoller(lro, {
3095
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3096
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3095
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3096
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3097
3097
  resourceLocationConfig: "location",
3098
3098
  });
3099
3099
  yield poller.poll();
@@ -3109,7 +3109,7 @@ class ConnectorImpl {
3109
3109
  * @param options The options parameters.
3110
3110
  */
3111
3111
  beginValidateAndWait(subscriptionId, resourceGroupName, location, connectorName, options) {
3112
- return tslib.__awaiter(this, void 0, void 0, function* () {
3112
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3113
3113
  const poller = yield this.beginValidate(subscriptionId, resourceGroupName, location, connectorName, options);
3114
3114
  return poller.pollUntilDone();
3115
3115
  });
@@ -3544,7 +3544,7 @@ class LinkerImpl {
3544
3544
  return this;
3545
3545
  },
3546
3546
  byPage: (settings) => {
3547
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3547
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3548
3548
  throw new Error("maxPageSize is not supported by this operation.");
3549
3549
  }
3550
3550
  return this.listPagingPage(resourceUri, options, settings);
@@ -3554,7 +3554,7 @@ class LinkerImpl {
3554
3554
  listPagingPage(resourceUri, options, settings) {
3555
3555
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3556
3556
  let result;
3557
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3557
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3558
3558
  if (!continuationToken) {
3559
3559
  result = yield tslib.__await(this._list(resourceUri, options));
3560
3560
  let page = result.value || [];
@@ -3620,17 +3620,17 @@ class LinkerImpl {
3620
3620
  * @param options The options parameters.
3621
3621
  */
3622
3622
  beginCreateOrUpdate(resourceUri, linkerName, parameters, options) {
3623
- return tslib.__awaiter(this, void 0, void 0, function* () {
3624
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3623
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3624
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3625
3625
  return this.client.sendOperationRequest(args, spec);
3626
3626
  });
3627
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3627
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3628
3628
  var _a;
3629
3629
  let currentRawResponse = undefined;
3630
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3630
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3631
3631
  const callback = (rawResponse, flatResponse) => {
3632
3632
  currentRawResponse = rawResponse;
3633
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3633
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3634
3634
  };
3635
3635
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3636
3636
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3649,8 +3649,8 @@ class LinkerImpl {
3649
3649
  spec: createOrUpdateOperationSpec,
3650
3650
  });
3651
3651
  const poller = yield coreLro.createHttpPoller(lro, {
3652
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3653
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3652
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3653
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3654
3654
  resourceLocationConfig: "azure-async-operation",
3655
3655
  });
3656
3656
  yield poller.poll();
@@ -3666,7 +3666,7 @@ class LinkerImpl {
3666
3666
  * @param options The options parameters.
3667
3667
  */
3668
3668
  beginCreateOrUpdateAndWait(resourceUri, linkerName, parameters, options) {
3669
- return tslib.__awaiter(this, void 0, void 0, function* () {
3669
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3670
3670
  const poller = yield this.beginCreateOrUpdate(resourceUri, linkerName, parameters, options);
3671
3671
  return poller.pollUntilDone();
3672
3672
  });
@@ -3679,17 +3679,17 @@ class LinkerImpl {
3679
3679
  * @param options The options parameters.
3680
3680
  */
3681
3681
  beginDelete(resourceUri, linkerName, options) {
3682
- return tslib.__awaiter(this, void 0, void 0, function* () {
3683
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3682
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3683
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3684
3684
  return this.client.sendOperationRequest(args, spec);
3685
3685
  });
3686
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3686
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3687
3687
  var _a;
3688
3688
  let currentRawResponse = undefined;
3689
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3689
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3690
3690
  const callback = (rawResponse, flatResponse) => {
3691
3691
  currentRawResponse = rawResponse;
3692
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3692
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3693
3693
  };
3694
3694
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3695
3695
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3708,8 +3708,8 @@ class LinkerImpl {
3708
3708
  spec: deleteOperationSpec,
3709
3709
  });
3710
3710
  const poller = yield coreLro.createHttpPoller(lro, {
3711
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3712
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3711
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3712
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3713
3713
  resourceLocationConfig: "azure-async-operation",
3714
3714
  });
3715
3715
  yield poller.poll();
@@ -3724,7 +3724,7 @@ class LinkerImpl {
3724
3724
  * @param options The options parameters.
3725
3725
  */
3726
3726
  beginDeleteAndWait(resourceUri, linkerName, options) {
3727
- return tslib.__awaiter(this, void 0, void 0, function* () {
3727
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3728
3728
  const poller = yield this.beginDelete(resourceUri, linkerName, options);
3729
3729
  return poller.pollUntilDone();
3730
3730
  });
@@ -3738,17 +3738,17 @@ class LinkerImpl {
3738
3738
  * @param options The options parameters.
3739
3739
  */
3740
3740
  beginUpdate(resourceUri, linkerName, parameters, options) {
3741
- return tslib.__awaiter(this, void 0, void 0, function* () {
3742
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3741
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3742
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3743
3743
  return this.client.sendOperationRequest(args, spec);
3744
3744
  });
3745
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3745
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3746
3746
  var _a;
3747
3747
  let currentRawResponse = undefined;
3748
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3748
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3749
3749
  const callback = (rawResponse, flatResponse) => {
3750
3750
  currentRawResponse = rawResponse;
3751
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3751
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3752
3752
  };
3753
3753
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3754
3754
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3767,8 +3767,8 @@ class LinkerImpl {
3767
3767
  spec: updateOperationSpec,
3768
3768
  });
3769
3769
  const poller = yield coreLro.createHttpPoller(lro, {
3770
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3771
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3770
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3771
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3772
3772
  resourceLocationConfig: "azure-async-operation",
3773
3773
  });
3774
3774
  yield poller.poll();
@@ -3784,7 +3784,7 @@ class LinkerImpl {
3784
3784
  * @param options The options parameters.
3785
3785
  */
3786
3786
  beginUpdateAndWait(resourceUri, linkerName, parameters, options) {
3787
- return tslib.__awaiter(this, void 0, void 0, function* () {
3787
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3788
3788
  const poller = yield this.beginUpdate(resourceUri, linkerName, parameters, options);
3789
3789
  return poller.pollUntilDone();
3790
3790
  });
@@ -3797,17 +3797,17 @@ class LinkerImpl {
3797
3797
  * @param options The options parameters.
3798
3798
  */
3799
3799
  beginValidate(resourceUri, linkerName, options) {
3800
- return tslib.__awaiter(this, void 0, void 0, function* () {
3801
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3800
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3801
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3802
3802
  return this.client.sendOperationRequest(args, spec);
3803
3803
  });
3804
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3804
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3805
3805
  var _a;
3806
3806
  let currentRawResponse = undefined;
3807
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3807
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3808
3808
  const callback = (rawResponse, flatResponse) => {
3809
3809
  currentRawResponse = rawResponse;
3810
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3810
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3811
3811
  };
3812
3812
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3813
3813
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3826,8 +3826,8 @@ class LinkerImpl {
3826
3826
  spec: validateOperationSpec,
3827
3827
  });
3828
3828
  const poller = yield coreLro.createHttpPoller(lro, {
3829
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3830
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3829
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3830
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3831
3831
  resourceLocationConfig: "location",
3832
3832
  });
3833
3833
  yield poller.poll();
@@ -3842,7 +3842,7 @@ class LinkerImpl {
3842
3842
  * @param options The options parameters.
3843
3843
  */
3844
3844
  beginValidateAndWait(resourceUri, linkerName, options) {
3845
- return tslib.__awaiter(this, void 0, void 0, function* () {
3845
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3846
3846
  const poller = yield this.beginValidate(resourceUri, linkerName, options);
3847
3847
  return poller.pollUntilDone();
3848
3848
  });
@@ -4091,7 +4091,7 @@ class LinkersImpl {
4091
4091
  return this;
4092
4092
  },
4093
4093
  byPage: (settings) => {
4094
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4094
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4095
4095
  throw new Error("maxPageSize is not supported by this operation.");
4096
4096
  }
4097
4097
  return this.listDryrunPagingPage(resourceUri, options, settings);
@@ -4101,7 +4101,7 @@ class LinkersImpl {
4101
4101
  listDryrunPagingPage(resourceUri, options, settings) {
4102
4102
  return tslib.__asyncGenerator(this, arguments, function* listDryrunPagingPage_1() {
4103
4103
  let result;
4104
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4104
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4105
4105
  if (!continuationToken) {
4106
4106
  result = yield tslib.__await(this._listDryrun(resourceUri, options));
4107
4107
  let page = result.value || [];
@@ -4154,7 +4154,7 @@ class LinkersImpl {
4154
4154
  return this;
4155
4155
  },
4156
4156
  byPage: (settings) => {
4157
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4157
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4158
4158
  throw new Error("maxPageSize is not supported by this operation.");
4159
4159
  }
4160
4160
  return this.listDaprConfigurationsPagingPage(resourceUri, options, settings);
@@ -4164,7 +4164,7 @@ class LinkersImpl {
4164
4164
  listDaprConfigurationsPagingPage(resourceUri, options, settings) {
4165
4165
  return tslib.__asyncGenerator(this, arguments, function* listDaprConfigurationsPagingPage_1() {
4166
4166
  let result;
4167
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4167
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4168
4168
  if (!continuationToken) {
4169
4169
  result = yield tslib.__await(this._listDaprConfigurations(resourceUri, options));
4170
4170
  let page = result.value || [];
@@ -4229,17 +4229,17 @@ class LinkersImpl {
4229
4229
  * @param options The options parameters.
4230
4230
  */
4231
4231
  beginCreateDryrun(resourceUri, dryrunName, parameters, options) {
4232
- return tslib.__awaiter(this, void 0, void 0, function* () {
4233
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4232
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4233
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4234
4234
  return this.client.sendOperationRequest(args, spec);
4235
4235
  });
4236
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4236
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4237
4237
  var _a;
4238
4238
  let currentRawResponse = undefined;
4239
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4239
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4240
4240
  const callback = (rawResponse, flatResponse) => {
4241
4241
  currentRawResponse = rawResponse;
4242
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4242
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4243
4243
  };
4244
4244
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4245
4245
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4258,8 +4258,8 @@ class LinkersImpl {
4258
4258
  spec: createDryrunOperationSpec,
4259
4259
  });
4260
4260
  const poller = yield coreLro.createHttpPoller(lro, {
4261
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4262
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4261
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4262
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4263
4263
  resourceLocationConfig: "azure-async-operation",
4264
4264
  });
4265
4265
  yield poller.poll();
@@ -4275,7 +4275,7 @@ class LinkersImpl {
4275
4275
  * @param options The options parameters.
4276
4276
  */
4277
4277
  beginCreateDryrunAndWait(resourceUri, dryrunName, parameters, options) {
4278
- return tslib.__awaiter(this, void 0, void 0, function* () {
4278
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4279
4279
  const poller = yield this.beginCreateDryrun(resourceUri, dryrunName, parameters, options);
4280
4280
  return poller.pollUntilDone();
4281
4281
  });
@@ -4289,17 +4289,17 @@ class LinkersImpl {
4289
4289
  * @param options The options parameters.
4290
4290
  */
4291
4291
  beginUpdateDryrun(resourceUri, dryrunName, parameters, options) {
4292
- return tslib.__awaiter(this, void 0, void 0, function* () {
4293
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4292
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4293
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4294
4294
  return this.client.sendOperationRequest(args, spec);
4295
4295
  });
4296
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4296
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4297
4297
  var _a;
4298
4298
  let currentRawResponse = undefined;
4299
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4299
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4300
4300
  const callback = (rawResponse, flatResponse) => {
4301
4301
  currentRawResponse = rawResponse;
4302
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4302
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4303
4303
  };
4304
4304
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4305
4305
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4318,8 +4318,8 @@ class LinkersImpl {
4318
4318
  spec: updateDryrunOperationSpec,
4319
4319
  });
4320
4320
  const poller = yield coreLro.createHttpPoller(lro, {
4321
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4322
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4321
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4322
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4323
4323
  resourceLocationConfig: "azure-async-operation",
4324
4324
  });
4325
4325
  yield poller.poll();
@@ -4335,7 +4335,7 @@ class LinkersImpl {
4335
4335
  * @param options The options parameters.
4336
4336
  */
4337
4337
  beginUpdateDryrunAndWait(resourceUri, dryrunName, parameters, options) {
4338
- return tslib.__awaiter(this, void 0, void 0, function* () {
4338
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4339
4339
  const poller = yield this.beginUpdateDryrun(resourceUri, dryrunName, parameters, options);
4340
4340
  return poller.pollUntilDone();
4341
4341
  });
@@ -4617,7 +4617,7 @@ class OperationsImpl {
4617
4617
  return this;
4618
4618
  },
4619
4619
  byPage: (settings) => {
4620
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4620
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4621
4621
  throw new Error("maxPageSize is not supported by this operation.");
4622
4622
  }
4623
4623
  return this.listPagingPage(options, settings);
@@ -4627,7 +4627,7 @@ class OperationsImpl {
4627
4627
  listPagingPage(options, settings) {
4628
4628
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4629
4629
  let result;
4630
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4630
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4631
4631
  if (!continuationToken) {
4632
4632
  result = yield tslib.__await(this._list(options));
4633
4633
  let page = result.value || [];
@@ -4746,7 +4746,7 @@ class ConfigurationNamesImpl {
4746
4746
  return this;
4747
4747
  },
4748
4748
  byPage: (settings) => {
4749
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4749
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4750
4750
  throw new Error("maxPageSize is not supported by this operation.");
4751
4751
  }
4752
4752
  return this.listPagingPage(options, settings);
@@ -4756,7 +4756,7 @@ class ConfigurationNamesImpl {
4756
4756
  listPagingPage(options, settings) {
4757
4757
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4758
4758
  let result;
4759
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4759
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4760
4760
  if (!continuationToken) {
4761
4761
  result = yield tslib.__await(this._list(options));
4762
4762
  let page = result.value || [];
@@ -4880,10 +4880,10 @@ class ServiceLinkerManagementClient extends coreClient__namespace.ServiceClient
4880
4880
  : `${packageDetails}`;
4881
4881
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
4882
4882
  userAgentPrefix,
4883
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
4883
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
4884
4884
  super(optionsWithDefaults);
4885
4885
  let bearerTokenAuthenticationPolicyFound = false;
4886
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4886
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4887
4887
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
4888
4888
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
4889
4889
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -4897,7 +4897,7 @@ class ServiceLinkerManagementClient extends coreClient__namespace.ServiceClient
4897
4897
  });
4898
4898
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
4899
4899
  credential: credentials,
4900
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
4900
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
4901
4901
  challengeCallbacks: {
4902
4902
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
4903
4903
  },
@@ -4921,7 +4921,7 @@ class ServiceLinkerManagementClient extends coreClient__namespace.ServiceClient
4921
4921
  const apiVersionPolicy = {
4922
4922
  name: "CustomApiVersionPolicy",
4923
4923
  sendRequest(request, next) {
4924
- return tslib.__awaiter(this, void 0, void 0, function* () {
4924
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4925
4925
  const param = request.url.split("?");
4926
4926
  if (param.length > 1) {
4927
4927
  const newParams = param[1].split("&").map((item) => {