@azure/arm-containerregistry 11.0.0-alpha.20250102.1 → 11.0.0-alpha.20250106.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
47
47
  if (typeof page !== "object" || page === null) {
48
48
  return undefined;
49
49
  }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
50
+ return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
51
51
  }
52
52
  function setContinuationToken(page, continuationToken) {
53
53
  var _a;
54
54
  if (typeof page !== "object" || page === null || !continuationToken) {
55
55
  return;
56
56
  }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
58
58
  pageInfo.continuationToken = continuationToken;
59
59
  pageMap.set(page, pageInfo);
60
60
  }
@@ -7940,7 +7940,7 @@ function createLroSpec(inputs) {
7940
7940
  sendInitialRequest: () => sendOperationFn(args, spec),
7941
7941
  sendPollRequest: (path, options) => {
7942
7942
  const restSpec = tslib.__rest(spec, ["requestBody"]);
7943
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
7943
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
7944
7944
  }
7945
7945
  };
7946
7946
  }
@@ -7979,7 +7979,7 @@ class ArchivesImpl {
7979
7979
  return this;
7980
7980
  },
7981
7981
  byPage: (settings) => {
7982
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7982
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7983
7983
  throw new Error("maxPageSize is not supported by this operation.");
7984
7984
  }
7985
7985
  return this.listPagingPage(resourceGroupName, registryName, packageType, options, settings);
