@azure/arm-servicebus 6.2.0-alpha.20250205.1 → 6.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/README.md CHANGED
@@ -99,7 +99,7 @@ If you'd like to contribute to this library, please read the [contributing guide
99
99
 
100
100
  - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
101
101
 
102
- ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fservicebus%2Farm-servicebus%2FREADME.png)
102
+
103
103
 
104
104
  [azure_cli]: https://learn.microsoft.com/cli/azure
105
105
  [azure_sub]: https://azure.microsoft.com/free/
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
  }
@@ -2626,12 +2626,12 @@ class LroImpl {
2626
2626
  this.requestMethod = requestMethod;
2627
2627
  }
2628
2628
  sendInitialRequest() {
2629
- return tslib.__awaiter(this, undefined, undefined, function* () {
2629
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2630
2630
  return this.sendOperationFn(this.args, this.spec);
2631
2631
  });
2632
2632
  }
2633
2633
  sendPollRequest(path) {
2634
- return tslib.__awaiter(this, undefined, undefined, function* () {
2634
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2635
2635
  const _a = this.spec, { requestBody } = _a, restSpec = tslib.__rest(_a, ["requestBody"]);
2636
2636
  return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
2637
2637
  });
@@ -2669,7 +2669,7 @@ class NamespacesImpl {
2669
2669
  return this;
2670
2670
  },
2671
2671
  byPage: (settings) => {
2672
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2672
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2673
2673
  throw new Error("maxPageSize is not supported by this operation.");
2674
2674
  }
2675
2675
  return this.listPagingPage(options, settings);
@@ -2679,7 +2679,7 @@ class NamespacesImpl {
2679
2679
  listPagingPage(options, settings) {
2680
2680
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2681
2681
  let result;
2682
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2682
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2683
2683
  if (!continuationToken) {
2684
2684
  result = yield tslib.__await(this._list(options));
2685
2685
  let page = result.value || [];
@@ -2731,7 +2731,7 @@ class NamespacesImpl {
2731
2731
  return this;
2732
2732
  },
2733
2733
  byPage: (settings) => {
2734
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2734
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2735
2735
  throw new Error("maxPageSize is not supported by this operation.");
2736
2736
  }
2737
2737
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -2741,7 +2741,7 @@ class NamespacesImpl {
2741
2741
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
2742
2742
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2743
2743
  let result;
2744
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2744
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2745
2745
  if (!continuationToken) {
2746
2746
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2747
2747
  let page = result.value || [];
@@ -2794,7 +2794,7 @@ class NamespacesImpl {
2794
2794
  return this;
2795
2795
  },
2796
2796
  byPage: (settings) => {
2797
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2797
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2798
2798
  throw new Error("maxPageSize is not supported by this operation.");
2799
2799
  }
2800
2800
  return this.listNetworkRuleSetsPagingPage(resourceGroupName, namespaceName, options, settings);
@@ -2804,7 +2804,7 @@ class NamespacesImpl {
2804
2804
  listNetworkRuleSetsPagingPage(resourceGroupName, namespaceName, options, settings) {
2805
2805
  return tslib.__asyncGenerator(this, arguments, function* listNetworkRuleSetsPagingPage_1() {
2806
2806
  let result;
2807
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2807
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2808
2808
  if (!continuationToken) {
2809
2809
  result = yield tslib.__await(this._listNetworkRuleSets(resourceGroupName, namespaceName, options));
2810
2810
  let page = result.value || [];
@@ -2857,7 +2857,7 @@ class NamespacesImpl {
2857
2857
  return this;
2858
2858
  },
2859
2859
  byPage: (settings) => {
2860
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2860
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2861
2861
  throw new Error("maxPageSize is not supported by this operation.");
2862
2862
  }
2863
2863
  return this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options, settings);
@@ -2867,7 +2867,7 @@ class NamespacesImpl {
2867
2867
  listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options, settings) {
2868
2868
  return tslib.__asyncGenerator(this, arguments, function* listAuthorizationRulesPagingPage_1() {
2869
2869
  let result;
2870
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2870
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2871
2871
  if (!continuationToken) {
2872
2872
  result = yield tslib.__await(this._listAuthorizationRules(resourceGroupName, namespaceName, options));
2873
2873
  let page = result.value || [];
@@ -2928,17 +2928,17 @@ class NamespacesImpl {
2928
2928
  * @param options The options parameters.
2929
2929
  */
2930
2930
  beginCreateOrUpdate(resourceGroupName, namespaceName, parameters, options) {
2931
- return tslib.__awaiter(this, undefined, undefined, function* () {
2932
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2931
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2932
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2933
2933
  return this.client.sendOperationRequest(args, spec);
2934
2934
  });
2935
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2935
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2936
2936
  var _a;
2937
2937
  let currentRawResponse = undefined;
2938
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2938
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2939
2939
  const callback = (rawResponse, flatResponse) => {
2940
2940
  currentRawResponse = rawResponse;
2941
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2941
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2942
2942
  };
2943
2943
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2944
2944
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2953,8 +2953,8 @@ class NamespacesImpl {
2953
2953
  });
2954
2954
  const lro = new LroImpl(sendOperation, { resourceGroupName, namespaceName, parameters, options }, createOrUpdateOperationSpec$6);
2955
2955
  const poller = new coreLro.LroEngine(lro, {
2956
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2957
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
2956
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2957
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2958
2958
  });
2959
2959
  yield poller.poll();
2960
2960
  return poller;
@@ -2969,7 +2969,7 @@ class NamespacesImpl {
2969
2969
  * @param options The options parameters.
2970
2970
  */
2971
2971
  beginCreateOrUpdateAndWait(resourceGroupName, namespaceName, parameters, options) {
2972
- return tslib.__awaiter(this, undefined, undefined, function* () {
2972
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2973
2973
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, namespaceName, parameters, options);
2974
2974
  return poller.pollUntilDone();
2975
2975
  });
@@ -2982,17 +2982,17 @@ class NamespacesImpl {
2982
2982
  * @param options The options parameters.
2983
2983
  */
2984
2984
  beginDelete(resourceGroupName, namespaceName, 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 sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2989
+ const sendOperation = (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);
@@ -3007,8 +3007,8 @@ class NamespacesImpl {
3007
3007
  });
3008
3008
  const lro = new LroImpl(sendOperation, { resourceGroupName, namespaceName, options }, deleteOperationSpec$7);
3009
3009
  const poller = new coreLro.LroEngine(lro, {
3010
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3011
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3010
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3011
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3012
3012
  });
3013
3013
  yield poller.poll();
3014
3014
  return poller;
@@ -3022,7 +3022,7 @@ class NamespacesImpl {
3022
3022
  * @param options The options parameters.
3023
3023
  */
3024
3024
  beginDeleteAndWait(resourceGroupName, namespaceName, options) {
3025
- return tslib.__awaiter(this, undefined, undefined, function* () {
3025
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3026
3026
  const poller = yield this.beginDelete(resourceGroupName, namespaceName, options);
3027
3027
  return poller.pollUntilDone();
3028
3028
  });
@@ -3666,7 +3666,7 @@ class PrivateEndpointConnectionsImpl {
3666
3666
  return this;
3667
3667
  },
3668
3668
  byPage: (settings) => {
3669
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3669
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3670
3670
  throw new Error("maxPageSize is not supported by this operation.");
3671
3671
  }
3672
3672
  return this.listPagingPage(resourceGroupName, namespaceName, options, settings);
@@ -3676,7 +3676,7 @@ class PrivateEndpointConnectionsImpl {
3676
3676
  listPagingPage(resourceGroupName, namespaceName, options, settings) {
3677
3677
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3678
3678
  let result;
3679
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3679
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3680
3680
  if (!continuationToken) {
3681
3681
  result = yield tslib.__await(this._list(resourceGroupName, namespaceName, options));
3682
3682
  let page = result.value || [];
@@ -3748,17 +3748,17 @@ class PrivateEndpointConnectionsImpl {
3748
3748
  * @param options The options parameters.
3749
3749
  */
3750
3750
  beginDelete(resourceGroupName, namespaceName, privateEndpointConnectionName, options) {
3751
- return tslib.__awaiter(this, undefined, undefined, function* () {
3752
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3751
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3752
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3753
3753
  return this.client.sendOperationRequest(args, spec);
3754
3754
  });
3755
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3755
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3756
3756
  var _a;
3757
3757
  let currentRawResponse = undefined;
3758
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3758
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3759
3759
  const callback = (rawResponse, flatResponse) => {
3760
3760
  currentRawResponse = rawResponse;
3761
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3761
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3762
3762
  };
3763
3763
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3764
3764
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3778,8 +3778,8 @@ class PrivateEndpointConnectionsImpl {
3778
3778
  options
3779
3779
  }, deleteOperationSpec$6);
3780
3780
  const poller = new coreLro.LroEngine(lro, {
3781
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3782
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3781
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3782
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3783
3783
  });
3784
3784
  yield poller.poll();
3785
3785
  return poller;
@@ -3793,7 +3793,7 @@ class PrivateEndpointConnectionsImpl {
3793
3793
  * @param options The options parameters.
3794
3794
  */
3795
3795
  beginDeleteAndWait(resourceGroupName, namespaceName, privateEndpointConnectionName, options) {
3796
- return tslib.__awaiter(this, undefined, undefined, function* () {
3796
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3797
3797
  const poller = yield this.beginDelete(resourceGroupName, namespaceName, privateEndpointConnectionName, options);
3798
3798
  return poller.pollUntilDone();
3799
3799
  });
@@ -4025,7 +4025,7 @@ class OperationsImpl {
4025
4025
  return this;
4026
4026
  },
4027
4027
  byPage: (settings) => {
4028
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4028
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4029
4029
  throw new Error("maxPageSize is not supported by this operation.");
4030
4030
  }
4031
4031
  return this.listPagingPage(options, settings);
@@ -4035,7 +4035,7 @@ class OperationsImpl {
4035
4035
  listPagingPage(options, settings) {
4036
4036
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4037
4037
  let result;
4038
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4038
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4039
4039
  if (!continuationToken) {
4040
4040
  result = yield tslib.__await(this._list(options));
4041
4041
  let page = result.value || [];
@@ -4155,7 +4155,7 @@ class DisasterRecoveryConfigsImpl {
4155
4155
  return this;
4156
4156
  },
4157
4157
  byPage: (settings) => {
4158
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4158
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4159
4159
  throw new Error("maxPageSize is not supported by this operation.");
4160
4160
  }
4161
4161
  return this.listPagingPage(resourceGroupName, namespaceName, options, settings);
@@ -4165,7 +4165,7 @@ class DisasterRecoveryConfigsImpl {
4165
4165
  listPagingPage(resourceGroupName, namespaceName, options, settings) {
4166
4166
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4167
4167
  let result;
4168
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4168
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4169
4169
  if (!continuationToken) {
4170
4170
  result = yield tslib.__await(this._list(resourceGroupName, namespaceName, options));
4171
4171
  let page = result.value || [];
@@ -4219,7 +4219,7 @@ class DisasterRecoveryConfigsImpl {
4219
4219
  return this;
4220
4220
  },
4221
4221
  byPage: (settings) => {
4222
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4222
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4223
4223
  throw new Error("maxPageSize is not supported by this operation.");
4224
4224
  }
4225
4225
  return this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, alias, options, settings);
@@ -4229,7 +4229,7 @@ class DisasterRecoveryConfigsImpl {
4229
4229
  listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, alias, options, settings) {
4230
4230
  return tslib.__asyncGenerator(this, arguments, function* listAuthorizationRulesPagingPage_1() {
4231
4231
  let result;
4232
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4232
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4233
4233
  if (!continuationToken) {
4234
4234
  result = yield tslib.__await(this._listAuthorizationRules(resourceGroupName, namespaceName, alias, options));
4235
4235
  let page = result.value || [];
@@ -4704,7 +4704,7 @@ class MigrationConfigsImpl {
4704
4704
  return this;
4705
4705
  },
4706
4706
  byPage: (settings) => {
4707
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4707
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4708
4708
  throw new Error("maxPageSize is not supported by this operation.");
4709
4709
  }
4710
4710
  return this.listPagingPage(resourceGroupName, namespaceName, options, settings);
@@ -4714,7 +4714,7 @@ class MigrationConfigsImpl {
4714
4714
  listPagingPage(resourceGroupName, namespaceName, options, settings) {
4715
4715
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4716
4716
  let result;
4717
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4717
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4718
4718
  if (!continuationToken) {
4719
4719
  result = yield tslib.__await(this._list(resourceGroupName, namespaceName, options));
4720
4720
  let page = result.value || [];
@@ -4769,17 +4769,17 @@ class MigrationConfigsImpl {
4769
4769
  * @param options The options parameters.
4770
4770
  */
4771
4771
  beginCreateAndStartMigration(resourceGroupName, namespaceName, configName, parameters, options) {
4772
- return tslib.__awaiter(this, undefined, undefined, function* () {
4773
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4772
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4773
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4774
4774
  return this.client.sendOperationRequest(args, spec);
4775
4775
  });
4776
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4776
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4777
4777
  var _a;
4778
4778
  let currentRawResponse = undefined;
4779
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4779
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4780
4780
  const callback = (rawResponse, flatResponse) => {
4781
4781
  currentRawResponse = rawResponse;
4782
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4782
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4783
4783
  };
4784
4784
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4785
4785
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4794,8 +4794,8 @@ class MigrationConfigsImpl {
4794
4794
  });
4795
4795
  const lro = new LroImpl(sendOperation, { resourceGroupName, namespaceName, configName, parameters, options }, createAndStartMigrationOperationSpec);
4796
4796
  const poller = new coreLro.LroEngine(lro, {
4797
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4798
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4797
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4798
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4799
4799
  });
4800
4800
  yield poller.poll();
4801
4801
  return poller;
@@ -4810,7 +4810,7 @@ class MigrationConfigsImpl {
4810
4810
  * @param options The options parameters.
4811
4811
  */
4812
4812
  beginCreateAndStartMigrationAndWait(resourceGroupName, namespaceName, configName, parameters, options) {
4813
- return tslib.__awaiter(this, undefined, undefined, function* () {
4813
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4814
4814
  const poller = yield this.beginCreateAndStartMigration(resourceGroupName, namespaceName, configName, parameters, options);
4815
4815
  return poller.pollUntilDone();
4816
4816
  });
@@ -5063,7 +5063,7 @@ class QueuesImpl {
5063
5063
  return this;
5064
5064
  },
5065
5065
  byPage: (settings) => {
5066
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5066
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5067
5067
  throw new Error("maxPageSize is not supported by this operation.");
5068
5068
  }
5069
5069
  return this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, queueName, options, settings);
@@ -5073,7 +5073,7 @@ class QueuesImpl {
5073
5073
  listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, queueName, options, settings) {
5074
5074
  return tslib.__asyncGenerator(this, arguments, function* listAuthorizationRulesPagingPage_1() {
5075
5075
  let result;
5076
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5076
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5077
5077
  if (!continuationToken) {
5078
5078
  result = yield tslib.__await(this._listAuthorizationRules(resourceGroupName, namespaceName, queueName, options));
5079
5079
  let page = result.value || [];
@@ -5126,7 +5126,7 @@ class QueuesImpl {
5126
5126
  return this;
5127
5127
  },
5128
5128
  byPage: (settings) => {
5129
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5129
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5130
5130
  throw new Error("maxPageSize is not supported by this operation.");
5131
5131
  }
5132
5132
  return this.listByNamespacePagingPage(resourceGroupName, namespaceName, options, settings);
@@ -5136,7 +5136,7 @@ class QueuesImpl {
5136
5136
  listByNamespacePagingPage(resourceGroupName, namespaceName, options, settings) {
5137
5137
  return tslib.__asyncGenerator(this, arguments, function* listByNamespacePagingPage_1() {
5138
5138
  let result;
5139
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5139
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5140
5140
  if (!continuationToken) {
5141
5141
  result = yield tslib.__await(this._listByNamespace(resourceGroupName, namespaceName, options));
5142
5142
  let page = result.value || [];
@@ -5642,7 +5642,7 @@ class TopicsImpl {
5642
5642
  return this;
5643
5643
  },
5644
5644
  byPage: (settings) => {
5645
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5645
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5646
5646
  throw new Error("maxPageSize is not supported by this operation.");
5647
5647
  }
5648
5648
  return this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, topicName, options, settings);
@@ -5652,7 +5652,7 @@ class TopicsImpl {
5652
5652
  listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, topicName, options, settings) {
5653
5653
  return tslib.__asyncGenerator(this, arguments, function* listAuthorizationRulesPagingPage_1() {
5654
5654
  let result;
5655
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5655
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5656
5656
  if (!continuationToken) {
5657
5657
  result = yield tslib.__await(this._listAuthorizationRules(resourceGroupName, namespaceName, topicName, options));
5658
5658
  let page = result.value || [];
@@ -5705,7 +5705,7 @@ class TopicsImpl {
5705
5705
  return this;
5706
5706
  },
5707
5707
  byPage: (settings) => {
5708
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5708
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5709
5709
  throw new Error("maxPageSize is not supported by this operation.");
5710
5710
  }
5711
5711
  return this.listByNamespacePagingPage(resourceGroupName, namespaceName, options, settings);
@@ -5715,7 +5715,7 @@ class TopicsImpl {
5715
5715
  listByNamespacePagingPage(resourceGroupName, namespaceName, options, settings) {
5716
5716
  return tslib.__asyncGenerator(this, arguments, function* listByNamespacePagingPage_1() {
5717
5717
  let result;
5718
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5718
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5719
5719
  if (!continuationToken) {
5720
5720
  result = yield tslib.__await(this._listByNamespace(resourceGroupName, namespaceName, options));
5721
5721
  let page = result.value || [];
@@ -6222,7 +6222,7 @@ class RulesImpl {
6222
6222
  return this;
6223
6223
  },
6224
6224
  byPage: (settings) => {
6225
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6225
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6226
6226
  throw new Error("maxPageSize is not supported by this operation.");
6227
6227
  }
6228
6228
  return this.listBySubscriptionsPagingPage(resourceGroupName, namespaceName, topicName, subscriptionName, options, settings);
@@ -6232,7 +6232,7 @@ class RulesImpl {
6232
6232
  listBySubscriptionsPagingPage(resourceGroupName, namespaceName, topicName, subscriptionName, options, settings) {
6233
6233
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionsPagingPage_1() {
6234
6234
  let result;
6235
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6235
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6236
6236
  if (!continuationToken) {
6237
6237
  result = yield tslib.__await(this._listBySubscriptions(resourceGroupName, namespaceName, topicName, subscriptionName, options));
6238
6238
  let page = result.value || [];
@@ -6521,7 +6521,7 @@ class SubscriptionsImpl {
6521
6521
  return this;
6522
6522
  },
6523
6523
  byPage: (settings) => {
6524
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6524
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6525
6525
  throw new Error("maxPageSize is not supported by this operation.");
6526
6526
  }
6527
6527
  return this.listByTopicPagingPage(resourceGroupName, namespaceName, topicName, options, settings);
@@ -6531,7 +6531,7 @@ class SubscriptionsImpl {
6531
6531
  listByTopicPagingPage(resourceGroupName, namespaceName, topicName, options, settings) {
6532
6532
  return tslib.__asyncGenerator(this, arguments, function* listByTopicPagingPage_1() {
6533
6533
  let result;
6534
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6534
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6535
6535
  if (!continuationToken) {
6536
6536
  result = yield tslib.__await(this._listByTopic(resourceGroupName, namespaceName, topicName, options));
6537
6537
  let page = result.value || [];
@@ -6797,10 +6797,10 @@ class ServiceBusManagementClient extends coreClient__namespace.ServiceClient {
6797
6797
  : `${packageDetails}`;
6798
6798
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
6799
6799
  userAgentPrefix
6800
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
6800
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
6801
6801
  super(optionsWithDefaults);
6802
6802
  let bearerTokenAuthenticationPolicyFound = false;
6803
- if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
6803
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
6804
6804
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
6805
6805
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
6806
6806
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -6814,7 +6814,7 @@ class ServiceBusManagementClient extends coreClient__namespace.ServiceClient {
6814
6814
  });
6815
6815
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
6816
6816
  credential: credentials,
6817
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
6817
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
6818
6818
  challengeCallbacks: {
6819
6819
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
6820
6820
  }
@@ -6845,7 +6845,7 @@ class ServiceBusManagementClient extends coreClient__namespace.ServiceClient {
6845
6845
  const apiVersionPolicy = {
6846
6846
  name: "CustomApiVersionPolicy",
6847
6847
  sendRequest(request, next) {
6848
- return tslib.__awaiter(this, undefined, undefined, function* () {
6848
+ return tslib.__awaiter(this, void 0, void 0, function* () {
6849
6849
  const param = request.url.split("?");
6850
6850
  if (param.length > 1) {
6851
6851
  const newParams = param[1].split("&").map((item) => {