@azure/arm-eventhub-profile-2020-09-01-hybrid 2.1.1-alpha.20250103.1 → 2.1.1-alpha.20250106.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
47
47
  if (typeof page !== "object" || page === null) {
48
48
  return undefined;
49
49
  }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
50
+ return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
51
51
  }
52
52
  function setContinuationToken(page, continuationToken) {
53
53
  var _a;
54
54
  if (typeof page !== "object" || page === null || !continuationToken) {
55
55
  return;
56
56
  }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
58
58
  pageInfo.continuationToken = continuationToken;
59
59
  pageMap.set(page, pageInfo);
60
60
  }
@@ -1615,12 +1615,12 @@ class LroImpl {
1615
1615
  this.requestMethod = requestMethod;
1616
1616
  }
1617
1617
  sendInitialRequest() {
1618
- return tslib.__awaiter(this, void 0, void 0, function* () {
1618
+ return tslib.__awaiter(this, undefined, undefined, function* () {
1619
1619
  return this.sendOperationFn(this.args, this.spec);
1620
1620
  });
1621
1621
  }
1622
1622
  sendPollRequest(path) {
1623
- return tslib.__awaiter(this, void 0, void 0, function* () {
1623
+ return tslib.__awaiter(this, undefined, undefined, function* () {
1624
1624
  const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
1625
1625
  return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
1626
1626
  });
@@ -1659,7 +1659,7 @@ class ClustersImpl {
1659
1659
  return this;
1660
1660
  },
1661
1661
  byPage: (settings) => {
1662
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1662
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
1663
1663
  throw new Error("maxPageSize is not supported by this operation.");
1664
1664
  }
1665
1665
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -1669,7 +1669,7 @@ class ClustersImpl {
1669
1669
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1670
1670
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1671
1671
  let result;
1672
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1672
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
1673
1673
  if (!continuationToken) {
1674
1674
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1675
1675
  let page = result.value || [];
@@ -1738,17 +1738,17 @@ class ClustersImpl {
1738
1738
  * @param options The options parameters.
1739
1739
  */
1740
1740
  beginCreateOrUpdate(resourceGroupName, clusterName, parameters, options) {
1741
- return tslib.__awaiter(this, void 0, void 0, function* () {
1742
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1741
+ return tslib.__awaiter(this, undefined, undefined, function* () {
1742
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1743
1743
  return this.client.sendOperationRequest(args, spec);
1744
1744
  });
1745
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1745
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1746
1746
  var _a;
1747
1747
  let currentRawResponse = undefined;
1748
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1748
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
1749
1749
  const callback = (rawResponse, flatResponse) => {
1750
1750
  currentRawResponse = rawResponse;
1751
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1751
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
1752
1752
  };
1753
1753
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1754
1754
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -1763,8 +1763,8 @@ class ClustersImpl {
1763
1763
  });
1764
1764
  const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, createOrUpdateOperationSpec$4);
1765
1765
  const poller = new coreLro.LroEngine(lro, {
1766
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1767
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1766
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
1767
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
1768
1768
  });
1769
1769
  yield poller.poll();
1770
1770
  return poller;
@@ -1778,7 +1778,7 @@ class ClustersImpl {
1778
1778
  * @param options The options parameters.
1779
1779
  */
1780
1780
  beginCreateOrUpdateAndWait(resourceGroupName, clusterName, parameters, options) {
1781
- return tslib.__awaiter(this, void 0, void 0, function* () {
1781
+ return tslib.__awaiter(this, undefined, undefined, function* () {
1782
1782
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, parameters, options);
1783
1783
  return poller.pollUntilDone();
1784
1784
  });
@@ -1791,17 +1791,17 @@ class ClustersImpl {
1791
1791
  * @param options The options parameters.
1792
1792
  */
1793
1793
  beginUpdate(resourceGroupName, clusterName, parameters, options) {
1794
- return tslib.__awaiter(this, void 0, void 0, function* () {
1795
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1794
+ return tslib.__awaiter(this, undefined, undefined, function* () {
1795
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1796
1796
  return this.client.sendOperationRequest(args, spec);
1797
1797
  });
1798
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1798
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1799
1799
  var _a;
1800
1800
  let currentRawResponse = undefined;
1801
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1801
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
1802
1802
  const callback = (rawResponse, flatResponse) => {
1803
1803
  currentRawResponse = rawResponse;
1804
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1804
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
1805
1805
  };
1806
1806
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1807
1807
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -1816,8 +1816,8 @@ class ClustersImpl {
1816
1816
  });
1817
1817
  const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, updateOperationSpec$1);
1818
1818
  const poller = new coreLro.LroEngine(lro, {
1819
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1820
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1819
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
1820
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
1821
1821
  });
1822
1822
  yield poller.poll();
1823
1823
  return poller;
@@ -1831,7 +1831,7 @@ class ClustersImpl {
1831
1831
  * @param options The options parameters.
1832
1832
  */
1833
1833
  beginUpdateAndWait(resourceGroupName, clusterName, parameters, options) {
1834
- return tslib.__awaiter(this, void 0, void 0, function* () {
1834
+ return tslib.__awaiter(this, undefined, undefined, function* () {
1835
1835
  const poller = yield this.beginUpdate(resourceGroupName, clusterName, parameters, options);
1836
1836
  return poller.pollUntilDone();
1837
1837
  });
@@ -1843,17 +1843,17 @@ class ClustersImpl {
1843
1843
  * @param options The options parameters.
1844
1844
  */
1845
1845
  beginDelete(resourceGroupName, clusterName, options) {
1846
- return tslib.__awaiter(this, void 0, void 0, function* () {
1847
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1846
+ return tslib.__awaiter(this, undefined, undefined, function* () {
1847
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1848
1848
  return this.client.sendOperationRequest(args, spec);
1849
1849
  });
1850
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1850
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1851
1851
  var _a;
1852
1852
  let currentRawResponse = undefined;
1853
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1853
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
1854
1854
  const callback = (rawResponse, flatResponse) => {
1855
1855
  currentRawResponse = rawResponse;
1856
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1856
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
1857
1857
  };
1858
1858
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1859
1859
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -1868,8 +1868,8 @@ class ClustersImpl {
1868
1868
  });
1869
1869
  const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, options }, deleteOperationSpec$4);
1870
1870
  const poller = new coreLro.LroEngine(lro, {
1871
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1872
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1871
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
1872
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
1873
1873
  });
1874
1874
  yield poller.poll();
1875
1875
  return poller;
@@ -1882,7 +1882,7 @@ class ClustersImpl {
1882
1882
  * @param options The options parameters.
1883
1883
  */
1884
1884
  beginDeleteAndWait(resourceGroupName, clusterName, options) {
1885
- return tslib.__awaiter(this, void 0, void 0, function* () {
1885
+ return tslib.__awaiter(this, undefined, undefined, function* () {
1886
1886
  const poller = yield this.beginDelete(resourceGroupName, clusterName, options);
1887
1887
  return poller.pollUntilDone();
1888
1888
  });
@@ -2124,7 +2124,7 @@ class NamespacesImpl {
2124
2124
  return this;
2125
2125
  },
2126
2126
  byPage: (settings) => {
2127
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2127
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2128
2128
  throw new Error("maxPageSize is not supported by this operation.");
2129
2129
  }
2130
2130
  return this.listPagingPage(options, settings);
@@ -2134,7 +2134,7 @@ class NamespacesImpl {
2134
2134
  listPagingPage(options, settings) {
2135
2135
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2136
2136
  let result;
2137
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2137
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2138
2138
  if (!continuationToken) {
2139
2139
  result = yield tslib.__await(this._list(options));
2140
2140
  let page = result.value || [];
@@ -2186,7 +2186,7 @@ class NamespacesImpl {
2186
2186
  return this;
2187
2187
  },
2188
2188
  byPage: (settings) => {
2189
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2189
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2190
2190
  throw new Error("maxPageSize is not supported by this operation.");
2191
2191
  }
2192
2192
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -2196,7 +2196,7 @@ class NamespacesImpl {
2196
2196
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
2197
2197
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2198
2198
  let result;
2199
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2199
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2200
2200
  if (!continuationToken) {
2201
2201
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2202
2202
  let page = result.value || [];
@@ -2249,7 +2249,7 @@ class NamespacesImpl {
2249
2249
  return this;
2250
2250
  },
2251
2251
  byPage: (settings) => {
2252
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2252
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2253
2253
  throw new Error("maxPageSize is not supported by this operation.");
2254
2254
  }
2255
2255
  return this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options, settings);
@@ -2259,7 +2259,7 @@ class NamespacesImpl {
2259
2259
  listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options, settings) {
2260
2260
  return tslib.__asyncGenerator(this, arguments, function* listAuthorizationRulesPagingPage_1() {
2261
2261
  let result;
2262
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2262
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2263
2263
  if (!continuationToken) {
2264
2264
  result = yield tslib.__await(this._listAuthorizationRules(resourceGroupName, namespaceName, options));
2265
2265
  let page = result.value || [];
@@ -2320,17 +2320,17 @@ class NamespacesImpl {
2320
2320
  * @param options The options parameters.
2321
2321
  */
2322
2322
  beginCreateOrUpdate(resourceGroupName, namespaceName, parameters, options) {
2323
- return tslib.__awaiter(this, void 0, void 0, function* () {
2324
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2323
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2324
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2325
2325
  return this.client.sendOperationRequest(args, spec);
2326
2326
  });
2327
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2327
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2328
2328
  var _a;
2329
2329
  let currentRawResponse = undefined;
2330
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2330
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2331
2331
  const callback = (rawResponse, flatResponse) => {
2332
2332
  currentRawResponse = rawResponse;
2333
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2333
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2334
2334
  };
2335
2335
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2336
2336
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2345,8 +2345,8 @@ class NamespacesImpl {
2345
2345
  });
2346
2346
  const lro = new LroImpl(sendOperation, { resourceGroupName, namespaceName, parameters, options }, createOrUpdateOperationSpec$3);
2347
2347
  const poller = new coreLro.LroEngine(lro, {
2348
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2349
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2348
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2349
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
2350
2350
  });
2351
2351
  yield poller.poll();
2352
2352
  return poller;
@@ -2361,7 +2361,7 @@ class NamespacesImpl {
2361
2361
  * @param options The options parameters.
2362
2362
  */
2363
2363
  beginCreateOrUpdateAndWait(resourceGroupName, namespaceName, parameters, options) {
2364
- return tslib.__awaiter(this, void 0, void 0, function* () {
2364
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2365
2365
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, namespaceName, parameters, options);
2366
2366
  return poller.pollUntilDone();
2367
2367
  });
@@ -2374,17 +2374,17 @@ class NamespacesImpl {
2374
2374
  * @param options The options parameters.
2375
2375
  */
2376
2376
  beginDelete(resourceGroupName, namespaceName, options) {
2377
- return tslib.__awaiter(this, void 0, void 0, function* () {
2378
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2377
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2378
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2379
2379
  return this.client.sendOperationRequest(args, spec);
2380
2380
  });
2381
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2381
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2382
2382
  var _a;
2383
2383
  let currentRawResponse = undefined;
2384
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2384
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2385
2385
  const callback = (rawResponse, flatResponse) => {
2386
2386
  currentRawResponse = rawResponse;
2387
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2387
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2388
2388
  };
2389
2389
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2390
2390
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2399,8 +2399,8 @@ class NamespacesImpl {
2399
2399
  });
2400
2400
  const lro = new LroImpl(sendOperation, { resourceGroupName, namespaceName, options }, deleteOperationSpec$3);
2401
2401
  const poller = new coreLro.LroEngine(lro, {
2402
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2403
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2402
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2403
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
2404
2404
  });
2405
2405
  yield poller.poll();
2406
2406
  return poller;
@@ -2414,7 +2414,7 @@ class NamespacesImpl {
2414
2414
  * @param options The options parameters.
2415
2415
  */
2416
2416
  beginDeleteAndWait(resourceGroupName, namespaceName, options) {
2417
- return tslib.__awaiter(this, void 0, void 0, function* () {
2417
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2418
2418
  const poller = yield this.beginDelete(resourceGroupName, namespaceName, options);
2419
2419
  return poller.pollUntilDone();
2420
2420
  });
@@ -2937,7 +2937,7 @@ class PrivateEndpointConnectionsImpl {
2937
2937
  return this;
2938
2938
  },
2939
2939
  byPage: (settings) => {
2940
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2940
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2941
2941
  throw new Error("maxPageSize is not supported by this operation.");
2942
2942
  }
2943
2943
  return this.listPagingPage(resourceGroupName, namespaceName, options, settings);
@@ -2947,7 +2947,7 @@ class PrivateEndpointConnectionsImpl {
2947
2947
  listPagingPage(resourceGroupName, namespaceName, options, settings) {
2948
2948
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2949
2949
  let result;
2950
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2950
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2951
2951
  if (!continuationToken) {
2952
2952
  result = yield tslib.__await(this._list(resourceGroupName, namespaceName, options));
2953
2953
  let page = result.value || [];
@@ -3020,17 +3020,17 @@ class PrivateEndpointConnectionsImpl {
3020
3020
  * @param options The options parameters.
3021
3021
  */
3022
3022
  beginDelete(resourceGroupName, namespaceName, privateEndpointConnectionName, options) {
3023
- return tslib.__awaiter(this, void 0, void 0, function* () {
3024
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3023
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3024
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3025
3025
  return this.client.sendOperationRequest(args, spec);
3026
3026
  });
3027
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3027
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3028
3028
  var _a;
3029
3029
  let currentRawResponse = undefined;
3030
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3030
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3031
3031
  const callback = (rawResponse, flatResponse) => {
3032
3032
  currentRawResponse = rawResponse;
3033
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3033
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3034
3034
  };
3035
3035
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3036
3036
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3050,8 +3050,8 @@ class PrivateEndpointConnectionsImpl {
3050
3050
  options
3051
3051
  }, deleteOperationSpec$2);
3052
3052
  const poller = new coreLro.LroEngine(lro, {
3053
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3054
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3053
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3054
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3055
3055
  });
3056
3056
  yield poller.poll();
3057
3057
  return poller;
@@ -3066,7 +3066,7 @@ class PrivateEndpointConnectionsImpl {
3066
3066
  * @param options The options parameters.
3067
3067
  */
3068
3068
  beginDeleteAndWait(resourceGroupName, namespaceName, privateEndpointConnectionName, options) {
3069
- return tslib.__awaiter(this, void 0, void 0, function* () {
3069
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3070
3070
  const poller = yield this.beginDelete(resourceGroupName, namespaceName, privateEndpointConnectionName, options);
3071
3071
  return poller.pollUntilDone();
3072
3072
  });
@@ -3298,7 +3298,7 @@ class DisasterRecoveryConfigsImpl {
3298
3298
  return this;
3299
3299
  },
3300
3300
  byPage: (settings) => {
3301
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3301
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3302
3302
  throw new Error("maxPageSize is not supported by this operation.");
3303
3303
  }
3304
3304
  return this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, alias, options, settings);
@@ -3308,7 +3308,7 @@ class DisasterRecoveryConfigsImpl {
3308
3308
  listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, alias, options, settings) {
3309
3309
  return tslib.__asyncGenerator(this, arguments, function* listAuthorizationRulesPagingPage_1() {
3310
3310
  let result;
3311
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3311
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3312
3312
  if (!continuationToken) {
3313
3313
  result = yield tslib.__await(this._listAuthorizationRules(resourceGroupName, namespaceName, alias, options));
3314
3314
  let page = result.value || [];
@@ -3528,7 +3528,7 @@ class EventHubsImpl {
3528
3528
  return this;
3529
3529
  },
3530
3530
  byPage: (settings) => {
3531
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3531
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3532
3532
  throw new Error("maxPageSize is not supported by this operation.");
3533
3533
  }
3534
3534
  return this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, eventHubName, options, settings);
@@ -3538,7 +3538,7 @@ class EventHubsImpl {
3538
3538
  listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, eventHubName, options, settings) {
3539
3539
  return tslib.__asyncGenerator(this, arguments, function* listAuthorizationRulesPagingPage_1() {
3540
3540
  let result;
3541
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3541
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3542
3542
  if (!continuationToken) {
3543
3543
  result = yield tslib.__await(this._listAuthorizationRules(resourceGroupName, namespaceName, eventHubName, options));
3544
3544
  let page = result.value || [];
@@ -3591,7 +3591,7 @@ class EventHubsImpl {
3591
3591
  return this;
3592
3592
  },
3593
3593
  byPage: (settings) => {
3594
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3594
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3595
3595
  throw new Error("maxPageSize is not supported by this operation.");
3596
3596
  }
3597
3597
  return this.listByNamespacePagingPage(resourceGroupName, namespaceName, options, settings);
@@ -3601,7 +3601,7 @@ class EventHubsImpl {
3601
3601
  listByNamespacePagingPage(resourceGroupName, namespaceName, options, settings) {
3602
3602
  return tslib.__asyncGenerator(this, arguments, function* listByNamespacePagingPage_1() {
3603
3603
  let result;
3604
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3604
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3605
3605
  if (!continuationToken) {
3606
3606
  result = yield tslib.__await(this._listByNamespace(resourceGroupName, namespaceName, options));
3607
3607
  let page = result.value || [];
@@ -4110,7 +4110,7 @@ class ConsumerGroupsImpl {
4110
4110
  return this;
4111
4111
  },
4112
4112
  byPage: (settings) => {
4113
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4113
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4114
4114
  throw new Error("maxPageSize is not supported by this operation.");
4115
4115
  }
4116
4116
  return this.listByEventHubPagingPage(resourceGroupName, namespaceName, eventHubName, options, settings);
@@ -4120,7 +4120,7 @@ class ConsumerGroupsImpl {
4120
4120
  listByEventHubPagingPage(resourceGroupName, namespaceName, eventHubName, options, settings) {
4121
4121
  return tslib.__asyncGenerator(this, arguments, function* listByEventHubPagingPage_1() {
4122
4122
  let result;
4123
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4123
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4124
4124
  if (!continuationToken) {
4125
4125
  result = yield tslib.__await(this._listByEventHub(resourceGroupName, namespaceName, eventHubName, options));
4126
4126
  let page = result.value || [];
@@ -4381,7 +4381,7 @@ class OperationsImpl {
4381
4381
  return this;
4382
4382
  },
4383
4383
  byPage: (settings) => {
4384
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4384
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4385
4385
  throw new Error("maxPageSize is not supported by this operation.");
4386
4386
  }
4387
4387
  return this.listPagingPage(options, settings);
@@ -4391,7 +4391,7 @@ class OperationsImpl {
4391
4391
  listPagingPage(options, settings) {
4392
4392
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4393
4393
  let result;
4394
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4394
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4395
4395
  if (!continuationToken) {
4396
4396
  result = yield tslib.__await(this._list(options));
4397
4397
  let page = result.value || [];
@@ -4510,7 +4510,7 @@ class RegionsImpl {
4510
4510
  return this;
4511
4511
  },
4512
4512
  byPage: (settings) => {
4513
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4513
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4514
4514
  throw new Error("maxPageSize is not supported by this operation.");
4515
4515
  }
4516
4516
  return this.listBySkuPagingPage(sku, options, settings);
@@ -4520,7 +4520,7 @@ class RegionsImpl {
4520
4520
  listBySkuPagingPage(sku, options, settings) {
4521
4521
  return tslib.__asyncGenerator(this, arguments, function* listBySkuPagingPage_1() {
4522
4522
  let result;
4523
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4523
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4524
4524
  if (!continuationToken) {
4525
4525
  result = yield tslib.__await(this._listBySku(sku, options));
4526
4526
  let page = result.value || [];
@@ -4651,10 +4651,10 @@ class EventHubManagementClient extends coreClient__namespace.ServiceClient {
4651
4651
  : `${packageDetails}`;
4652
4652
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
4653
4653
  userAgentPrefix
4654
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
4654
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
4655
4655
  super(optionsWithDefaults);
4656
4656
  let bearerTokenAuthenticationPolicyFound = false;
4657
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4657
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4658
4658
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
4659
4659
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
4660
4660
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -4668,7 +4668,7 @@ class EventHubManagementClient extends coreClient__namespace.ServiceClient {
4668
4668
  });
4669
4669
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
4670
4670
  credential: credentials,
4671
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
4671
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
4672
4672
  challengeCallbacks: {
4673
4673
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
4674
4674
  }