@@ -7989,7 +7989,7 @@ class ArchivesImpl {
7989
7989
  listPagingPage(resourceGroupName, registryName, packageType, options, settings) {
7990
7990
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7991
7991
  let result;
7992
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7992
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
7993
7993
  if (!continuationToken) {
7994
7994
  result = yield tslib.__await(this._list(resourceGroupName, registryName, packageType, options));
7995
7995
  let page = result.value || [];
@@ -8057,17 +8057,17 @@ class ArchivesImpl {
8057
8057
  * @param options The options parameters.
8058
8058
  */
8059
8059
  beginCreate(resourceGroupName, registryName, packageType, archiveName, archiveCreateParameters, options) {
8060
- return tslib.__awaiter(this, void 0, void 0, function* () {
8061
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8060
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8061
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8062
8062
  return this.client.sendOperationRequest(args, spec);
8063
8063
  });
8064
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8064
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8065
8065
  var _a;
8066
8066
  let currentRawResponse = undefined;
8067
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8067
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8068
8068
  const callback = (rawResponse, flatResponse) => {
8069
8069
  currentRawResponse = rawResponse;
8070
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8070
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8071
8071
  };
8072
8072
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8073
8073
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8093,8 +8093,8 @@ class ArchivesImpl {
8093
8093
  spec: createOperationSpec$f
8094
8094
  });
8095
8095
  const poller = yield coreLro.createHttpPoller(lro, {
8096
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8097
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
8096
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8097
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
8098
8098
  resourceLocationConfig: "azure-async-operation"
8099
8099
  });
8100
8100
  yield poller.poll();
@@ -8111,7 +8111,7 @@ class ArchivesImpl {
8111
8111
  * @param options The options parameters.
8112
8112
  */
8113
8113
  beginCreateAndWait(resourceGroupName, registryName, packageType, archiveName, archiveCreateParameters, options) {
8114
- return tslib.__awaiter(this, void 0, void 0, function* () {
8114
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8115
8115
  const poller = yield this.beginCreate(resourceGroupName, registryName, packageType, archiveName, archiveCreateParameters, options);
8116
8116
  return poller.pollUntilDone();
8117
8117
  });
@@ -8125,17 +8125,17 @@ class ArchivesImpl {
8125
8125
  * @param options The options parameters.
8126
8126
  */
8127
8127
  beginDelete(resourceGroupName, registryName, packageType, archiveName, options) {
8128
- return tslib.__awaiter(this, void 0, void 0, function* () {
8129
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8128
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8129
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8130
8130
  return this.client.sendOperationRequest(args, spec);
8131
8131
  });
8132
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8132
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8133
8133
  var _a;
8134
8134
  let currentRawResponse = undefined;
8135
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8135
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8136
8136
  const callback = (rawResponse, flatResponse) => {
8137
8137
  currentRawResponse = rawResponse;
8138
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8138
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8139
8139
  };
8140
8140
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8141
8141
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8160,8 +8160,8 @@ class ArchivesImpl {
8160
8160
  spec: deleteOperationSpec$g
8161
8161
  });
8162
8162
  const poller = yield coreLro.createHttpPoller(lro, {
8163
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8164
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
8163
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8164
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
8165
8165
  resourceLocationConfig: "location"
8166
8166
  });
8167
8167
  yield poller.poll();
@@ -8177,7 +8177,7 @@ class ArchivesImpl {
8177
8177
  * @param options The options parameters.
8178
8178
  */
8179
8179
  beginDeleteAndWait(resourceGroupName, registryName, packageType, archiveName, options) {
8180
- return tslib.__awaiter(this, void 0, void 0, function* () {
8180
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8181
8181
  const poller = yield this.beginDelete(resourceGroupName, registryName, packageType, archiveName, options);
8182
8182
  return poller.pollUntilDone();
8183
8183
  });
@@ -8409,7 +8409,7 @@ class ArchiveVersionsImpl {
8409
8409
  return this;
8410
8410
  },
8411
8411
  byPage: (settings) => {
8412
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8412
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8413
8413
  throw new Error("maxPageSize is not supported by this operation.");
8414
8414
  }
8415
8415
  return this.listPagingPage(resourceGroupName, registryName, packageType, archiveName, options, settings);
@@ -8419,7 +8419,7 @@ class ArchiveVersionsImpl {
8419
8419
  listPagingPage(resourceGroupName, registryName, packageType, archiveName, options, settings) {
8420
8420
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8421
8421
  let result;
8422
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8422
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
8423
8423
  if (!continuationToken) {
8424
8424
  result = yield tslib.__await(this._list(resourceGroupName, registryName, packageType, archiveName, options));
8425
8425
  let page = result.value || [];
@@ -8496,17 +8496,17 @@ class ArchiveVersionsImpl {
8496
8496
  * @param options The options parameters.
8497
8497
  */
8498
8498
  beginCreate(resourceGroupName, registryName, packageType, archiveName, archiveVersionName, options) {
8499
- return tslib.__awaiter(this, void 0, void 0, function* () {
8500
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8499
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8500
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8501
8501
  return this.client.sendOperationRequest(args, spec);
8502
8502
  });
8503
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8503
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8504
8504
  var _a;
8505
8505
  let currentRawResponse = undefined;
8506
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8506
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8507
8507
  const callback = (rawResponse, flatResponse) => {
8508
8508
  currentRawResponse = rawResponse;
8509
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8509
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8510
8510
  };
8511
8511
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8512
8512
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8532,8 +8532,8 @@ class ArchiveVersionsImpl {
8532
8532
  spec: createOperationSpec$e
8533
8533
  });
8534
8534
  const poller = yield coreLro.createHttpPoller(lro, {
8535
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8536
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
8535
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8536
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
8537
8537
  resourceLocationConfig: "azure-async-operation"
8538
8538
  });
8539
8539
  yield poller.poll();
@@ -8550,7 +8550,7 @@ class ArchiveVersionsImpl {
8550
8550
  * @param options The options parameters.
8551
8551
  */
8552
8552
  beginCreateAndWait(resourceGroupName, registryName, packageType, archiveName, archiveVersionName, options) {
8553
- return tslib.__awaiter(this, void 0, void 0, function* () {
8553
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8554
8554
  const poller = yield this.beginCreate(resourceGroupName, registryName, packageType, archiveName, archiveVersionName, options);
8555
8555
  return poller.pollUntilDone();
8556
8556
  });
@@ -8565,17 +8565,17 @@ class ArchiveVersionsImpl {
8565
8565
  * @param options The options parameters.
8566
8566
  */
8567
8567
  beginDelete(resourceGroupName, registryName, packageType, archiveName, archiveVersionName, options) {
8568
- return tslib.__awaiter(this, void 0, void 0, function* () {
8569
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8568
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8569
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8570
8570
  return this.client.sendOperationRequest(args, spec);
8571
8571
  });
8572
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8572
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8573
8573
  var _a;
8574
8574
  let currentRawResponse = undefined;
8575
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8575
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8576
8576
  const callback = (rawResponse, flatResponse) => {
8577
8577
  currentRawResponse = rawResponse;
8578
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8578
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8579
8579
  };
8580
8580
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8581
8581
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8601,8 +8601,8 @@ class ArchiveVersionsImpl {
8601
8601
  spec: deleteOperationSpec$f
8602
8602
  });
8603
8603
  const poller = yield coreLro.createHttpPoller(lro, {
8604
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8605
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
8604
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8605
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
8606
8606
  resourceLocationConfig: "location"
8607
8607
  });
8608
8608
  yield poller.poll();
@@ -8619,7 +8619,7 @@ class ArchiveVersionsImpl {
8619
8619
  * @param options The options parameters.
8620
8620
  */
8621
8621
  beginDeleteAndWait(resourceGroupName, registryName, packageType, archiveName, archiveVersionName, options) {
8622
- return tslib.__awaiter(this, void 0, void 0, function* () {
8622
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8623
8623
  const poller = yield this.beginDelete(resourceGroupName, registryName, packageType, archiveName, archiveVersionName, options);
8624
8624
  return poller.pollUntilDone();
8625
8625
  });
@@ -8816,7 +8816,7 @@ class CacheRulesImpl {
8816
8816
  return this;
8817
8817
  },
8818
8818
  byPage: (settings) => {
8819
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8819
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8820
8820
  throw new Error("maxPageSize is not supported by this operation.");
8821
8821
  }
8822
8822
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
@@ -8826,7 +8826,7 @@ class CacheRulesImpl {
8826
8826
  listPagingPage(resourceGroupName, registryName, options, settings) {
8827
8827
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8828
8828
  let result;
8829
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8829
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
8830
8830
  if (!continuationToken) {
8831
8831
  result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
8832
8832
  let page = result.value || [];
@@ -8891,17 +8891,17 @@ class CacheRulesImpl {
8891
8891
  * @param options The options parameters.
8892
8892
  */
8893
8893
  beginCreate(resourceGroupName, registryName, cacheRuleName, cacheRuleCreateParameters, options) {
8894
- return tslib.__awaiter(this, void 0, void 0, function* () {
8895
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8894
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8895
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8896
8896
  return this.client.sendOperationRequest(args, spec);
8897
8897
  });
8898
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8898
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8899
8899
  var _a;
8900
8900
  let currentRawResponse = undefined;
8901
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8901
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8902
8902
  const callback = (rawResponse, flatResponse) => {
8903
8903
  currentRawResponse = rawResponse;
8904
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8904
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8905
8905
  };
8906
8906
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8907
8907
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8926,8 +8926,8 @@ class CacheRulesImpl {
8926
8926
  spec: createOperationSpec$d
8927
8927
  });
8928
8928
  const poller = yield coreLro.createHttpPoller(lro, {
8929
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8930
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
8929
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8930
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
8931
8931
  resourceLocationConfig: "azure-async-operation"
8932
8932
  });
8933
8933
  yield poller.poll();
@@ -8943,7 +8943,7 @@ class CacheRulesImpl {
8943
8943
  * @param options The options parameters.
8944
8944
  */
8945
8945
  beginCreateAndWait(resourceGroupName, registryName, cacheRuleName, cacheRuleCreateParameters, options) {
8946
- return tslib.__awaiter(this, void 0, void 0, function* () {
8946
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8947
8947
  const poller = yield this.beginCreate(resourceGroupName, registryName, cacheRuleName, cacheRuleCreateParameters, options);
8948
8948
  return poller.pollUntilDone();
8949
8949
  });
@@ -8956,17 +8956,17 @@ class CacheRulesImpl {
8956
8956
  * @param options The options parameters.
8957
8957
  */
8958
8958
  beginDelete(resourceGroupName, registryName, cacheRuleName, options) {
8959
- return tslib.__awaiter(this, void 0, void 0, function* () {
8960
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8959
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8960
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8961
8961
  return this.client.sendOperationRequest(args, spec);
8962
8962
  });
8963
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8963
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8964
8964
  var _a;
8965
8965
  let currentRawResponse = undefined;
8966
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8966
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8967
8967
  const callback = (rawResponse, flatResponse) => {
8968
8968
  currentRawResponse = rawResponse;
8969
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8969
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8970
8970
  };
8971
8971
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8972
8972
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8985,8 +8985,8 @@ class CacheRulesImpl {
8985
8985
  spec: deleteOperationSpec$e
8986
8986
  });
8987
8987
  const poller = yield coreLro.createHttpPoller(lro, {
8988
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8989
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
8988
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8989
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
8990
8990
  resourceLocationConfig: "location"
8991
8991
  });
8992
8992
  yield poller.poll();
@@ -9001,7 +9001,7 @@ class CacheRulesImpl {
9001
9001
  * @param options The options parameters.
9002
9002
  */
9003
9003
  beginDeleteAndWait(resourceGroupName, registryName, cacheRuleName, options) {
9004
- return tslib.__awaiter(this, void 0, void 0, function* () {
9004
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9005
9005
  const poller = yield this.beginDelete(resourceGroupName, registryName, cacheRuleName, options);
9006
9006
  return poller.pollUntilDone();
9007
9007
  });
@@ -9015,17 +9015,17 @@ class CacheRulesImpl {
9015
9015
  * @param options The options parameters.
9016
9016
  */
9017
9017
  beginUpdate(resourceGroupName, registryName, cacheRuleName, cacheRuleUpdateParameters, options) {
9018
- return tslib.__awaiter(this, void 0, void 0, function* () {
9019
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9018
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9019
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9020
9020
  return this.client.sendOperationRequest(args, spec);
9021
9021
  });
9022
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9022
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9023
9023
  var _a;
9024
9024
  let currentRawResponse = undefined;
9025
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9025
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9026
9026
  const callback = (rawResponse, flatResponse) => {
9027
9027
  currentRawResponse = rawResponse;
9028
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9028
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9029
9029
  };
9030
9030
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9031
9031
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9050,8 +9050,8 @@ class CacheRulesImpl {
9050
9050
  spec: updateOperationSpec$b
9051
9051
  });
9052
9052
  const poller = yield coreLro.createHttpPoller(lro, {
9053
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9054
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9053
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9054
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
9055
9055
  resourceLocationConfig: "azure-async-operation"
9056
9056
  });
9057
9057
  yield poller.poll();
@@ -9067,7 +9067,7 @@ class CacheRulesImpl {
9067
9067
  * @param options The options parameters.
9068
9068
  */
9069
9069
  beginUpdateAndWait(resourceGroupName, registryName, cacheRuleName, cacheRuleUpdateParameters, options) {
9070
- return tslib.__awaiter(this, void 0, void 0, function* () {
9070
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9071
9071
  const poller = yield this.beginUpdate(resourceGroupName, registryName, cacheRuleName, cacheRuleUpdateParameters, options);
9072
9072
  return poller.pollUntilDone();
9073
9073
  });
@@ -9280,7 +9280,7 @@ class ConnectedRegistriesImpl {
9280
9280
  return this;
9281
9281
  },
9282
9282
  byPage: (settings) => {
9283
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9283
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
9284
9284
  throw new Error("maxPageSize is not supported by this operation.");
9285
9285
  }
9286
9286
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
@@ -9290,7 +9290,7 @@ class ConnectedRegistriesImpl {
9290
9290
  listPagingPage(resourceGroupName, registryName, options, settings) {
9291
9291
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
9292
9292
  let result;
9293
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
9293
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
9294
9294
  if (!continuationToken) {
9295
9295
  result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
9296
9296
  let page = result.value || [];
@@ -9355,17 +9355,17 @@ class ConnectedRegistriesImpl {
9355
9355
  * @param options The options parameters.
9356
9356
  */
9357
9357
  beginCreate(resourceGroupName, registryName, connectedRegistryName, connectedRegistryCreateParameters, options) {
9358
- return tslib.__awaiter(this, void 0, void 0, function* () {
9359
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9358
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9359
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9360
9360
  return this.client.sendOperationRequest(args, spec);
9361
9361
  });
9362
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9362
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9363
9363
  var _a;
9364
9364
  let currentRawResponse = undefined;
9365
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9365
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9366
9366
  const callback = (rawResponse, flatResponse) => {
9367
9367
  currentRawResponse = rawResponse;
9368
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9368
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9369
9369
  };
9370
9370
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9371
9371
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9390,8 +9390,8 @@ class ConnectedRegistriesImpl {
9390
9390
  spec: createOperationSpec$c
9391
9391
  });
9392
9392
  const poller = yield coreLro.createHttpPoller(lro, {
9393
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9394
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9393
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9394
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
9395
9395
  resourceLocationConfig: "azure-async-operation"
9396
9396
  });
9397
9397
  yield poller.poll();
@@ -9407,7 +9407,7 @@ class ConnectedRegistriesImpl {
9407
9407
  * @param options The options parameters.
9408
9408
  */
9409
9409
  beginCreateAndWait(resourceGroupName, registryName, connectedRegistryName, connectedRegistryCreateParameters, options) {
9410
- return tslib.__awaiter(this, void 0, void 0, function* () {
9410
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9411
9411
  const poller = yield this.beginCreate(resourceGroupName, registryName, connectedRegistryName, connectedRegistryCreateParameters, options);
9412
9412
  return poller.pollUntilDone();
9413
9413
  });
@@ -9420,17 +9420,17 @@ class ConnectedRegistriesImpl {
9420
9420
  * @param options The options parameters.
9421
9421
  */
9422
9422
  beginDelete(resourceGroupName, registryName, connectedRegistryName, options) {
9423
- return tslib.__awaiter(this, void 0, void 0, function* () {
9424
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9423
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9424
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9425
9425
  return this.client.sendOperationRequest(args, spec);
9426
9426
  });
9427
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9427
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9428
9428
  var _a;
9429
9429
  let currentRawResponse = undefined;
9430
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9430
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9431
9431
  const callback = (rawResponse, flatResponse) => {
9432
9432
  currentRawResponse = rawResponse;
9433
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9433
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9434
9434
  };
9435
9435
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9436
9436
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9449,8 +9449,8 @@ class ConnectedRegistriesImpl {
9449
9449
  spec: deleteOperationSpec$d
9450
9450
  });
9451
9451
  const poller = yield coreLro.createHttpPoller(lro, {
9452
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9453
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9452
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9453
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
9454
9454
  resourceLocationConfig: "location"
9455
9455
  });
9456
9456
  yield poller.poll();
@@ -9465,7 +9465,7 @@ class ConnectedRegistriesImpl {
9465
9465
  * @param options The options parameters.
9466
9466
  */
9467
9467
  beginDeleteAndWait(resourceGroupName, registryName, connectedRegistryName, options) {
9468
- return tslib.__awaiter(this, void 0, void 0, function* () {
9468
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9469
9469
  const poller = yield this.beginDelete(resourceGroupName, registryName, connectedRegistryName, options);
9470
9470
  return poller.pollUntilDone();
9471
9471
  });
@@ -9479,17 +9479,17 @@ class ConnectedRegistriesImpl {
9479
9479
  * @param options The options parameters.
9480
9480
  */
9481
9481
  beginUpdate(resourceGroupName, registryName, connectedRegistryName, connectedRegistryUpdateParameters, options) {
9482
- return tslib.__awaiter(this, void 0, void 0, function* () {
9483
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9482
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9483
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9484
9484
  return this.client.sendOperationRequest(args, spec);
9485
9485
  });
9486
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9486
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9487
9487
  var _a;
9488
9488
  let currentRawResponse = undefined;
9489
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9489
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9490
9490
  const callback = (rawResponse, flatResponse) => {
9491
9491
  currentRawResponse = rawResponse;
9492
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9492
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9493
9493
  };
9494
9494
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9495
9495
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9514,8 +9514,8 @@ class ConnectedRegistriesImpl {
9514
9514
  spec: updateOperationSpec$a
9515
9515
  });
9516
9516
  const poller = yield coreLro.createHttpPoller(lro, {
9517
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9518
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9517
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9518
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
9519
9519
  resourceLocationConfig: "azure-async-operation"
9520
9520
  });
9521
9521
  yield poller.poll();
@@ -9531,7 +9531,7 @@ class ConnectedRegistriesImpl {
9531
9531
  * @param options The options parameters.
9532
9532
  */
9533
9533
  beginUpdateAndWait(resourceGroupName, registryName, connectedRegistryName, connectedRegistryUpdateParameters, options) {
9534
- return tslib.__awaiter(this, void 0, void 0, function* () {
9534
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9535
9535
  const poller = yield this.beginUpdate(resourceGroupName, registryName, connectedRegistryName, connectedRegistryUpdateParameters, options);
9536
9536
  return poller.pollUntilDone();
9537
9537
  });
@@ -9544,17 +9544,17 @@ class ConnectedRegistriesImpl {
9544
9544
  * @param options The options parameters.
9545
9545
  */
9546
9546
  beginDeactivate(resourceGroupName, registryName, connectedRegistryName, options) {
9547
- return tslib.__awaiter(this, void 0, void 0, function* () {
9548
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9547
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9548
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9549
9549
  return this.client.sendOperationRequest(args, spec);
9550
9550
  });
9551
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9551
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9552
9552
  var _a;
9553
9553
  let currentRawResponse = undefined;
9554
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9554
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9555
9555
  const callback = (rawResponse, flatResponse) => {
9556
9556
  currentRawResponse = rawResponse;
9557
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9557
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9558
9558
  };
9559
9559
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9560
9560
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9573,8 +9573,8 @@ class ConnectedRegistriesImpl {
9573
9573
  spec: deactivateOperationSpec
9574
9574
  });
9575
9575
  const poller = yield coreLro.createHttpPoller(lro, {
9576
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9577
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9576
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9577
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
9578
9578
  resourceLocationConfig: "location"
9579
9579
  });
9580
9580
  yield poller.poll();
@@ -9589,7 +9589,7 @@ class ConnectedRegistriesImpl {
9589
9589
  * @param options The options parameters.
9590
9590
  */
9591
9591
  beginDeactivateAndWait(resourceGroupName, registryName, connectedRegistryName, options) {
9592
- return tslib.__awaiter(this, void 0, void 0, function* () {
9592
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9593
9593
  const poller = yield this.beginDeactivate(resourceGroupName, registryName, connectedRegistryName, options);
9594
9594
  return poller.pollUntilDone();
9595
9595
  });
@@ -9817,7 +9817,7 @@ class CredentialSetsImpl {
9817
9817
  return this;
9818
9818
  },
9819
9819
  byPage: (settings) => {
9820
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9820
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
9821
9821
  throw new Error("maxPageSize is not supported by this operation.");
9822
9822
  }
9823
9823
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
@@ -9827,7 +9827,7 @@ class CredentialSetsImpl {
9827
9827
  listPagingPage(resourceGroupName, registryName, options, settings) {
9828
9828
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
9829
9829
  let result;
9830
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
9830
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
9831
9831
  if (!continuationToken) {
9832
9832
  result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
9833
9833
  let page = result.value || [];
@@ -9892,17 +9892,17 @@ class CredentialSetsImpl {
9892
9892
  * @param options The options parameters.
9893
9893
  */
9894
9894
  beginCreate(resourceGroupName, registryName, credentialSetName, credentialSetCreateParameters, options) {
9895
- return tslib.__awaiter(this, void 0, void 0, function* () {
9896
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9895
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9896
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9897
9897
  return this.client.sendOperationRequest(args, spec);
9898
9898
  });
9899
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9899
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9900
9900
  var _a;
9901
9901
  let currentRawResponse = undefined;
9902
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9902
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9903
9903
  const callback = (rawResponse, flatResponse) => {
9904
9904
  currentRawResponse = rawResponse;
9905
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9905
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9906
9906
  };
9907
9907
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9908
9908
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9927,8 +9927,8 @@ class CredentialSetsImpl {
9927
9927
  spec: createOperationSpec$b
9928
9928
  });
9929
9929
  const poller = yield coreLro.createHttpPoller(lro, {
9930
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9931
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9930
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9931
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
9932
9932
  resourceLocationConfig: "azure-async-operation"
9933
9933
  });
9934
9934
  yield poller.poll();
@@ -9944,7 +9944,7 @@ class CredentialSetsImpl {
9944
9944
  * @param options The options parameters.
9945
9945
  */
9946
9946
  beginCreateAndWait(resourceGroupName, registryName, credentialSetName, credentialSetCreateParameters, options) {
9947
- return tslib.__awaiter(this, void 0, void 0, function* () {
9947
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9948
9948
  const poller = yield this.beginCreate(resourceGroupName, registryName, credentialSetName, credentialSetCreateParameters, options);
9949
9949
  return poller.pollUntilDone();
9950
9950
  });
@@ -9957,17 +9957,17 @@ class CredentialSetsImpl {
9957
9957
  * @param options The options parameters.
9958
9958
  */
9959
9959
  beginDelete(resourceGroupName, registryName, credentialSetName, options) {
9960
- return tslib.__awaiter(this, void 0, void 0, function* () {
9961
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9960
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9961
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9962
9962
  return this.client.sendOperationRequest(args, spec);
9963
9963
  });
9964
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9964
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9965
9965
  var _a;
9966
9966
  let currentRawResponse = undefined;
9967
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9967
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9968
9968
  const callback = (rawResponse, flatResponse) => {
9969
9969
  currentRawResponse = rawResponse;
9970
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9970
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9971
9971
  };
9972
9972
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9973
9973
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9986,8 +9986,8 @@ class CredentialSetsImpl {
9986
9986
  spec: deleteOperationSpec$c
9987
9987
  });
9988
9988
  const poller = yield coreLro.createHttpPoller(lro, {
9989
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9990
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9989
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9990
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
9991
9991
  resourceLocationConfig: "location"
9992
9992
  });
9993
9993
  yield poller.poll();
@@ -10002,7 +10002,7 @@ class CredentialSetsImpl {
10002
10002
  * @param options The options parameters.
10003
10003
  */
10004
10004
  beginDeleteAndWait(resourceGroupName, registryName, credentialSetName, options) {
10005
- return tslib.__awaiter(this, void 0, void 0, function* () {
10005
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10006
10006
  const poller = yield this.beginDelete(resourceGroupName, registryName, credentialSetName, options);
10007
10007
  return poller.pollUntilDone();
10008
10008
  });
@@ -10016,17 +10016,17 @@ class CredentialSetsImpl {
10016
10016
  * @param options The options parameters.
10017
10017
  */
10018
10018
  beginUpdate(resourceGroupName, registryName, credentialSetName, credentialSetUpdateParameters, options) {
10019
- return tslib.__awaiter(this, void 0, void 0, function* () {
10020
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10019
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10020
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10021
10021
  return this.client.sendOperationRequest(args, spec);
10022
10022
  });
10023
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10023
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10024
10024
  var _a;
10025
10025
  let currentRawResponse = undefined;
10026
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10026
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10027
10027
  const callback = (rawResponse, flatResponse) => {
10028
10028
  currentRawResponse = rawResponse;
10029
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10029
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10030
10030
  };
10031
10031
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10032
10032
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10051,8 +10051,8 @@ class CredentialSetsImpl {
10051
10051
  spec: updateOperationSpec$9
10052
10052
  });
10053
10053
  const poller = yield coreLro.createHttpPoller(lro, {
10054
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10055
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10054
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10055
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10056
10056
  resourceLocationConfig: "azure-async-operation"
10057
10057
  });
10058
10058
  yield poller.poll();
@@ -10068,7 +10068,7 @@ class CredentialSetsImpl {
10068
10068
  * @param options The options parameters.
10069
10069
  */
10070
10070
  beginUpdateAndWait(resourceGroupName, registryName, credentialSetName, credentialSetUpdateParameters, options) {
10071
- return tslib.__awaiter(this, void 0, void 0, function* () {
10071
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10072
10072
  const poller = yield this.beginUpdate(resourceGroupName, registryName, credentialSetName, credentialSetUpdateParameters, options);
10073
10073
  return poller.pollUntilDone();
10074
10074
  });
@@ -10281,7 +10281,7 @@ class ExportPipelinesImpl {
10281
10281
  return this;
10282
10282
  },
10283
10283
  byPage: (settings) => {
10284
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
10284
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
10285
10285
  throw new Error("maxPageSize is not supported by this operation.");
10286
10286
  }
10287
10287
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
@@ -10291,7 +10291,7 @@ class ExportPipelinesImpl {
10291
10291
  listPagingPage(resourceGroupName, registryName, options, settings) {
10292
10292
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
10293
10293
  let result;
10294
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
10294
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
10295
10295
  if (!continuationToken) {
10296
10296
  result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
10297
10297
  let page = result.value || [];
@@ -10356,17 +10356,17 @@ class ExportPipelinesImpl {
10356
10356
  * @param options The options parameters.
10357
10357
  */
10358
10358
  beginCreate(resourceGroupName, registryName, exportPipelineName, exportPipelineCreateParameters, options) {
10359
- return tslib.__awaiter(this, void 0, void 0, function* () {
10360
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10359
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10360
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10361
10361
  return this.client.sendOperationRequest(args, spec);
10362
10362
  });
10363
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10363
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10364
10364
  var _a;
10365
10365
  let currentRawResponse = undefined;
10366
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10366
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10367
10367
  const callback = (rawResponse, flatResponse) => {
10368
10368
  currentRawResponse = rawResponse;
10369
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10369
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10370
10370
  };
10371
10371
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10372
10372
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10391,8 +10391,8 @@ class ExportPipelinesImpl {
10391
10391
  spec: createOperationSpec$a
10392
10392
  });
10393
10393
  const poller = yield coreLro.createHttpPoller(lro, {
10394
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10395
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10394
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10395
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10396
10396
  resourceLocationConfig: "azure-async-operation"
10397
10397
  });
10398
10398
  yield poller.poll();
@@ -10408,7 +10408,7 @@ class ExportPipelinesImpl {
10408
10408
  * @param options The options parameters.
10409
10409
  */
10410
10410
  beginCreateAndWait(resourceGroupName, registryName, exportPipelineName, exportPipelineCreateParameters, options) {
10411
- return tslib.__awaiter(this, void 0, void 0, function* () {
10411
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10412
10412
  const poller = yield this.beginCreate(resourceGroupName, registryName, exportPipelineName, exportPipelineCreateParameters, options);
10413
10413
  return poller.pollUntilDone();
10414
10414
  });
@@ -10421,17 +10421,17 @@ class ExportPipelinesImpl {
10421
10421
  * @param options The options parameters.
10422
10422
  */
10423
10423
  beginDelete(resourceGroupName, registryName, exportPipelineName, options) {
10424
- return tslib.__awaiter(this, void 0, void 0, function* () {
10425
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10424
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10425
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10426
10426
  return this.client.sendOperationRequest(args, spec);
10427
10427
  });
10428
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10428
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10429
10429
  var _a;
10430
10430
  let currentRawResponse = undefined;
10431
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10431
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10432
10432
  const callback = (rawResponse, flatResponse) => {
10433
10433
  currentRawResponse = rawResponse;
10434
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10434
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10435
10435
  };
10436
10436
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10437
10437
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10450,8 +10450,8 @@ class ExportPipelinesImpl {
10450
10450
  spec: deleteOperationSpec$b
10451
10451
  });
10452
10452
  const poller = yield coreLro.createHttpPoller(lro, {
10453
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10454
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10453
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10454
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10455
10455
  resourceLocationConfig: "location"
10456
10456
  });
10457
10457
  yield poller.poll();
@@ -10466,7 +10466,7 @@ class ExportPipelinesImpl {
10466
10466
  * @param options The options parameters.
10467
10467
  */
10468
10468
  beginDeleteAndWait(resourceGroupName, registryName, exportPipelineName, options) {
10469
- return tslib.__awaiter(this, void 0, void 0, function* () {
10469
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10470
10470
  const poller = yield this.beginDelete(resourceGroupName, registryName, exportPipelineName, options);
10471
10471
  return poller.pollUntilDone();
10472
10472
  });
@@ -10636,7 +10636,7 @@ class RegistriesImpl {
10636
10636
  return this;
10637
10637
  },
10638
10638
  byPage: (settings) => {
10639
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
10639
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
10640
10640
  throw new Error("maxPageSize is not supported by this operation.");
10641
10641
  }
10642
10642
  return this.listPagingPage(options, settings);
@@ -10646,7 +10646,7 @@ class RegistriesImpl {
10646
10646
  listPagingPage(options, settings) {
10647
10647
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
10648
10648
  let result;
10649
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
10649
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
10650
10650
  if (!continuationToken) {
10651
10651
  result = yield tslib.__await(this._list(options));
10652
10652
  let page = result.value || [];
@@ -10698,7 +10698,7 @@ class RegistriesImpl {
10698
10698
  return this;
10699
10699
  },
10700
10700
  byPage: (settings) => {
10701
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
10701
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
10702
10702
  throw new Error("maxPageSize is not supported by this operation.");
10703
10703
  }
10704
10704
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -10708,7 +10708,7 @@ class RegistriesImpl {
10708
10708
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
10709
10709
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
10710
10710
  let result;
10711
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
10711
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
10712
10712
  if (!continuationToken) {
10713
10713
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
10714
10714
  let page = result.value || [];
@@ -10761,7 +10761,7 @@ class RegistriesImpl {
10761
10761
  return this;
10762
10762
  },
10763
10763
  byPage: (settings) => {
10764
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
10764
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
10765
10765
  throw new Error("maxPageSize is not supported by this operation.");
10766
10766
  }
10767
10767
  return this.listPrivateLinkResourcesPagingPage(resourceGroupName, registryName, options, settings);
@@ -10771,7 +10771,7 @@ class RegistriesImpl {
10771
10771
  listPrivateLinkResourcesPagingPage(resourceGroupName, registryName, options, settings) {
10772
10772
  return tslib.__asyncGenerator(this, arguments, function* listPrivateLinkResourcesPagingPage_1() {
10773
10773
  let result;
10774
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
10774
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
10775
10775
  if (!continuationToken) {
10776
10776
  result = yield tslib.__await(this._listPrivateLinkResources(resourceGroupName, registryName, options));
10777
10777
  let page = result.value || [];
@@ -10816,17 +10816,17 @@ class RegistriesImpl {
10816
10816
  * @param options The options parameters.
10817
10817
  */
10818
10818
  beginImportImage(resourceGroupName, registryName, parameters, options) {
10819
- return tslib.__awaiter(this, void 0, void 0, function* () {
10820
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10819
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10820
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10821
10821
  return this.client.sendOperationRequest(args, spec);
10822
10822
  });
10823
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10823
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10824
10824
  var _a;
10825
10825
  let currentRawResponse = undefined;
10826
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10826
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10827
10827
  const callback = (rawResponse, flatResponse) => {
10828
10828
  currentRawResponse = rawResponse;
10829
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10829
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10830
10830
  };
10831
10831
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10832
10832
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10845,8 +10845,8 @@ class RegistriesImpl {
10845
10845
  spec: importImageOperationSpec
10846
10846
  });
10847
10847
  const poller = yield coreLro.createHttpPoller(lro, {
10848
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10849
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10848
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10849
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10850
10850
  resourceLocationConfig: "location"
10851
10851
  });
10852
10852
  yield poller.poll();
@@ -10861,7 +10861,7 @@ class RegistriesImpl {
10861
10861
  * @param options The options parameters.
10862
10862
  */
10863
10863
  beginImportImageAndWait(resourceGroupName, registryName, parameters, options) {
10864
- return tslib.__awaiter(this, void 0, void 0, function* () {
10864
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10865
10865
  const poller = yield this.beginImportImage(resourceGroupName, registryName, parameters, options);
10866
10866
  return poller.pollUntilDone();
10867
10867
  });
@@ -10907,17 +10907,17 @@ class RegistriesImpl {
10907
10907
  * @param options The options parameters.
10908
10908
  */
10909
10909
  beginCreate(resourceGroupName, registryName, registry, options) {
10910
- return tslib.__awaiter(this, void 0, void 0, function* () {
10911
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10910
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10911
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10912
10912
  return this.client.sendOperationRequest(args, spec);
10913
10913
  });
10914
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10914
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10915
10915
  var _a;
10916
10916
  let currentRawResponse = undefined;
10917
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10917
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10918
10918
  const callback = (rawResponse, flatResponse) => {
10919
10919
  currentRawResponse = rawResponse;
10920
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10920
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10921
10921
  };
10922
10922
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10923
10923
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10936,8 +10936,8 @@ class RegistriesImpl {
10936
10936
  spec: createOperationSpec$9
10937
10937
  });
10938
10938
  const poller = yield coreLro.createHttpPoller(lro, {
10939
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10940
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10939
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10940
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10941
10941
  resourceLocationConfig: "azure-async-operation"
10942
10942
  });
10943
10943
  yield poller.poll();
@@ -10952,7 +10952,7 @@ class RegistriesImpl {
10952
10952
  * @param options The options parameters.
10953
10953
  */
10954
10954
  beginCreateAndWait(resourceGroupName, registryName, registry, options) {
10955
- return tslib.__awaiter(this, void 0, void 0, function* () {
10955
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10956
10956
  const poller = yield this.beginCreate(resourceGroupName, registryName, registry, options);
10957
10957
  return poller.pollUntilDone();
10958
10958
  });
@@ -10964,17 +10964,17 @@ class RegistriesImpl {
10964
10964
  * @param options The options parameters.
10965
10965
  */
10966
10966
  beginDelete(resourceGroupName, registryName, options) {
10967
- return tslib.__awaiter(this, void 0, void 0, function* () {
10968
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10967
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10968
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10969
10969
  return this.client.sendOperationRequest(args, spec);
10970
10970
  });
10971
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10971
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10972
10972
  var _a;
10973
10973
  let currentRawResponse = undefined;
10974
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10974
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10975
10975
  const callback = (rawResponse, flatResponse) => {
10976
10976
  currentRawResponse = rawResponse;
10977
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10977
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10978
10978
  };
10979
10979
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10980
10980
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10993,8 +10993,8 @@ class RegistriesImpl {
10993
10993
  spec: deleteOperationSpec$a
10994
10994
  });
10995
10995
  const poller = yield coreLro.createHttpPoller(lro, {
10996
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10997
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10996
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10997
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10998
10998
  resourceLocationConfig: "location"
10999
10999
  });
11000
11000
  yield poller.poll();
@@ -11008,7 +11008,7 @@ class RegistriesImpl {
11008
11008
  * @param options The options parameters.
11009
11009
  */
11010
11010
  beginDeleteAndWait(resourceGroupName, registryName, options) {
11011
- return tslib.__awaiter(this, void 0, void 0, function* () {
11011
+ return tslib.__awaiter(this, undefined, undefined, function* () {
11012
11012
  const poller = yield this.beginDelete(resourceGroupName, registryName, options);
11013
11013
  return poller.pollUntilDone();
11014
11014
  });
@@ -11021,17 +11021,17 @@ class RegistriesImpl {
11021
11021
  * @param options The options parameters.
11022
11022
  */
11023
11023
  beginUpdate(resourceGroupName, registryName, registryUpdateParameters, options) {
11024
- return tslib.__awaiter(this, void 0, void 0, function* () {
11025
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11024
+ return tslib.__awaiter(this, undefined, undefined, function* () {
11025
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11026
11026
  return this.client.sendOperationRequest(args, spec);
11027
11027
  });
11028
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11028
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11029
11029
  var _a;
11030
11030
  let currentRawResponse = undefined;
11031
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
11031
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
11032
11032
  const callback = (rawResponse, flatResponse) => {
11033
11033
  currentRawResponse = rawResponse;
11034
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
11034
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
11035
11035
  };
11036
11036
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
11037
11037
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -11055,8 +11055,8 @@ class RegistriesImpl {
11055
11055
  spec: updateOperationSpec$8
11056
11056
  });
11057
11057
  const poller = yield coreLro.createHttpPoller(lro, {
11058
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11059
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
11058
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
11059
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
11060
11060
  resourceLocationConfig: "azure-async-operation"
11061
11061
  });
11062
11062
  yield poller.poll();
@@ -11071,7 +11071,7 @@ class RegistriesImpl {
11071
11071
  * @param options The options parameters.
11072
11072
  */
11073
11073
  beginUpdateAndWait(resourceGroupName, registryName, registryUpdateParameters, options) {
11074
- return tslib.__awaiter(this, void 0, void 0, function* () {
11074
+ return tslib.__awaiter(this, undefined, undefined, function* () {
11075
11075
  const poller = yield this.beginUpdate(resourceGroupName, registryName, registryUpdateParameters, options);
11076
11076
  return poller.pollUntilDone();
11077
11077
  });
@@ -11137,17 +11137,17 @@ class RegistriesImpl {
11137
11137
  * @param options The options parameters.
11138
11138
  */
11139
11139
  beginGenerateCredentials(resourceGroupName, registryName, generateCredentialsParameters, options) {
11140
- return tslib.__awaiter(this, void 0, void 0, function* () {
11141
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11140
+ return tslib.__awaiter(this, undefined, undefined, function* () {
11141
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11142
11142
  return this.client.sendOperationRequest(args, spec);
11143
11143
  });
11144
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11144
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11145
11145
  var _a;
11146
11146
  let currentRawResponse = undefined;
11147
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
11147
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
11148
11148
  const callback = (rawResponse, flatResponse) => {
11149
11149
  currentRawResponse = rawResponse;
11150
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
11150
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
11151
11151
  };
11152
11152
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
11153
11153
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -11171,8 +11171,8 @@ class RegistriesImpl {
11171
11171
  spec: generateCredentialsOperationSpec
11172
11172
  });
11173
11173
  const poller = yield coreLro.createHttpPoller(lro, {
11174
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11175
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
11174
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
11175
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
11176
11176
  resourceLocationConfig: "location"
11177
11177
  });
11178
11178
  yield poller.poll();
@@ -11187,7 +11187,7 @@ class RegistriesImpl {
11187
11187
  * @param options The options parameters.
11188
11188
  */
11189
11189
  beginGenerateCredentialsAndWait(resourceGroupName, registryName, generateCredentialsParameters, options) {
11190
- return tslib.__awaiter(this, void 0, void 0, function* () {
11190
+ return tslib.__awaiter(this, undefined, undefined, function* () {
11191
11191
  const poller = yield this.beginGenerateCredentials(resourceGroupName, registryName, generateCredentialsParameters, options);
11192
11192
  return poller.pollUntilDone();
11193
11193
  });
@@ -11200,17 +11200,17 @@ class RegistriesImpl {
11200
11200
  * @param options The options parameters.
11201
11201
  */
11202
11202
  beginScheduleRun(resourceGroupName, registryName, runRequest, options) {
11203
- return tslib.__awaiter(this, void 0, void 0, function* () {
11204
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11203
+ return tslib.__awaiter(this, undefined, undefined, function* () {
11204
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11205
11205
  return this.client.sendOperationRequest(args, spec);
11206
11206
  });
11207
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11207
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11208
11208
  var _a;
11209
11209
  let currentRawResponse = undefined;
11210
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
11210
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
11211
11211
  const callback = (rawResponse, flatResponse) => {
11212
11212
  currentRawResponse = rawResponse;
11213
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
11213
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
11214
11214
  };
11215
11215
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
11216
11216
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -11229,8 +11229,8 @@ class RegistriesImpl {
11229
11229
  spec: scheduleRunOperationSpec
11230
11230
  });
11231
11231
  const poller = yield coreLro.createHttpPoller(lro, {
11232
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11233
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
11232
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
11233
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
11234
11234
  });
11235
11235
  yield poller.poll();
11236
11236
  return poller;
@@ -11244,7 +11244,7 @@ class RegistriesImpl {
11244
11244
  * @param options The options parameters.
11245
11245
  */
11246
11246
  beginScheduleRunAndWait(resourceGroupName, registryName, runRequest, options) {
11247
- return tslib.__awaiter(this, void 0, void 0, function* () {
11247
+ return tslib.__awaiter(this, undefined, undefined, function* () {
11248
11248
  const poller = yield this.beginScheduleRun(resourceGroupName, registryName, runRequest, options);
11249
11249
  return poller.pollUntilDone();
11250
11250
  });
@@ -11705,7 +11705,7 @@ class ImportPipelinesImpl {
11705
11705
  return this;
11706
11706
  },
11707
11707
  byPage: (settings) => {
11708
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11708
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
11709
11709
  throw new Error("maxPageSize is not supported by this operation.");
11710
11710
  }
11711
11711
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
@@ -11715,7 +11715,7 @@ class ImportPipelinesImpl {
11715
11715
  listPagingPage(resourceGroupName, registryName, options, settings) {
11716
11716
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
11717
11717
  let result;
11718
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
11718
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
11719
11719
  if (!continuationToken) {
11720
11720
  result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
11721
11721
  let page = result.value || [];
@@ -11780,17 +11780,17 @@ class ImportPipelinesImpl {
11780
11780
  * @param options The options parameters.
11781
11781
  */
11782
11782
  beginCreate(resourceGroupName, registryName, importPipelineName, importPipelineCreateParameters, options) {
11783
- return tslib.__awaiter(this, void 0, void 0, function* () {
11784
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11783
+ return tslib.__awaiter(this, undefined, undefined, function* () {
11784
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11785
11785
  return this.client.sendOperationRequest(args, spec);
11786
11786
  });
11787
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11787
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11788
11788
  var _a;
11789
11789
  let currentRawResponse = undefined;
11790
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
11790
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
11791
11791
  const callback = (rawResponse, flatResponse) => {
11792
11792
  currentRawResponse = rawResponse;
11793
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
11793
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
11794
11794
  };
11795
11795
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
11796
11796
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -11815,8 +11815,8 @@ class ImportPipelinesImpl {
11815
11815
  spec: createOperationSpec$8
11816
11816
  });
11817
11817
  const poller = yield coreLro.createHttpPoller(lro, {
11818
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11819
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
11818
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
11819
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
11820
11820
  resourceLocationConfig: "azure-async-operation"
11821
11821
  });
11822
11822
  yield poller.poll();
@@ -11832,7 +11832,7 @@ class ImportPipelinesImpl {
11832
11832
  * @param options The options parameters.
11833
11833
  */
11834
11834
  beginCreateAndWait(resourceGroupName, registryName, importPipelineName, importPipelineCreateParameters, options) {
11835
- return tslib.__awaiter(this, void 0, void 0, function* () {
11835
+ return tslib.__awaiter(this, undefined, undefined, function* () {
11836
11836
  const poller = yield this.beginCreate(resourceGroupName, registryName, importPipelineName, importPipelineCreateParameters, options);
11837
11837
  return poller.pollUntilDone();
11838
11838
  });
@@ -11845,17 +11845,17 @@ class ImportPipelinesImpl {
11845
11845
  * @param options The options parameters.
11846
11846
  */
11847
11847
  beginDelete(resourceGroupName, registryName, importPipelineName, options) {
11848
- return tslib.__awaiter(this, void 0, void 0, function* () {
11849
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11848
+ return tslib.__awaiter(this, undefined, undefined, function* () {
11849
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11850
11850
  return this.client.sendOperationRequest(args, spec);
11851
11851
  });
11852
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11852
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11853
11853
  var _a;
11854
11854
  let currentRawResponse = undefined;
11855
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
11855
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
11856
11856
  const callback = (rawResponse, flatResponse) => {
11857
11857
  currentRawResponse = rawResponse;
11858
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
11858
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
11859
11859
  };
11860
11860
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
11861
11861
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -11874,8 +11874,8 @@ class ImportPipelinesImpl {
11874
11874
  spec: deleteOperationSpec$9
11875
11875
  });
11876
11876
  const poller = yield coreLro.createHttpPoller(lro, {
11877
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11878
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
11877
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
11878
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
11879
11879
  resourceLocationConfig: "location"
11880
11880
  });
11881
11881
  yield poller.poll();
@@ -11890,7 +11890,7 @@ class ImportPipelinesImpl {
11890
11890
  * @param options The options parameters.
11891
11891
  */
11892
11892
  beginDeleteAndWait(resourceGroupName, registryName, importPipelineName, options) {
11893
- return tslib.__awaiter(this, void 0, void 0, function* () {
11893
+ return tslib.__awaiter(this, undefined, undefined, function* () {
11894
11894
  const poller = yield this.beginDelete(resourceGroupName, registryName, importPipelineName, options);
11895
11895
  return poller.pollUntilDone();
11896
11896
  });
@@ -12060,7 +12060,7 @@ class OperationsImpl {
12060
12060
  return this;
12061
12061
  },
12062
12062
  byPage: (settings) => {
12063
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12063
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
12064
12064
  throw new Error("maxPageSize is not supported by this operation.");
12065
12065
  }
12066
12066
  return this.listPagingPage(options, settings);
@@ -12070,7 +12070,7 @@ class OperationsImpl {
12070
12070
  listPagingPage(options, settings) {
12071
12071
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
12072
12072
  let result;
12073
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
12073
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
12074
12074
  if (!continuationToken) {
12075
12075
  result = yield tslib.__await(this._list(options));
12076
12076
  let page = result.value || [];
@@ -12184,7 +12184,7 @@ class PipelineRunsImpl {
12184
12184
  return this;
12185
12185
  },
12186
12186
  byPage: (settings) => {
12187
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12187
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
12188
12188
  throw new Error("maxPageSize is not supported by this operation.");
12189
12189
  }
12190
12190
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
@@ -12194,7 +12194,7 @@ class PipelineRunsImpl {
12194
12194
  listPagingPage(resourceGroupName, registryName, options, settings) {
12195
12195
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
12196
12196
  let result;
12197
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
12197
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
12198
12198
  if (!continuationToken) {
12199
12199
  result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
12200
12200
  let page = result.value || [];
@@ -12259,17 +12259,17 @@ class PipelineRunsImpl {
12259
12259
  * @param options The options parameters.
12260
12260
  */
12261
12261
  beginCreate(resourceGroupName, registryName, pipelineRunName, pipelineRunCreateParameters, options) {
12262
- return tslib.__awaiter(this, void 0, void 0, function* () {
12263
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12262
+ return tslib.__awaiter(this, undefined, undefined, function* () {
12263
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12264
12264
  return this.client.sendOperationRequest(args, spec);
12265
12265
  });
12266
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12266
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12267
12267
  var _a;
12268
12268
  let currentRawResponse = undefined;
12269
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
12269
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
12270
12270
  const callback = (rawResponse, flatResponse) => {
12271
12271
  currentRawResponse = rawResponse;
12272
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
12272
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
12273
12273
  };
12274
12274
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
12275
12275
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -12294,8 +12294,8 @@ class PipelineRunsImpl {
12294
12294
  spec: createOperationSpec$7
12295
12295
  });
12296
12296
  const poller = yield coreLro.createHttpPoller(lro, {
12297
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12298
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
12297
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
12298
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
12299
12299
  resourceLocationConfig: "azure-async-operation"
12300
12300
  });
12301
12301
  yield poller.poll();
@@ -12311,7 +12311,7 @@ class PipelineRunsImpl {
12311
12311
  * @param options The options parameters.
12312
12312
  */
12313
12313
  beginCreateAndWait(resourceGroupName, registryName, pipelineRunName, pipelineRunCreateParameters, options) {
12314
- return tslib.__awaiter(this, void 0, void 0, function* () {
12314
+ return tslib.__awaiter(this, undefined, undefined, function* () {
12315
12315
  const poller = yield this.beginCreate(resourceGroupName, registryName, pipelineRunName, pipelineRunCreateParameters, options);
12316
12316
  return poller.pollUntilDone();
12317
12317
  });
@@ -12324,17 +12324,17 @@ class PipelineRunsImpl {
12324
12324
  * @param options The options parameters.
12325
12325
  */
12326
12326
  beginDelete(resourceGroupName, registryName, pipelineRunName, options) {
12327
- return tslib.__awaiter(this, void 0, void 0, function* () {
12328
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12327
+ return tslib.__awaiter(this, undefined, undefined, function* () {
12328
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12329
12329
  return this.client.sendOperationRequest(args, spec);
12330
12330
  });
12331
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12331
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12332
12332
  var _a;
12333
12333
  let currentRawResponse = undefined;
12334
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
12334
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
12335
12335
  const callback = (rawResponse, flatResponse) => {
12336
12336
  currentRawResponse = rawResponse;
12337
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
12337
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
12338
12338
  };
12339
12339
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
12340
12340
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -12353,8 +12353,8 @@ class PipelineRunsImpl {
12353
12353
  spec: deleteOperationSpec$8
12354
12354
  });
12355
12355
  const poller = yield coreLro.createHttpPoller(lro, {
12356
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12357
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
12356
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
12357
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
12358
12358
  resourceLocationConfig: "location"
12359
12359
  });
12360
12360
  yield poller.poll();
@@ -12369,7 +12369,7 @@ class PipelineRunsImpl {
12369
12369
  * @param options The options parameters.
12370
12370
  */
12371
12371
  beginDeleteAndWait(resourceGroupName, registryName, pipelineRunName, options) {
12372
- return tslib.__awaiter(this, void 0, void 0, function* () {
12372
+ return tslib.__awaiter(this, undefined, undefined, function* () {
12373
12373
  const poller = yield this.beginDelete(resourceGroupName, registryName, pipelineRunName, options);
12374
12374
  return poller.pollUntilDone();
12375
12375
  });
@@ -12541,7 +12541,7 @@ class PrivateEndpointConnectionsImpl {
12541
12541
  return this;
12542
12542
  },
12543
12543
  byPage: (settings) => {
12544
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12544
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
12545
12545
  throw new Error("maxPageSize is not supported by this operation.");
12546
12546
  }
12547
12547
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
@@ -12551,7 +12551,7 @@ class PrivateEndpointConnectionsImpl {
12551
12551
  listPagingPage(resourceGroupName, registryName, options, settings) {
12552
12552
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
12553
12553
  let result;
12554
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
12554
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
12555
12555
  if (!continuationToken) {
12556
12556
  result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
12557
12557
  let page = result.value || [];
@@ -12621,17 +12621,17 @@ class PrivateEndpointConnectionsImpl {
12621
12621
  * @param options The options parameters.
12622
12622
  */
12623
12623
  beginCreateOrUpdate(resourceGroupName, registryName, privateEndpointConnectionName, privateEndpointConnection, options) {
12624
- return tslib.__awaiter(this, void 0, void 0, function* () {
12625
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12624
+ return tslib.__awaiter(this, undefined, undefined, function* () {
12625
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12626
12626
  return this.client.sendOperationRequest(args, spec);
12627
12627
  });
12628
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12628
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12629
12629
  var _a;
12630
12630
  let currentRawResponse = undefined;
12631
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
12631
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
12632
12632
  const callback = (rawResponse, flatResponse) => {
12633
12633
  currentRawResponse = rawResponse;
12634
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
12634
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
12635
12635
  };
12636
12636
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
12637
12637
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -12656,8 +12656,8 @@ class PrivateEndpointConnectionsImpl {
12656
12656
  spec: createOrUpdateOperationSpec
12657
12657
  });
12658
12658
  const poller = yield coreLro.createHttpPoller(lro, {
12659
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12660
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
12659
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
12660
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
12661
12661
  resourceLocationConfig: "azure-async-operation"
12662
12662
  });
12663
12663
  yield poller.poll();
@@ -12673,7 +12673,7 @@ class PrivateEndpointConnectionsImpl {
12673
12673
  * @param options The options parameters.
12674
12674
  */
12675
12675
  beginCreateOrUpdateAndWait(resourceGroupName, registryName, privateEndpointConnectionName, privateEndpointConnection, options) {
12676
- return tslib.__awaiter(this, void 0, void 0, function* () {
12676
+ return tslib.__awaiter(this, undefined, undefined, function* () {
12677
12677
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, registryName, privateEndpointConnectionName, privateEndpointConnection, options);
12678
12678
  return poller.pollUntilDone();
12679
12679
  });
@@ -12686,17 +12686,17 @@ class PrivateEndpointConnectionsImpl {
12686
12686
  * @param options The options parameters.
12687
12687
  */
12688
12688
  beginDelete(resourceGroupName, registryName, privateEndpointConnectionName, options) {
12689
- return tslib.__awaiter(this, void 0, void 0, function* () {
12690
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12689
+ return tslib.__awaiter(this, undefined, undefined, function* () {
12690
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12691
12691
  return this.client.sendOperationRequest(args, spec);
12692
12692
  });
12693
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12693
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12694
12694
  var _a;
12695
12695
  let currentRawResponse = undefined;
12696
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
12696
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
12697
12697
  const callback = (rawResponse, flatResponse) => {
12698
12698
  currentRawResponse = rawResponse;
12699
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
12699
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
12700
12700
  };
12701
12701
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
12702
12702
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -12720,8 +12720,8 @@ class PrivateEndpointConnectionsImpl {
12720
12720
  spec: deleteOperationSpec$7
12721
12721
  });
12722
12722
  const poller = yield coreLro.createHttpPoller(lro, {
12723
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12724
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
12723
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
12724
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
12725
12725
  resourceLocationConfig: "location"
12726
12726
  });
12727
12727
  yield poller.poll();
@@ -12736,7 +12736,7 @@ class PrivateEndpointConnectionsImpl {
12736
12736
  * @param options The options parameters.
12737
12737
  */
12738
12738
  beginDeleteAndWait(resourceGroupName, registryName, privateEndpointConnectionName, options) {
12739
- return tslib.__awaiter(this, void 0, void 0, function* () {
12739
+ return tslib.__awaiter(this, undefined, undefined, function* () {
12740
12740
  const poller = yield this.beginDelete(resourceGroupName, registryName, privateEndpointConnectionName, options);
12741
12741
  return poller.pollUntilDone();
12742
12742
  });
@@ -12887,7 +12887,7 @@ class ReplicationsImpl {
12887
12887
  return this;
12888
12888
  },
12889
12889
  byPage: (settings) => {
12890
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12890
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
12891
12891
  throw new Error("maxPageSize is not supported by this operation.");
12892
12892
  }
12893
12893
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
@@ -12897,7 +12897,7 @@ class ReplicationsImpl {
12897
12897
  listPagingPage(resourceGroupName, registryName, options, settings) {
12898
12898
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
12899
12899
  let result;
12900
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
12900
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
12901
12901
  if (!continuationToken) {
12902
12902
  result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
12903
12903
  let page = result.value || [];
@@ -12962,17 +12962,17 @@ class ReplicationsImpl {
12962
12962
  * @param options The options parameters.
12963
12963
  */
12964
12964
  beginCreate(resourceGroupName, registryName, replicationName, replication, options) {
12965
- return tslib.__awaiter(this, void 0, void 0, function* () {
12966
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12965
+ return tslib.__awaiter(this, undefined, undefined, function* () {
12966
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12967
12967
  return this.client.sendOperationRequest(args, spec);
12968
12968
  });
12969
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12969
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12970
12970
  var _a;
12971
12971
  let currentRawResponse = undefined;
12972
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
12972
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
12973
12973
  const callback = (rawResponse, flatResponse) => {
12974
12974
  currentRawResponse = rawResponse;
12975
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
12975
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
12976
12976
  };
12977
12977
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
12978
12978
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -12997,8 +12997,8 @@ class ReplicationsImpl {
12997
12997
  spec: createOperationSpec$6
12998
12998
  });
12999
12999
  const poller = yield coreLro.createHttpPoller(lro, {
13000
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
13001
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
13000
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
13001
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
13002
13002
  resourceLocationConfig: "azure-async-operation"
13003
13003
  });
13004
13004
  yield poller.poll();
@@ -13014,7 +13014,7 @@ class ReplicationsImpl {
13014
13014
  * @param options The options parameters.
13015
13015
  */
13016
13016
  beginCreateAndWait(resourceGroupName, registryName, replicationName, replication, options) {
13017
- return tslib.__awaiter(this, void 0, void 0, function* () {
13017
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13018
13018
  const poller = yield this.beginCreate(resourceGroupName, registryName, replicationName, replication, options);
13019
13019
  return poller.pollUntilDone();
13020
13020
  });
@@ -13027,17 +13027,17 @@ class ReplicationsImpl {
13027
13027
  * @param options The options parameters.
13028
13028
  */
13029
13029
  beginDelete(resourceGroupName, registryName, replicationName, options) {
13030
- return tslib.__awaiter(this, void 0, void 0, function* () {
13031
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13030
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13031
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13032
13032
  return this.client.sendOperationRequest(args, spec);
13033
13033
  });
13034
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13034
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13035
13035
  var _a;
13036
13036
  let currentRawResponse = undefined;
13037
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
13037
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
13038
13038
  const callback = (rawResponse, flatResponse) => {
13039
13039
  currentRawResponse = rawResponse;
13040
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
13040
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
13041
13041
  };
13042
13042
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
13043
13043
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -13056,8 +13056,8 @@ class ReplicationsImpl {
13056
13056
  spec: deleteOperationSpec$6
13057
13057
  });
13058
13058
  const poller = yield coreLro.createHttpPoller(lro, {
13059
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
13060
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
13059
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
13060
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
13061
13061
  resourceLocationConfig: "location"
13062
13062
  });
13063
13063
  yield poller.poll();
@@ -13072,7 +13072,7 @@ class ReplicationsImpl {
13072
13072
  * @param options The options parameters.
13073
13073
  */
13074
13074
  beginDeleteAndWait(resourceGroupName, registryName, replicationName, options) {
13075
- return tslib.__awaiter(this, void 0, void 0, function* () {
13075
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13076
13076
  const poller = yield this.beginDelete(resourceGroupName, registryName, replicationName, options);
13077
13077
  return poller.pollUntilDone();
13078
13078
  });
@@ -13086,17 +13086,17 @@ class ReplicationsImpl {
13086
13086
  * @param options The options parameters.
13087
13087
  */
13088
13088
  beginUpdate(resourceGroupName, registryName, replicationName, replicationUpdateParameters, options) {
13089
- return tslib.__awaiter(this, void 0, void 0, function* () {
13090
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13089
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13090
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13091
13091
  return this.client.sendOperationRequest(args, spec);
13092
13092
  });
13093
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13093
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13094
13094
  var _a;
13095
13095
  let currentRawResponse = undefined;
13096
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
13096
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
13097
13097
  const callback = (rawResponse, flatResponse) => {
13098
13098
  currentRawResponse = rawResponse;
13099
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
13099
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
13100
13100
  };
13101
13101
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
13102
13102
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -13121,8 +13121,8 @@ class ReplicationsImpl {
13121
13121
  spec: updateOperationSpec$7
13122
13122
  });
13123
13123
  const poller = yield coreLro.createHttpPoller(lro, {
13124
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
13125
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
13124
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
13125
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
13126
13126
  resourceLocationConfig: "azure-async-operation"
13127
13127
  });
13128
13128
  yield poller.poll();
@@ -13138,7 +13138,7 @@ class ReplicationsImpl {
13138
13138
  * @param options The options parameters.
13139
13139
  */
13140
13140
  beginUpdateAndWait(resourceGroupName, registryName, replicationName, replicationUpdateParameters, options) {
13141
- return tslib.__awaiter(this, void 0, void 0, function* () {
13141
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13142
13142
  const poller = yield this.beginUpdate(resourceGroupName, registryName, replicationName, replicationUpdateParameters, options);
13143
13143
  return poller.pollUntilDone();
13144
13144
  });
@@ -13319,7 +13319,7 @@ class ScopeMapsImpl {
13319
13319
  return this;
13320
13320
  },
13321
13321
  byPage: (settings) => {
13322
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13322
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
13323
13323
  throw new Error("maxPageSize is not supported by this operation.");
13324
13324
  }
13325
13325
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
@@ -13329,7 +13329,7 @@ class ScopeMapsImpl {
13329
13329
  listPagingPage(resourceGroupName, registryName, options, settings) {
13330
13330
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
13331
13331
  let result;
13332
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
13332
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
13333
13333
  if (!continuationToken) {
13334
13334
  result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
13335
13335
  let page = result.value || [];
@@ -13394,17 +13394,17 @@ class ScopeMapsImpl {
13394
13394
  * @param options The options parameters.
13395
13395
  */
13396
13396
  beginCreate(resourceGroupName, registryName, scopeMapName, scopeMapCreateParameters, options) {
13397
- return tslib.__awaiter(this, void 0, void 0, function* () {
13398
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13397
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13398
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13399
13399
  return this.client.sendOperationRequest(args, spec);
13400
13400
  });
13401
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13401
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13402
13402
  var _a;
13403
13403
  let currentRawResponse = undefined;
13404
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
13404
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
13405
13405
  const callback = (rawResponse, flatResponse) => {
13406
13406
  currentRawResponse = rawResponse;
13407
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
13407
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
13408
13408
  };
13409
13409
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
13410
13410
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -13429,8 +13429,8 @@ class ScopeMapsImpl {
13429
13429
  spec: createOperationSpec$5
13430
13430
  });
13431
13431
  const poller = yield coreLro.createHttpPoller(lro, {
13432
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
13433
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
13432
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
13433
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
13434
13434
  resourceLocationConfig: "azure-async-operation"
13435
13435
  });
13436
13436
  yield poller.poll();
@@ -13446,7 +13446,7 @@ class ScopeMapsImpl {
13446
13446
  * @param options The options parameters.
13447
13447
  */
13448
13448
  beginCreateAndWait(resourceGroupName, registryName, scopeMapName, scopeMapCreateParameters, options) {
13449
- return tslib.__awaiter(this, void 0, void 0, function* () {
13449
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13450
13450
  const poller = yield this.beginCreate(resourceGroupName, registryName, scopeMapName, scopeMapCreateParameters, options);
13451
13451
  return poller.pollUntilDone();
13452
13452
  });
@@ -13459,17 +13459,17 @@ class ScopeMapsImpl {
13459
13459
  * @param options The options parameters.
13460
13460
  */
13461
13461
  beginDelete(resourceGroupName, registryName, scopeMapName, options) {
13462
- return tslib.__awaiter(this, void 0, void 0, function* () {
13463
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13462
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13463
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13464
13464
  return this.client.sendOperationRequest(args, spec);
13465
13465
  });
13466
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13466
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13467
13467
  var _a;
13468
13468
  let currentRawResponse = undefined;
13469
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
13469
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
13470
13470
  const callback = (rawResponse, flatResponse) => {
13471
13471
  currentRawResponse = rawResponse;
13472
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
13472
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
13473
13473
  };
13474
13474
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
13475
13475
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -13488,8 +13488,8 @@ class ScopeMapsImpl {
13488
13488
  spec: deleteOperationSpec$5
13489
13489
  });
13490
13490
  const poller = yield coreLro.createHttpPoller(lro, {
13491
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
13492
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
13491
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
13492
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
13493
13493
  resourceLocationConfig: "location"
13494
13494
  });
13495
13495
  yield poller.poll();
@@ -13504,7 +13504,7 @@ class ScopeMapsImpl {
13504
13504
  * @param options The options parameters.
13505
13505
  */
13506
13506
  beginDeleteAndWait(resourceGroupName, registryName, scopeMapName, options) {
13507
- return tslib.__awaiter(this, void 0, void 0, function* () {
13507
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13508
13508
  const poller = yield this.beginDelete(resourceGroupName, registryName, scopeMapName, options);
13509
13509
  return poller.pollUntilDone();
13510
13510
  });
@@ -13518,17 +13518,17 @@ class ScopeMapsImpl {
13518
13518
  * @param options The options parameters.
13519
13519
  */
13520
13520
  beginUpdate(resourceGroupName, registryName, scopeMapName, scopeMapUpdateParameters, options) {
13521
- return tslib.__awaiter(this, void 0, void 0, function* () {
13522
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13521
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13522
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13523
13523
  return this.client.sendOperationRequest(args, spec);
13524
13524
  });
13525
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13525
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13526
13526
  var _a;
13527
13527
  let currentRawResponse = undefined;
13528
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
13528
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
13529
13529
  const callback = (rawResponse, flatResponse) => {
13530
13530
  currentRawResponse = rawResponse;
13531
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
13531
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
13532
13532
  };
13533
13533
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
13534
13534
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -13553,8 +13553,8 @@ class ScopeMapsImpl {
13553
13553
  spec: updateOperationSpec$6
13554
13554
  });
13555
13555
  const poller = yield coreLro.createHttpPoller(lro, {
13556
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
13557
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
13556
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
13557
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
13558
13558
  resourceLocationConfig: "azure-async-operation"
13559
13559
  });
13560
13560
  yield poller.poll();
@@ -13570,7 +13570,7 @@ class ScopeMapsImpl {
13570
13570
  * @param options The options parameters.
13571
13571
  */
13572
13572
  beginUpdateAndWait(resourceGroupName, registryName, scopeMapName, scopeMapUpdateParameters, options) {
13573
- return tslib.__awaiter(this, void 0, void 0, function* () {
13573
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13574
13574
  const poller = yield this.beginUpdate(resourceGroupName, registryName, scopeMapName, scopeMapUpdateParameters, options);
13575
13575
  return poller.pollUntilDone();
13576
13576
  });
@@ -13775,7 +13775,7 @@ class TokensImpl {
13775
13775
  return this;
13776
13776
  },
13777
13777
  byPage: (settings) => {
13778
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13778
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
13779
13779
  throw new Error("maxPageSize is not supported by this operation.");
13780
13780
  }
13781
13781
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
@@ -13785,7 +13785,7 @@ class TokensImpl {
13785
13785
  listPagingPage(resourceGroupName, registryName, options, settings) {
13786
13786
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
13787
13787
  let result;
13788
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
13788
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
13789
13789
  if (!continuationToken) {
13790
13790
  result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
13791
13791
  let page = result.value || [];
@@ -13850,17 +13850,17 @@ class TokensImpl {
13850
13850
  * @param options The options parameters.
13851
13851
  */
13852
13852
  beginCreate(resourceGroupName, registryName, tokenName, tokenCreateParameters, options) {
13853
- return tslib.__awaiter(this, void 0, void 0, function* () {
13854
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13853
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13854
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13855
13855
  return this.client.sendOperationRequest(args, spec);
13856
13856
  });
13857
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13857
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13858
13858
  var _a;
13859
13859
  let currentRawResponse = undefined;
13860
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
13860
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
13861
13861
  const callback = (rawResponse, flatResponse) => {
13862
13862
  currentRawResponse = rawResponse;
13863
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
13863
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
13864
13864
  };
13865
13865
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
13866
13866
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -13885,8 +13885,8 @@ class TokensImpl {
13885
13885
  spec: createOperationSpec$4
13886
13886
  });
13887
13887
  const poller = yield coreLro.createHttpPoller(lro, {
13888
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
13889
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
13888
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
13889
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
13890
13890
  resourceLocationConfig: "azure-async-operation"
13891
13891
  });
13892
13892
  yield poller.poll();
@@ -13902,7 +13902,7 @@ class TokensImpl {
13902
13902
  * @param options The options parameters.
13903
13903
  */
13904
13904
  beginCreateAndWait(resourceGroupName, registryName, tokenName, tokenCreateParameters, options) {
13905
- return tslib.__awaiter(this, void 0, void 0, function* () {
13905
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13906
13906
  const poller = yield this.beginCreate(resourceGroupName, registryName, tokenName, tokenCreateParameters, options);
13907
13907
  return poller.pollUntilDone();
13908
13908
  });
@@ -13915,17 +13915,17 @@ class TokensImpl {
13915
13915
  * @param options The options parameters.
13916
13916
  */
13917
13917
  beginDelete(resourceGroupName, registryName, tokenName, options) {
13918
- return tslib.__awaiter(this, void 0, void 0, function* () {
13919
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13918
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13919
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13920
13920
  return this.client.sendOperationRequest(args, spec);
13921
13921
  });
13922
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13922
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13923
13923
  var _a;
13924
13924
  let currentRawResponse = undefined;
13925
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
13925
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
13926
13926
  const callback = (rawResponse, flatResponse) => {
13927
13927
  currentRawResponse = rawResponse;
13928
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
13928
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
13929
13929
  };
13930
13930
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
13931
13931
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -13944,8 +13944,8 @@ class TokensImpl {
13944
13944
  spec: deleteOperationSpec$4
13945
13945
  });
13946
13946
  const poller = yield coreLro.createHttpPoller(lro, {
13947
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
13948
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
13947
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
13948
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
13949
13949
  resourceLocationConfig: "location"
13950
13950
  });
13951
13951
  yield poller.poll();
@@ -13960,7 +13960,7 @@ class TokensImpl {
13960
13960
  * @param options The options parameters.
13961
13961
  */
13962
13962
  beginDeleteAndWait(resourceGroupName, registryName, tokenName, options) {
13963
- return tslib.__awaiter(this, void 0, void 0, function* () {
13963
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13964
13964
  const poller = yield this.beginDelete(resourceGroupName, registryName, tokenName, options);
13965
13965
  return poller.pollUntilDone();
13966
13966
  });
@@ -13974,17 +13974,17 @@ class TokensImpl {
13974
13974
  * @param options The options parameters.
13975
13975
  */
13976
13976
  beginUpdate(resourceGroupName, registryName, tokenName, tokenUpdateParameters, options) {
13977
- return tslib.__awaiter(this, void 0, void 0, function* () {
13978
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13977
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13978
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13979
13979
  return this.client.sendOperationRequest(args, spec);
13980
13980
  });
13981
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13981
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13982
13982
  var _a;
13983
13983
  let currentRawResponse = undefined;
13984
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
13984
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
13985
13985
  const callback = (rawResponse, flatResponse) => {
13986
13986
  currentRawResponse = rawResponse;
13987
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
13987
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
13988
13988
  };
13989
13989
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
13990
13990
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -14009,8 +14009,8 @@ class TokensImpl {
14009
14009
  spec: updateOperationSpec$5
14010
14010
  });
14011
14011
  const poller = yield coreLro.createHttpPoller(lro, {
14012
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
14013
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
14012
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
14013
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
14014
14014
  resourceLocationConfig: "azure-async-operation"
14015
14015
  });
14016
14016
  yield poller.poll();
@@ -14026,7 +14026,7 @@ class TokensImpl {
14026
14026
  * @param options The options parameters.
14027
14027
  */
14028
14028
  beginUpdateAndWait(resourceGroupName, registryName, tokenName, tokenUpdateParameters, options) {
14029
- return tslib.__awaiter(this, void 0, void 0, function* () {
14029
+ return tslib.__awaiter(this, undefined, undefined, function* () {
14030
14030
  const poller = yield this.beginUpdate(resourceGroupName, registryName, tokenName, tokenUpdateParameters, options);
14031
14031
  return poller.pollUntilDone();
14032
14032
  });
@@ -14231,7 +14231,7 @@ class WebhooksImpl {
14231
14231
  return this;
14232
14232
  },
14233
14233
  byPage: (settings) => {
14234
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14234
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14235
14235
  throw new Error("maxPageSize is not supported by this operation.");
14236
14236
  }
14237
14237
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
@@ -14241,7 +14241,7 @@ class WebhooksImpl {
14241
14241
  listPagingPage(resourceGroupName, registryName, options, settings) {
14242
14242
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
14243
14243
  let result;
14244
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14244
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
14245
14245
  if (!continuationToken) {
14246
14246
  result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
14247
14247
  let page = result.value || [];
@@ -14295,7 +14295,7 @@ class WebhooksImpl {
14295
14295
  return this;
14296
14296
  },
14297
14297
  byPage: (settings) => {
14298
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14298
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14299
14299
  throw new Error("maxPageSize is not supported by this operation.");
14300
14300
  }
14301
14301
  return this.listEventsPagingPage(resourceGroupName, registryName, webhookName, options, settings);
@@ -14305,7 +14305,7 @@ class WebhooksImpl {
14305
14305
  listEventsPagingPage(resourceGroupName, registryName, webhookName, options, settings) {
14306
14306
  return tslib.__asyncGenerator(this, arguments, function* listEventsPagingPage_1() {
14307
14307
  let result;
14308
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14308
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
14309
14309
  if (!continuationToken) {
14310
14310
  result = yield tslib.__await(this._listEvents(resourceGroupName, registryName, webhookName, options));
14311
14311
  let page = result.value || [];
@@ -14370,17 +14370,17 @@ class WebhooksImpl {
14370
14370
  * @param options The options parameters.
14371
14371
  */
14372
14372
  beginCreate(resourceGroupName, registryName, webhookName, webhookCreateParameters, options) {
14373
- return tslib.__awaiter(this, void 0, void 0, function* () {
14374
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14373
+ return tslib.__awaiter(this, undefined, undefined, function* () {
14374
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14375
14375
  return this.client.sendOperationRequest(args, spec);
14376
14376
  });
14377
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14377
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14378
14378
  var _a;
14379
14379
  let currentRawResponse = undefined;
14380
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
14380
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
14381
14381
  const callback = (rawResponse, flatResponse) => {
14382
14382
  currentRawResponse = rawResponse;
14383
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
14383
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
14384
14384
  };
14385
14385
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
14386
14386
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -14405,8 +14405,8 @@ class WebhooksImpl {
14405
14405
  spec: createOperationSpec$3
14406
14406
  });
14407
14407
  const poller = yield coreLro.createHttpPoller(lro, {
14408
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
14409
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
14408
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
14409
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
14410
14410
  resourceLocationConfig: "azure-async-operation"
14411
14411
  });
14412
14412
  yield poller.poll();
@@ -14422,7 +14422,7 @@ class WebhooksImpl {
14422
14422
  * @param options The options parameters.
14423
14423
  */
14424
14424
  beginCreateAndWait(resourceGroupName, registryName, webhookName, webhookCreateParameters, options) {
14425
- return tslib.__awaiter(this, void 0, void 0, function* () {
14425
+ return tslib.__awaiter(this, undefined, undefined, function* () {
14426
14426
  const poller = yield this.beginCreate(resourceGroupName, registryName, webhookName, webhookCreateParameters, options);
14427
14427
  return poller.pollUntilDone();
14428
14428
  });
@@ -14435,17 +14435,17 @@ class WebhooksImpl {
14435
14435
  * @param options The options parameters.
14436
14436
  */
14437
14437
  beginDelete(resourceGroupName, registryName, webhookName, options) {
14438
- return tslib.__awaiter(this, void 0, void 0, function* () {
14439
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14438
+ return tslib.__awaiter(this, undefined, undefined, function* () {
14439
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14440
14440
  return this.client.sendOperationRequest(args, spec);
14441
14441
  });
14442
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14442
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14443
14443
  var _a;
14444
14444
  let currentRawResponse = undefined;
14445
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
14445
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
14446
14446
  const callback = (rawResponse, flatResponse) => {
14447
14447
  currentRawResponse = rawResponse;
14448
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
14448
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
14449
14449
  };
14450
14450
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
14451
14451
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -14464,8 +14464,8 @@ class WebhooksImpl {
14464
14464
  spec: deleteOperationSpec$3
14465
14465
  });
14466
14466
  const poller = yield coreLro.createHttpPoller(lro, {
14467
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
14468
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
14467
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
14468
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
14469
14469
  resourceLocationConfig: "location"
14470
14470
  });
14471
14471
  yield poller.poll();
@@ -14480,7 +14480,7 @@ class WebhooksImpl {
14480
14480
  * @param options The options parameters.
14481
14481
  */
14482
14482
  beginDeleteAndWait(resourceGroupName, registryName, webhookName, options) {
14483
- return tslib.__awaiter(this, void 0, void 0, function* () {
14483
+ return tslib.__awaiter(this, undefined, undefined, function* () {
14484
14484
  const poller = yield this.beginDelete(resourceGroupName, registryName, webhookName, options);
14485
14485
  return poller.pollUntilDone();
14486
14486
  });
@@ -14494,17 +14494,17 @@ class WebhooksImpl {
14494
14494
  * @param options The options parameters.
14495
14495
  */
14496
14496
  beginUpdate(resourceGroupName, registryName, webhookName, webhookUpdateParameters, options) {
14497
- return tslib.__awaiter(this, void 0, void 0, function* () {
14498
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14497
+ return tslib.__awaiter(this, undefined, undefined, function* () {
14498
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14499
14499
  return this.client.sendOperationRequest(args, spec);
14500
14500
  });
14501
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14501
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14502
14502
  var _a;
14503
14503
  let currentRawResponse = undefined;
14504
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
14504
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
14505
14505
  const callback = (rawResponse, flatResponse) => {
14506
14506
  currentRawResponse = rawResponse;
14507
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
14507
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
14508
14508
  };
14509
14509
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
14510
14510
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -14529,8 +14529,8 @@ class WebhooksImpl {
14529
14529
  spec: updateOperationSpec$4
14530
14530
  });
14531
14531
  const poller = yield coreLro.createHttpPoller(lro, {
14532
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
14533
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
14532
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
14533
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
14534
14534
  resourceLocationConfig: "azure-async-operation"
14535
14535
  });
14536
14536
  yield poller.poll();
@@ -14546,7 +14546,7 @@ class WebhooksImpl {
14546
14546
  * @param options The options parameters.
14547
14547
  */
14548
14548
  beginUpdateAndWait(resourceGroupName, registryName, webhookName, webhookUpdateParameters, options) {
14549
- return tslib.__awaiter(this, void 0, void 0, function* () {
14549
+ return tslib.__awaiter(this, undefined, undefined, function* () {
14550
14550
  const poller = yield this.beginUpdate(resourceGroupName, registryName, webhookName, webhookUpdateParameters, options);
14551
14551
  return poller.pollUntilDone();
14552
14552
  });
@@ -14844,7 +14844,7 @@ class AgentPoolsImpl {
14844
14844
  return this;
14845
14845
  },
14846
14846
  byPage: (settings) => {
14847
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14847
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14848
14848
  throw new Error("maxPageSize is not supported by this operation.");
14849
14849
  }
14850
14850
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
@@ -14854,7 +14854,7 @@ class AgentPoolsImpl {
14854
14854
  listPagingPage(resourceGroupName, registryName, options, settings) {
14855
14855
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
14856
14856
  let result;
14857
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14857
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
14858
14858
  if (!continuationToken) {
14859
14859
  result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
14860
14860
  let page = result.value || [];
@@ -14910,17 +14910,17 @@ class AgentPoolsImpl {
14910
14910
  * @param options The options parameters.
14911
14911
  */
14912
14912
  beginCreate(resourceGroupName, registryName, agentPoolName, agentPool, options) {
14913
- return tslib.__awaiter(this, void 0, void 0, function* () {
14914
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14913
+ return tslib.__awaiter(this, undefined, undefined, function* () {
14914
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14915
14915
  return this.client.sendOperationRequest(args, spec);
14916
14916
  });
14917
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14917
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14918
14918
  var _a;
14919
14919
  let currentRawResponse = undefined;
14920
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
14920
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
14921
14921
  const callback = (rawResponse, flatResponse) => {
14922
14922
  currentRawResponse = rawResponse;
14923
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
14923
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
14924
14924
  };
14925
14925
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
14926
14926
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -14945,8 +14945,8 @@ class AgentPoolsImpl {
14945
14945
  spec: createOperationSpec$2
14946
14946
  });
14947
14947
  const poller = yield coreLro.createHttpPoller(lro, {
14948
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
14949
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
14948
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
14949
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
14950
14950
  });
14951
14951
  yield poller.poll();
14952
14952
  return poller;
@@ -14961,7 +14961,7 @@ class AgentPoolsImpl {
14961
14961
  * @param options The options parameters.
14962
14962
  */
14963
14963
  beginCreateAndWait(resourceGroupName, registryName, agentPoolName, agentPool, options) {
14964
- return tslib.__awaiter(this, void 0, void 0, function* () {
14964
+ return tslib.__awaiter(this, undefined, undefined, function* () {
14965
14965
  const poller = yield this.beginCreate(resourceGroupName, registryName, agentPoolName, agentPool, options);
14966
14966
  return poller.pollUntilDone();
14967
14967
  });
@@ -14974,17 +14974,17 @@ class AgentPoolsImpl {
14974
14974
  * @param options The options parameters.
14975
14975
  */
14976
14976
  beginDelete(resourceGroupName, registryName, agentPoolName, options) {
14977
- return tslib.__awaiter(this, void 0, void 0, function* () {
14978
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14977
+ return tslib.__awaiter(this, undefined, undefined, function* () {
14978
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14979
14979
  return this.client.sendOperationRequest(args, spec);
14980
14980
  });
14981
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14981
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14982
14982
  var _a;
14983
14983
  let currentRawResponse = undefined;
14984
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
14984
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
14985
14985
  const callback = (rawResponse, flatResponse) => {
14986
14986
  currentRawResponse = rawResponse;
14987
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
14987
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
14988
14988
  };
14989
14989
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
14990
14990
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -15003,8 +15003,8 @@ class AgentPoolsImpl {
15003
15003
  spec: deleteOperationSpec$2
15004
15004
  });
15005
15005
  const poller = yield coreLro.createHttpPoller(lro, {
15006
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
15007
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
15006
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
15007
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
15008
15008
  });
15009
15009
  yield poller.poll();
15010
15010
  return poller;
@@ -15018,7 +15018,7 @@ class AgentPoolsImpl {
15018
15018
  * @param options The options parameters.
15019
15019
  */
15020
15020
  beginDeleteAndWait(resourceGroupName, registryName, agentPoolName, options) {
15021
- return tslib.__awaiter(this, void 0, void 0, function* () {
15021
+ return tslib.__awaiter(this, undefined, undefined, function* () {
15022
15022
  const poller = yield this.beginDelete(resourceGroupName, registryName, agentPoolName, options);
15023
15023
  return poller.pollUntilDone();
15024
15024
  });
@@ -15032,17 +15032,17 @@ class AgentPoolsImpl {
15032
15032
  * @param options The options parameters.
15033
15033
  */
15034
15034
  beginUpdate(resourceGroupName, registryName, agentPoolName, updateParameters, options) {
15035
- return tslib.__awaiter(this, void 0, void 0, function* () {
15036
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15035
+ return tslib.__awaiter(this, undefined, undefined, function* () {
15036
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15037
15037
  return this.client.sendOperationRequest(args, spec);
15038
15038
  });
15039
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15039
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15040
15040
  var _a;
15041
15041
  let currentRawResponse = undefined;
15042
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
15042
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
15043
15043
  const callback = (rawResponse, flatResponse) => {
15044
15044
  currentRawResponse = rawResponse;
15045
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
15045
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
15046
15046
  };
15047
15047
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
15048
15048
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -15067,8 +15067,8 @@ class AgentPoolsImpl {
15067
15067
  spec: updateOperationSpec$3
15068
15068
  });
15069
15069
  const poller = yield coreLro.createHttpPoller(lro, {
15070
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
15071
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
15070
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
15071
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
15072
15072
  });
15073
15073
  yield poller.poll();
15074
15074
  return poller;
@@ -15083,7 +15083,7 @@ class AgentPoolsImpl {
15083
15083
  * @param options The options parameters.
15084
15084
  */
15085
15085
  beginUpdateAndWait(resourceGroupName, registryName, agentPoolName, updateParameters, options) {
15086
- return tslib.__awaiter(this, void 0, void 0, function* () {
15086
+ return tslib.__awaiter(this, undefined, undefined, function* () {
15087
15087
  const poller = yield this.beginUpdate(resourceGroupName, registryName, agentPoolName, updateParameters, options);
15088
15088
  return poller.pollUntilDone();
15089
15089
  });
@@ -15329,7 +15329,7 @@ class RunsImpl {
15329
15329
  return this;
15330
15330
  },
15331
15331
  byPage: (settings) => {
15332
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15332
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
15333
15333
  throw new Error("maxPageSize is not supported by this operation.");
15334
15334
  }
15335
15335
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
@@ -15339,7 +15339,7 @@ class RunsImpl {
15339
15339
  listPagingPage(resourceGroupName, registryName, options, settings) {
15340
15340
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
15341
15341
  let result;
15342
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15342
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
15343
15343
  if (!continuationToken) {
15344
15344
  result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
15345
15345
  let page = result.value || [];
@@ -15404,17 +15404,17 @@ class RunsImpl {
15404
15404
  * @param options The options parameters.
15405
15405
  */
15406
15406
  beginUpdate(resourceGroupName, registryName, runId, runUpdateParameters, options) {
15407
- return tslib.__awaiter(this, void 0, void 0, function* () {
15408
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15407
+ return tslib.__awaiter(this, undefined, undefined, function* () {
15408
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15409
15409
  return this.client.sendOperationRequest(args, spec);
15410
15410
  });
15411
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15411
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15412
15412
  var _a;
15413
15413
  let currentRawResponse = undefined;
15414
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
15414
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
15415
15415
  const callback = (rawResponse, flatResponse) => {
15416
15416
  currentRawResponse = rawResponse;
15417
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
15417
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
15418
15418
  };
15419
15419
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
15420
15420
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -15439,8 +15439,8 @@ class RunsImpl {
15439
15439
  spec: updateOperationSpec$2
15440
15440
  });
15441
15441
  const poller = yield coreLro.createHttpPoller(lro, {
15442
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
15443
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
15442
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
15443
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
15444
15444
  });
15445
15445
  yield poller.poll();
15446
15446
  return poller;
@@ -15455,7 +15455,7 @@ class RunsImpl {
15455
15455
  * @param options The options parameters.
15456
15456
  */
15457
15457
  beginUpdateAndWait(resourceGroupName, registryName, runId, runUpdateParameters, options) {
15458
- return tslib.__awaiter(this, void 0, void 0, function* () {
15458
+ return tslib.__awaiter(this, undefined, undefined, function* () {
15459
15459
  const poller = yield this.beginUpdate(resourceGroupName, registryName, runId, runUpdateParameters, options);
15460
15460
  return poller.pollUntilDone();
15461
15461
  });
@@ -15478,17 +15478,17 @@ class RunsImpl {
15478
15478
  * @param options The options parameters.
15479
15479
  */
15480
15480
  beginCancel(resourceGroupName, registryName, runId, options) {
15481
- return tslib.__awaiter(this, void 0, void 0, function* () {
15482
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15481
+ return tslib.__awaiter(this, undefined, undefined, function* () {
15482
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15483
15483
  return this.client.sendOperationRequest(args, spec);
15484
15484
  });
15485
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15485
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15486
15486
  var _a;
15487
15487
  let currentRawResponse = undefined;
15488
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
15488
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
15489
15489
  const callback = (rawResponse, flatResponse) => {
15490
15490
  currentRawResponse = rawResponse;
15491
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
15491
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
15492
15492
  };
15493
15493
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
15494
15494
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -15507,8 +15507,8 @@ class RunsImpl {
15507
15507
  spec: cancelOperationSpec
15508
15508
  });
15509
15509
  const poller = yield coreLro.createHttpPoller(lro, {
15510
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
15511
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
15510
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
15511
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
15512
15512
  });
15513
15513
  yield poller.poll();
15514
15514
  return poller;
@@ -15522,7 +15522,7 @@ class RunsImpl {
15522
15522
  * @param options The options parameters.
15523
15523
  */
15524
15524
  beginCancelAndWait(resourceGroupName, registryName, runId, options) {
15525
- return tslib.__awaiter(this, void 0, void 0, function* () {
15525
+ return tslib.__awaiter(this, undefined, undefined, function* () {
15526
15526
  const poller = yield this.beginCancel(resourceGroupName, registryName, runId, options);
15527
15527
  return poller.pollUntilDone();
15528
15528
  });
@@ -15716,7 +15716,7 @@ class TaskRunsImpl {
15716
15716
  return this;
15717
15717
  },
15718
15718
  byPage: (settings) => {
15719
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15719
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
15720
15720
  throw new Error("maxPageSize is not supported by this operation.");
15721
15721
  }
15722
15722
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
@@ -15726,7 +15726,7 @@ class TaskRunsImpl {
15726
15726
  listPagingPage(resourceGroupName, registryName, options, settings) {
15727
15727
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
15728
15728
  let result;
15729
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15729
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
15730
15730
  if (!continuationToken) {
15731
15731
  result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
15732
15732
  let page = result.value || [];
@@ -15782,17 +15782,17 @@ class TaskRunsImpl {
15782
15782
  * @param options The options parameters.
15783
15783
  */
15784
15784
  beginCreate(resourceGroupName, registryName, taskRunName, taskRun, options) {
15785
- return tslib.__awaiter(this, void 0, void 0, function* () {
15786
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15785
+ return tslib.__awaiter(this, undefined, undefined, function* () {
15786
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15787
15787
  return this.client.sendOperationRequest(args, spec);
15788
15788
  });
15789
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15789
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15790
15790
  var _a;
15791
15791
  let currentRawResponse = undefined;
15792
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
15792
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
15793
15793
  const callback = (rawResponse, flatResponse) => {
15794
15794
  currentRawResponse = rawResponse;
15795
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
15795
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
15796
15796
  };
15797
15797
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
15798
15798
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -15811,8 +15811,8 @@ class TaskRunsImpl {
15811
15811
  spec: createOperationSpec$1
15812
15812
  });
15813
15813
  const poller = yield coreLro.createHttpPoller(lro, {
15814
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
15815
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
15814
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
15815
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
15816
15816
  });
15817
15817
  yield poller.poll();
15818
15818
  return poller;
@@ -15827,7 +15827,7 @@ class TaskRunsImpl {
15827
15827
  * @param options The options parameters.
15828
15828
  */
15829
15829
  beginCreateAndWait(resourceGroupName, registryName, taskRunName, taskRun, options) {
15830
- return tslib.__awaiter(this, void 0, void 0, function* () {
15830
+ return tslib.__awaiter(this, undefined, undefined, function* () {
15831
15831
  const poller = yield this.beginCreate(resourceGroupName, registryName, taskRunName, taskRun, options);
15832
15832
  return poller.pollUntilDone();
15833
15833
  });
@@ -15840,17 +15840,17 @@ class TaskRunsImpl {
15840
15840
  * @param options The options parameters.
15841
15841
  */
15842
15842
  beginDelete(resourceGroupName, registryName, taskRunName, options) {
15843
- return tslib.__awaiter(this, void 0, void 0, function* () {
15844
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15843
+ return tslib.__awaiter(this, undefined, undefined, function* () {
15844
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15845
15845
  return this.client.sendOperationRequest(args, spec);
15846
15846
  });
15847
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15847
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15848
15848
  var _a;
15849
15849
  let currentRawResponse = undefined;
15850
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
15850
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
15851
15851
  const callback = (rawResponse, flatResponse) => {
15852
15852
  currentRawResponse = rawResponse;
15853
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
15853
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
15854
15854
  };
15855
15855
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
15856
15856
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -15869,8 +15869,8 @@ class TaskRunsImpl {
15869
15869
  spec: deleteOperationSpec$1
15870
15870
  });
15871
15871
  const poller = yield coreLro.createHttpPoller(lro, {
15872
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
15873
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
15872
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
15873
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
15874
15874
  });
15875
15875
  yield poller.poll();
15876
15876
  return poller;
@@ -15884,7 +15884,7 @@ class TaskRunsImpl {
15884
15884
  * @param options The options parameters.
15885
15885
  */
15886
15886
  beginDeleteAndWait(resourceGroupName, registryName, taskRunName, options) {
15887
- return tslib.__awaiter(this, void 0, void 0, function* () {
15887
+ return tslib.__awaiter(this, undefined, undefined, function* () {
15888
15888
  const poller = yield this.beginDelete(resourceGroupName, registryName, taskRunName, options);
15889
15889
  return poller.pollUntilDone();
15890
15890
  });
@@ -15898,17 +15898,17 @@ class TaskRunsImpl {
15898
15898
  * @param options The options parameters.
15899
15899
  */
15900
15900
  beginUpdate(resourceGroupName, registryName, taskRunName, updateParameters, options) {
15901
- return tslib.__awaiter(this, void 0, void 0, function* () {
15902
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15901
+ return tslib.__awaiter(this, undefined, undefined, function* () {
15902
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15903
15903
  return this.client.sendOperationRequest(args, spec);
15904
15904
  });
15905
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15905
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15906
15906
  var _a;
15907
15907
  let currentRawResponse = undefined;
15908
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
15908
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
15909
15909
  const callback = (rawResponse, flatResponse) => {
15910
15910
  currentRawResponse = rawResponse;
15911
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
15911
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
15912
15912
  };
15913
15913
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
15914
15914
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -15933,8 +15933,8 @@ class TaskRunsImpl {
15933
15933
  spec: updateOperationSpec$1
15934
15934
  });
15935
15935
  const poller = yield coreLro.createHttpPoller(lro, {
15936
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
15937
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
15936
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
15937
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
15938
15938
  });
15939
15939
  yield poller.poll();
15940
15940
  return poller;
@@ -15949,7 +15949,7 @@ class TaskRunsImpl {
15949
15949
  * @param options The options parameters.
15950
15950
  */
15951
15951
  beginUpdateAndWait(resourceGroupName, registryName, taskRunName, updateParameters, options) {
15952
- return tslib.__awaiter(this, void 0, void 0, function* () {
15952
+ return tslib.__awaiter(this, undefined, undefined, function* () {
15953
15953
  const poller = yield this.beginUpdate(resourceGroupName, registryName, taskRunName, updateParameters, options);
15954
15954
  return poller.pollUntilDone();
15955
15955
  });
@@ -16195,7 +16195,7 @@ class TasksImpl {
16195
16195
  return this;
16196
16196
  },
16197
16197
  byPage: (settings) => {
16198
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
16198
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
16199
16199
  throw new Error("maxPageSize is not supported by this operation.");
16200
16200
  }
16201
16201
  return this.listPagingPage(resourceGroupName, registryName, options, settings);
@@ -16205,7 +16205,7 @@ class TasksImpl {
16205
16205
  listPagingPage(resourceGroupName, registryName, options, settings) {
16206
16206
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
16207
16207
  let result;
16208
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
16208
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
16209
16209
  if (!continuationToken) {
16210
16210
  result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
16211
16211
  let page = result.value || [];
@@ -16270,17 +16270,17 @@ class TasksImpl {
16270
16270
  * @param options The options parameters.
16271
16271
  */
16272
16272
  beginCreate(resourceGroupName, registryName, taskName, taskCreateParameters, options) {
16273
- return tslib.__awaiter(this, void 0, void 0, function* () {
16274
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16273
+ return tslib.__awaiter(this, undefined, undefined, function* () {
16274
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16275
16275
  return this.client.sendOperationRequest(args, spec);
16276
16276
  });
16277
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16277
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16278
16278
  var _a;
16279
16279
  let currentRawResponse = undefined;
16280
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
16280
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
16281
16281
  const callback = (rawResponse, flatResponse) => {
16282
16282
  currentRawResponse = rawResponse;
16283
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
16283
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
16284
16284
  };
16285
16285
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
16286
16286
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -16305,8 +16305,8 @@ class TasksImpl {
16305
16305
  spec: createOperationSpec
16306
16306
  });
16307
16307
  const poller = yield coreLro.createHttpPoller(lro, {
16308
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
16309
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
16308
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
16309
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
16310
16310
  });
16311
16311
  yield poller.poll();
16312
16312
  return poller;
@@ -16321,7 +16321,7 @@ class TasksImpl {
16321
16321
  * @param options The options parameters.
16322
16322
  */
16323
16323
  beginCreateAndWait(resourceGroupName, registryName, taskName, taskCreateParameters, options) {
16324
- return tslib.__awaiter(this, void 0, void 0, function* () {
16324
+ return tslib.__awaiter(this, undefined, undefined, function* () {
16325
16325
  const poller = yield this.beginCreate(resourceGroupName, registryName, taskName, taskCreateParameters, options);
16326
16326
  return poller.pollUntilDone();
16327
16327
  });
@@ -16334,17 +16334,17 @@ class TasksImpl {
16334
16334
  * @param options The options parameters.
16335
16335
  */
16336
16336
  beginDelete(resourceGroupName, registryName, taskName, options) {
16337
- return tslib.__awaiter(this, void 0, void 0, function* () {
16338
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16337
+ return tslib.__awaiter(this, undefined, undefined, function* () {
16338
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16339
16339
  return this.client.sendOperationRequest(args, spec);
16340
16340
  });
16341
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16341
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16342
16342
  var _a;
16343
16343
  let currentRawResponse = undefined;
16344
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
16344
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
16345
16345
  const callback = (rawResponse, flatResponse) => {
16346
16346
  currentRawResponse = rawResponse;
16347
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
16347
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
16348
16348
  };
16349
16349
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
16350
16350
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -16363,8 +16363,8 @@ class TasksImpl {
16363
16363
  spec: deleteOperationSpec
16364
16364
  });
16365
16365
  const poller = yield coreLro.createHttpPoller(lro, {
16366
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
16367
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
16366
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
16367
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
16368
16368
  });
16369
16369
  yield poller.poll();
16370
16370
  return poller;
@@ -16378,7 +16378,7 @@ class TasksImpl {
16378
16378
  * @param options The options parameters.
16379
16379
  */
16380
16380
  beginDeleteAndWait(resourceGroupName, registryName, taskName, options) {
16381
- return tslib.__awaiter(this, void 0, void 0, function* () {
16381
+ return tslib.__awaiter(this, undefined, undefined, function* () {
16382
16382
  const poller = yield this.beginDelete(resourceGroupName, registryName, taskName, options);
16383
16383
  return poller.pollUntilDone();
16384
16384
  });
@@ -16392,17 +16392,17 @@ class TasksImpl {
16392
16392
  * @param options The options parameters.
16393
16393
  */
16394
16394
  beginUpdate(resourceGroupName, registryName, taskName, taskUpdateParameters, options) {
16395
- return tslib.__awaiter(this, void 0, void 0, function* () {
16396
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16395
+ return tslib.__awaiter(this, undefined, undefined, function* () {
16396
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16397
16397
  return this.client.sendOperationRequest(args, spec);
16398
16398
  });
16399
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16399
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16400
16400
  var _a;
16401
16401
  let currentRawResponse = undefined;
16402
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
16402
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
16403
16403
  const callback = (rawResponse, flatResponse) => {
16404
16404
  currentRawResponse = rawResponse;
16405
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
16405
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
16406
16406
  };
16407
16407
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
16408
16408
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -16427,8 +16427,8 @@ class TasksImpl {
16427
16427
  spec: updateOperationSpec
16428
16428
  });
16429
16429
  const poller = yield coreLro.createHttpPoller(lro, {
16430
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
16431
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
16430
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
16431
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
16432
16432
  });
16433
16433
  yield poller.poll();
16434
16434
  return poller;
@@ -16443,7 +16443,7 @@ class TasksImpl {
16443
16443
  * @param options The options parameters.
16444
16444
  */
16445
16445
  beginUpdateAndWait(resourceGroupName, registryName, taskName, taskUpdateParameters, options) {
16446
- return tslib.__awaiter(this, void 0, void 0, function* () {
16446
+ return tslib.__awaiter(this, undefined, undefined, function* () {
16447
16447
  const poller = yield this.beginUpdate(resourceGroupName, registryName, taskName, taskUpdateParameters, options);
16448
16448
  return poller.pollUntilDone();
16449
16449
  });
@@ -16683,10 +16683,10 @@ class ContainerRegistryManagementClient extends coreClient__namespace.ServiceCli
16683
16683
  : `${packageDetails}`;
16684
16684
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
16685
16685
  userAgentPrefix
16686
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
16686
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
16687
16687
  super(optionsWithDefaults);
16688
16688
  let bearerTokenAuthenticationPolicyFound = false;
16689
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
16689
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
16690
16690
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
16691
16691
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
16692
16692
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -16700,7 +16700,7 @@ class ContainerRegistryManagementClient extends coreClient__namespace.ServiceCli
16700
16700
  });
16701
16701
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
16702
16702
  credential: credentials,
16703
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
16703
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
16704
16704
  challengeCallbacks: {
16705
16705
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
16706
16706
  }