@azure/arm-keyvault 3.1.1-alpha.20250206.1 → 3.1.1-alpha.20250210.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
47
47
  if (typeof page !== "object" || page === null) {
48
48
  return undefined;
49
49
  }
50
- return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
50
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
51
51
  }
52
52
  function setContinuationToken(page, continuationToken) {
53
53
  var _a;
54
54
  if (typeof page !== "object" || page === null || !continuationToken) {
55
55
  return;
56
56
  }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
58
  pageInfo.continuationToken = continuationToken;
59
59
  pageMap.set(page, pageInfo);
60
60
  }
@@ -4211,7 +4211,7 @@ class KeysImpl {
4211
4211
  return this;
4212
4212
  },
4213
4213
  byPage: (settings) => {
4214
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4214
+ if (settings === null || settings === void 0 ? void 0 : 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 === undefined ? undefined : settings.continuationToken;
4224
+ let continuationToken = settings === null || settings === void 0 ? void 0 : 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 === undefined ? undefined : settings.maxPageSize) {
4278
+ if (settings === null || settings === void 0 ? void 0 : 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 === undefined ? undefined : settings.continuationToken;
4288
+ let continuationToken = settings === null || settings === void 0 ? void 0 : 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 === undefined ? undefined : settings.maxPageSize) {
4593
+ if (settings === null || settings === void 0 ? void 0 : 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 === undefined ? undefined : settings.continuationToken;
4603
+ let continuationToken = settings === null || settings === void 0 ? void 0 : 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 === undefined ? undefined : settings.maxPageSize) {
4659
+ if (settings === null || settings === void 0 ? void 0 : 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 === undefined ? undefined : settings.continuationToken;
4669
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4670
4670
  if (!continuationToken) {
4671
4671
  result = yield tslib.__await(this._listVersions(resourceGroupName, name, keyName, options));
4672
4672
  let page = result.value || [];
@@ -4954,7 +4954,7 @@ function createLroSpec(inputs) {
4954
4954
  sendInitialRequest: () => sendOperationFn(args, spec),
4955
4955
  sendPollRequest: (path, options) => {
4956
4956
  const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
4957
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
4957
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
4958
4958
  }
4959
4959
  };
4960
4960
  }
@@ -4992,7 +4992,7 @@ class VaultsImpl {
4992
4992
  return this;
4993
4993
  },
4994
4994
  byPage: (settings) => {
4995
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4995
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4996
4996
  throw new Error("maxPageSize is not supported by this operation.");
4997
4997
  }
4998
4998
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -5002,7 +5002,7 @@ class VaultsImpl {
5002
5002
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
5003
5003
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
5004
5004
  let result;
5005
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5005
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5006
5006
  if (!continuationToken) {
5007
5007
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
5008
5008
  let page = result.value || [];
@@ -5053,7 +5053,7 @@ class VaultsImpl {
5053
5053
  return this;
5054
5054
  },
5055
5055
  byPage: (settings) => {
5056
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5056
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5057
5057
  throw new Error("maxPageSize is not supported by this operation.");
5058
5058
  }
5059
5059
  return this.listBySubscriptionPagingPage(options, settings);
@@ -5063,7 +5063,7 @@ class VaultsImpl {
5063
5063
  listBySubscriptionPagingPage(options, settings) {
5064
5064
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
5065
5065
  let result;
5066
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5066
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5067
5067
  if (!continuationToken) {
5068
5068
  result = yield tslib.__await(this._listBySubscription(options));
5069
5069
  let page = result.value || [];
@@ -5114,7 +5114,7 @@ class VaultsImpl {
5114
5114
  return this;
5115
5115
  },
5116
5116
  byPage: (settings) => {
5117
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5117
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5118
5118
  throw new Error("maxPageSize is not supported by this operation.");
5119
5119
  }
5120
5120
  return this.listDeletedPagingPage(options, settings);
@@ -5124,7 +5124,7 @@ class VaultsImpl {
5124
5124
  listDeletedPagingPage(options, settings) {
5125
5125
  return tslib.__asyncGenerator(this, arguments, function* listDeletedPagingPage_1() {
5126
5126
  let result;
5127
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5127
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5128
5128
  if (!continuationToken) {
5129
5129
  result = yield tslib.__await(this._listDeleted(options));
5130
5130
  let page = result.value || [];
@@ -5175,7 +5175,7 @@ class VaultsImpl {
5175
5175
  return this;
5176
5176
  },
5177
5177
  byPage: (settings) => {
5178
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5178
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5179
5179
  throw new Error("maxPageSize is not supported by this operation.");
5180
5180
  }
5181
5181
  return this.listPagingPage(options, settings);
@@ -5185,7 +5185,7 @@ class VaultsImpl {
5185
5185
  listPagingPage(options, settings) {
5186
5186
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
5187
5187
  let result;
5188
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5188
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5189
5189
  if (!continuationToken) {
5190
5190
  result = yield tslib.__await(this._list(options));
5191
5191
  let page = result.value || [];
@@ -5230,17 +5230,17 @@ class VaultsImpl {
5230
5230
  * @param options The options parameters.
5231
5231
  */
5232
5232
  beginCreateOrUpdate(resourceGroupName, vaultName, parameters, options) {
5233
- return tslib.__awaiter(this, undefined, undefined, function* () {
5234
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5233
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5234
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5235
5235
  return this.client.sendOperationRequest(args, spec);
5236
5236
  });
5237
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5237
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5238
5238
  var _a;
5239
5239
  let currentRawResponse = undefined;
5240
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5240
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5241
5241
  const callback = (rawResponse, flatResponse) => {
5242
5242
  currentRawResponse = rawResponse;
5243
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5243
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5244
5244
  };
5245
5245
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5246
5246
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5259,8 +5259,8 @@ class VaultsImpl {
5259
5259
  spec: createOrUpdateOperationSpec$2
5260
5260
  });
5261
5261
  const poller = yield coreLro.createHttpPoller(lro, {
5262
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5263
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5262
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5263
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5264
5264
  });
5265
5265
  yield poller.poll();
5266
5266
  return poller;
@@ -5274,7 +5274,7 @@ class VaultsImpl {
5274
5274
  * @param options The options parameters.
5275
5275
  */
5276
5276
  beginCreateOrUpdateAndWait(resourceGroupName, vaultName, parameters, options) {
5277
- return tslib.__awaiter(this, undefined, undefined, function* () {
5277
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5278
5278
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, vaultName, parameters, options);
5279
5279
  return poller.pollUntilDone();
5280
5280
  });
@@ -5357,17 +5357,17 @@ class VaultsImpl {
5357
5357
  * @param options The options parameters.
5358
5358
  */
5359
5359
  beginPurgeDeleted(vaultName, location, options) {
5360
- return tslib.__awaiter(this, undefined, undefined, function* () {
5361
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5360
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5361
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5362
5362
  return this.client.sendOperationRequest(args, spec);
5363
5363
  });
5364
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5364
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5365
5365
  var _a;
5366
5366
  let currentRawResponse = undefined;
5367
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5367
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5368
5368
  const callback = (rawResponse, flatResponse) => {
5369
5369
  currentRawResponse = rawResponse;
5370
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5370
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5371
5371
  };
5372
5372
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5373
5373
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5386,8 +5386,8 @@ class VaultsImpl {
5386
5386
  spec: purgeDeletedOperationSpec$1
5387
5387
  });
5388
5388
  const poller = yield coreLro.createHttpPoller(lro, {
5389
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5390
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5389
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5390
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5391
5391
  });
5392
5392
  yield poller.poll();
5393
5393
  return poller;
@@ -5400,7 +5400,7 @@ class VaultsImpl {
5400
5400
  * @param options The options parameters.
5401
5401
  */
5402
5402
  beginPurgeDeletedAndWait(vaultName, location, options) {
5403
- return tslib.__awaiter(this, undefined, undefined, function* () {
5403
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5404
5404
  const poller = yield this.beginPurgeDeleted(vaultName, location, options);
5405
5405
  return poller.pollUntilDone();
5406
5406
  });
@@ -5823,7 +5823,7 @@ class PrivateEndpointConnectionsImpl {
5823
5823
  return this;
5824
5824
  },
5825
5825
  byPage: (settings) => {
5826
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5826
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5827
5827
  throw new Error("maxPageSize is not supported by this operation.");
5828
5828
  }
5829
5829
  return this.listByResourcePagingPage(resourceGroupName, vaultName, options, settings);
@@ -5833,7 +5833,7 @@ class PrivateEndpointConnectionsImpl {
5833
5833
  listByResourcePagingPage(resourceGroupName, vaultName, options, settings) {
5834
5834
  return tslib.__asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
5835
5835
  let result;
5836
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5836
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5837
5837
  if (!continuationToken) {
5838
5838
  result = yield tslib.__await(this._listByResource(resourceGroupName, vaultName, options));
5839
5839
  let page = result.value || [];
@@ -5908,17 +5908,17 @@ class PrivateEndpointConnectionsImpl {
5908
5908
  * @param options The options parameters.
5909
5909
  */
5910
5910
  beginDelete(resourceGroupName, vaultName, privateEndpointConnectionName, options) {
5911
- return tslib.__awaiter(this, undefined, undefined, function* () {
5912
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5911
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5912
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5913
5913
  return this.client.sendOperationRequest(args, spec);
5914
5914
  });
5915
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5915
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5916
5916
  var _a;
5917
5917
  let currentRawResponse = undefined;
5918
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5918
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5919
5919
  const callback = (rawResponse, flatResponse) => {
5920
5920
  currentRawResponse = rawResponse;
5921
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5921
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5922
5922
  };
5923
5923
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5924
5924
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5942,8 +5942,8 @@ class PrivateEndpointConnectionsImpl {
5942
5942
  spec: deleteOperationSpec$2
5943
5943
  });
5944
5944
  const poller = yield coreLro.createHttpPoller(lro, {
5945
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5946
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5945
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5946
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5947
5947
  });
5948
5948
  yield poller.poll();
5949
5949
  return poller;
@@ -5958,7 +5958,7 @@ class PrivateEndpointConnectionsImpl {
5958
5958
  * @param options The options parameters.
5959
5959
  */
5960
5960
  beginDeleteAndWait(resourceGroupName, vaultName, privateEndpointConnectionName, options) {
5961
- return tslib.__awaiter(this, undefined, undefined, function* () {
5961
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5962
5962
  const poller = yield this.beginDelete(resourceGroupName, vaultName, privateEndpointConnectionName, options);
5963
5963
  return poller.pollUntilDone();
5964
5964
  });
@@ -6191,7 +6191,7 @@ class ManagedHsmsImpl {
6191
6191
  return this;
6192
6192
  },
6193
6193
  byPage: (settings) => {
6194
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6194
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6195
6195
  throw new Error("maxPageSize is not supported by this operation.");
6196
6196
  }
6197
6197
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -6201,7 +6201,7 @@ class ManagedHsmsImpl {
6201
6201
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
6202
6202
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
6203
6203
  let result;
6204
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6204
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6205
6205
  if (!continuationToken) {
6206
6206
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
6207
6207
  let page = result.value || [];
@@ -6252,7 +6252,7 @@ class ManagedHsmsImpl {
6252
6252
  return this;
6253
6253
  },
6254
6254
  byPage: (settings) => {
6255
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6255
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6256
6256
  throw new Error("maxPageSize is not supported by this operation.");
6257
6257
  }
6258
6258
  return this.listBySubscriptionPagingPage(options, settings);
@@ -6262,7 +6262,7 @@ class ManagedHsmsImpl {
6262
6262
  listBySubscriptionPagingPage(options, settings) {
6263
6263
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
6264
6264
  let result;
6265
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6265
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6266
6266
  if (!continuationToken) {
6267
6267
  result = yield tslib.__await(this._listBySubscription(options));
6268
6268
  let page = result.value || [];
@@ -6313,7 +6313,7 @@ class ManagedHsmsImpl {
6313
6313
  return this;
6314
6314
  },
6315
6315
  byPage: (settings) => {
6316
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6316
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6317
6317
  throw new Error("maxPageSize is not supported by this operation.");
6318
6318
  }
6319
6319
  return this.listDeletedPagingPage(options, settings);
@@ -6323,7 +6323,7 @@ class ManagedHsmsImpl {
6323
6323
  listDeletedPagingPage(options, settings) {
6324
6324
  return tslib.__asyncGenerator(this, arguments, function* listDeletedPagingPage_1() {
6325
6325
  let result;
6326
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6326
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6327
6327
  if (!continuationToken) {
6328
6328
  result = yield tslib.__await(this._listDeleted(options));
6329
6329
  let page = result.value || [];
@@ -6368,17 +6368,17 @@ class ManagedHsmsImpl {
6368
6368
  * @param options The options parameters.
6369
6369
  */
6370
6370
  beginCreateOrUpdate(resourceGroupName, name, parameters, options) {
6371
- return tslib.__awaiter(this, undefined, undefined, function* () {
6372
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6371
+ return tslib.__awaiter(this, void 0, void 0, function* () {
6372
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6373
6373
  return this.client.sendOperationRequest(args, spec);
6374
6374
  });
6375
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6375
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6376
6376
  var _a;
6377
6377
  let currentRawResponse = undefined;
6378
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6378
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6379
6379
  const callback = (rawResponse, flatResponse) => {
6380
6380
  currentRawResponse = rawResponse;
6381
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6381
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6382
6382
  };
6383
6383
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6384
6384
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6397,8 +6397,8 @@ class ManagedHsmsImpl {
6397
6397
  spec: createOrUpdateOperationSpec$1
6398
6398
  });
6399
6399
  const poller = yield coreLro.createHttpPoller(lro, {
6400
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6401
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6400
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6401
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6402
6402
  });
6403
6403
  yield poller.poll();
6404
6404
  return poller;
@@ -6412,7 +6412,7 @@ class ManagedHsmsImpl {
6412
6412
  * @param options The options parameters.
6413
6413
  */
6414
6414
  beginCreateOrUpdateAndWait(resourceGroupName, name, parameters, options) {
6415
- return tslib.__awaiter(this, undefined, undefined, function* () {
6415
+ return tslib.__awaiter(this, void 0, void 0, function* () {
6416
6416
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, name, parameters, options);
6417
6417
  return poller.pollUntilDone();
6418
6418
  });
@@ -6425,17 +6425,17 @@ class ManagedHsmsImpl {
6425
6425
  * @param options The options parameters.
6426
6426
  */
6427
6427
  beginUpdate(resourceGroupName, name, parameters, options) {
6428
- return tslib.__awaiter(this, undefined, undefined, function* () {
6429
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6428
+ return tslib.__awaiter(this, void 0, void 0, function* () {
6429
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6430
6430
  return this.client.sendOperationRequest(args, spec);
6431
6431
  });
6432
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6432
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6433
6433
  var _a;
6434
6434
  let currentRawResponse = undefined;
6435
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6435
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6436
6436
  const callback = (rawResponse, flatResponse) => {
6437
6437
  currentRawResponse = rawResponse;
6438
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6438
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6439
6439
  };
6440
6440
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6441
6441
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6454,8 +6454,8 @@ class ManagedHsmsImpl {
6454
6454
  spec: updateOperationSpec$1
6455
6455
  });
6456
6456
  const poller = yield coreLro.createHttpPoller(lro, {
6457
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6458
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6457
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6458
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6459
6459
  });
6460
6460
  yield poller.poll();
6461
6461
  return poller;
@@ -6469,7 +6469,7 @@ class ManagedHsmsImpl {
6469
6469
  * @param options The options parameters.
6470
6470
  */
6471
6471
  beginUpdateAndWait(resourceGroupName, name, parameters, options) {
6472
- return tslib.__awaiter(this, undefined, undefined, function* () {
6472
+ return tslib.__awaiter(this, void 0, void 0, function* () {
6473
6473
  const poller = yield this.beginUpdate(resourceGroupName, name, parameters, options);
6474
6474
  return poller.pollUntilDone();
6475
6475
  });
@@ -6481,17 +6481,17 @@ class ManagedHsmsImpl {
6481
6481
  * @param options The options parameters.
6482
6482
  */
6483
6483
  beginDelete(resourceGroupName, name, options) {
6484
- return tslib.__awaiter(this, undefined, undefined, function* () {
6485
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6484
+ return tslib.__awaiter(this, void 0, void 0, function* () {
6485
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6486
6486
  return this.client.sendOperationRequest(args, spec);
6487
6487
  });
6488
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6488
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6489
6489
  var _a;
6490
6490
  let currentRawResponse = undefined;
6491
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6491
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6492
6492
  const callback = (rawResponse, flatResponse) => {
6493
6493
  currentRawResponse = rawResponse;
6494
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6494
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6495
6495
  };
6496
6496
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6497
6497
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6510,8 +6510,8 @@ class ManagedHsmsImpl {
6510
6510
  spec: deleteOperationSpec$1
6511
6511
  });
6512
6512
  const poller = yield coreLro.createHttpPoller(lro, {
6513
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6514
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6513
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6514
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6515
6515
  });
6516
6516
  yield poller.poll();
6517
6517
  return poller;
@@ -6524,7 +6524,7 @@ class ManagedHsmsImpl {
6524
6524
  * @param options The options parameters.
6525
6525
  */
6526
6526
  beginDeleteAndWait(resourceGroupName, name, options) {
6527
- return tslib.__awaiter(this, undefined, undefined, function* () {
6527
+ return tslib.__awaiter(this, void 0, void 0, function* () {
6528
6528
  const poller = yield this.beginDelete(resourceGroupName, name, options);
6529
6529
  return poller.pollUntilDone();
6530
6530
  });
@@ -6577,17 +6577,17 @@ class ManagedHsmsImpl {
6577
6577
  * @param options The options parameters.
6578
6578
  */
6579
6579
  beginPurgeDeleted(name, location, options) {
6580
- return tslib.__awaiter(this, undefined, undefined, function* () {
6581
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6580
+ return tslib.__awaiter(this, void 0, void 0, function* () {
6581
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6582
6582
  return this.client.sendOperationRequest(args, spec);
6583
6583
  });
6584
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6584
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6585
6585
  var _a;
6586
6586
  let currentRawResponse = undefined;
6587
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6587
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6588
6588
  const callback = (rawResponse, flatResponse) => {
6589
6589
  currentRawResponse = rawResponse;
6590
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6590
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6591
6591
  };
6592
6592
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6593
6593
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6606,8 +6606,8 @@ class ManagedHsmsImpl {
6606
6606
  spec: purgeDeletedOperationSpec
6607
6607
  });
6608
6608
  const poller = yield coreLro.createHttpPoller(lro, {
6609
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6610
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6609
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6610
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6611
6611
  });
6612
6612
  yield poller.poll();
6613
6613
  return poller;
@@ -6620,7 +6620,7 @@ class ManagedHsmsImpl {
6620
6620
  * @param options The options parameters.
6621
6621
  */
6622
6622
  beginPurgeDeletedAndWait(name, location, options) {
6623
- return tslib.__awaiter(this, undefined, undefined, function* () {
6623
+ return tslib.__awaiter(this, void 0, void 0, function* () {
6624
6624
  const poller = yield this.beginPurgeDeleted(name, location, options);
6625
6625
  return poller.pollUntilDone();
6626
6626
  });
@@ -6983,7 +6983,7 @@ class MhsmPrivateEndpointConnectionsImpl {
6983
6983
  return this;
6984
6984
  },
6985
6985
  byPage: (settings) => {
6986
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6986
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6987
6987
  throw new Error("maxPageSize is not supported by this operation.");
6988
6988
  }
6989
6989
  return this.listByResourcePagingPage(resourceGroupName, name, options, settings);
@@ -6993,7 +6993,7 @@ class MhsmPrivateEndpointConnectionsImpl {
6993
6993
  listByResourcePagingPage(resourceGroupName, name, options, settings) {
6994
6994
  return tslib.__asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
6995
6995
  let result;
6996
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6996
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6997
6997
  if (!continuationToken) {
6998
6998
  result = yield tslib.__await(this._listByResource(resourceGroupName, name, options));
6999
6999
  let page = result.value || [];
@@ -7078,17 +7078,17 @@ class MhsmPrivateEndpointConnectionsImpl {
7078
7078
  * @param options The options parameters.
7079
7079
  */
7080
7080
  beginDelete(resourceGroupName, name, privateEndpointConnectionName, options) {
7081
- return tslib.__awaiter(this, undefined, undefined, function* () {
7082
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7081
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7082
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7083
7083
  return this.client.sendOperationRequest(args, spec);
7084
7084
  });
7085
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7085
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7086
7086
  var _a;
7087
7087
  let currentRawResponse = undefined;
7088
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7088
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7089
7089
  const callback = (rawResponse, flatResponse) => {
7090
7090
  currentRawResponse = rawResponse;
7091
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7091
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7092
7092
  };
7093
7093
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7094
7094
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7107,8 +7107,8 @@ class MhsmPrivateEndpointConnectionsImpl {
7107
7107
  spec: deleteOperationSpec
7108
7108
  });
7109
7109
  const poller = yield coreLro.createHttpPoller(lro, {
7110
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7111
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7110
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7111
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7112
7112
  });
7113
7113
  yield poller.poll();
7114
7114
  return poller;
@@ -7123,7 +7123,7 @@ class MhsmPrivateEndpointConnectionsImpl {
7123
7123
  * @param options The options parameters.
7124
7124
  */
7125
7125
  beginDeleteAndWait(resourceGroupName, name, privateEndpointConnectionName, options) {
7126
- return tslib.__awaiter(this, undefined, undefined, function* () {
7126
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7127
7127
  const poller = yield this.beginDelete(resourceGroupName, name, privateEndpointConnectionName, options);
7128
7128
  return poller.pollUntilDone();
7129
7129
  });
@@ -7345,7 +7345,7 @@ class MhsmRegionsImpl {
7345
7345
  return this;
7346
7346
  },
7347
7347
  byPage: (settings) => {
7348
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7348
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7349
7349
  throw new Error("maxPageSize is not supported by this operation.");
7350
7350
  }
7351
7351
  return this.listByResourcePagingPage(resourceGroupName, name, options, settings);
@@ -7355,7 +7355,7 @@ class MhsmRegionsImpl {
7355
7355
  listByResourcePagingPage(resourceGroupName, name, options, settings) {
7356
7356
  return tslib.__asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
7357
7357
  let result;
7358
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
7358
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7359
7359
  if (!continuationToken) {
7360
7360
  result = yield tslib.__await(this._listByResource(resourceGroupName, name, options));
7361
7361
  let page = result.value || [];
@@ -7488,7 +7488,7 @@ class OperationsImpl {
7488
7488
  return this;
7489
7489
  },
7490
7490
  byPage: (settings) => {
7491
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7491
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7492
7492
  throw new Error("maxPageSize is not supported by this operation.");
7493
7493
  }
7494
7494
  return this.listPagingPage(options, settings);
@@ -7498,7 +7498,7 @@ class OperationsImpl {
7498
7498
  listPagingPage(options, settings) {
7499
7499
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7500
7500
  let result;
7501
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
7501
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7502
7502
  if (!continuationToken) {
7503
7503
  result = yield tslib.__await(this._list(options));
7504
7504
  let page = result.value || [];
@@ -7620,7 +7620,7 @@ class SecretsImpl {
7620
7620
  return this;
7621
7621
  },
7622
7622
  byPage: (settings) => {
7623
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7623
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7624
7624
  throw new Error("maxPageSize is not supported by this operation.");
7625
7625
  }
7626
7626
  return this.listPagingPage(resourceGroupName, vaultName, options, settings);
@@ -7630,7 +7630,7 @@ class SecretsImpl {
7630
7630
  listPagingPage(resourceGroupName, vaultName, options, settings) {
7631
7631
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7632
7632
  let result;
7633
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
7633
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7634
7634
  if (!continuationToken) {
7635
7635
  result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
7636
7636
  let page = result.value || [];
@@ -7885,10 +7885,10 @@ class KeyVaultManagementClient extends coreClient__namespace.ServiceClient {
7885
7885
  : `${packageDetails}`;
7886
7886
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
7887
7887
  userAgentPrefix
7888
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
7888
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
7889
7889
  super(optionsWithDefaults);
7890
7890
  let bearerTokenAuthenticationPolicyFound = false;
7891
- if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
7891
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
7892
7892
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
7893
7893
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
7894
7894
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -7902,7 +7902,7 @@ class KeyVaultManagementClient extends coreClient__namespace.ServiceClient {
7902
7902
  });
7903
7903
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
7904
7904
  credential: credentials,
7905
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
7905
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
7906
7906
  challengeCallbacks: {
7907
7907
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
7908
7908
  }
@@ -7934,7 +7934,7 @@ class KeyVaultManagementClient extends coreClient__namespace.ServiceClient {
7934
7934
  const apiVersionPolicy = {
7935
7935
  name: "CustomApiVersionPolicy",
7936
7936
  sendRequest(request, next) {
7937
- return tslib.__awaiter(this, undefined, undefined, function* () {
7937
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7938
7938
  const param = request.url.split("?");
7939
7939
  if (param.length > 1) {
7940
7940
  const newParams = param[1].split("&").map((item) => {