@azure/arm-keyvault 3.1.1-alpha.20250103.1 → 3.1.1-alpha.20250106.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
47
47
  if (typeof page !== "object" || page === null) {
48
48
  return undefined;
49
49
  }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
50
+ return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
51
51
  }
52
52
  function setContinuationToken(page, continuationToken) {
53
53
  var _a;
54
54
  if (typeof page !== "object" || page === null || !continuationToken) {
55
55
  return;
56
56
  }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
58
58
  pageInfo.continuationToken = continuationToken;
59
59
  pageMap.set(page, pageInfo);
60
60
  }
@@ -4211,7 +4211,7 @@ class KeysImpl {
4211
4211
  return this;
4212
4212
  },
4213
4213
  byPage: (settings) => {
4214
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4214
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4215
4215
  throw new Error("maxPageSize is not supported by this operation.");
4216
4216
  }
4217
4217
  return this.listPagingPage(resourceGroupName, vaultName, options, settings);
@@ -4221,7 +4221,7 @@ class KeysImpl {
4221
4221
  listPagingPage(resourceGroupName, vaultName, options, settings) {
4222
4222
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4223
4223
  let result;
4224
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4224
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4225
4225
  if (!continuationToken) {
4226
4226
  result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
4227
4227
  let page = result.value || [];
@@ -4275,7 +4275,7 @@ class KeysImpl {
4275
4275
  return this;
4276
4276
  },
4277
4277
  byPage: (settings) => {
4278
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4278
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4279
4279
  throw new Error("maxPageSize is not supported by this operation.");
4280
4280
  }
4281
4281
  return this.listVersionsPagingPage(resourceGroupName, vaultName, keyName, options, settings);
@@ -4285,7 +4285,7 @@ class KeysImpl {
4285
4285
  listVersionsPagingPage(resourceGroupName, vaultName, keyName, options, settings) {
4286
4286
  return tslib.__asyncGenerator(this, arguments, function* listVersionsPagingPage_1() {
4287
4287
  let result;
4288
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4288
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4289
4289
  if (!continuationToken) {
4290
4290
  result = yield tslib.__await(this._listVersions(resourceGroupName, vaultName, keyName, options));
4291
4291
  let page = result.value || [];
@@ -4590,7 +4590,7 @@ class ManagedHsmKeysImpl {
4590
4590
  return this;
4591
4591
  },
4592
4592
  byPage: (settings) => {
4593
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4593
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4594
4594
  throw new Error("maxPageSize is not supported by this operation.");
4595
4595
  }
4596
4596
  return this.listPagingPage(resourceGroupName, name, options, settings);
@@ -4600,7 +4600,7 @@ class ManagedHsmKeysImpl {
4600
4600
  listPagingPage(resourceGroupName, name, options, settings) {
4601
4601
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4602
4602
  let result;
4603
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4603
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4604
4604
  if (!continuationToken) {
4605
4605
  result = yield tslib.__await(this._list(resourceGroupName, name, options));
4606
4606
  let page = result.value || [];
@@ -4656,7 +4656,7 @@ class ManagedHsmKeysImpl {
4656
4656
  return this;
4657
4657
  },
4658
4658
  byPage: (settings) => {
4659
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4659
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4660
4660
  throw new Error("maxPageSize is not supported by this operation.");
4661
4661
  }
4662
4662
  return this.listVersionsPagingPage(resourceGroupName, name, keyName, options, settings);
@@ -4666,7 +4666,7 @@ class ManagedHsmKeysImpl {
4666
4666
  listVersionsPagingPage(resourceGroupName, name, keyName, options, settings) {
4667
4667
  return tslib.__asyncGenerator(this, arguments, function* listVersionsPagingPage_1() {
4668
4668
  let result;
4669
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4669
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4670
4670
  if (!continuationToken) {
4671
4671
  result = yield tslib.__await(this._listVersions(resourceGroupName, name, keyName, options));
4672
4672
  let page = result.value || [];
@@ -4961,7 +4961,7 @@ function createLroSpec(inputs) {
4961
4961
  sendInitialRequest: () => sendOperationFn(args, spec),
4962
4962
  sendPollRequest: (path, options) => {
4963
4963
  const restSpec = tslib.__rest(spec, ["requestBody"]);
4964
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
4964
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
4965
4965
  }
4966
4966
  };
4967
4967
  }
@@ -4999,7 +4999,7 @@ class VaultsImpl {
4999
4999
  return this;
5000
5000
  },
5001
5001
  byPage: (settings) => {
5002
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5002
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5003
5003
  throw new Error("maxPageSize is not supported by this operation.");
5004
5004
  }
5005
5005
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -5009,7 +5009,7 @@ class VaultsImpl {
5009
5009
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
5010
5010
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
5011
5011
  let result;
5012
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5012
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5013
5013
  if (!continuationToken) {
5014
5014
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
5015
5015
  let page = result.value || [];
@@ -5060,7 +5060,7 @@ class VaultsImpl {
5060
5060
  return this;
5061
5061
  },
5062
5062
  byPage: (settings) => {
5063
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5063
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5064
5064
  throw new Error("maxPageSize is not supported by this operation.");
5065
5065
  }
5066
5066
  return this.listBySubscriptionPagingPage(options, settings);
@@ -5070,7 +5070,7 @@ class VaultsImpl {
5070
5070
  listBySubscriptionPagingPage(options, settings) {
5071
5071
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
5072
5072
  let result;
5073
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5073
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5074
5074
  if (!continuationToken) {
5075
5075
  result = yield tslib.__await(this._listBySubscription(options));
5076
5076
  let page = result.value || [];
@@ -5121,7 +5121,7 @@ class VaultsImpl {
5121
5121
  return this;
5122
5122
  },
5123
5123
  byPage: (settings) => {
5124
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5124
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5125
5125
  throw new Error("maxPageSize is not supported by this operation.");
5126
5126
  }
5127
5127
  return this.listDeletedPagingPage(options, settings);
@@ -5131,7 +5131,7 @@ class VaultsImpl {
5131
5131
  listDeletedPagingPage(options, settings) {
5132
5132
  return tslib.__asyncGenerator(this, arguments, function* listDeletedPagingPage_1() {
5133
5133
  let result;
5134
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5134
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5135
5135
  if (!continuationToken) {
5136
5136
  result = yield tslib.__await(this._listDeleted(options));
5137
5137
  let page = result.value || [];
@@ -5182,7 +5182,7 @@ class VaultsImpl {
5182
5182
  return this;
5183
5183
  },
5184
5184
  byPage: (settings) => {
5185
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5185
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5186
5186
  throw new Error("maxPageSize is not supported by this operation.");
5187
5187
  }
5188
5188
  return this.listPagingPage(options, settings);
@@ -5192,7 +5192,7 @@ class VaultsImpl {
5192
5192
  listPagingPage(options, settings) {
5193
5193
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
5194
5194
  let result;
5195
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5195
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5196
5196
  if (!continuationToken) {
5197
5197
  result = yield tslib.__await(this._list(options));
5198
5198
  let page = result.value || [];
@@ -5237,17 +5237,17 @@ class VaultsImpl {
5237
5237
  * @param options The options parameters.
5238
5238
  */
5239
5239
  beginCreateOrUpdate(resourceGroupName, vaultName, parameters, options) {
5240
- return tslib.__awaiter(this, void 0, void 0, function* () {
5241
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5240
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5241
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5242
5242
  return this.client.sendOperationRequest(args, spec);
5243
5243
  });
5244
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5244
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5245
5245
  var _a;
5246
5246
  let currentRawResponse = undefined;
5247
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5247
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5248
5248
  const callback = (rawResponse, flatResponse) => {
5249
5249
  currentRawResponse = rawResponse;
5250
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5250
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5251
5251
  };
5252
5252
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5253
5253
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5266,8 +5266,8 @@ class VaultsImpl {
5266
5266
  spec: createOrUpdateOperationSpec$2
5267
5267
  });
5268
5268
  const poller = yield coreLro.createHttpPoller(lro, {
5269
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5270
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5269
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5270
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5271
5271
  });
5272
5272
  yield poller.poll();
5273
5273
  return poller;
@@ -5281,7 +5281,7 @@ class VaultsImpl {
5281
5281
  * @param options The options parameters.
5282
5282
  */
5283
5283
  beginCreateOrUpdateAndWait(resourceGroupName, vaultName, parameters, options) {
5284
- return tslib.__awaiter(this, void 0, void 0, function* () {
5284
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5285
5285
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, vaultName, parameters, options);
5286
5286
  return poller.pollUntilDone();
5287
5287
  });
@@ -5364,17 +5364,17 @@ class VaultsImpl {
5364
5364
  * @param options The options parameters.
5365
5365
  */
5366
5366
  beginPurgeDeleted(vaultName, location, options) {
5367
- return tslib.__awaiter(this, void 0, void 0, function* () {
5368
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5367
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5368
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5369
5369
  return this.client.sendOperationRequest(args, spec);
5370
5370
  });
5371
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5371
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5372
5372
  var _a;
5373
5373
  let currentRawResponse = undefined;
5374
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5374
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5375
5375
  const callback = (rawResponse, flatResponse) => {
5376
5376
  currentRawResponse = rawResponse;
5377
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5377
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5378
5378
  };
5379
5379
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5380
5380
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5393,8 +5393,8 @@ class VaultsImpl {
5393
5393
  spec: purgeDeletedOperationSpec$1
5394
5394
  });
5395
5395
  const poller = yield coreLro.createHttpPoller(lro, {
5396
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5397
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5396
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5397
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5398
5398
  });
5399
5399
  yield poller.poll();
5400
5400
  return poller;
@@ -5407,7 +5407,7 @@ class VaultsImpl {
5407
5407
  * @param options The options parameters.
5408
5408
  */
5409
5409
  beginPurgeDeletedAndWait(vaultName, location, options) {
5410
- return tslib.__awaiter(this, void 0, void 0, function* () {
5410
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5411
5411
  const poller = yield this.beginPurgeDeleted(vaultName, location, options);
5412
5412
  return poller.pollUntilDone();
5413
5413
  });
@@ -5830,7 +5830,7 @@ class PrivateEndpointConnectionsImpl {
5830
5830
  return this;
5831
5831
  },
5832
5832
  byPage: (settings) => {
5833
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5833
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5834
5834
  throw new Error("maxPageSize is not supported by this operation.");
5835
5835
  }
5836
5836
  return this.listByResourcePagingPage(resourceGroupName, vaultName, options, settings);
@@ -5840,7 +5840,7 @@ class PrivateEndpointConnectionsImpl {
5840
5840
  listByResourcePagingPage(resourceGroupName, vaultName, options, settings) {
5841
5841
  return tslib.__asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
5842
5842
  let result;
5843
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5843
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5844
5844
  if (!continuationToken) {
5845
5845
  result = yield tslib.__await(this._listByResource(resourceGroupName, vaultName, options));
5846
5846
  let page = result.value || [];
@@ -5915,17 +5915,17 @@ class PrivateEndpointConnectionsImpl {
5915
5915
  * @param options The options parameters.
5916
5916
  */
5917
5917
  beginDelete(resourceGroupName, vaultName, privateEndpointConnectionName, options) {
5918
- return tslib.__awaiter(this, void 0, void 0, function* () {
5919
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5918
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5919
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5920
5920
  return this.client.sendOperationRequest(args, spec);
5921
5921
  });
5922
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5922
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5923
5923
  var _a;
5924
5924
  let currentRawResponse = undefined;
5925
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5925
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5926
5926
  const callback = (rawResponse, flatResponse) => {
5927
5927
  currentRawResponse = rawResponse;
5928
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5928
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5929
5929
  };
5930
5930
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5931
5931
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5949,8 +5949,8 @@ class PrivateEndpointConnectionsImpl {
5949
5949
  spec: deleteOperationSpec$2
5950
5950
  });
5951
5951
  const poller = yield coreLro.createHttpPoller(lro, {
5952
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5953
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5952
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5953
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5954
5954
  });
5955
5955
  yield poller.poll();
5956
5956
  return poller;
@@ -5965,7 +5965,7 @@ class PrivateEndpointConnectionsImpl {
5965
5965
  * @param options The options parameters.
5966
5966
  */
5967
5967
  beginDeleteAndWait(resourceGroupName, vaultName, privateEndpointConnectionName, options) {
5968
- return tslib.__awaiter(this, void 0, void 0, function* () {
5968
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5969
5969
  const poller = yield this.beginDelete(resourceGroupName, vaultName, privateEndpointConnectionName, options);
5970
5970
  return poller.pollUntilDone();
5971
5971
  });
@@ -6198,7 +6198,7 @@ class ManagedHsmsImpl {
6198
6198
  return this;
6199
6199
  },
6200
6200
  byPage: (settings) => {
6201
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6201
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6202
6202
  throw new Error("maxPageSize is not supported by this operation.");
6203
6203
  }
6204
6204
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -6208,7 +6208,7 @@ class ManagedHsmsImpl {
6208
6208
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
6209
6209
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
6210
6210
  let result;
6211
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6211
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6212
6212
  if (!continuationToken) {
6213
6213
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
6214
6214
  let page = result.value || [];
@@ -6259,7 +6259,7 @@ class ManagedHsmsImpl {
6259
6259
  return this;
6260
6260
  },
6261
6261
  byPage: (settings) => {
6262
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6262
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6263
6263
  throw new Error("maxPageSize is not supported by this operation.");
6264
6264
  }
6265
6265
  return this.listBySubscriptionPagingPage(options, settings);
@@ -6269,7 +6269,7 @@ class ManagedHsmsImpl {
6269
6269
  listBySubscriptionPagingPage(options, settings) {
6270
6270
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
6271
6271
  let result;
6272
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6272
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6273
6273
  if (!continuationToken) {
6274
6274
  result = yield tslib.__await(this._listBySubscription(options));
6275
6275
  let page = result.value || [];
@@ -6320,7 +6320,7 @@ class ManagedHsmsImpl {
6320
6320
  return this;
6321
6321
  },
6322
6322
  byPage: (settings) => {
6323
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6323
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6324
6324
  throw new Error("maxPageSize is not supported by this operation.");
6325
6325
  }
6326
6326
  return this.listDeletedPagingPage(options, settings);
@@ -6330,7 +6330,7 @@ class ManagedHsmsImpl {
6330
6330
  listDeletedPagingPage(options, settings) {
6331
6331
  return tslib.__asyncGenerator(this, arguments, function* listDeletedPagingPage_1() {
6332
6332
  let result;
6333
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6333
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6334
6334
  if (!continuationToken) {
6335
6335
  result = yield tslib.__await(this._listDeleted(options));
6336
6336
  let page = result.value || [];
@@ -6375,17 +6375,17 @@ class ManagedHsmsImpl {
6375
6375
  * @param options The options parameters.
6376
6376
  */
6377
6377
  beginCreateOrUpdate(resourceGroupName, name, parameters, options) {
6378
- return tslib.__awaiter(this, void 0, void 0, function* () {
6379
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6378
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6379
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6380
6380
  return this.client.sendOperationRequest(args, spec);
6381
6381
  });
6382
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6382
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6383
6383
  var _a;
6384
6384
  let currentRawResponse = undefined;
6385
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6385
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6386
6386
  const callback = (rawResponse, flatResponse) => {
6387
6387
  currentRawResponse = rawResponse;
6388
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6388
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6389
6389
  };
6390
6390
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6391
6391
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6404,8 +6404,8 @@ class ManagedHsmsImpl {
6404
6404
  spec: createOrUpdateOperationSpec$1
6405
6405
  });
6406
6406
  const poller = yield coreLro.createHttpPoller(lro, {
6407
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6408
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6407
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6408
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6409
6409
  });
6410
6410
  yield poller.poll();
6411
6411
  return poller;
@@ -6419,7 +6419,7 @@ class ManagedHsmsImpl {
6419
6419
  * @param options The options parameters.
6420
6420
  */
6421
6421
  beginCreateOrUpdateAndWait(resourceGroupName, name, parameters, options) {
6422
- return tslib.__awaiter(this, void 0, void 0, function* () {
6422
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6423
6423
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, name, parameters, options);
6424
6424
  return poller.pollUntilDone();
6425
6425
  });
@@ -6432,17 +6432,17 @@ class ManagedHsmsImpl {
6432
6432
  * @param options The options parameters.
6433
6433
  */
6434
6434
  beginUpdate(resourceGroupName, name, parameters, options) {
6435
- return tslib.__awaiter(this, void 0, void 0, function* () {
6436
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6435
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6436
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6437
6437
  return this.client.sendOperationRequest(args, spec);
6438
6438
  });
6439
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6439
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6440
6440
  var _a;
6441
6441
  let currentRawResponse = undefined;
6442
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6442
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6443
6443
  const callback = (rawResponse, flatResponse) => {
6444
6444
  currentRawResponse = rawResponse;
6445
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6445
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6446
6446
  };
6447
6447
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6448
6448
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6461,8 +6461,8 @@ class ManagedHsmsImpl {
6461
6461
  spec: updateOperationSpec$1
6462
6462
  });
6463
6463
  const poller = yield coreLro.createHttpPoller(lro, {
6464
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6465
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6464
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6465
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6466
6466
  });
6467
6467
  yield poller.poll();
6468
6468
  return poller;
@@ -6476,7 +6476,7 @@ class ManagedHsmsImpl {
6476
6476
  * @param options The options parameters.
6477
6477
  */
6478
6478
  beginUpdateAndWait(resourceGroupName, name, parameters, options) {
6479
- return tslib.__awaiter(this, void 0, void 0, function* () {
6479
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6480
6480
  const poller = yield this.beginUpdate(resourceGroupName, name, parameters, options);
6481
6481
  return poller.pollUntilDone();
6482
6482
  });
@@ -6488,17 +6488,17 @@ class ManagedHsmsImpl {
6488
6488
  * @param options The options parameters.
6489
6489
  */
6490
6490
  beginDelete(resourceGroupName, name, options) {
6491
- return tslib.__awaiter(this, void 0, void 0, function* () {
6492
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6491
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6492
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6493
6493
  return this.client.sendOperationRequest(args, spec);
6494
6494
  });
6495
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6495
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6496
6496
  var _a;
6497
6497
  let currentRawResponse = undefined;
6498
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6498
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6499
6499
  const callback = (rawResponse, flatResponse) => {
6500
6500
  currentRawResponse = rawResponse;
6501
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6501
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6502
6502
  };
6503
6503
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6504
6504
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6517,8 +6517,8 @@ class ManagedHsmsImpl {
6517
6517
  spec: deleteOperationSpec$1
6518
6518
  });
6519
6519
  const poller = yield coreLro.createHttpPoller(lro, {
6520
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6521
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6520
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6521
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6522
6522
  });
6523
6523
  yield poller.poll();
6524
6524
  return poller;
@@ -6531,7 +6531,7 @@ class ManagedHsmsImpl {
6531
6531
  * @param options The options parameters.
6532
6532
  */
6533
6533
  beginDeleteAndWait(resourceGroupName, name, options) {
6534
- return tslib.__awaiter(this, void 0, void 0, function* () {
6534
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6535
6535
  const poller = yield this.beginDelete(resourceGroupName, name, options);
6536
6536
  return poller.pollUntilDone();
6537
6537
  });
@@ -6584,17 +6584,17 @@ class ManagedHsmsImpl {
6584
6584
  * @param options The options parameters.
6585
6585
  */
6586
6586
  beginPurgeDeleted(name, location, options) {
6587
- return tslib.__awaiter(this, void 0, void 0, function* () {
6588
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6587
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6588
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6589
6589
  return this.client.sendOperationRequest(args, spec);
6590
6590
  });
6591
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6591
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6592
6592
  var _a;
6593
6593
  let currentRawResponse = undefined;
6594
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6594
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6595
6595
  const callback = (rawResponse, flatResponse) => {
6596
6596
  currentRawResponse = rawResponse;
6597
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6597
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6598
6598
  };
6599
6599
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6600
6600
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6613,8 +6613,8 @@ class ManagedHsmsImpl {
6613
6613
  spec: purgeDeletedOperationSpec
6614
6614
  });
6615
6615
  const poller = yield coreLro.createHttpPoller(lro, {
6616
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6617
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6616
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6617
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6618
6618
  });
6619
6619
  yield poller.poll();
6620
6620
  return poller;
@@ -6627,7 +6627,7 @@ class ManagedHsmsImpl {
6627
6627
  * @param options The options parameters.
6628
6628
  */
6629
6629
  beginPurgeDeletedAndWait(name, location, options) {
6630
- return tslib.__awaiter(this, void 0, void 0, function* () {
6630
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6631
6631
  const poller = yield this.beginPurgeDeleted(name, location, options);
6632
6632
  return poller.pollUntilDone();
6633
6633
  });
@@ -6990,7 +6990,7 @@ class MhsmPrivateEndpointConnectionsImpl {
6990
6990
  return this;
6991
6991
  },
6992
6992
  byPage: (settings) => {
6993
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6993
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6994
6994
  throw new Error("maxPageSize is not supported by this operation.");
6995
6995
  }
6996
6996
  return this.listByResourcePagingPage(resourceGroupName, name, options, settings);
@@ -7000,7 +7000,7 @@ class MhsmPrivateEndpointConnectionsImpl {
7000
7000
  listByResourcePagingPage(resourceGroupName, name, options, settings) {
7001
7001
  return tslib.__asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
7002
7002
  let result;
7003
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7003
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
7004
7004
  if (!continuationToken) {
7005
7005
  result = yield tslib.__await(this._listByResource(resourceGroupName, name, options));
7006
7006
  let page = result.value || [];
@@ -7085,17 +7085,17 @@ class MhsmPrivateEndpointConnectionsImpl {
7085
7085
  * @param options The options parameters.
7086
7086
  */
7087
7087
  beginDelete(resourceGroupName, name, privateEndpointConnectionName, options) {
7088
- return tslib.__awaiter(this, void 0, void 0, function* () {
7089
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7088
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7089
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7090
7090
  return this.client.sendOperationRequest(args, spec);
7091
7091
  });
7092
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7092
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7093
7093
  var _a;
7094
7094
  let currentRawResponse = undefined;
7095
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7095
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7096
7096
  const callback = (rawResponse, flatResponse) => {
7097
7097
  currentRawResponse = rawResponse;
7098
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7098
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7099
7099
  };
7100
7100
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7101
7101
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7114,8 +7114,8 @@ class MhsmPrivateEndpointConnectionsImpl {
7114
7114
  spec: deleteOperationSpec
7115
7115
  });
7116
7116
  const poller = yield coreLro.createHttpPoller(lro, {
7117
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7118
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7117
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7118
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7119
7119
  });
7120
7120
  yield poller.poll();
7121
7121
  return poller;
@@ -7130,7 +7130,7 @@ class MhsmPrivateEndpointConnectionsImpl {
7130
7130
  * @param options The options parameters.
7131
7131
  */
7132
7132
  beginDeleteAndWait(resourceGroupName, name, privateEndpointConnectionName, options) {
7133
- return tslib.__awaiter(this, void 0, void 0, function* () {
7133
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7134
7134
  const poller = yield this.beginDelete(resourceGroupName, name, privateEndpointConnectionName, options);
7135
7135
  return poller.pollUntilDone();
7136
7136
  });
@@ -7352,7 +7352,7 @@ class MhsmRegionsImpl {
7352
7352
  return this;
7353
7353
  },
7354
7354
  byPage: (settings) => {
7355
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7355
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7356
7356
  throw new Error("maxPageSize is not supported by this operation.");
7357
7357
  }
7358
7358
  return this.listByResourcePagingPage(resourceGroupName, name, options, settings);
@@ -7362,7 +7362,7 @@ class MhsmRegionsImpl {
7362
7362
  listByResourcePagingPage(resourceGroupName, name, options, settings) {
7363
7363
  return tslib.__asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
7364
7364
  let result;
7365
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7365
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
7366
7366
  if (!continuationToken) {
7367
7367
  result = yield tslib.__await(this._listByResource(resourceGroupName, name, options));
7368
7368
  let page = result.value || [];
@@ -7495,7 +7495,7 @@ class OperationsImpl {
7495
7495
  return this;
7496
7496
  },
7497
7497
  byPage: (settings) => {
7498
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7498
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7499
7499
  throw new Error("maxPageSize is not supported by this operation.");
7500
7500
  }
7501
7501
  return this.listPagingPage(options, settings);
@@ -7505,7 +7505,7 @@ class OperationsImpl {
7505
7505
  listPagingPage(options, settings) {
7506
7506
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7507
7507
  let result;
7508
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7508
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
7509
7509
  if (!continuationToken) {
7510
7510
  result = yield tslib.__await(this._list(options));
7511
7511
  let page = result.value || [];
@@ -7627,7 +7627,7 @@ class SecretsImpl {
7627
7627
  return this;
7628
7628
  },
7629
7629
  byPage: (settings) => {
7630
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7630
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7631
7631
  throw new Error("maxPageSize is not supported by this operation.");
7632
7632
  }
7633
7633
  return this.listPagingPage(resourceGroupName, vaultName, options, settings);
@@ -7637,7 +7637,7 @@ class SecretsImpl {
7637
7637
  listPagingPage(resourceGroupName, vaultName, options, settings) {
7638
7638
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7639
7639
  let result;
7640
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7640
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
7641
7641
  if (!continuationToken) {
7642
7642
  result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
7643
7643
  let page = result.value || [];
@@ -7892,10 +7892,10 @@ class KeyVaultManagementClient extends coreClient__namespace.ServiceClient {
7892
7892
  : `${packageDetails}`;
7893
7893
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
7894
7894
  userAgentPrefix
7895
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
7895
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
7896
7896
  super(optionsWithDefaults);
7897
7897
  let bearerTokenAuthenticationPolicyFound = false;
7898
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
7898
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
7899
7899
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
7900
7900
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
7901
7901
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -7909,7 +7909,7 @@ class KeyVaultManagementClient extends coreClient__namespace.ServiceClient {
7909
7909
  });
7910
7910
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
7911
7911
  credential: credentials,
7912
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
7912
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
7913
7913
  challengeCallbacks: {
7914
7914
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
7915
7915
  }
@@ -7941,7 +7941,7 @@ class KeyVaultManagementClient extends coreClient__namespace.ServiceClient {
7941
7941
  const apiVersionPolicy = {
7942
7942
  name: "CustomApiVersionPolicy",
7943
7943
  sendRequest(request, next) {
7944
- return tslib.__awaiter(this, void 0, void 0, function* () {
7944
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7945
7945
  const param = request.url.split("?");
7946
7946
  if (param.length > 1) {
7947
7947
  const newParams = param[1].split("&").map((item) => {