@azure/arm-servicelinker 2.2.0-alpha.20250206.1 → 2.2.0-alpha.20250210.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 === undefined ? undefined : _a.continuationToken;
50
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _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 !== undefined ? _a : {};
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
58
  pageInfo.continuationToken = continuationToken;
59
59
  pageMap.set(page, pageInfo);
60
60
  }
@@ -2494,7 +2494,7 @@ function createLroSpec(inputs) {
2494
2494
  sendInitialRequest: () => sendOperationFn(args, spec),
2495
2495
  sendPollRequest: (path, options) => {
2496
2496
  const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
2497
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
2497
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
2498
2498
  },
2499
2499
  };
2500
2500
  }
@@ -2533,7 +2533,7 @@ class ConnectorImpl {
2533
2533
  return this;
2534
2534
  },
2535
2535
  byPage: (settings) => {
2536
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2536
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2537
2537
  throw new Error("maxPageSize is not supported by this operation.");
2538
2538
  }
2539
2539
  return this.listDryrunPagingPage(subscriptionId, resourceGroupName, location, options, settings);
@@ -2543,7 +2543,7 @@ class ConnectorImpl {
2543
2543
  listDryrunPagingPage(subscriptionId, resourceGroupName, location, options, settings) {
2544
2544
  return tslib.__asyncGenerator(this, arguments, function* listDryrunPagingPage_1() {
2545
2545
  let result;
2546
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2546
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2547
2547
  if (!continuationToken) {
2548
2548
  result = yield tslib.__await(this._listDryrun(subscriptionId, resourceGroupName, location, options));
2549
2549
  let page = result.value || [];
@@ -2598,7 +2598,7 @@ class ConnectorImpl {
2598
2598
  return this;
2599
2599
  },
2600
2600
  byPage: (settings) => {
2601
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2601
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2602
2602
  throw new Error("maxPageSize is not supported by this operation.");
2603
2603
  }
2604
2604
  return this.listPagingPage(subscriptionId, resourceGroupName, location, options, settings);
@@ -2608,7 +2608,7 @@ class ConnectorImpl {
2608
2608
  listPagingPage(subscriptionId, resourceGroupName, location, options, settings) {
2609
2609
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2610
2610
  let result;
2611
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2611
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2612
2612
  if (!continuationToken) {
2613
2613
  result = yield tslib.__await(this._list(subscriptionId, resourceGroupName, location, options));
2614
2614
  let page = result.value || [];
@@ -2676,17 +2676,17 @@ class ConnectorImpl {
2676
2676
  * @param options The options parameters.
2677
2677
  */
2678
2678
  beginCreateDryrun(subscriptionId, resourceGroupName, location, dryrunName, parameters, options) {
2679
- return tslib.__awaiter(this, undefined, undefined, function* () {
2680
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2679
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2680
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2681
2681
  return this.client.sendOperationRequest(args, spec);
2682
2682
  });
2683
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2683
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2684
2684
  var _a;
2685
2685
  let currentRawResponse = undefined;
2686
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2686
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2687
2687
  const callback = (rawResponse, flatResponse) => {
2688
2688
  currentRawResponse = rawResponse;
2689
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2689
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2690
2690
  };
2691
2691
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2692
2692
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2712,8 +2712,8 @@ class ConnectorImpl {
2712
2712
  spec: createDryrunOperationSpec$1,
2713
2713
  });
2714
2714
  const poller = yield coreLro.createHttpPoller(lro, {
2715
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2716
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2715
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2716
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2717
2717
  resourceLocationConfig: "azure-async-operation",
2718
2718
  });
2719
2719
  yield poller.poll();
@@ -2730,7 +2730,7 @@ class ConnectorImpl {
2730
2730
  * @param options The options parameters.
2731
2731
  */
2732
2732
  beginCreateDryrunAndWait(subscriptionId, resourceGroupName, location, dryrunName, parameters, options) {
2733
- return tslib.__awaiter(this, undefined, undefined, function* () {
2733
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2734
2734
  const poller = yield this.beginCreateDryrun(subscriptionId, resourceGroupName, location, dryrunName, parameters, options);
2735
2735
  return poller.pollUntilDone();
2736
2736
  });
@@ -2745,17 +2745,17 @@ class ConnectorImpl {
2745
2745
  * @param options The options parameters.
2746
2746
  */
2747
2747
  beginUpdateDryrun(subscriptionId, resourceGroupName, location, dryrunName, parameters, options) {
2748
- return tslib.__awaiter(this, undefined, undefined, function* () {
2749
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2748
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2749
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2750
2750
  return this.client.sendOperationRequest(args, spec);
2751
2751
  });
2752
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2752
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2753
2753
  var _a;
2754
2754
  let currentRawResponse = undefined;
2755
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2755
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2756
2756
  const callback = (rawResponse, flatResponse) => {
2757
2757
  currentRawResponse = rawResponse;
2758
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2758
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2759
2759
  };
2760
2760
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2761
2761
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2781,8 +2781,8 @@ class ConnectorImpl {
2781
2781
  spec: updateDryrunOperationSpec$1,
2782
2782
  });
2783
2783
  const poller = yield coreLro.createHttpPoller(lro, {
2784
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2785
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2784
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2785
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2786
2786
  resourceLocationConfig: "azure-async-operation",
2787
2787
  });
2788
2788
  yield poller.poll();
@@ -2799,7 +2799,7 @@ class ConnectorImpl {
2799
2799
  * @param options The options parameters.
2800
2800
  */
2801
2801
  beginUpdateDryrunAndWait(subscriptionId, resourceGroupName, location, dryrunName, parameters, options) {
2802
- return tslib.__awaiter(this, undefined, undefined, function* () {
2802
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2803
2803
  const poller = yield this.beginUpdateDryrun(subscriptionId, resourceGroupName, location, dryrunName, parameters, options);
2804
2804
  return poller.pollUntilDone();
2805
2805
  });
@@ -2847,17 +2847,17 @@ class ConnectorImpl {
2847
2847
  * @param options The options parameters.
2848
2848
  */
2849
2849
  beginCreateOrUpdate(subscriptionId, resourceGroupName, location, connectorName, parameters, options) {
2850
- return tslib.__awaiter(this, undefined, undefined, function* () {
2851
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2850
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2851
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2852
2852
  return this.client.sendOperationRequest(args, spec);
2853
2853
  });
2854
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2854
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2855
2855
  var _a;
2856
2856
  let currentRawResponse = undefined;
2857
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2857
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2858
2858
  const callback = (rawResponse, flatResponse) => {
2859
2859
  currentRawResponse = rawResponse;
2860
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2860
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2861
2861
  };
2862
2862
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2863
2863
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2883,8 +2883,8 @@ class ConnectorImpl {
2883
2883
  spec: createOrUpdateOperationSpec$1,
2884
2884
  });
2885
2885
  const poller = yield coreLro.createHttpPoller(lro, {
2886
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2887
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2886
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2887
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2888
2888
  resourceLocationConfig: "azure-async-operation",
2889
2889
  });
2890
2890
  yield poller.poll();
@@ -2901,7 +2901,7 @@ class ConnectorImpl {
2901
2901
  * @param options The options parameters.
2902
2902
  */
2903
2903
  beginCreateOrUpdateAndWait(subscriptionId, resourceGroupName, location, connectorName, parameters, options) {
2904
- return tslib.__awaiter(this, undefined, undefined, function* () {
2904
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2905
2905
  const poller = yield this.beginCreateOrUpdate(subscriptionId, resourceGroupName, location, connectorName, parameters, options);
2906
2906
  return poller.pollUntilDone();
2907
2907
  });
@@ -2915,17 +2915,17 @@ class ConnectorImpl {
2915
2915
  * @param options The options parameters.
2916
2916
  */
2917
2917
  beginDelete(subscriptionId, resourceGroupName, location, connectorName, options) {
2918
- return tslib.__awaiter(this, undefined, undefined, function* () {
2919
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2918
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2919
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2920
2920
  return this.client.sendOperationRequest(args, spec);
2921
2921
  });
2922
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2922
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2923
2923
  var _a;
2924
2924
  let currentRawResponse = undefined;
2925
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2925
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2926
2926
  const callback = (rawResponse, flatResponse) => {
2927
2927
  currentRawResponse = rawResponse;
2928
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2928
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2929
2929
  };
2930
2930
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2931
2931
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2950,8 +2950,8 @@ class ConnectorImpl {
2950
2950
  spec: deleteOperationSpec$1,
2951
2951
  });
2952
2952
  const poller = yield coreLro.createHttpPoller(lro, {
2953
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2954
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2953
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2954
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2955
2955
  resourceLocationConfig: "azure-async-operation",
2956
2956
  });
2957
2957
  yield poller.poll();
@@ -2967,7 +2967,7 @@ class ConnectorImpl {
2967
2967
  * @param options The options parameters.
2968
2968
  */
2969
2969
  beginDeleteAndWait(subscriptionId, resourceGroupName, location, connectorName, options) {
2970
- return tslib.__awaiter(this, undefined, undefined, function* () {
2970
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2971
2971
  const poller = yield this.beginDelete(subscriptionId, resourceGroupName, location, connectorName, options);
2972
2972
  return poller.pollUntilDone();
2973
2973
  });
@@ -2982,17 +2982,17 @@ class ConnectorImpl {
2982
2982
  * @param options The options parameters.
2983
2983
  */
2984
2984
  beginUpdate(subscriptionId, resourceGroupName, location, connectorName, parameters, options) {
2985
- return tslib.__awaiter(this, undefined, undefined, function* () {
2986
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2985
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2986
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2987
2987
  return this.client.sendOperationRequest(args, spec);
2988
2988
  });
2989
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2989
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2990
2990
  var _a;
2991
2991
  let currentRawResponse = undefined;
2992
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2992
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2993
2993
  const callback = (rawResponse, flatResponse) => {
2994
2994
  currentRawResponse = rawResponse;
2995
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2995
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2996
2996
  };
2997
2997
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2998
2998
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3018,8 +3018,8 @@ class ConnectorImpl {
3018
3018
  spec: updateOperationSpec$1,
3019
3019
  });
3020
3020
  const poller = yield coreLro.createHttpPoller(lro, {
3021
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3022
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3021
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3022
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3023
3023
  resourceLocationConfig: "azure-async-operation",
3024
3024
  });
3025
3025
  yield poller.poll();
@@ -3036,7 +3036,7 @@ class ConnectorImpl {
3036
3036
  * @param options The options parameters.
3037
3037
  */
3038
3038
  beginUpdateAndWait(subscriptionId, resourceGroupName, location, connectorName, parameters, options) {
3039
- return tslib.__awaiter(this, undefined, undefined, function* () {
3039
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3040
3040
  const poller = yield this.beginUpdate(subscriptionId, resourceGroupName, location, connectorName, parameters, options);
3041
3041
  return poller.pollUntilDone();
3042
3042
  });
@@ -3050,17 +3050,17 @@ class ConnectorImpl {
3050
3050
  * @param options The options parameters.
3051
3051
  */
3052
3052
  beginValidate(subscriptionId, resourceGroupName, location, connectorName, options) {
3053
- return tslib.__awaiter(this, undefined, undefined, function* () {
3054
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3053
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3054
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3055
3055
  return this.client.sendOperationRequest(args, spec);
3056
3056
  });
3057
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3057
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3058
3058
  var _a;
3059
3059
  let currentRawResponse = undefined;
3060
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3060
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3061
3061
  const callback = (rawResponse, flatResponse) => {
3062
3062
  currentRawResponse = rawResponse;
3063
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3063
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3064
3064
  };
3065
3065
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3066
3066
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3085,8 +3085,8 @@ class ConnectorImpl {
3085
3085
  spec: validateOperationSpec$1,
3086
3086
  });
3087
3087
  const poller = yield coreLro.createHttpPoller(lro, {
3088
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3089
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3088
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3089
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3090
3090
  resourceLocationConfig: "location",
3091
3091
  });
3092
3092
  yield poller.poll();
@@ -3102,7 +3102,7 @@ class ConnectorImpl {
3102
3102
  * @param options The options parameters.
3103
3103
  */
3104
3104
  beginValidateAndWait(subscriptionId, resourceGroupName, location, connectorName, options) {
3105
- return tslib.__awaiter(this, undefined, undefined, function* () {
3105
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3106
3106
  const poller = yield this.beginValidate(subscriptionId, resourceGroupName, location, connectorName, options);
3107
3107
  return poller.pollUntilDone();
3108
3108
  });
@@ -3537,7 +3537,7 @@ class LinkerImpl {
3537
3537
  return this;
3538
3538
  },
3539
3539
  byPage: (settings) => {
3540
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3540
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3541
3541
  throw new Error("maxPageSize is not supported by this operation.");
3542
3542
  }
3543
3543
  return this.listPagingPage(resourceUri, options, settings);
@@ -3547,7 +3547,7 @@ class LinkerImpl {
3547
3547
  listPagingPage(resourceUri, options, settings) {
3548
3548
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3549
3549
  let result;
3550
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3550
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3551
3551
  if (!continuationToken) {
3552
3552
  result = yield tslib.__await(this._list(resourceUri, options));
3553
3553
  let page = result.value || [];
@@ -3613,17 +3613,17 @@ class LinkerImpl {
3613
3613
  * @param options The options parameters.
3614
3614
  */
3615
3615
  beginCreateOrUpdate(resourceUri, linkerName, parameters, options) {
3616
- return tslib.__awaiter(this, undefined, undefined, function* () {
3617
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3616
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3617
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3618
3618
  return this.client.sendOperationRequest(args, spec);
3619
3619
  });
3620
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3620
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3621
3621
  var _a;
3622
3622
  let currentRawResponse = undefined;
3623
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3623
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3624
3624
  const callback = (rawResponse, flatResponse) => {
3625
3625
  currentRawResponse = rawResponse;
3626
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3626
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3627
3627
  };
3628
3628
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3629
3629
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3642,8 +3642,8 @@ class LinkerImpl {
3642
3642
  spec: createOrUpdateOperationSpec,
3643
3643
  });
3644
3644
  const poller = yield coreLro.createHttpPoller(lro, {
3645
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3646
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3645
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3646
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3647
3647
  resourceLocationConfig: "azure-async-operation",
3648
3648
  });
3649
3649
  yield poller.poll();
@@ -3659,7 +3659,7 @@ class LinkerImpl {
3659
3659
  * @param options The options parameters.
3660
3660
  */
3661
3661
  beginCreateOrUpdateAndWait(resourceUri, linkerName, parameters, options) {
3662
- return tslib.__awaiter(this, undefined, undefined, function* () {
3662
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3663
3663
  const poller = yield this.beginCreateOrUpdate(resourceUri, linkerName, parameters, options);
3664
3664
  return poller.pollUntilDone();
3665
3665
  });
@@ -3672,17 +3672,17 @@ class LinkerImpl {
3672
3672
  * @param options The options parameters.
3673
3673
  */
3674
3674
  beginDelete(resourceUri, linkerName, options) {
3675
- return tslib.__awaiter(this, undefined, undefined, function* () {
3676
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3675
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3676
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3677
3677
  return this.client.sendOperationRequest(args, spec);
3678
3678
  });
3679
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3679
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3680
3680
  var _a;
3681
3681
  let currentRawResponse = undefined;
3682
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3682
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3683
3683
  const callback = (rawResponse, flatResponse) => {
3684
3684
  currentRawResponse = rawResponse;
3685
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3685
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3686
3686
  };
3687
3687
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3688
3688
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3701,8 +3701,8 @@ class LinkerImpl {
3701
3701
  spec: deleteOperationSpec,
3702
3702
  });
3703
3703
  const poller = yield coreLro.createHttpPoller(lro, {
3704
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3705
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3704
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3705
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3706
3706
  resourceLocationConfig: "azure-async-operation",
3707
3707
  });
3708
3708
  yield poller.poll();
@@ -3717,7 +3717,7 @@ class LinkerImpl {
3717
3717
  * @param options The options parameters.
3718
3718
  */
3719
3719
  beginDeleteAndWait(resourceUri, linkerName, options) {
3720
- return tslib.__awaiter(this, undefined, undefined, function* () {
3720
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3721
3721
  const poller = yield this.beginDelete(resourceUri, linkerName, options);
3722
3722
  return poller.pollUntilDone();
3723
3723
  });
@@ -3731,17 +3731,17 @@ class LinkerImpl {
3731
3731
  * @param options The options parameters.
3732
3732
  */
3733
3733
  beginUpdate(resourceUri, linkerName, parameters, options) {
3734
- return tslib.__awaiter(this, undefined, undefined, function* () {
3735
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3734
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3735
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3736
3736
  return this.client.sendOperationRequest(args, spec);
3737
3737
  });
3738
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3738
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3739
3739
  var _a;
3740
3740
  let currentRawResponse = undefined;
3741
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3741
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3742
3742
  const callback = (rawResponse, flatResponse) => {
3743
3743
  currentRawResponse = rawResponse;
3744
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3744
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3745
3745
  };
3746
3746
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3747
3747
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3760,8 +3760,8 @@ class LinkerImpl {
3760
3760
  spec: updateOperationSpec,
3761
3761
  });
3762
3762
  const poller = yield coreLro.createHttpPoller(lro, {
3763
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3764
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3763
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3764
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3765
3765
  resourceLocationConfig: "azure-async-operation",
3766
3766
  });
3767
3767
  yield poller.poll();
@@ -3777,7 +3777,7 @@ class LinkerImpl {
3777
3777
  * @param options The options parameters.
3778
3778
  */
3779
3779
  beginUpdateAndWait(resourceUri, linkerName, parameters, options) {
3780
- return tslib.__awaiter(this, undefined, undefined, function* () {
3780
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3781
3781
  const poller = yield this.beginUpdate(resourceUri, linkerName, parameters, options);
3782
3782
  return poller.pollUntilDone();
3783
3783
  });
@@ -3790,17 +3790,17 @@ class LinkerImpl {
3790
3790
  * @param options The options parameters.
3791
3791
  */
3792
3792
  beginValidate(resourceUri, linkerName, options) {
3793
- return tslib.__awaiter(this, undefined, undefined, function* () {
3794
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3793
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3794
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3795
3795
  return this.client.sendOperationRequest(args, spec);
3796
3796
  });
3797
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3797
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3798
3798
  var _a;
3799
3799
  let currentRawResponse = undefined;
3800
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3800
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3801
3801
  const callback = (rawResponse, flatResponse) => {
3802
3802
  currentRawResponse = rawResponse;
3803
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3803
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3804
3804
  };
3805
3805
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3806
3806
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3819,8 +3819,8 @@ class LinkerImpl {
3819
3819
  spec: validateOperationSpec,
3820
3820
  });
3821
3821
  const poller = yield coreLro.createHttpPoller(lro, {
3822
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3823
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3822
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3823
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3824
3824
  resourceLocationConfig: "location",
3825
3825
  });
3826
3826
  yield poller.poll();
@@ -3835,7 +3835,7 @@ class LinkerImpl {
3835
3835
  * @param options The options parameters.
3836
3836
  */
3837
3837
  beginValidateAndWait(resourceUri, linkerName, options) {
3838
- return tslib.__awaiter(this, undefined, undefined, function* () {
3838
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3839
3839
  const poller = yield this.beginValidate(resourceUri, linkerName, options);
3840
3840
  return poller.pollUntilDone();
3841
3841
  });
@@ -4084,7 +4084,7 @@ class LinkersImpl {
4084
4084
  return this;
4085
4085
  },
4086
4086
  byPage: (settings) => {
4087
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4087
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4088
4088
  throw new Error("maxPageSize is not supported by this operation.");
4089
4089
  }
4090
4090
  return this.listDryrunPagingPage(resourceUri, options, settings);
@@ -4094,7 +4094,7 @@ class LinkersImpl {
4094
4094
  listDryrunPagingPage(resourceUri, options, settings) {
4095
4095
  return tslib.__asyncGenerator(this, arguments, function* listDryrunPagingPage_1() {
4096
4096
  let result;
4097
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4097
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4098
4098
  if (!continuationToken) {
4099
4099
  result = yield tslib.__await(this._listDryrun(resourceUri, options));
4100
4100
  let page = result.value || [];
@@ -4147,7 +4147,7 @@ class LinkersImpl {
4147
4147
  return this;
4148
4148
  },
4149
4149
  byPage: (settings) => {
4150
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4150
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4151
4151
  throw new Error("maxPageSize is not supported by this operation.");
4152
4152
  }
4153
4153
  return this.listDaprConfigurationsPagingPage(resourceUri, options, settings);
@@ -4157,7 +4157,7 @@ class LinkersImpl {
4157
4157
  listDaprConfigurationsPagingPage(resourceUri, options, settings) {
4158
4158
  return tslib.__asyncGenerator(this, arguments, function* listDaprConfigurationsPagingPage_1() {
4159
4159
  let result;
4160
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4160
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4161
4161
  if (!continuationToken) {
4162
4162
  result = yield tslib.__await(this._listDaprConfigurations(resourceUri, options));
4163
4163
  let page = result.value || [];
@@ -4222,17 +4222,17 @@ class LinkersImpl {
4222
4222
  * @param options The options parameters.
4223
4223
  */
4224
4224
  beginCreateDryrun(resourceUri, dryrunName, parameters, options) {
4225
- return tslib.__awaiter(this, undefined, undefined, function* () {
4226
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4225
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4226
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4227
4227
  return this.client.sendOperationRequest(args, spec);
4228
4228
  });
4229
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4229
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4230
4230
  var _a;
4231
4231
  let currentRawResponse = undefined;
4232
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4232
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4233
4233
  const callback = (rawResponse, flatResponse) => {
4234
4234
  currentRawResponse = rawResponse;
4235
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4235
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4236
4236
  };
4237
4237
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4238
4238
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4251,8 +4251,8 @@ class LinkersImpl {
4251
4251
  spec: createDryrunOperationSpec,
4252
4252
  });
4253
4253
  const poller = yield coreLro.createHttpPoller(lro, {
4254
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4255
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4254
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4255
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4256
4256
  resourceLocationConfig: "azure-async-operation",
4257
4257
  });
4258
4258
  yield poller.poll();
@@ -4268,7 +4268,7 @@ class LinkersImpl {
4268
4268
  * @param options The options parameters.
4269
4269
  */
4270
4270
  beginCreateDryrunAndWait(resourceUri, dryrunName, parameters, options) {
4271
- return tslib.__awaiter(this, undefined, undefined, function* () {
4271
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4272
4272
  const poller = yield this.beginCreateDryrun(resourceUri, dryrunName, parameters, options);
4273
4273
  return poller.pollUntilDone();
4274
4274
  });
@@ -4282,17 +4282,17 @@ class LinkersImpl {
4282
4282
  * @param options The options parameters.
4283
4283
  */
4284
4284
  beginUpdateDryrun(resourceUri, dryrunName, parameters, options) {
4285
- return tslib.__awaiter(this, undefined, undefined, function* () {
4286
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4285
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4286
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4287
4287
  return this.client.sendOperationRequest(args, spec);
4288
4288
  });
4289
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4289
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4290
4290
  var _a;
4291
4291
  let currentRawResponse = undefined;
4292
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4292
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4293
4293
  const callback = (rawResponse, flatResponse) => {
4294
4294
  currentRawResponse = rawResponse;
4295
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4295
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4296
4296
  };
4297
4297
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4298
4298
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4311,8 +4311,8 @@ class LinkersImpl {
4311
4311
  spec: updateDryrunOperationSpec,
4312
4312
  });
4313
4313
  const poller = yield coreLro.createHttpPoller(lro, {
4314
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4315
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4314
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4315
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4316
4316
  resourceLocationConfig: "azure-async-operation",
4317
4317
  });
4318
4318
  yield poller.poll();
@@ -4328,7 +4328,7 @@ class LinkersImpl {
4328
4328
  * @param options The options parameters.
4329
4329
  */
4330
4330
  beginUpdateDryrunAndWait(resourceUri, dryrunName, parameters, options) {
4331
- return tslib.__awaiter(this, undefined, undefined, function* () {
4331
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4332
4332
  const poller = yield this.beginUpdateDryrun(resourceUri, dryrunName, parameters, options);
4333
4333
  return poller.pollUntilDone();
4334
4334
  });
@@ -4610,7 +4610,7 @@ class OperationsImpl {
4610
4610
  return this;
4611
4611
  },
4612
4612
  byPage: (settings) => {
4613
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4613
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4614
4614
  throw new Error("maxPageSize is not supported by this operation.");
4615
4615
  }
4616
4616
  return this.listPagingPage(options, settings);
@@ -4620,7 +4620,7 @@ class OperationsImpl {
4620
4620
  listPagingPage(options, settings) {
4621
4621
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4622
4622
  let result;
4623
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4623
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4624
4624
  if (!continuationToken) {
4625
4625
  result = yield tslib.__await(this._list(options));
4626
4626
  let page = result.value || [];
@@ -4739,7 +4739,7 @@ class ConfigurationNamesImpl {
4739
4739
  return this;
4740
4740
  },
4741
4741
  byPage: (settings) => {
4742
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4742
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4743
4743
  throw new Error("maxPageSize is not supported by this operation.");
4744
4744
  }
4745
4745
  return this.listPagingPage(options, settings);
@@ -4749,7 +4749,7 @@ class ConfigurationNamesImpl {
4749
4749
  listPagingPage(options, settings) {
4750
4750
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4751
4751
  let result;
4752
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4752
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4753
4753
  if (!continuationToken) {
4754
4754
  result = yield tslib.__await(this._list(options));
4755
4755
  let page = result.value || [];
@@ -4873,10 +4873,10 @@ class ServiceLinkerManagementClient extends coreClient__namespace.ServiceClient
4873
4873
  : `${packageDetails}`;
4874
4874
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
4875
4875
  userAgentPrefix,
4876
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
4876
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
4877
4877
  super(optionsWithDefaults);
4878
4878
  let bearerTokenAuthenticationPolicyFound = false;
4879
- if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4879
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4880
4880
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
4881
4881
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
4882
4882
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -4890,7 +4890,7 @@ class ServiceLinkerManagementClient extends coreClient__namespace.ServiceClient
4890
4890
  });
4891
4891
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
4892
4892
  credential: credentials,
4893
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
4893
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
4894
4894
  challengeCallbacks: {
4895
4895
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
4896
4896
  },
@@ -4914,7 +4914,7 @@ class ServiceLinkerManagementClient extends coreClient__namespace.ServiceClient
4914
4914
  const apiVersionPolicy = {
4915
4915
  name: "CustomApiVersionPolicy",
4916
4916
  sendRequest(request, next) {
4917
- return tslib.__awaiter(this, undefined, undefined, function* () {
4917
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4918
4918
  const param = request.url.split("?");
4919
4919
  if (param.length > 1) {
4920
4920
  const newParams = param[1].split("&").map((item) => {