@azure/arm-keyvault 2.1.0-beta.1 → 2.1.0-beta.2

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.
Files changed (66) hide show
  1. package/CHANGELOG.md +12 -3
  2. package/README.md +1 -1
  3. package/dist/index.js +450 -110
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/src/index.d.ts +1 -0
  8. package/dist-esm/src/index.d.ts.map +1 -1
  9. package/dist-esm/src/index.js +1 -0
  10. package/dist-esm/src/index.js.map +1 -1
  11. package/dist-esm/src/keyVaultManagementClient.d.ts +2 -0
  12. package/dist-esm/src/keyVaultManagementClient.d.ts.map +1 -1
  13. package/dist-esm/src/keyVaultManagementClient.js +49 -18
  14. package/dist-esm/src/keyVaultManagementClient.js.map +1 -1
  15. package/dist-esm/src/models/index.d.ts +132 -15
  16. package/dist-esm/src/models/index.d.ts.map +1 -1
  17. package/dist-esm/src/models/index.js +107 -0
  18. package/dist-esm/src/models/index.js.map +1 -1
  19. package/dist-esm/src/models/mappers.d.ts +1 -0
  20. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  21. package/dist-esm/src/models/mappers.js +26 -0
  22. package/dist-esm/src/models/mappers.js.map +1 -1
  23. package/dist-esm/src/operations/keys.d.ts.map +1 -1
  24. package/dist-esm/src/operations/keys.js +37 -14
  25. package/dist-esm/src/operations/keys.js.map +1 -1
  26. package/dist-esm/src/operations/managedHsms.d.ts.map +1 -1
  27. package/dist-esm/src/operations/managedHsms.js +55 -21
  28. package/dist-esm/src/operations/managedHsms.js.map +1 -1
  29. package/dist-esm/src/operations/mhsmPrivateEndpointConnections.d.ts.map +1 -1
  30. package/dist-esm/src/operations/mhsmPrivateEndpointConnections.js +19 -7
  31. package/dist-esm/src/operations/mhsmPrivateEndpointConnections.js.map +1 -1
  32. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  33. package/dist-esm/src/operations/operations.js +19 -7
  34. package/dist-esm/src/operations/operations.js.map +1 -1
  35. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  36. package/dist-esm/src/operations/privateEndpointConnections.js +19 -7
  37. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  38. package/dist-esm/src/operations/secrets.d.ts.map +1 -1
  39. package/dist-esm/src/operations/secrets.js +19 -7
  40. package/dist-esm/src/operations/secrets.js.map +1 -1
  41. package/dist-esm/src/operations/vaults.d.ts.map +1 -1
  42. package/dist-esm/src/operations/vaults.js +73 -28
  43. package/dist-esm/src/operations/vaults.js.map +1 -1
  44. package/dist-esm/src/pagingHelper.d.ts +13 -0
  45. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  46. package/dist-esm/src/pagingHelper.js +32 -0
  47. package/dist-esm/src/pagingHelper.js.map +1 -0
  48. package/dist-esm/test/keyvault_examples.d.ts.map +1 -1
  49. package/dist-esm/test/keyvault_examples.js +17 -19
  50. package/dist-esm/test/keyvault_examples.js.map +1 -1
  51. package/package.json +15 -11
  52. package/review/arm-keyvault.api.md +30 -123
  53. package/src/index.ts +1 -0
  54. package/src/keyVaultManagementClient.ts +60 -20
  55. package/src/models/index.ts +132 -15
  56. package/src/models/mappers.ts +27 -0
  57. package/src/operations/keys.ts +53 -22
  58. package/src/operations/managedHsms.ts +66 -25
  59. package/src/operations/mhsmPrivateEndpointConnections.ts +26 -8
  60. package/src/operations/operations.ts +21 -8
  61. package/src/operations/privateEndpointConnections.ts +27 -13
  62. package/src/operations/secrets.ts +27 -9
  63. package/src/operations/vaults.ts +86 -33
  64. package/src/pagingHelper.ts +39 -0
  65. package/types/arm-keyvault.d.ts +144 -15
  66. package/types/tsdoc-metadata.json +1 -1
@@ -621,6 +621,10 @@ export interface MhsmVirtualNetworkRule {
621
621
 
622
622
  /** Private endpoint connection item. */
623
623
  export interface MhsmPrivateEndpointConnectionItem {
624
+ /** Id of private endpoint connection. */
625
+ id?: string;
626
+ /** Modified whenever there is a change in the state of private endpoint connection. */
627
+ etag?: string;
624
628
  /** Properties of the private endpoint object. */
625
629
  privateEndpoint?: MhsmPrivateEndpoint;
626
630
  /** Approval state of the private link connection. */
@@ -961,7 +965,7 @@ export interface SecretListResult {
961
965
  }
962
966
 
963
967
  /** The key resource. */
964
- export type Key = Resource & {
968
+ export interface Key extends Resource {
965
969
  /** The attributes of the key. */
966
970
  attributes?: KeyAttributes;
967
971
  /** The type of the key. For valid values, see JsonWebKeyType. */
@@ -985,10 +989,10 @@ export type Key = Resource & {
985
989
  rotationPolicy?: RotationPolicy;
986
990
  /** Key release policy in response. It will be used for both output and input. Omitted if empty */
987
991
  releasePolicy?: KeyReleasePolicy;
988
- };
992
+ }
989
993
 
990
994
  /** Private endpoint connection resource. */
991
- export type PrivateEndpointConnection = Resource & {
995
+ export interface PrivateEndpointConnection extends Resource {
992
996
  /** Modified whenever there is a change in the state of private endpoint connection. */
993
997
  etag?: string;
994
998
  /** Properties of the private endpoint object. */
@@ -997,10 +1001,10 @@ export type PrivateEndpointConnection = Resource & {
997
1001
  privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
998
1002
  /** Provisioning state of the private endpoint connection. */
999
1003
  provisioningState?: PrivateEndpointConnectionProvisioningState;
1000
- };
1004
+ }
1001
1005
 
1002
1006
  /** A private link resource */
1003
- export type PrivateLinkResource = Resource & {
1007
+ export interface PrivateLinkResource extends Resource {
1004
1008
  /**
1005
1009
  * Group identifier of private link resource.
1006
1010
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1013,22 +1017,22 @@ export type PrivateLinkResource = Resource & {
1013
1017
  readonly requiredMembers?: string[];
1014
1018
  /** Required DNS zone names of the the private link resource. */
1015
1019
  requiredZoneNames?: string[];
1016
- };
1020
+ }
1017
1021
 
1018
1022
  /** Resource information with extended details. */
1019
- export type Secret = Resource & {
1023
+ export interface Secret extends Resource {
1020
1024
  /** Properties of the secret */
1021
1025
  properties: SecretProperties;
1022
- };
1026
+ }
1023
1027
 
1024
1028
  /** Resource information with extended details. */
1025
- export type ManagedHsm = ManagedHsmResource & {
1029
+ export interface ManagedHsm extends ManagedHsmResource {
1026
1030
  /** Properties of the managed HSM */
1027
1031
  properties?: ManagedHsmProperties;
1028
- };
1032
+ }
1029
1033
 
1030
1034
  /** Private endpoint connection resource. */
1031
- export type MhsmPrivateEndpointConnection = ManagedHsmResource & {
1035
+ export interface MhsmPrivateEndpointConnection extends ManagedHsmResource {
1032
1036
  /** Modified whenever there is a change in the state of private endpoint connection. */
1033
1037
  etag?: string;
1034
1038
  /** Properties of the private endpoint object. */
@@ -1037,10 +1041,10 @@ export type MhsmPrivateEndpointConnection = ManagedHsmResource & {
1037
1041
  privateLinkServiceConnectionState?: MhsmPrivateLinkServiceConnectionState;
1038
1042
  /** Provisioning state of the private endpoint connection. */
1039
1043
  provisioningState?: PrivateEndpointConnectionProvisioningState;
1040
- };
1044
+ }
1041
1045
 
1042
1046
  /** A private link resource */
1043
- export type MhsmPrivateLinkResource = ManagedHsmResource & {
1047
+ export interface MhsmPrivateLinkResource extends ManagedHsmResource {
1044
1048
  /**
1045
1049
  * Group identifier of private link resource.
1046
1050
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1053,10 +1057,10 @@ export type MhsmPrivateLinkResource = ManagedHsmResource & {
1053
1057
  readonly requiredMembers?: string[];
1054
1058
  /** Required DNS zone names of the the private link resource. */
1055
1059
  requiredZoneNames?: string[];
1056
- };
1060
+ }
1057
1061
 
1058
1062
  /** The secret management attributes. */
1059
- export type SecretAttributes = Attributes & {};
1063
+ export interface SecretAttributes extends Attributes {}
1060
1064
 
1061
1065
  /** Defines headers for PrivateEndpointConnections_put operation. */
1062
1066
  export interface PrivateEndpointConnectionsPutHeaders {
@@ -1074,6 +1078,12 @@ export interface PrivateEndpointConnectionsDeleteHeaders {
1074
1078
  location?: string;
1075
1079
  }
1076
1080
 
1081
+ /** Defines headers for ManagedHsms_update operation. */
1082
+ export interface ManagedHsmsUpdateHeaders {
1083
+ /** The URI to poll for completion status. */
1084
+ location?: string;
1085
+ }
1086
+
1077
1087
  /** Defines headers for MhsmPrivateEndpointConnections_put operation. */
1078
1088
  export interface MhsmPrivateEndpointConnectionsPutHeaders {
1079
1089
  /** (specified only if operation does not finish synchronously) The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation. */
@@ -1092,9 +1102,13 @@ export interface MhsmPrivateEndpointConnectionsDeleteHeaders {
1092
1102
 
1093
1103
  /** Known values of {@link DeletionRecoveryLevel} that the service accepts. */
1094
1104
  export enum KnownDeletionRecoveryLevel {
1105
+ /** Purgeable */
1095
1106
  Purgeable = "Purgeable",
1107
+ /** RecoverablePurgeable */
1096
1108
  RecoverablePurgeable = "Recoverable+Purgeable",
1109
+ /** Recoverable */
1097
1110
  Recoverable = "Recoverable",
1111
+ /** RecoverableProtectedSubscription */
1098
1112
  RecoverableProtectedSubscription = "Recoverable+ProtectedSubscription"
1099
1113
  }
1100
1114
 
@@ -1112,9 +1126,13 @@ export type DeletionRecoveryLevel = string;
1112
1126
 
1113
1127
  /** Known values of {@link JsonWebKeyType} that the service accepts. */
1114
1128
  export enum KnownJsonWebKeyType {
1129
+ /** EC */
1115
1130
  EC = "EC",
1131
+ /** ECHSM */
1116
1132
  ECHSM = "EC-HSM",
1133
+ /** RSA */
1117
1134
  RSA = "RSA",
1135
+ /** RSAHSM */
1118
1136
  RSAHSM = "RSA-HSM"
1119
1137
  }
1120
1138
 
@@ -1132,13 +1150,21 @@ export type JsonWebKeyType = string;
1132
1150
 
1133
1151
  /** Known values of {@link JsonWebKeyOperation} that the service accepts. */
1134
1152
  export enum KnownJsonWebKeyOperation {
1153
+ /** Encrypt */
1135
1154
  Encrypt = "encrypt",
1155
+ /** Decrypt */
1136
1156
  Decrypt = "decrypt",
1157
+ /** Sign */
1137
1158
  Sign = "sign",
1159
+ /** Verify */
1138
1160
  Verify = "verify",
1161
+ /** WrapKey */
1139
1162
  WrapKey = "wrapKey",
1163
+ /** UnwrapKey */
1140
1164
  UnwrapKey = "unwrapKey",
1165
+ /** Import */
1141
1166
  Import = "import",
1167
+ /** Release */
1142
1168
  Release = "release"
1143
1169
  }
1144
1170
 
@@ -1160,9 +1186,13 @@ export type JsonWebKeyOperation = string;
1160
1186
 
1161
1187
  /** Known values of {@link JsonWebKeyCurveName} that the service accepts. */
1162
1188
  export enum KnownJsonWebKeyCurveName {
1189
+ /** P256 */
1163
1190
  P256 = "P-256",
1191
+ /** P384 */
1164
1192
  P384 = "P-384",
1193
+ /** P521 */
1165
1194
  P521 = "P-521",
1195
+ /** P256K */
1166
1196
  P256K = "P-256K"
1167
1197
  }
1168
1198
 
@@ -1180,6 +1210,7 @@ export type JsonWebKeyCurveName = string;
1180
1210
 
1181
1211
  /** Known values of {@link SkuFamily} that the service accepts. */
1182
1212
  export enum KnownSkuFamily {
1213
+ /** A */
1183
1214
  A = "A"
1184
1215
  }
1185
1216
 
@@ -1194,26 +1225,47 @@ export type SkuFamily = string;
1194
1225
 
1195
1226
  /** Known values of {@link KeyPermissions} that the service accepts. */
1196
1227
  export enum KnownKeyPermissions {
1228
+ /** All */
1197
1229
  All = "all",
1230
+ /** Encrypt */
1198
1231
  Encrypt = "encrypt",
1232
+ /** Decrypt */
1199
1233
  Decrypt = "decrypt",
1234
+ /** WrapKey */
1200
1235
  WrapKey = "wrapKey",
1236
+ /** UnwrapKey */
1201
1237
  UnwrapKey = "unwrapKey",
1238
+ /** Sign */
1202
1239
  Sign = "sign",
1240
+ /** Verify */
1203
1241
  Verify = "verify",
1242
+ /** Get */
1204
1243
  Get = "get",
1244
+ /** List */
1205
1245
  List = "list",
1246
+ /** Create */
1206
1247
  Create = "create",
1248
+ /** Update */
1207
1249
  Update = "update",
1250
+ /** Import */
1208
1251
  Import = "import",
1252
+ /** Delete */
1209
1253
  Delete = "delete",
1254
+ /** Backup */
1210
1255
  Backup = "backup",
1256
+ /** Restore */
1211
1257
  Restore = "restore",
1258
+ /** Recover */
1212
1259
  Recover = "recover",
1260
+ /** Purge */
1213
1261
  Purge = "purge",
1262
+ /** Release */
1214
1263
  Release = "release",
1264
+ /** Rotate */
1215
1265
  Rotate = "rotate",
1266
+ /** Getrotationpolicy */
1216
1267
  Getrotationpolicy = "getrotationpolicy",
1268
+ /** Setrotationpolicy */
1217
1269
  Setrotationpolicy = "setrotationpolicy"
1218
1270
  }
1219
1271
 
@@ -1248,14 +1300,23 @@ export type KeyPermissions = string;
1248
1300
 
1249
1301
  /** Known values of {@link SecretPermissions} that the service accepts. */
1250
1302
  export enum KnownSecretPermissions {
1303
+ /** All */
1251
1304
  All = "all",
1305
+ /** Get */
1252
1306
  Get = "get",
1307
+ /** List */
1253
1308
  List = "list",
1309
+ /** Set */
1254
1310
  Set = "set",
1311
+ /** Delete */
1255
1312
  Delete = "delete",
1313
+ /** Backup */
1256
1314
  Backup = "backup",
1315
+ /** Restore */
1257
1316
  Restore = "restore",
1317
+ /** Recover */
1258
1318
  Recover = "recover",
1319
+ /** Purge */
1259
1320
  Purge = "purge"
1260
1321
  }
1261
1322
 
@@ -1278,22 +1339,39 @@ export type SecretPermissions = string;
1278
1339
 
1279
1340
  /** Known values of {@link CertificatePermissions} that the service accepts. */
1280
1341
  export enum KnownCertificatePermissions {
1342
+ /** All */
1281
1343
  All = "all",
1344
+ /** Get */
1282
1345
  Get = "get",
1346
+ /** List */
1283
1347
  List = "list",
1348
+ /** Delete */
1284
1349
  Delete = "delete",
1350
+ /** Create */
1285
1351
  Create = "create",
1352
+ /** Import */
1286
1353
  Import = "import",
1354
+ /** Update */
1287
1355
  Update = "update",
1356
+ /** Managecontacts */
1288
1357
  Managecontacts = "managecontacts",
1358
+ /** Getissuers */
1289
1359
  Getissuers = "getissuers",
1360
+ /** Listissuers */
1290
1361
  Listissuers = "listissuers",
1362
+ /** Setissuers */
1291
1363
  Setissuers = "setissuers",
1364
+ /** Deleteissuers */
1292
1365
  Deleteissuers = "deleteissuers",
1366
+ /** Manageissuers */
1293
1367
  Manageissuers = "manageissuers",
1368
+ /** Recover */
1294
1369
  Recover = "recover",
1370
+ /** Purge */
1295
1371
  Purge = "purge",
1372
+ /** Backup */
1296
1373
  Backup = "backup",
1374
+ /** Restore */
1297
1375
  Restore = "restore"
1298
1376
  }
1299
1377
 
@@ -1324,20 +1402,35 @@ export type CertificatePermissions = string;
1324
1402
 
1325
1403
  /** Known values of {@link StoragePermissions} that the service accepts. */
1326
1404
  export enum KnownStoragePermissions {
1405
+ /** All */
1327
1406
  All = "all",
1407
+ /** Get */
1328
1408
  Get = "get",
1409
+ /** List */
1329
1410
  List = "list",
1411
+ /** Delete */
1330
1412
  Delete = "delete",
1413
+ /** Set */
1331
1414
  Set = "set",
1415
+ /** Update */
1332
1416
  Update = "update",
1417
+ /** Regeneratekey */
1333
1418
  Regeneratekey = "regeneratekey",
1419
+ /** Recover */
1334
1420
  Recover = "recover",
1421
+ /** Purge */
1335
1422
  Purge = "purge",
1423
+ /** Backup */
1336
1424
  Backup = "backup",
1425
+ /** Restore */
1337
1426
  Restore = "restore",
1427
+ /** Setsas */
1338
1428
  Setsas = "setsas",
1429
+ /** Listsas */
1339
1430
  Listsas = "listsas",
1431
+ /** Getsas */
1340
1432
  Getsas = "getsas",
1433
+ /** Deletesas */
1341
1434
  Deletesas = "deletesas"
1342
1435
  }
1343
1436
 
@@ -1366,7 +1459,9 @@ export type StoragePermissions = string;
1366
1459
 
1367
1460
  /** Known values of {@link NetworkRuleBypassOptions} that the service accepts. */
1368
1461
  export enum KnownNetworkRuleBypassOptions {
1462
+ /** AzureServices */
1369
1463
  AzureServices = "AzureServices",
1464
+ /** None */
1370
1465
  None = "None"
1371
1466
  }
1372
1467
 
@@ -1382,7 +1477,9 @@ export type NetworkRuleBypassOptions = string;
1382
1477
 
1383
1478
  /** Known values of {@link NetworkRuleAction} that the service accepts. */
1384
1479
  export enum KnownNetworkRuleAction {
1480
+ /** Allow */
1385
1481
  Allow = "Allow",
1482
+ /** Deny */
1386
1483
  Deny = "Deny"
1387
1484
  }
1388
1485
 
@@ -1398,7 +1495,9 @@ export type NetworkRuleAction = string;
1398
1495
 
1399
1496
  /** Known values of {@link VaultProvisioningState} that the service accepts. */
1400
1497
  export enum KnownVaultProvisioningState {
1498
+ /** Succeeded */
1401
1499
  Succeeded = "Succeeded",
1500
+ /** RegisteringDns */
1402
1501
  RegisteringDns = "RegisteringDns"
1403
1502
  }
1404
1503
 
@@ -1414,9 +1513,13 @@ export type VaultProvisioningState = string;
1414
1513
 
1415
1514
  /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
1416
1515
  export enum KnownPrivateEndpointServiceConnectionStatus {
1516
+ /** Pending */
1417
1517
  Pending = "Pending",
1518
+ /** Approved */
1418
1519
  Approved = "Approved",
1520
+ /** Rejected */
1419
1521
  Rejected = "Rejected",
1522
+ /** Disconnected */
1420
1523
  Disconnected = "Disconnected"
1421
1524
  }
1422
1525
 
@@ -1434,6 +1537,7 @@ export type PrivateEndpointServiceConnectionStatus = string;
1434
1537
 
1435
1538
  /** Known values of {@link ActionsRequired} that the service accepts. */
1436
1539
  export enum KnownActionsRequired {
1540
+ /** None */
1437
1541
  None = "None"
1438
1542
  }
1439
1543
 
@@ -1448,11 +1552,17 @@ export type ActionsRequired = string;
1448
1552
 
1449
1553
  /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
1450
1554
  export enum KnownPrivateEndpointConnectionProvisioningState {
1555
+ /** Succeeded */
1451
1556
  Succeeded = "Succeeded",
1557
+ /** Creating */
1452
1558
  Creating = "Creating",
1559
+ /** Updating */
1453
1560
  Updating = "Updating",
1561
+ /** Deleting */
1454
1562
  Deleting = "Deleting",
1563
+ /** Failed */
1455
1564
  Failed = "Failed",
1565
+ /** Disconnected */
1456
1566
  Disconnected = "Disconnected"
1457
1567
  }
1458
1568
 
@@ -1472,9 +1582,13 @@ export type PrivateEndpointConnectionProvisioningState = string;
1472
1582
 
1473
1583
  /** Known values of {@link IdentityType} that the service accepts. */
1474
1584
  export enum KnownIdentityType {
1585
+ /** User */
1475
1586
  User = "User",
1587
+ /** Application */
1476
1588
  Application = "Application",
1589
+ /** ManagedIdentity */
1477
1590
  ManagedIdentity = "ManagedIdentity",
1591
+ /** Key */
1478
1592
  Key = "Key"
1479
1593
  }
1480
1594
 
@@ -1528,7 +1642,9 @@ export type ProvisioningState = string;
1528
1642
 
1529
1643
  /** Known values of {@link PublicNetworkAccess} that the service accepts. */
1530
1644
  export enum KnownPublicNetworkAccess {
1645
+ /** Enabled */
1531
1646
  Enabled = "Enabled",
1647
+ /** Disabled */
1532
1648
  Disabled = "Disabled"
1533
1649
  }
1534
1650
 
@@ -1544,6 +1660,7 @@ export type PublicNetworkAccess = string;
1544
1660
 
1545
1661
  /** Known values of {@link ManagedHsmSkuFamily} that the service accepts. */
1546
1662
  export enum KnownManagedHsmSkuFamily {
1663
+ /** B */
1547
1664
  B = "B"
1548
1665
  }
1549
1666
 
@@ -1599,6 +1599,18 @@ export const MhsmPrivateEndpointConnectionItem: coreClient.CompositeMapper = {
1599
1599
  name: "Composite",
1600
1600
  className: "MhsmPrivateEndpointConnectionItem",
1601
1601
  modelProperties: {
1602
+ id: {
1603
+ serializedName: "id",
1604
+ type: {
1605
+ name: "String"
1606
+ }
1607
+ },
1608
+ etag: {
1609
+ serializedName: "etag",
1610
+ type: {
1611
+ name: "String"
1612
+ }
1613
+ },
1602
1614
  privateEndpoint: {
1603
1615
  serializedName: "properties.privateEndpoint",
1604
1616
  type: {
@@ -2759,6 +2771,21 @@ export const PrivateEndpointConnectionsDeleteHeaders: coreClient.CompositeMapper
2759
2771
  }
2760
2772
  };
2761
2773
 
2774
+ export const ManagedHsmsUpdateHeaders: coreClient.CompositeMapper = {
2775
+ type: {
2776
+ name: "Composite",
2777
+ className: "ManagedHsmsUpdateHeaders",
2778
+ modelProperties: {
2779
+ location: {
2780
+ serializedName: "location",
2781
+ type: {
2782
+ name: "String"
2783
+ }
2784
+ }
2785
+ }
2786
+ }
2787
+ };
2788
+
2762
2789
  export const MhsmPrivateEndpointConnectionsPutHeaders: coreClient.CompositeMapper = {
2763
2790
  type: {
2764
2791
  name: "Composite",
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { Keys } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -16,17 +17,17 @@ import {
16
17
  Key,
17
18
  KeysListNextOptionalParams,
18
19
  KeysListOptionalParams,
20
+ KeysListResponse,
19
21
  KeysListVersionsNextOptionalParams,
20
22
  KeysListVersionsOptionalParams,
23
+ KeysListVersionsResponse,
21
24
  KeyCreateParameters,
22
25
  KeysCreateIfNotExistOptionalParams,
23
26
  KeysCreateIfNotExistResponse,
24
27
  KeysGetOptionalParams,
25
28
  KeysGetResponse,
26
- KeysListResponse,
27
29
  KeysGetVersionOptionalParams,
28
30
  KeysGetVersionResponse,
29
- KeysListVersionsResponse,
30
31
  KeysListNextResponse,
31
32
  KeysListVersionsNextResponse
32
33
  } from "../models";
@@ -63,8 +64,16 @@ export class KeysImpl implements Keys {
63
64
  [Symbol.asyncIterator]() {
64
65
  return this;
65
66
  },
66
- byPage: () => {
67
- return this.listPagingPage(resourceGroupName, vaultName, options);
67
+ byPage: (settings?: PageSettings) => {
68
+ if (settings?.maxPageSize) {
69
+ throw new Error("maxPageSize is not supported by this operation.");
70
+ }
71
+ return this.listPagingPage(
72
+ resourceGroupName,
73
+ vaultName,
74
+ options,
75
+ settings
76
+ );
68
77
  }
69
78
  };
70
79
  }
@@ -72,11 +81,18 @@ export class KeysImpl implements Keys {
72
81
  private async *listPagingPage(
73
82
  resourceGroupName: string,
74
83
  vaultName: string,
75
- options?: KeysListOptionalParams
84
+ options?: KeysListOptionalParams,
85
+ settings?: PageSettings
76
86
  ): AsyncIterableIterator<Key[]> {
77
- let result = await this._list(resourceGroupName, vaultName, options);
78
- yield result.value || [];
79
- let continuationToken = result.nextLink;
87
+ let result: KeysListResponse;
88
+ let continuationToken = settings?.continuationToken;
89
+ if (!continuationToken) {
90
+ result = await this._list(resourceGroupName, vaultName, options);
91
+ let page = result.value || [];
92
+ continuationToken = result.nextLink;
93
+ setContinuationToken(page, continuationToken);
94
+ yield page;
95
+ }
80
96
  while (continuationToken) {
81
97
  result = await this._listNext(
82
98
  resourceGroupName,
@@ -85,7 +101,9 @@ export class KeysImpl implements Keys {
85
101
  options
86
102
  );
87
103
  continuationToken = result.nextLink;
88
- yield result.value || [];
104
+ let page = result.value || [];
105
+ setContinuationToken(page, continuationToken);
106
+ yield page;
89
107
  }
90
108
  }
91
109
 
@@ -129,12 +147,16 @@ export class KeysImpl implements Keys {
129
147
  [Symbol.asyncIterator]() {
130
148
  return this;
131
149
  },
132
- byPage: () => {
150
+ byPage: (settings?: PageSettings) => {
151
+ if (settings?.maxPageSize) {
152
+ throw new Error("maxPageSize is not supported by this operation.");
153
+ }
133
154
  return this.listVersionsPagingPage(
134
155
  resourceGroupName,
135
156
  vaultName,
136
157
  keyName,
137
- options
158
+ options,
159
+ settings
138
160
  );
139
161
  }
140
162
  };
@@ -144,16 +166,23 @@ export class KeysImpl implements Keys {
144
166
  resourceGroupName: string,
145
167
  vaultName: string,
146
168
  keyName: string,
147
- options?: KeysListVersionsOptionalParams
169
+ options?: KeysListVersionsOptionalParams,
170
+ settings?: PageSettings
148
171
  ): AsyncIterableIterator<Key[]> {
149
- let result = await this._listVersions(
150
- resourceGroupName,
151
- vaultName,
152
- keyName,
153
- options
154
- );
155
- yield result.value || [];
156
- let continuationToken = result.nextLink;
172
+ let result: KeysListVersionsResponse;
173
+ let continuationToken = settings?.continuationToken;
174
+ if (!continuationToken) {
175
+ result = await this._listVersions(
176
+ resourceGroupName,
177
+ vaultName,
178
+ keyName,
179
+ options
180
+ );
181
+ let page = result.value || [];
182
+ continuationToken = result.nextLink;
183
+ setContinuationToken(page, continuationToken);
184
+ yield page;
185
+ }
157
186
  while (continuationToken) {
158
187
  result = await this._listVersionsNext(
159
188
  resourceGroupName,
@@ -163,7 +192,9 @@ export class KeysImpl implements Keys {
163
192
  options
164
193
  );
165
194
  continuationToken = result.nextLink;
166
- yield result.value || [];
195
+ let page = result.value || [];
196
+ setContinuationToken(page, continuationToken);
197
+ yield page;
167
198
  }
168
199
  }
169
200