@azure/arm-labservices 3.0.0-beta.3 → 3.0.0

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 (109) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +1 -1
  3. package/dist/index.js +787 -715
  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/samples-dev/imagesCreateOrUpdateSample.js +1 -1
  8. package/dist-esm/samples-dev/imagesGetSample.js +1 -1
  9. package/dist-esm/samples-dev/imagesListByLabPlanSample.js +1 -1
  10. package/dist-esm/samples-dev/imagesUpdateSample.js +1 -1
  11. package/dist-esm/samples-dev/labPlansCreateOrUpdateSample.js +4 -4
  12. package/dist-esm/samples-dev/labPlansCreateOrUpdateSample.js.map +1 -1
  13. package/dist-esm/samples-dev/labPlansDeleteSample.js +1 -1
  14. package/dist-esm/samples-dev/labPlansGetSample.js +1 -1
  15. package/dist-esm/samples-dev/labPlansListByResourceGroupSample.js +1 -1
  16. package/dist-esm/samples-dev/labPlansListBySubscriptionSample.js +1 -1
  17. package/dist-esm/samples-dev/labPlansSaveImageSample.js +1 -1
  18. package/dist-esm/samples-dev/labPlansUpdateSample.js +1 -1
  19. package/dist-esm/samples-dev/labsCreateOrUpdateSample.js +5 -5
  20. package/dist-esm/samples-dev/labsCreateOrUpdateSample.js.map +1 -1
  21. package/dist-esm/samples-dev/labsDeleteSample.js +1 -1
  22. package/dist-esm/samples-dev/labsGetSample.js +1 -1
  23. package/dist-esm/samples-dev/labsListByResourceGroupSample.js +1 -1
  24. package/dist-esm/samples-dev/labsListBySubscriptionSample.js +1 -1
  25. package/dist-esm/samples-dev/labsPublishSample.js +1 -1
  26. package/dist-esm/samples-dev/labsSyncGroupSample.js +1 -1
  27. package/dist-esm/samples-dev/labsUpdateSample.js +1 -1
  28. package/dist-esm/samples-dev/operationResultsGetSample.js +1 -1
  29. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  30. package/dist-esm/samples-dev/schedulesCreateOrUpdateSample.js +2 -2
  31. package/dist-esm/samples-dev/schedulesCreateOrUpdateSample.js.map +1 -1
  32. package/dist-esm/samples-dev/schedulesDeleteSample.js +1 -1
  33. package/dist-esm/samples-dev/schedulesGetSample.js +1 -1
  34. package/dist-esm/samples-dev/schedulesListByLabSample.js +1 -1
  35. package/dist-esm/samples-dev/schedulesUpdateSample.js +2 -2
  36. package/dist-esm/samples-dev/schedulesUpdateSample.js.map +1 -1
  37. package/dist-esm/samples-dev/skusListSample.js +3 -3
  38. package/dist-esm/samples-dev/usagesListByLocationSample.js +2 -2
  39. package/dist-esm/samples-dev/usersCreateOrUpdateSample.js +2 -2
  40. package/dist-esm/samples-dev/usersDeleteSample.js +1 -1
  41. package/dist-esm/samples-dev/usersGetSample.js +1 -1
  42. package/dist-esm/samples-dev/usersInviteSample.js +1 -1
  43. package/dist-esm/samples-dev/usersListByLabSample.js +1 -1
  44. package/dist-esm/samples-dev/usersUpdateSample.js +2 -2
  45. package/dist-esm/samples-dev/virtualMachinesGetSample.js +1 -1
  46. package/dist-esm/samples-dev/virtualMachinesListByLabSample.js +1 -1
  47. package/dist-esm/samples-dev/virtualMachinesRedeploySample.js +1 -1
  48. package/dist-esm/samples-dev/virtualMachinesReimageSample.js +1 -1
  49. package/dist-esm/samples-dev/virtualMachinesResetPasswordSample.js +1 -1
  50. package/dist-esm/samples-dev/virtualMachinesStartSample.js +1 -1
  51. package/dist-esm/samples-dev/virtualMachinesStopSample.js +1 -1
  52. package/dist-esm/src/labServicesClient.d.ts +3 -3
  53. package/dist-esm/src/labServicesClient.d.ts.map +1 -1
  54. package/dist-esm/src/labServicesClient.js +23 -18
  55. package/dist-esm/src/labServicesClient.js.map +1 -1
  56. package/dist-esm/src/models/index.d.ts +221 -188
  57. package/dist-esm/src/models/index.d.ts.map +1 -1
  58. package/dist-esm/src/models/index.js +19 -5
  59. package/dist-esm/src/models/index.js.map +1 -1
  60. package/dist-esm/src/models/mappers.d.ts +10 -9
  61. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  62. package/dist-esm/src/models/mappers.js +284 -232
  63. package/dist-esm/src/models/mappers.js.map +1 -1
  64. package/dist-esm/src/models/parameters.d.ts +1 -1
  65. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  66. package/dist-esm/src/models/parameters.js +16 -16
  67. package/dist-esm/src/models/parameters.js.map +1 -1
  68. package/dist-esm/src/operations/index.d.ts +2 -2
  69. package/dist-esm/src/operations/index.d.ts.map +1 -1
  70. package/dist-esm/src/operations/index.js +2 -2
  71. package/dist-esm/src/operations/index.js.map +1 -1
  72. package/dist-esm/src/operations/labs.d.ts +22 -22
  73. package/dist-esm/src/operations/labs.js +22 -22
  74. package/dist-esm/src/operations/schedules.d.ts +16 -16
  75. package/dist-esm/src/operations/schedules.js +16 -16
  76. package/dist-esm/src/operations/skus.d.ts +2 -2
  77. package/dist-esm/src/operations/skus.js +2 -2
  78. package/dist-esm/src/operations/users.d.ts +24 -24
  79. package/dist-esm/src/operations/users.js +24 -24
  80. package/dist-esm/src/operations/virtualMachines.d.ts +28 -28
  81. package/dist-esm/src/operations/virtualMachines.js +28 -28
  82. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -2
  83. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  84. package/dist-esm/src/operationsInterfaces/index.js +2 -2
  85. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  86. package/dist-esm/src/operationsInterfaces/labs.d.ts +22 -22
  87. package/dist-esm/src/operationsInterfaces/schedules.d.ts +12 -12
  88. package/dist-esm/src/operationsInterfaces/skus.d.ts +1 -1
  89. package/dist-esm/src/operationsInterfaces/users.d.ts +20 -20
  90. package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +24 -24
  91. package/package.json +3 -4
  92. package/review/arm-labservices.api.md +94 -97
  93. package/src/labServicesClient.ts +35 -28
  94. package/src/models/index.ts +244 -211
  95. package/src/models/mappers.ts +291 -236
  96. package/src/models/parameters.ts +17 -17
  97. package/src/operations/index.ts +2 -2
  98. package/src/operations/labs.ts +22 -22
  99. package/src/operations/schedules.ts +16 -16
  100. package/src/operations/skus.ts +2 -2
  101. package/src/operations/users.ts +24 -24
  102. package/src/operations/virtualMachines.ts +28 -28
  103. package/src/operationsInterfaces/index.ts +2 -2
  104. package/src/operationsInterfaces/labs.ts +22 -22
  105. package/src/operationsInterfaces/schedules.ts +12 -12
  106. package/src/operationsInterfaces/skus.ts +1 -1
  107. package/src/operationsInterfaces/users.ts +20 -20
  108. package/src/operationsInterfaces/virtualMachines.ts +24 -24
  109. package/types/arm-labservices.d.ts +149 -115
package/dist/index.js CHANGED
@@ -38,32 +38,37 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
38
38
  /** Known values of {@link CreatedByType} that the service accepts. */
39
39
  exports.KnownCreatedByType = void 0;
40
40
  (function (KnownCreatedByType) {
41
+ /** User */
41
42
  KnownCreatedByType["User"] = "User";
43
+ /** Application */
42
44
  KnownCreatedByType["Application"] = "Application";
45
+ /** ManagedIdentity */
43
46
  KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
47
+ /** Key */
44
48
  KnownCreatedByType["Key"] = "Key";
45
49
  })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
46
50
  /** Known values of {@link Origin} that the service accepts. */
47
51
  exports.KnownOrigin = void 0;
48
52
  (function (KnownOrigin) {
53
+ /** User */
49
54
  KnownOrigin["User"] = "user";
55
+ /** System */
50
56
  KnownOrigin["System"] = "system";
57
+ /** UserSystem */
51
58
  KnownOrigin["UserSystem"] = "user,system";
52
59
  })(exports.KnownOrigin || (exports.KnownOrigin = {}));
53
60
  /** Known values of {@link ActionType} that the service accepts. */
54
61
  exports.KnownActionType = void 0;
55
62
  (function (KnownActionType) {
63
+ /** Internal */
56
64
  KnownActionType["Internal"] = "Internal";
57
65
  })(exports.KnownActionType || (exports.KnownActionType = {}));
58
- /** Known values of {@link UsageUnit} that the service accepts. */
59
- exports.KnownUsageUnit = void 0;
60
- (function (KnownUsageUnit) {
61
- KnownUsageUnit["Count"] = "Count";
62
- })(exports.KnownUsageUnit || (exports.KnownUsageUnit = {}));
63
66
  /** Known values of {@link LabServicesSkuTier} that the service accepts. */
64
67
  exports.KnownLabServicesSkuTier = void 0;
65
68
  (function (KnownLabServicesSkuTier) {
69
+ /** Standard */
66
70
  KnownLabServicesSkuTier["Standard"] = "Standard";
71
+ /** Premium */
67
72
  KnownLabServicesSkuTier["Premium"] = "Premium";
68
73
  })(exports.KnownLabServicesSkuTier || (exports.KnownLabServicesSkuTier = {}));
69
74
  /** Known values of {@link ScaleType} that the service accepts. */
@@ -79,14 +84,23 @@ exports.KnownScaleType = void 0;
79
84
  /** Known values of {@link RestrictionType} that the service accepts. */
80
85
  exports.KnownRestrictionType = void 0;
81
86
  (function (KnownRestrictionType) {
87
+ /** Location */
82
88
  KnownRestrictionType["Location"] = "Location";
83
89
  })(exports.KnownRestrictionType || (exports.KnownRestrictionType = {}));
84
90
  /** Known values of {@link RestrictionReasonCode} that the service accepts. */
85
91
  exports.KnownRestrictionReasonCode = void 0;
86
92
  (function (KnownRestrictionReasonCode) {
93
+ /** QuotaId */
87
94
  KnownRestrictionReasonCode["QuotaId"] = "QuotaId";
95
+ /** NotAvailableForSubscription */
88
96
  KnownRestrictionReasonCode["NotAvailableForSubscription"] = "NotAvailableForSubscription";
89
97
  })(exports.KnownRestrictionReasonCode || (exports.KnownRestrictionReasonCode = {}));
98
+ /** Known values of {@link UsageUnit} that the service accepts. */
99
+ exports.KnownUsageUnit = void 0;
100
+ (function (KnownUsageUnit) {
101
+ /** Count */
102
+ KnownUsageUnit["Count"] = "Count";
103
+ })(exports.KnownUsageUnit || (exports.KnownUsageUnit = {}));
90
104
 
91
105
  /*
92
106
  * Copyright (c) Microsoft Corporation.
@@ -559,6 +573,36 @@ const SupportInfo = {
559
573
  }
560
574
  }
561
575
  };
576
+ const Identity = {
577
+ type: {
578
+ name: "Composite",
579
+ className: "Identity",
580
+ modelProperties: {
581
+ principalId: {
582
+ serializedName: "principalId",
583
+ readOnly: true,
584
+ type: {
585
+ name: "String"
586
+ }
587
+ },
588
+ tenantId: {
589
+ serializedName: "tenantId",
590
+ readOnly: true,
591
+ type: {
592
+ name: "String"
593
+ }
594
+ },
595
+ type: {
596
+ defaultValue: "SystemAssigned",
597
+ isConstant: true,
598
+ serializedName: "type",
599
+ type: {
600
+ name: "String"
601
+ }
602
+ }
603
+ }
604
+ }
605
+ };
562
606
  const TrackedResourceUpdate = {
563
607
  type: {
564
608
  name: "Composite",
@@ -1283,7 +1327,7 @@ const RecurrencePattern = {
1283
1327
  serializedName: "expirationDate",
1284
1328
  required: true,
1285
1329
  type: {
1286
- name: "Date"
1330
+ name: "DateTime"
1287
1331
  }
1288
1332
  }
1289
1333
  }
@@ -1334,10 +1378,10 @@ const ScheduleUpdate = {
1334
1378
  }
1335
1379
  }
1336
1380
  };
1337
- const PagedUsers = {
1381
+ const PagedLabServicesSkus = {
1338
1382
  type: {
1339
1383
  name: "Composite",
1340
- className: "PagedUsers",
1384
+ className: "PagedLabServicesSkus",
1341
1385
  modelProperties: {
1342
1386
  value: {
1343
1387
  serializedName: "value",
@@ -1347,7 +1391,7 @@ const PagedUsers = {
1347
1391
  element: {
1348
1392
  type: {
1349
1393
  name: "Composite",
1350
- className: "User"
1394
+ className: "LabServicesSku"
1351
1395
  }
1352
1396
  }
1353
1397
  }
@@ -1362,156 +1406,136 @@ const PagedUsers = {
1362
1406
  }
1363
1407
  }
1364
1408
  };
1365
- const UserUpdateProperties = {
1366
- type: {
1367
- name: "Composite",
1368
- className: "UserUpdateProperties",
1369
- modelProperties: {
1370
- additionalUsageQuota: {
1371
- serializedName: "additionalUsageQuota",
1372
- type: {
1373
- name: "TimeSpan"
1374
- }
1375
- }
1376
- }
1377
- }
1378
- };
1379
- const UserUpdate = {
1380
- type: {
1381
- name: "Composite",
1382
- className: "UserUpdate",
1383
- modelProperties: {
1384
- additionalUsageQuota: {
1385
- serializedName: "properties.additionalUsageQuota",
1386
- type: {
1387
- name: "TimeSpan"
1388
- }
1389
- }
1390
- }
1391
- }
1392
- };
1393
- const InviteBody = {
1409
+ const LabServicesSku = {
1394
1410
  type: {
1395
1411
  name: "Composite",
1396
- className: "InviteBody",
1412
+ className: "LabServicesSku",
1397
1413
  modelProperties: {
1398
- text: {
1399
- serializedName: "text",
1414
+ resourceType: {
1415
+ serializedName: "resourceType",
1416
+ readOnly: true,
1400
1417
  type: {
1401
1418
  name: "String"
1402
1419
  }
1403
- }
1404
- }
1405
- }
1406
- };
1407
- const PagedVirtualMachines = {
1408
- type: {
1409
- name: "Composite",
1410
- className: "PagedVirtualMachines",
1411
- modelProperties: {
1412
- value: {
1413
- serializedName: "value",
1420
+ },
1421
+ name: {
1422
+ serializedName: "name",
1414
1423
  readOnly: true,
1415
1424
  type: {
1416
- name: "Sequence",
1417
- element: {
1418
- type: {
1419
- name: "Composite",
1420
- className: "VirtualMachine"
1421
- }
1422
- }
1425
+ name: "String"
1423
1426
  }
1424
1427
  },
1425
- nextLink: {
1426
- serializedName: "nextLink",
1428
+ tier: {
1429
+ serializedName: "tier",
1427
1430
  readOnly: true,
1428
1431
  type: {
1429
1432
  name: "String"
1430
1433
  }
1431
- }
1432
- }
1433
- }
1434
- };
1435
- const VirtualMachineConnectionProfile = {
1436
- type: {
1437
- name: "Composite",
1438
- className: "VirtualMachineConnectionProfile",
1439
- modelProperties: {
1440
- privateIpAddress: {
1441
- serializedName: "privateIpAddress",
1434
+ },
1435
+ size: {
1436
+ serializedName: "size",
1442
1437
  readOnly: true,
1443
1438
  type: {
1444
1439
  name: "String"
1445
1440
  }
1446
1441
  },
1447
- sshAuthority: {
1448
- serializedName: "sshAuthority",
1442
+ family: {
1443
+ serializedName: "family",
1449
1444
  readOnly: true,
1450
1445
  type: {
1451
1446
  name: "String"
1452
1447
  }
1453
1448
  },
1454
- sshInBrowserUrl: {
1455
- constraints: {
1456
- MaxLength: 2000,
1457
- MinLength: 3
1458
- },
1459
- serializedName: "sshInBrowserUrl",
1460
- readOnly: true,
1449
+ capacity: {
1450
+ serializedName: "capacity",
1461
1451
  type: {
1462
- name: "String"
1452
+ name: "Composite",
1453
+ className: "LabServicesSkuCapacity"
1463
1454
  }
1464
1455
  },
1465
- rdpAuthority: {
1466
- serializedName: "rdpAuthority",
1456
+ capabilities: {
1457
+ serializedName: "capabilities",
1467
1458
  readOnly: true,
1468
1459
  type: {
1469
- name: "String"
1460
+ name: "Sequence",
1461
+ element: {
1462
+ type: {
1463
+ name: "Composite",
1464
+ className: "LabServicesSkuCapabilities"
1465
+ }
1466
+ }
1470
1467
  }
1471
1468
  },
1472
- rdpInBrowserUrl: {
1473
- constraints: {
1474
- MaxLength: 2000,
1475
- MinLength: 3
1476
- },
1477
- serializedName: "rdpInBrowserUrl",
1469
+ locations: {
1470
+ serializedName: "locations",
1478
1471
  readOnly: true,
1479
1472
  type: {
1480
- name: "String"
1473
+ name: "Sequence",
1474
+ element: {
1475
+ type: {
1476
+ name: "String"
1477
+ }
1478
+ }
1481
1479
  }
1482
1480
  },
1483
- adminUsername: {
1484
- serializedName: "adminUsername",
1481
+ costs: {
1482
+ serializedName: "costs",
1485
1483
  readOnly: true,
1486
1484
  type: {
1487
- name: "String"
1485
+ name: "Sequence",
1486
+ element: {
1487
+ type: {
1488
+ name: "Composite",
1489
+ className: "LabServicesSkuCost"
1490
+ }
1491
+ }
1488
1492
  }
1489
1493
  },
1490
- nonAdminUsername: {
1491
- serializedName: "nonAdminUsername",
1494
+ restrictions: {
1495
+ serializedName: "restrictions",
1492
1496
  readOnly: true,
1493
1497
  type: {
1494
- name: "String"
1498
+ name: "Sequence",
1499
+ element: {
1500
+ type: {
1501
+ name: "Composite",
1502
+ className: "LabServicesSkuRestrictions"
1503
+ }
1504
+ }
1495
1505
  }
1496
1506
  }
1497
1507
  }
1498
1508
  }
1499
1509
  };
1500
- const ResetPasswordBody = {
1510
+ const LabServicesSkuCapacity = {
1501
1511
  type: {
1502
1512
  name: "Composite",
1503
- className: "ResetPasswordBody",
1513
+ className: "LabServicesSkuCapacity",
1504
1514
  modelProperties: {
1505
- username: {
1506
- serializedName: "username",
1507
- required: true,
1515
+ default: {
1516
+ serializedName: "default",
1517
+ readOnly: true,
1508
1518
  type: {
1509
- name: "String"
1519
+ name: "Number"
1510
1520
  }
1511
1521
  },
1512
- password: {
1513
- serializedName: "password",
1514
- required: true,
1522
+ minimum: {
1523
+ serializedName: "minimum",
1524
+ readOnly: true,
1525
+ type: {
1526
+ name: "Number"
1527
+ }
1528
+ },
1529
+ maximum: {
1530
+ serializedName: "maximum",
1531
+ readOnly: true,
1532
+ type: {
1533
+ name: "Number"
1534
+ }
1535
+ },
1536
+ scaleType: {
1537
+ serializedName: "scaleType",
1538
+ readOnly: true,
1515
1539
  type: {
1516
1540
  name: "String"
1517
1541
  }
@@ -1519,26 +1543,20 @@ const ResetPasswordBody = {
1519
1543
  }
1520
1544
  }
1521
1545
  };
1522
- const ListUsagesResult = {
1546
+ const LabServicesSkuCapabilities = {
1523
1547
  type: {
1524
1548
  name: "Composite",
1525
- className: "ListUsagesResult",
1549
+ className: "LabServicesSkuCapabilities",
1526
1550
  modelProperties: {
1527
- value: {
1528
- serializedName: "value",
1551
+ name: {
1552
+ serializedName: "name",
1529
1553
  readOnly: true,
1530
1554
  type: {
1531
- name: "Sequence",
1532
- element: {
1533
- type: {
1534
- name: "Composite",
1535
- className: "Usage"
1536
- }
1537
- }
1555
+ name: "String"
1538
1556
  }
1539
1557
  },
1540
- nextLink: {
1541
- serializedName: "nextLink",
1558
+ value: {
1559
+ serializedName: "value",
1542
1560
  readOnly: true,
1543
1561
  type: {
1544
1562
  name: "String"
@@ -1547,38 +1565,28 @@ const ListUsagesResult = {
1547
1565
  }
1548
1566
  }
1549
1567
  };
1550
- const Usage = {
1568
+ const LabServicesSkuCost = {
1551
1569
  type: {
1552
1570
  name: "Composite",
1553
- className: "Usage",
1571
+ className: "LabServicesSkuCost",
1554
1572
  modelProperties: {
1555
- currentValue: {
1556
- serializedName: "currentValue",
1573
+ meterId: {
1574
+ serializedName: "meterId",
1575
+ readOnly: true,
1557
1576
  type: {
1558
- name: "Number"
1577
+ name: "String"
1559
1578
  }
1560
1579
  },
1561
- limit: {
1562
- serializedName: "limit",
1580
+ quantity: {
1581
+ serializedName: "quantity",
1582
+ readOnly: true,
1563
1583
  type: {
1564
1584
  name: "Number"
1565
1585
  }
1566
1586
  },
1567
- unit: {
1568
- serializedName: "unit",
1569
- type: {
1570
- name: "String"
1571
- }
1572
- },
1573
- name: {
1574
- serializedName: "name",
1575
- type: {
1576
- name: "Composite",
1577
- className: "UsageName"
1578
- }
1579
- },
1580
- id: {
1581
- serializedName: "id",
1587
+ extendedUnit: {
1588
+ serializedName: "extendedUnit",
1589
+ readOnly: true,
1582
1590
  type: {
1583
1591
  name: "String"
1584
1592
  }
@@ -1586,19 +1594,33 @@ const Usage = {
1586
1594
  }
1587
1595
  }
1588
1596
  };
1589
- const UsageName = {
1597
+ const LabServicesSkuRestrictions = {
1590
1598
  type: {
1591
1599
  name: "Composite",
1592
- className: "UsageName",
1600
+ className: "LabServicesSkuRestrictions",
1593
1601
  modelProperties: {
1594
- localizedValue: {
1595
- serializedName: "localizedValue",
1602
+ type: {
1603
+ serializedName: "type",
1604
+ readOnly: true,
1596
1605
  type: {
1597
1606
  name: "String"
1598
1607
  }
1599
1608
  },
1600
- value: {
1601
- serializedName: "value",
1609
+ values: {
1610
+ serializedName: "values",
1611
+ readOnly: true,
1612
+ type: {
1613
+ name: "Sequence",
1614
+ element: {
1615
+ type: {
1616
+ name: "String"
1617
+ }
1618
+ }
1619
+ }
1620
+ },
1621
+ reasonCode: {
1622
+ serializedName: "reasonCode",
1623
+ readOnly: true,
1602
1624
  type: {
1603
1625
  name: "String"
1604
1626
  }
@@ -1606,20 +1628,19 @@ const UsageName = {
1606
1628
  }
1607
1629
  }
1608
1630
  };
1609
- const PagedLabServicesSkus = {
1631
+ const ListUsagesResult = {
1610
1632
  type: {
1611
1633
  name: "Composite",
1612
- className: "PagedLabServicesSkus",
1634
+ className: "ListUsagesResult",
1613
1635
  modelProperties: {
1614
1636
  value: {
1615
1637
  serializedName: "value",
1616
- readOnly: true,
1617
1638
  type: {
1618
1639
  name: "Sequence",
1619
1640
  element: {
1620
1641
  type: {
1621
1642
  name: "Composite",
1622
- className: "LabServicesSku"
1643
+ className: "Usage"
1623
1644
  }
1624
1645
  }
1625
1646
  }
@@ -1634,187 +1655,139 @@ const PagedLabServicesSkus = {
1634
1655
  }
1635
1656
  }
1636
1657
  };
1637
- const LabServicesSku = {
1658
+ const Usage = {
1638
1659
  type: {
1639
1660
  name: "Composite",
1640
- className: "LabServicesSku",
1661
+ className: "Usage",
1641
1662
  modelProperties: {
1642
- resourceType: {
1643
- serializedName: "resourceType",
1644
- readOnly: true,
1663
+ currentValue: {
1664
+ serializedName: "currentValue",
1645
1665
  type: {
1646
- name: "String"
1666
+ name: "Number"
1647
1667
  }
1648
1668
  },
1649
- name: {
1650
- serializedName: "name",
1651
- readOnly: true,
1669
+ limit: {
1670
+ serializedName: "limit",
1652
1671
  type: {
1653
- name: "String"
1672
+ name: "Number"
1654
1673
  }
1655
1674
  },
1656
- tier: {
1657
- serializedName: "tier",
1658
- readOnly: true,
1675
+ unit: {
1676
+ serializedName: "unit",
1659
1677
  type: {
1660
1678
  name: "String"
1661
1679
  }
1662
1680
  },
1663
- size: {
1664
- serializedName: "size",
1665
- readOnly: true,
1681
+ name: {
1682
+ serializedName: "name",
1666
1683
  type: {
1667
- name: "String"
1684
+ name: "Composite",
1685
+ className: "UsageName"
1668
1686
  }
1669
1687
  },
1670
- family: {
1671
- serializedName: "family",
1672
- readOnly: true,
1688
+ id: {
1689
+ serializedName: "id",
1673
1690
  type: {
1674
1691
  name: "String"
1675
1692
  }
1676
- },
1677
- capacity: {
1678
- serializedName: "capacity",
1693
+ }
1694
+ }
1695
+ }
1696
+ };
1697
+ const UsageName = {
1698
+ type: {
1699
+ name: "Composite",
1700
+ className: "UsageName",
1701
+ modelProperties: {
1702
+ localizedValue: {
1703
+ serializedName: "localizedValue",
1679
1704
  type: {
1680
- name: "Composite",
1681
- className: "LabServicesSkuCapacity"
1705
+ name: "String"
1682
1706
  }
1683
1707
  },
1684
- capabilities: {
1685
- serializedName: "capabilities",
1686
- readOnly: true,
1708
+ skuInstances: {
1709
+ serializedName: "skuInstances",
1687
1710
  type: {
1688
1711
  name: "Sequence",
1689
1712
  element: {
1690
1713
  type: {
1691
- name: "Composite",
1692
- className: "LabServicesSkuCapabilities"
1714
+ name: "String"
1693
1715
  }
1694
1716
  }
1695
1717
  }
1696
1718
  },
1697
- locations: {
1698
- serializedName: "locations",
1699
- readOnly: true,
1719
+ value: {
1720
+ serializedName: "value",
1700
1721
  type: {
1701
- name: "Sequence",
1702
- element: {
1703
- type: {
1704
- name: "String"
1705
- }
1706
- }
1722
+ name: "String"
1707
1723
  }
1708
- },
1709
- costs: {
1710
- serializedName: "costs",
1724
+ }
1725
+ }
1726
+ }
1727
+ };
1728
+ const PagedUsers = {
1729
+ type: {
1730
+ name: "Composite",
1731
+ className: "PagedUsers",
1732
+ modelProperties: {
1733
+ value: {
1734
+ serializedName: "value",
1711
1735
  readOnly: true,
1712
1736
  type: {
1713
1737
  name: "Sequence",
1714
1738
  element: {
1715
1739
  type: {
1716
1740
  name: "Composite",
1717
- className: "LabServicesSkuCost"
1741
+ className: "User"
1718
1742
  }
1719
1743
  }
1720
1744
  }
1721
1745
  },
1722
- restrictions: {
1723
- serializedName: "restrictions",
1746
+ nextLink: {
1747
+ serializedName: "nextLink",
1724
1748
  readOnly: true,
1725
1749
  type: {
1726
- name: "Sequence",
1727
- element: {
1728
- type: {
1729
- name: "Composite",
1730
- className: "LabServicesSkuRestrictions"
1731
- }
1732
- }
1750
+ name: "String"
1733
1751
  }
1734
1752
  }
1735
1753
  }
1736
1754
  }
1737
1755
  };
1738
- const LabServicesSkuCapacity = {
1756
+ const UserUpdateProperties = {
1739
1757
  type: {
1740
1758
  name: "Composite",
1741
- className: "LabServicesSkuCapacity",
1759
+ className: "UserUpdateProperties",
1742
1760
  modelProperties: {
1743
- default: {
1744
- serializedName: "default",
1745
- readOnly: true,
1746
- type: {
1747
- name: "Number"
1748
- }
1749
- },
1750
- minimum: {
1751
- serializedName: "minimum",
1752
- readOnly: true,
1753
- type: {
1754
- name: "Number"
1755
- }
1756
- },
1757
- maximum: {
1758
- serializedName: "maximum",
1759
- readOnly: true,
1760
- type: {
1761
- name: "Number"
1762
- }
1763
- },
1764
- scaleType: {
1765
- serializedName: "scaleType",
1766
- readOnly: true,
1761
+ additionalUsageQuota: {
1762
+ serializedName: "additionalUsageQuota",
1767
1763
  type: {
1768
- name: "String"
1764
+ name: "TimeSpan"
1769
1765
  }
1770
1766
  }
1771
1767
  }
1772
1768
  }
1773
1769
  };
1774
- const LabServicesSkuCapabilities = {
1770
+ const UserUpdate = {
1775
1771
  type: {
1776
1772
  name: "Composite",
1777
- className: "LabServicesSkuCapabilities",
1773
+ className: "UserUpdate",
1778
1774
  modelProperties: {
1779
- name: {
1780
- serializedName: "name",
1781
- readOnly: true,
1782
- type: {
1783
- name: "String"
1784
- }
1785
- },
1786
- value: {
1787
- serializedName: "value",
1788
- readOnly: true,
1775
+ additionalUsageQuota: {
1776
+ serializedName: "properties.additionalUsageQuota",
1789
1777
  type: {
1790
- name: "String"
1778
+ name: "TimeSpan"
1791
1779
  }
1792
1780
  }
1793
1781
  }
1794
1782
  }
1795
1783
  };
1796
- const LabServicesSkuCost = {
1784
+ const InviteBody = {
1797
1785
  type: {
1798
1786
  name: "Composite",
1799
- className: "LabServicesSkuCost",
1787
+ className: "InviteBody",
1800
1788
  modelProperties: {
1801
- meterId: {
1802
- serializedName: "meterId",
1803
- readOnly: true,
1804
- type: {
1805
- name: "String"
1806
- }
1807
- },
1808
- quantity: {
1809
- serializedName: "quantity",
1810
- readOnly: true,
1811
- type: {
1812
- name: "Number"
1813
- }
1814
- },
1815
- extendedUnit: {
1816
- serializedName: "extendedUnit",
1817
- readOnly: true,
1789
+ text: {
1790
+ serializedName: "text",
1818
1791
  type: {
1819
1792
  name: "String"
1820
1793
  }
@@ -1822,32 +1795,26 @@ const LabServicesSkuCost = {
1822
1795
  }
1823
1796
  }
1824
1797
  };
1825
- const LabServicesSkuRestrictions = {
1798
+ const PagedVirtualMachines = {
1826
1799
  type: {
1827
1800
  name: "Composite",
1828
- className: "LabServicesSkuRestrictions",
1801
+ className: "PagedVirtualMachines",
1829
1802
  modelProperties: {
1830
- type: {
1831
- serializedName: "type",
1832
- readOnly: true,
1833
- type: {
1834
- name: "String"
1835
- }
1836
- },
1837
- values: {
1838
- serializedName: "values",
1803
+ value: {
1804
+ serializedName: "value",
1839
1805
  readOnly: true,
1840
1806
  type: {
1841
1807
  name: "Sequence",
1842
1808
  element: {
1843
1809
  type: {
1844
- name: "String"
1810
+ name: "Composite",
1811
+ className: "VirtualMachine"
1845
1812
  }
1846
1813
  }
1847
1814
  }
1848
1815
  },
1849
- reasonCode: {
1850
- serializedName: "reasonCode",
1816
+ nextLink: {
1817
+ serializedName: "nextLink",
1851
1818
  readOnly: true,
1852
1819
  type: {
1853
1820
  name: "String"
@@ -1856,21 +1823,108 @@ const LabServicesSkuRestrictions = {
1856
1823
  }
1857
1824
  }
1858
1825
  };
1859
- const ImageProperties = {
1826
+ const VirtualMachineConnectionProfile = {
1860
1827
  type: {
1861
1828
  name: "Composite",
1862
- className: "ImageProperties",
1863
- modelProperties: Object.assign(Object.assign({}, ImageUpdateProperties.type.modelProperties), { provisioningState: {
1864
- serializedName: "provisioningState",
1829
+ className: "VirtualMachineConnectionProfile",
1830
+ modelProperties: {
1831
+ privateIpAddress: {
1832
+ serializedName: "privateIpAddress",
1865
1833
  readOnly: true,
1866
1834
  type: {
1867
- name: "Enum",
1868
- allowedValues: [
1869
- "Creating",
1870
- "Updating",
1871
- "Deleting",
1872
- "Succeeded",
1873
- "Failed",
1835
+ name: "String"
1836
+ }
1837
+ },
1838
+ sshAuthority: {
1839
+ serializedName: "sshAuthority",
1840
+ readOnly: true,
1841
+ type: {
1842
+ name: "String"
1843
+ }
1844
+ },
1845
+ sshInBrowserUrl: {
1846
+ constraints: {
1847
+ MaxLength: 2000,
1848
+ MinLength: 3
1849
+ },
1850
+ serializedName: "sshInBrowserUrl",
1851
+ readOnly: true,
1852
+ type: {
1853
+ name: "String"
1854
+ }
1855
+ },
1856
+ rdpAuthority: {
1857
+ serializedName: "rdpAuthority",
1858
+ readOnly: true,
1859
+ type: {
1860
+ name: "String"
1861
+ }
1862
+ },
1863
+ rdpInBrowserUrl: {
1864
+ constraints: {
1865
+ MaxLength: 2000,
1866
+ MinLength: 3
1867
+ },
1868
+ serializedName: "rdpInBrowserUrl",
1869
+ readOnly: true,
1870
+ type: {
1871
+ name: "String"
1872
+ }
1873
+ },
1874
+ adminUsername: {
1875
+ serializedName: "adminUsername",
1876
+ readOnly: true,
1877
+ type: {
1878
+ name: "String"
1879
+ }
1880
+ },
1881
+ nonAdminUsername: {
1882
+ serializedName: "nonAdminUsername",
1883
+ readOnly: true,
1884
+ type: {
1885
+ name: "String"
1886
+ }
1887
+ }
1888
+ }
1889
+ }
1890
+ };
1891
+ const ResetPasswordBody = {
1892
+ type: {
1893
+ name: "Composite",
1894
+ className: "ResetPasswordBody",
1895
+ modelProperties: {
1896
+ username: {
1897
+ serializedName: "username",
1898
+ required: true,
1899
+ type: {
1900
+ name: "String"
1901
+ }
1902
+ },
1903
+ password: {
1904
+ serializedName: "password",
1905
+ required: true,
1906
+ type: {
1907
+ name: "String"
1908
+ }
1909
+ }
1910
+ }
1911
+ }
1912
+ };
1913
+ const ImageProperties = {
1914
+ type: {
1915
+ name: "Composite",
1916
+ className: "ImageProperties",
1917
+ modelProperties: Object.assign(Object.assign({}, ImageUpdateProperties.type.modelProperties), { provisioningState: {
1918
+ serializedName: "provisioningState",
1919
+ readOnly: true,
1920
+ type: {
1921
+ name: "Enum",
1922
+ allowedValues: [
1923
+ "Creating",
1924
+ "Updating",
1925
+ "Deleting",
1926
+ "Succeeded",
1927
+ "Failed",
1874
1928
  "Locked"
1875
1929
  ]
1876
1930
  }
@@ -2023,7 +2077,13 @@ const LabPlanUpdate = {
2023
2077
  type: {
2024
2078
  name: "Composite",
2025
2079
  className: "LabPlanUpdate",
2026
- modelProperties: Object.assign(Object.assign({}, TrackedResourceUpdate.type.modelProperties), { defaultConnectionProfile: {
2080
+ modelProperties: Object.assign(Object.assign({}, TrackedResourceUpdate.type.modelProperties), { identity: {
2081
+ serializedName: "identity",
2082
+ type: {
2083
+ name: "Composite",
2084
+ className: "Identity"
2085
+ }
2086
+ }, defaultConnectionProfile: {
2027
2087
  serializedName: "properties.defaultConnectionProfile",
2028
2088
  type: {
2029
2089
  name: "Composite",
@@ -2594,6 +2654,12 @@ const LabPlan = {
2594
2654
  name: "Composite",
2595
2655
  className: "SystemData"
2596
2656
  }
2657
+ }, identity: {
2658
+ serializedName: "identity",
2659
+ type: {
2660
+ name: "Composite",
2661
+ className: "Identity"
2662
+ }
2597
2663
  }, defaultConnectionProfile: {
2598
2664
  serializedName: "properties.defaultConnectionProfile",
2599
2665
  type: {
@@ -2779,6 +2845,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
2779
2845
  AutoShutdownProfile: AutoShutdownProfile,
2780
2846
  LabPlanNetworkProfile: LabPlanNetworkProfile,
2781
2847
  SupportInfo: SupportInfo,
2848
+ Identity: Identity,
2782
2849
  TrackedResourceUpdate: TrackedResourceUpdate,
2783
2850
  SaveImageBody: SaveImageBody,
2784
2851
  OperationListResult: OperationListResult,
@@ -2799,6 +2866,15 @@ var Mappers = /*#__PURE__*/Object.freeze({
2799
2866
  ScheduleUpdateProperties: ScheduleUpdateProperties,
2800
2867
  RecurrencePattern: RecurrencePattern,
2801
2868
  ScheduleUpdate: ScheduleUpdate,
2869
+ PagedLabServicesSkus: PagedLabServicesSkus,
2870
+ LabServicesSku: LabServicesSku,
2871
+ LabServicesSkuCapacity: LabServicesSkuCapacity,
2872
+ LabServicesSkuCapabilities: LabServicesSkuCapabilities,
2873
+ LabServicesSkuCost: LabServicesSkuCost,
2874
+ LabServicesSkuRestrictions: LabServicesSkuRestrictions,
2875
+ ListUsagesResult: ListUsagesResult,
2876
+ Usage: Usage,
2877
+ UsageName: UsageName,
2802
2878
  PagedUsers: PagedUsers,
2803
2879
  UserUpdateProperties: UserUpdateProperties,
2804
2880
  UserUpdate: UserUpdate,
@@ -2806,15 +2882,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
2806
2882
  PagedVirtualMachines: PagedVirtualMachines,
2807
2883
  VirtualMachineConnectionProfile: VirtualMachineConnectionProfile,
2808
2884
  ResetPasswordBody: ResetPasswordBody,
2809
- ListUsagesResult: ListUsagesResult,
2810
- Usage: Usage,
2811
- UsageName: UsageName,
2812
- PagedLabServicesSkus: PagedLabServicesSkus,
2813
- LabServicesSku: LabServicesSku,
2814
- LabServicesSkuCapacity: LabServicesSkuCapacity,
2815
- LabServicesSkuCapabilities: LabServicesSkuCapabilities,
2816
- LabServicesSkuCost: LabServicesSkuCost,
2817
- LabServicesSkuRestrictions: LabServicesSkuRestrictions,
2818
2885
  ImageProperties: ImageProperties,
2819
2886
  ProxyResource: ProxyResource,
2820
2887
  TrackedResource: TrackedResource,
@@ -2864,7 +2931,7 @@ const $host = {
2864
2931
  const apiVersion = {
2865
2932
  parameterPath: "apiVersion",
2866
2933
  mapper: {
2867
- defaultValue: "2021-11-15-preview",
2934
+ defaultValue: "2022-08-01",
2868
2935
  isConstant: true,
2869
2936
  serializedName: "api-version",
2870
2937
  type: {
@@ -3039,6 +3106,21 @@ const body8 = {
3039
3106
  parameterPath: "body",
3040
3107
  mapper: ScheduleUpdate
3041
3108
  };
3109
+ const location = {
3110
+ parameterPath: "location",
3111
+ mapper: {
3112
+ constraints: {
3113
+ Pattern: new RegExp("^[-\\w\\._]+$"),
3114
+ MaxLength: 100,
3115
+ MinLength: 1
3116
+ },
3117
+ serializedName: "location",
3118
+ required: true,
3119
+ type: {
3120
+ name: "String"
3121
+ }
3122
+ }
3123
+ };
3042
3124
  const userName = {
3043
3125
  parameterPath: "userName",
3044
3126
  mapper: {
@@ -3085,21 +3167,6 @@ const body12 = {
3085
3167
  parameterPath: "body",
3086
3168
  mapper: ResetPasswordBody
3087
3169
  };
3088
- const location = {
3089
- parameterPath: "location",
3090
- mapper: {
3091
- constraints: {
3092
- Pattern: new RegExp("^[-\\w\\._]+$"),
3093
- MaxLength: 100,
3094
- MinLength: 1
3095
- },
3096
- serializedName: "location",
3097
- required: true,
3098
- type: {
3099
- name: "String"
3100
- }
3101
- }
3102
- };
3103
3170
 
3104
3171
  /*
3105
3172
  * Copyright (c) Microsoft Corporation.
@@ -4210,8 +4277,8 @@ class LabsImpl {
4210
4277
  /**
4211
4278
  * Returns the properties of a lab resource.
4212
4279
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4213
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4214
- * in resource URIs.
4280
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
4281
+ * resource URIs.
4215
4282
  * @param options The options parameters.
4216
4283
  */
4217
4284
  get(resourceGroupName, labName, options) {
@@ -4220,8 +4287,8 @@ class LabsImpl {
4220
4287
  /**
4221
4288
  * Operation to create or update a lab resource.
4222
4289
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4223
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4224
- * in resource URIs.
4290
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
4291
+ * resource URIs.
4225
4292
  * @param body The request body.
4226
4293
  * @param options The options parameters.
4227
4294
  */
@@ -4262,8 +4329,8 @@ class LabsImpl {
4262
4329
  /**
4263
4330
  * Operation to create or update a lab resource.
4264
4331
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4265
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4266
- * in resource URIs.
4332
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
4333
+ * resource URIs.
4267
4334
  * @param body The request body.
4268
4335
  * @param options The options parameters.
4269
4336
  */
@@ -4276,8 +4343,8 @@ class LabsImpl {
4276
4343
  /**
4277
4344
  * Operation to update a lab resource.
4278
4345
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4279
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4280
- * in resource URIs.
4346
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
4347
+ * resource URIs.
4281
4348
  * @param body The request body.
4282
4349
  * @param options The options parameters.
4283
4350
  */
@@ -4318,8 +4385,8 @@ class LabsImpl {
4318
4385
  /**
4319
4386
  * Operation to update a lab resource.
4320
4387
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4321
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4322
- * in resource URIs.
4388
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
4389
+ * resource URIs.
4323
4390
  * @param body The request body.
4324
4391
  * @param options The options parameters.
4325
4392
  */
@@ -4332,8 +4399,8 @@ class LabsImpl {
4332
4399
  /**
4333
4400
  * Operation to delete a lab resource.
4334
4401
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4335
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4336
- * in resource URIs.
4402
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
4403
+ * resource URIs.
4337
4404
  * @param options The options parameters.
4338
4405
  */
4339
4406
  beginDelete(resourceGroupName, labName, options) {
@@ -4373,8 +4440,8 @@ class LabsImpl {
4373
4440
  /**
4374
4441
  * Operation to delete a lab resource.
4375
4442
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4376
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4377
- * in resource URIs.
4443
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
4444
+ * resource URIs.
4378
4445
  * @param options The options parameters.
4379
4446
  */
4380
4447
  beginDeleteAndWait(resourceGroupName, labName, options) {
@@ -4386,8 +4453,8 @@ class LabsImpl {
4386
4453
  /**
4387
4454
  * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines.
4388
4455
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4389
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4390
- * in resource URIs.
4456
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
4457
+ * resource URIs.
4391
4458
  * @param options The options parameters.
4392
4459
  */
4393
4460
  beginPublish(resourceGroupName, labName, options) {
@@ -4427,8 +4494,8 @@ class LabsImpl {
4427
4494
  /**
4428
4495
  * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines.
4429
4496
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4430
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4431
- * in resource URIs.
4497
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
4498
+ * resource URIs.
4432
4499
  * @param options The options parameters.
4433
4500
  */
4434
4501
  beginPublishAndWait(resourceGroupName, labName, options) {
@@ -4440,8 +4507,8 @@ class LabsImpl {
4440
4507
  /**
4441
4508
  * Action used to manually kick off an AAD group sync job.
4442
4509
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4443
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4444
- * in resource URIs.
4510
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
4511
+ * resource URIs.
4445
4512
  * @param options The options parameters.
4446
4513
  */
4447
4514
  beginSyncGroup(resourceGroupName, labName, options) {
@@ -4481,8 +4548,8 @@ class LabsImpl {
4481
4548
  /**
4482
4549
  * Action used to manually kick off an AAD group sync job.
4483
4550
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4484
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4485
- * in resource URIs.
4551
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
4552
+ * resource URIs.
4486
4553
  * @param options The options parameters.
4487
4554
  */
4488
4555
  beginSyncGroupAndWait(resourceGroupName, labName, options) {
@@ -4809,8 +4876,8 @@ class SchedulesImpl {
4809
4876
  /**
4810
4877
  * Returns a list of all schedules for a lab.
4811
4878
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4812
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4813
- * in resource URIs.
4879
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
4880
+ * resource URIs.
4814
4881
  * @param options The options parameters.
4815
4882
  */
4816
4883
  listByLab(resourceGroupName, labName, options) {
@@ -4860,8 +4927,8 @@ class SchedulesImpl {
4860
4927
  /**
4861
4928
  * Returns a list of all schedules for a lab.
4862
4929
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4863
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4864
- * in resource URIs.
4930
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
4931
+ * resource URIs.
4865
4932
  * @param options The options parameters.
4866
4933
  */
4867
4934
  _listByLab(resourceGroupName, labName, options) {
@@ -4870,8 +4937,8 @@ class SchedulesImpl {
4870
4937
  /**
4871
4938
  * Returns the properties of a lab Schedule.
4872
4939
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4873
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4874
- * in resource URIs.
4940
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
4941
+ * resource URIs.
4875
4942
  * @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
4876
4943
  * in resource URIs.
4877
4944
  * @param options The options parameters.
@@ -4882,8 +4949,8 @@ class SchedulesImpl {
4882
4949
  /**
4883
4950
  * Operation to create or update a lab schedule.
4884
4951
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4885
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4886
- * in resource URIs.
4952
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
4953
+ * resource URIs.
4887
4954
  * @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
4888
4955
  * in resource URIs.
4889
4956
  * @param body The request body.
@@ -4895,8 +4962,8 @@ class SchedulesImpl {
4895
4962
  /**
4896
4963
  * Operation to update a lab schedule.
4897
4964
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4898
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4899
- * in resource URIs.
4965
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
4966
+ * resource URIs.
4900
4967
  * @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
4901
4968
  * in resource URIs.
4902
4969
  * @param body The request body.
@@ -4908,8 +4975,8 @@ class SchedulesImpl {
4908
4975
  /**
4909
4976
  * Operation to delete a schedule resource.
4910
4977
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4911
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4912
- * in resource URIs.
4978
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
4979
+ * resource URIs.
4913
4980
  * @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
4914
4981
  * in resource URIs.
4915
4982
  * @param options The options parameters.
@@ -4951,8 +5018,8 @@ class SchedulesImpl {
4951
5018
  /**
4952
5019
  * Operation to delete a schedule resource.
4953
5020
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4954
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4955
- * in resource URIs.
5021
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
5022
+ * resource URIs.
4956
5023
  * @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
4957
5024
  * in resource URIs.
4958
5025
  * @param options The options parameters.
@@ -4966,8 +5033,8 @@ class SchedulesImpl {
4966
5033
  /**
4967
5034
  * ListByLabNext
4968
5035
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
4969
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
4970
- * in resource URIs.
5036
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
5037
+ * resource URIs.
4971
5038
  * @param nextLink The nextLink from the previous successful call to the ListByLab method.
4972
5039
  * @param options The options parameters.
4973
5040
  */
@@ -5125,24 +5192,21 @@ const listByLabNextOperationSpec$2 = {
5125
5192
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
5126
5193
  */
5127
5194
  /// <reference lib="esnext.asynciterable" />
5128
- /** Class containing Users operations. */
5129
- class UsersImpl {
5195
+ /** Class containing Skus operations. */
5196
+ class SkusImpl {
5130
5197
  /**
5131
- * Initialize a new instance of the class Users class.
5198
+ * Initialize a new instance of the class Skus class.
5132
5199
  * @param client Reference to the service client
5133
5200
  */
5134
5201
  constructor(client) {
5135
5202
  this.client = client;
5136
5203
  }
5137
5204
  /**
5138
- * Returns a list of all users for a lab.
5139
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
5140
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5141
- * in resource URIs.
5205
+ * Returns a list of Azure Lab Services resource SKUs.
5142
5206
  * @param options The options parameters.
5143
5207
  */
5144
- listByLab(resourceGroupName, labName, options) {
5145
- const iter = this.listByLabPagingAll(resourceGroupName, labName, options);
5208
+ list(options) {
5209
+ const iter = this.listPagingAll(options);
5146
5210
  return {
5147
5211
  next() {
5148
5212
  return iter.next();
@@ -5151,27 +5215,27 @@ class UsersImpl {
5151
5215
  return this;
5152
5216
  },
5153
5217
  byPage: () => {
5154
- return this.listByLabPagingPage(resourceGroupName, labName, options);
5218
+ return this.listPagingPage(options);
5155
5219
  }
5156
5220
  };
5157
5221
  }
5158
- listByLabPagingPage(resourceGroupName, labName, options) {
5159
- return tslib.__asyncGenerator(this, arguments, function* listByLabPagingPage_1() {
5160
- let result = yield tslib.__await(this._listByLab(resourceGroupName, labName, options));
5222
+ listPagingPage(options) {
5223
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
5224
+ let result = yield tslib.__await(this._list(options));
5161
5225
  yield yield tslib.__await(result.value || []);
5162
5226
  let continuationToken = result.nextLink;
5163
5227
  while (continuationToken) {
5164
- result = yield tslib.__await(this._listByLabNext(resourceGroupName, labName, continuationToken, options));
5228
+ result = yield tslib.__await(this._listNext(continuationToken, options));
5165
5229
  continuationToken = result.nextLink;
5166
5230
  yield yield tslib.__await(result.value || []);
5167
5231
  }
5168
5232
  });
5169
5233
  }
5170
- listByLabPagingAll(resourceGroupName, labName, options) {
5171
- return tslib.__asyncGenerator(this, arguments, function* listByLabPagingAll_1() {
5234
+ listPagingAll(options) {
5235
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
5172
5236
  var e_1, _a;
5173
5237
  try {
5174
- for (var _b = tslib.__asyncValues(this.listByLabPagingPage(resourceGroupName, labName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
5238
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
5175
5239
  const page = _c.value;
5176
5240
  yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
5177
5241
  }
@@ -5186,35 +5250,286 @@ class UsersImpl {
5186
5250
  });
5187
5251
  }
5188
5252
  /**
5189
- * Returns a list of all users for a lab.
5190
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
5191
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5192
- * in resource URIs.
5253
+ * Returns a list of Azure Lab Services resource SKUs.
5193
5254
  * @param options The options parameters.
5194
5255
  */
5195
- _listByLab(resourceGroupName, labName, options) {
5196
- return this.client.sendOperationRequest({ resourceGroupName, labName, options }, listByLabOperationSpec$1);
5256
+ _list(options) {
5257
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
5197
5258
  }
5198
5259
  /**
5199
- * Returns the properties of a lab user.
5200
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
5201
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5202
- * in resource URIs.
5203
- * @param userName The name of the user that uniquely identifies it within containing lab. Used in
5204
- * resource URIs.
5260
+ * ListNext
5261
+ * @param nextLink The nextLink from the previous successful call to the List method.
5205
5262
  * @param options The options parameters.
5206
5263
  */
5207
- get(resourceGroupName, labName, userName, options) {
5208
- return this.client.sendOperationRequest({ resourceGroupName, labName, userName, options }, getOperationSpec$1);
5264
+ _listNext(nextLink, options) {
5265
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
5209
5266
  }
5267
+ }
5268
+ // Operation Specifications
5269
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5270
+ const listOperationSpec = {
5271
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/skus",
5272
+ httpMethod: "GET",
5273
+ responses: {
5274
+ 200: {
5275
+ bodyMapper: PagedLabServicesSkus
5276
+ },
5277
+ default: {
5278
+ bodyMapper: ErrorResponse
5279
+ }
5280
+ },
5281
+ queryParameters: [apiVersion, filter],
5282
+ urlParameters: [$host, subscriptionId],
5283
+ headerParameters: [accept],
5284
+ serializer: serializer$3
5285
+ };
5286
+ const listNextOperationSpec = {
5287
+ path: "{nextLink}",
5288
+ httpMethod: "GET",
5289
+ responses: {
5290
+ 200: {
5291
+ bodyMapper: PagedLabServicesSkus
5292
+ },
5293
+ default: {
5294
+ bodyMapper: ErrorResponse
5295
+ }
5296
+ },
5297
+ queryParameters: [apiVersion, filter],
5298
+ urlParameters: [
5299
+ $host,
5300
+ subscriptionId,
5301
+ nextLink
5302
+ ],
5303
+ headerParameters: [accept],
5304
+ serializer: serializer$3
5305
+ };
5306
+
5307
+ /*
5308
+ * Copyright (c) Microsoft Corporation.
5309
+ * Licensed under the MIT License.
5310
+ *
5311
+ * Code generated by Microsoft (R) AutoRest Code Generator.
5312
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
5313
+ */
5314
+ /// <reference lib="esnext.asynciterable" />
5315
+ /** Class containing Usages operations. */
5316
+ class UsagesImpl {
5210
5317
  /**
5211
- * Operation to create or update a lab user.
5212
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
5213
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5214
- * in resource URIs.
5215
- * @param userName The name of the user that uniquely identifies it within containing lab. Used in
5216
- * resource URIs.
5217
- * @param body The request body.
5318
+ * Initialize a new instance of the class Usages class.
5319
+ * @param client Reference to the service client
5320
+ */
5321
+ constructor(client) {
5322
+ this.client = client;
5323
+ }
5324
+ /**
5325
+ * Returns list of usage per SKU family for the specified subscription in the specified region.
5326
+ * @param location The location name.
5327
+ * @param options The options parameters.
5328
+ */
5329
+ listByLocation(location, options) {
5330
+ const iter = this.listByLocationPagingAll(location, options);
5331
+ return {
5332
+ next() {
5333
+ return iter.next();
5334
+ },
5335
+ [Symbol.asyncIterator]() {
5336
+ return this;
5337
+ },
5338
+ byPage: () => {
5339
+ return this.listByLocationPagingPage(location, options);
5340
+ }
5341
+ };
5342
+ }
5343
+ listByLocationPagingPage(location, options) {
5344
+ return tslib.__asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
5345
+ let result = yield tslib.__await(this._listByLocation(location, options));
5346
+ yield yield tslib.__await(result.value || []);
5347
+ let continuationToken = result.nextLink;
5348
+ while (continuationToken) {
5349
+ result = yield tslib.__await(this._listByLocationNext(location, continuationToken, options));
5350
+ continuationToken = result.nextLink;
5351
+ yield yield tslib.__await(result.value || []);
5352
+ }
5353
+ });
5354
+ }
5355
+ listByLocationPagingAll(location, options) {
5356
+ return tslib.__asyncGenerator(this, arguments, function* listByLocationPagingAll_1() {
5357
+ var e_1, _a;
5358
+ try {
5359
+ for (var _b = tslib.__asyncValues(this.listByLocationPagingPage(location, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
5360
+ const page = _c.value;
5361
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
5362
+ }
5363
+ }
5364
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
5365
+ finally {
5366
+ try {
5367
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
5368
+ }
5369
+ finally { if (e_1) throw e_1.error; }
5370
+ }
5371
+ });
5372
+ }
5373
+ /**
5374
+ * Returns list of usage per SKU family for the specified subscription in the specified region.
5375
+ * @param location The location name.
5376
+ * @param options The options parameters.
5377
+ */
5378
+ _listByLocation(location, options) {
5379
+ return this.client.sendOperationRequest({ location, options }, listByLocationOperationSpec);
5380
+ }
5381
+ /**
5382
+ * ListByLocationNext
5383
+ * @param location The location name.
5384
+ * @param nextLink The nextLink from the previous successful call to the ListByLocation method.
5385
+ * @param options The options parameters.
5386
+ */
5387
+ _listByLocationNext(location, nextLink, options) {
5388
+ return this.client.sendOperationRequest({ location, nextLink, options }, listByLocationNextOperationSpec);
5389
+ }
5390
+ }
5391
+ // Operation Specifications
5392
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5393
+ const listByLocationOperationSpec = {
5394
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/locations/{location}/usages",
5395
+ httpMethod: "GET",
5396
+ responses: {
5397
+ 200: {
5398
+ bodyMapper: ListUsagesResult
5399
+ },
5400
+ default: {
5401
+ bodyMapper: ErrorResponse
5402
+ }
5403
+ },
5404
+ queryParameters: [apiVersion, filter],
5405
+ urlParameters: [
5406
+ $host,
5407
+ subscriptionId,
5408
+ location
5409
+ ],
5410
+ headerParameters: [accept],
5411
+ serializer: serializer$2
5412
+ };
5413
+ const listByLocationNextOperationSpec = {
5414
+ path: "{nextLink}",
5415
+ httpMethod: "GET",
5416
+ responses: {
5417
+ 200: {
5418
+ bodyMapper: ListUsagesResult
5419
+ },
5420
+ default: {
5421
+ bodyMapper: ErrorResponse
5422
+ }
5423
+ },
5424
+ queryParameters: [apiVersion, filter],
5425
+ urlParameters: [
5426
+ $host,
5427
+ subscriptionId,
5428
+ nextLink,
5429
+ location
5430
+ ],
5431
+ headerParameters: [accept],
5432
+ serializer: serializer$2
5433
+ };
5434
+
5435
+ /*
5436
+ * Copyright (c) Microsoft Corporation.
5437
+ * Licensed under the MIT License.
5438
+ *
5439
+ * Code generated by Microsoft (R) AutoRest Code Generator.
5440
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
5441
+ */
5442
+ /// <reference lib="esnext.asynciterable" />
5443
+ /** Class containing Users operations. */
5444
+ class UsersImpl {
5445
+ /**
5446
+ * Initialize a new instance of the class Users class.
5447
+ * @param client Reference to the service client
5448
+ */
5449
+ constructor(client) {
5450
+ this.client = client;
5451
+ }
5452
+ /**
5453
+ * Returns a list of all users for a lab.
5454
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5455
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
5456
+ * resource URIs.
5457
+ * @param options The options parameters.
5458
+ */
5459
+ listByLab(resourceGroupName, labName, options) {
5460
+ const iter = this.listByLabPagingAll(resourceGroupName, labName, options);
5461
+ return {
5462
+ next() {
5463
+ return iter.next();
5464
+ },
5465
+ [Symbol.asyncIterator]() {
5466
+ return this;
5467
+ },
5468
+ byPage: () => {
5469
+ return this.listByLabPagingPage(resourceGroupName, labName, options);
5470
+ }
5471
+ };
5472
+ }
5473
+ listByLabPagingPage(resourceGroupName, labName, options) {
5474
+ return tslib.__asyncGenerator(this, arguments, function* listByLabPagingPage_1() {
5475
+ let result = yield tslib.__await(this._listByLab(resourceGroupName, labName, options));
5476
+ yield yield tslib.__await(result.value || []);
5477
+ let continuationToken = result.nextLink;
5478
+ while (continuationToken) {
5479
+ result = yield tslib.__await(this._listByLabNext(resourceGroupName, labName, continuationToken, options));
5480
+ continuationToken = result.nextLink;
5481
+ yield yield tslib.__await(result.value || []);
5482
+ }
5483
+ });
5484
+ }
5485
+ listByLabPagingAll(resourceGroupName, labName, options) {
5486
+ return tslib.__asyncGenerator(this, arguments, function* listByLabPagingAll_1() {
5487
+ var e_1, _a;
5488
+ try {
5489
+ for (var _b = tslib.__asyncValues(this.listByLabPagingPage(resourceGroupName, labName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
5490
+ const page = _c.value;
5491
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
5492
+ }
5493
+ }
5494
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
5495
+ finally {
5496
+ try {
5497
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
5498
+ }
5499
+ finally { if (e_1) throw e_1.error; }
5500
+ }
5501
+ });
5502
+ }
5503
+ /**
5504
+ * Returns a list of all users for a lab.
5505
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5506
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
5507
+ * resource URIs.
5508
+ * @param options The options parameters.
5509
+ */
5510
+ _listByLab(resourceGroupName, labName, options) {
5511
+ return this.client.sendOperationRequest({ resourceGroupName, labName, options }, listByLabOperationSpec$1);
5512
+ }
5513
+ /**
5514
+ * Returns the properties of a lab user.
5515
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5516
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
5517
+ * resource URIs.
5518
+ * @param userName The name of the user that uniquely identifies it within containing lab. Used in
5519
+ * resource URIs.
5520
+ * @param options The options parameters.
5521
+ */
5522
+ get(resourceGroupName, labName, userName, options) {
5523
+ return this.client.sendOperationRequest({ resourceGroupName, labName, userName, options }, getOperationSpec$1);
5524
+ }
5525
+ /**
5526
+ * Operation to create or update a lab user.
5527
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5528
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
5529
+ * resource URIs.
5530
+ * @param userName The name of the user that uniquely identifies it within containing lab. Used in
5531
+ * resource URIs.
5532
+ * @param body The request body.
5218
5533
  * @param options The options parameters.
5219
5534
  */
5220
5535
  beginCreateOrUpdate(resourceGroupName, labName, userName, body, options) {
@@ -5254,8 +5569,8 @@ class UsersImpl {
5254
5569
  /**
5255
5570
  * Operation to create or update a lab user.
5256
5571
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5257
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5258
- * in resource URIs.
5572
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
5573
+ * resource URIs.
5259
5574
  * @param userName The name of the user that uniquely identifies it within containing lab. Used in
5260
5575
  * resource URIs.
5261
5576
  * @param body The request body.
@@ -5270,8 +5585,8 @@ class UsersImpl {
5270
5585
  /**
5271
5586
  * Operation to update a lab user.
5272
5587
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5273
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5274
- * in resource URIs.
5588
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
5589
+ * resource URIs.
5275
5590
  * @param userName The name of the user that uniquely identifies it within containing lab. Used in
5276
5591
  * resource URIs.
5277
5592
  * @param body The request body.
@@ -5314,8 +5629,8 @@ class UsersImpl {
5314
5629
  /**
5315
5630
  * Operation to update a lab user.
5316
5631
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5317
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5318
- * in resource URIs.
5632
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
5633
+ * resource URIs.
5319
5634
  * @param userName The name of the user that uniquely identifies it within containing lab. Used in
5320
5635
  * resource URIs.
5321
5636
  * @param body The request body.
@@ -5330,8 +5645,8 @@ class UsersImpl {
5330
5645
  /**
5331
5646
  * Operation to delete a user resource.
5332
5647
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5333
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5334
- * in resource URIs.
5648
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
5649
+ * resource URIs.
5335
5650
  * @param userName The name of the user that uniquely identifies it within containing lab. Used in
5336
5651
  * resource URIs.
5337
5652
  * @param options The options parameters.
@@ -5373,8 +5688,8 @@ class UsersImpl {
5373
5688
  /**
5374
5689
  * Operation to delete a user resource.
5375
5690
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5376
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5377
- * in resource URIs.
5691
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
5692
+ * resource URIs.
5378
5693
  * @param userName The name of the user that uniquely identifies it within containing lab. Used in
5379
5694
  * resource URIs.
5380
5695
  * @param options The options parameters.
@@ -5388,8 +5703,8 @@ class UsersImpl {
5388
5703
  /**
5389
5704
  * Operation to invite a user to a lab.
5390
5705
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5391
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5392
- * in resource URIs.
5706
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
5707
+ * resource URIs.
5393
5708
  * @param userName The name of the user that uniquely identifies it within containing lab. Used in
5394
5709
  * resource URIs.
5395
5710
  * @param body The request body.
@@ -5432,8 +5747,8 @@ class UsersImpl {
5432
5747
  /**
5433
5748
  * Operation to invite a user to a lab.
5434
5749
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5435
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5436
- * in resource URIs.
5750
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
5751
+ * resource URIs.
5437
5752
  * @param userName The name of the user that uniquely identifies it within containing lab. Used in
5438
5753
  * resource URIs.
5439
5754
  * @param body The request body.
@@ -5448,8 +5763,8 @@ class UsersImpl {
5448
5763
  /**
5449
5764
  * ListByLabNext
5450
5765
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5451
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5452
- * in resource URIs.
5766
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
5767
+ * resource URIs.
5453
5768
  * @param nextLink The nextLink from the previous successful call to the ListByLab method.
5454
5769
  * @param options The options parameters.
5455
5770
  */
@@ -5458,7 +5773,7 @@ class UsersImpl {
5458
5773
  }
5459
5774
  }
5460
5775
  // Operation Specifications
5461
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5776
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5462
5777
  const listByLabOperationSpec$1 = {
5463
5778
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users",
5464
5779
  httpMethod: "GET",
@@ -5478,7 +5793,7 @@ const listByLabOperationSpec$1 = {
5478
5793
  labName
5479
5794
  ],
5480
5795
  headerParameters: [accept],
5481
- serializer: serializer$3
5796
+ serializer: serializer$1
5482
5797
  };
5483
5798
  const getOperationSpec$1 = {
5484
5799
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}",
@@ -5500,7 +5815,7 @@ const getOperationSpec$1 = {
5500
5815
  userName
5501
5816
  ],
5502
5817
  headerParameters: [accept],
5503
- serializer: serializer$3
5818
+ serializer: serializer$1
5504
5819
  };
5505
5820
  const createOrUpdateOperationSpec = {
5506
5821
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}",
@@ -5533,7 +5848,7 @@ const createOrUpdateOperationSpec = {
5533
5848
  ],
5534
5849
  headerParameters: [accept, contentType],
5535
5850
  mediaType: "json",
5536
- serializer: serializer$3
5851
+ serializer: serializer$1
5537
5852
  };
5538
5853
  const updateOperationSpec = {
5539
5854
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}",
@@ -5566,7 +5881,7 @@ const updateOperationSpec = {
5566
5881
  ],
5567
5882
  headerParameters: [accept, contentType],
5568
5883
  mediaType: "json",
5569
- serializer: serializer$3
5884
+ serializer: serializer$1
5570
5885
  };
5571
5886
  const deleteOperationSpec = {
5572
5887
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}",
@@ -5589,7 +5904,7 @@ const deleteOperationSpec = {
5589
5904
  userName
5590
5905
  ],
5591
5906
  headerParameters: [accept],
5592
- serializer: serializer$3
5907
+ serializer: serializer$1
5593
5908
  };
5594
5909
  const inviteOperationSpec = {
5595
5910
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}/invite",
@@ -5614,7 +5929,7 @@ const inviteOperationSpec = {
5614
5929
  ],
5615
5930
  headerParameters: [accept, contentType],
5616
5931
  mediaType: "json",
5617
- serializer: serializer$3
5932
+ serializer: serializer$1
5618
5933
  };
5619
5934
  const listByLabNextOperationSpec$1 = {
5620
5935
  path: "{nextLink}",
@@ -5636,7 +5951,7 @@ const listByLabNextOperationSpec$1 = {
5636
5951
  labName
5637
5952
  ],
5638
5953
  headerParameters: [accept],
5639
- serializer: serializer$3
5954
+ serializer: serializer$1
5640
5955
  };
5641
5956
 
5642
5957
  /*
@@ -5659,8 +5974,8 @@ class VirtualMachinesImpl {
5659
5974
  /**
5660
5975
  * Returns a list of all virtual machines for a lab.
5661
5976
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5662
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5663
- * in resource URIs.
5977
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
5978
+ * resource URIs.
5664
5979
  * @param options The options parameters.
5665
5980
  */
5666
5981
  listByLab(resourceGroupName, labName, options) {
@@ -5710,8 +6025,8 @@ class VirtualMachinesImpl {
5710
6025
  /**
5711
6026
  * Returns a list of all virtual machines for a lab.
5712
6027
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5713
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5714
- * in resource URIs.
6028
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
6029
+ * resource URIs.
5715
6030
  * @param options The options parameters.
5716
6031
  */
5717
6032
  _listByLab(resourceGroupName, labName, options) {
@@ -5720,8 +6035,8 @@ class VirtualMachinesImpl {
5720
6035
  /**
5721
6036
  * Returns the properties for a lab virtual machine.
5722
6037
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5723
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5724
- * in resource URIs.
6038
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
6039
+ * resource URIs.
5725
6040
  * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
5726
6041
  * containing lab. Used in resource URIs.
5727
6042
  * @param options The options parameters.
@@ -5732,8 +6047,8 @@ class VirtualMachinesImpl {
5732
6047
  /**
5733
6048
  * Action to start a lab virtual machine.
5734
6049
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5735
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5736
- * in resource URIs.
6050
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
6051
+ * resource URIs.
5737
6052
  * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
5738
6053
  * containing lab. Used in resource URIs.
5739
6054
  * @param options The options parameters.
@@ -5775,8 +6090,8 @@ class VirtualMachinesImpl {
5775
6090
  /**
5776
6091
  * Action to start a lab virtual machine.
5777
6092
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5778
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5779
- * in resource URIs.
6093
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
6094
+ * resource URIs.
5780
6095
  * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
5781
6096
  * containing lab. Used in resource URIs.
5782
6097
  * @param options The options parameters.
@@ -5790,8 +6105,8 @@ class VirtualMachinesImpl {
5790
6105
  /**
5791
6106
  * Action to stop a lab virtual machine.
5792
6107
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5793
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5794
- * in resource URIs.
6108
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
6109
+ * resource URIs.
5795
6110
  * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
5796
6111
  * containing lab. Used in resource URIs.
5797
6112
  * @param options The options parameters.
@@ -5833,8 +6148,8 @@ class VirtualMachinesImpl {
5833
6148
  /**
5834
6149
  * Action to stop a lab virtual machine.
5835
6150
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5836
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5837
- * in resource URIs.
6151
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
6152
+ * resource URIs.
5838
6153
  * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
5839
6154
  * containing lab. Used in resource URIs.
5840
6155
  * @param options The options parameters.
@@ -5849,8 +6164,8 @@ class VirtualMachinesImpl {
5849
6164
  * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest
5850
6165
  * published snapshot of the reference environment of the lab.
5851
6166
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5852
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5853
- * in resource URIs.
6167
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
6168
+ * resource URIs.
5854
6169
  * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
5855
6170
  * containing lab. Used in resource URIs.
5856
6171
  * @param options The options parameters.
@@ -5893,8 +6208,8 @@ class VirtualMachinesImpl {
5893
6208
  * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest
5894
6209
  * published snapshot of the reference environment of the lab.
5895
6210
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5896
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5897
- * in resource URIs.
6211
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
6212
+ * resource URIs.
5898
6213
  * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
5899
6214
  * containing lab. Used in resource URIs.
5900
6215
  * @param options The options parameters.
@@ -5909,8 +6224,8 @@ class VirtualMachinesImpl {
5909
6224
  * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting
5910
6225
  * connectivity.
5911
6226
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5912
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5913
- * in resource URIs.
6227
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
6228
+ * resource URIs.
5914
6229
  * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
5915
6230
  * containing lab. Used in resource URIs.
5916
6231
  * @param options The options parameters.
@@ -5953,8 +6268,8 @@ class VirtualMachinesImpl {
5953
6268
  * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting
5954
6269
  * connectivity.
5955
6270
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5956
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5957
- * in resource URIs.
6271
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
6272
+ * resource URIs.
5958
6273
  * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
5959
6274
  * containing lab. Used in resource URIs.
5960
6275
  * @param options The options parameters.
@@ -5968,8 +6283,8 @@ class VirtualMachinesImpl {
5968
6283
  /**
5969
6284
  * Resets a lab virtual machine password.
5970
6285
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5971
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
5972
- * in resource URIs.
6286
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
6287
+ * resource URIs.
5973
6288
  * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
5974
6289
  * containing lab. Used in resource URIs.
5975
6290
  * @param body The request body.
@@ -6012,8 +6327,8 @@ class VirtualMachinesImpl {
6012
6327
  /**
6013
6328
  * Resets a lab virtual machine password.
6014
6329
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
6015
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
6016
- * in resource URIs.
6330
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
6331
+ * resource URIs.
6017
6332
  * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
6018
6333
  * containing lab. Used in resource URIs.
6019
6334
  * @param body The request body.
@@ -6028,8 +6343,8 @@ class VirtualMachinesImpl {
6028
6343
  /**
6029
6344
  * ListByLabNext
6030
6345
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
6031
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
6032
- * in resource URIs.
6346
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in
6347
+ * resource URIs.
6033
6348
  * @param nextLink The nextLink from the previous successful call to the ListByLab method.
6034
6349
  * @param options The options parameters.
6035
6350
  */
@@ -6038,7 +6353,7 @@ class VirtualMachinesImpl {
6038
6353
  }
6039
6354
  }
6040
6355
  // Operation Specifications
6041
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6356
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6042
6357
  const listByLabOperationSpec = {
6043
6358
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines",
6044
6359
  httpMethod: "GET",
@@ -6058,7 +6373,7 @@ const listByLabOperationSpec = {
6058
6373
  labName
6059
6374
  ],
6060
6375
  headerParameters: [accept],
6061
- serializer: serializer$2
6376
+ serializer
6062
6377
  };
6063
6378
  const getOperationSpec = {
6064
6379
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}",
@@ -6080,7 +6395,7 @@ const getOperationSpec = {
6080
6395
  virtualMachineName
6081
6396
  ],
6082
6397
  headerParameters: [accept],
6083
- serializer: serializer$2
6398
+ serializer
6084
6399
  };
6085
6400
  const startOperationSpec = {
6086
6401
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/start",
@@ -6103,7 +6418,7 @@ const startOperationSpec = {
6103
6418
  virtualMachineName
6104
6419
  ],
6105
6420
  headerParameters: [accept],
6106
- serializer: serializer$2
6421
+ serializer
6107
6422
  };
6108
6423
  const stopOperationSpec = {
6109
6424
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/stop",
@@ -6126,7 +6441,7 @@ const stopOperationSpec = {
6126
6441
  virtualMachineName
6127
6442
  ],
6128
6443
  headerParameters: [accept],
6129
- serializer: serializer$2
6444
+ serializer
6130
6445
  };
6131
6446
  const reimageOperationSpec = {
6132
6447
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/reimage",
@@ -6149,7 +6464,7 @@ const reimageOperationSpec = {
6149
6464
  virtualMachineName
6150
6465
  ],
6151
6466
  headerParameters: [accept],
6152
- serializer: serializer$2
6467
+ serializer
6153
6468
  };
6154
6469
  const redeployOperationSpec = {
6155
6470
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/redeploy",
@@ -6172,7 +6487,7 @@ const redeployOperationSpec = {
6172
6487
  virtualMachineName
6173
6488
  ],
6174
6489
  headerParameters: [accept],
6175
- serializer: serializer$2
6490
+ serializer
6176
6491
  };
6177
6492
  const resetPasswordOperationSpec = {
6178
6493
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/resetPassword",
@@ -6197,7 +6512,7 @@ const resetPasswordOperationSpec = {
6197
6512
  ],
6198
6513
  headerParameters: [accept, contentType],
6199
6514
  mediaType: "json",
6200
- serializer: serializer$2
6515
+ serializer
6201
6516
  };
6202
6517
  const listByLabNextOperationSpec = {
6203
6518
  path: "{nextLink}",
@@ -6219,254 +6534,6 @@ const listByLabNextOperationSpec = {
6219
6534
  labName
6220
6535
  ],
6221
6536
  headerParameters: [accept],
6222
- serializer: serializer$2
6223
- };
6224
-
6225
- /*
6226
- * Copyright (c) Microsoft Corporation.
6227
- * Licensed under the MIT License.
6228
- *
6229
- * Code generated by Microsoft (R) AutoRest Code Generator.
6230
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
6231
- */
6232
- /// <reference lib="esnext.asynciterable" />
6233
- /** Class containing Usages operations. */
6234
- class UsagesImpl {
6235
- /**
6236
- * Initialize a new instance of the class Usages class.
6237
- * @param client Reference to the service client
6238
- */
6239
- constructor(client) {
6240
- this.client = client;
6241
- }
6242
- /**
6243
- * Returns list of usage per SKU family for the specified subscription in the specified region.
6244
- * @param location The location name.
6245
- * @param options The options parameters.
6246
- */
6247
- listByLocation(location, options) {
6248
- const iter = this.listByLocationPagingAll(location, options);
6249
- return {
6250
- next() {
6251
- return iter.next();
6252
- },
6253
- [Symbol.asyncIterator]() {
6254
- return this;
6255
- },
6256
- byPage: () => {
6257
- return this.listByLocationPagingPage(location, options);
6258
- }
6259
- };
6260
- }
6261
- listByLocationPagingPage(location, options) {
6262
- return tslib.__asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
6263
- let result = yield tslib.__await(this._listByLocation(location, options));
6264
- yield yield tslib.__await(result.value || []);
6265
- let continuationToken = result.nextLink;
6266
- while (continuationToken) {
6267
- result = yield tslib.__await(this._listByLocationNext(location, continuationToken, options));
6268
- continuationToken = result.nextLink;
6269
- yield yield tslib.__await(result.value || []);
6270
- }
6271
- });
6272
- }
6273
- listByLocationPagingAll(location, options) {
6274
- return tslib.__asyncGenerator(this, arguments, function* listByLocationPagingAll_1() {
6275
- var e_1, _a;
6276
- try {
6277
- for (var _b = tslib.__asyncValues(this.listByLocationPagingPage(location, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
6278
- const page = _c.value;
6279
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
6280
- }
6281
- }
6282
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
6283
- finally {
6284
- try {
6285
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
6286
- }
6287
- finally { if (e_1) throw e_1.error; }
6288
- }
6289
- });
6290
- }
6291
- /**
6292
- * Returns list of usage per SKU family for the specified subscription in the specified region.
6293
- * @param location The location name.
6294
- * @param options The options parameters.
6295
- */
6296
- _listByLocation(location, options) {
6297
- return this.client.sendOperationRequest({ location, options }, listByLocationOperationSpec);
6298
- }
6299
- /**
6300
- * ListByLocationNext
6301
- * @param location The location name.
6302
- * @param nextLink The nextLink from the previous successful call to the ListByLocation method.
6303
- * @param options The options parameters.
6304
- */
6305
- _listByLocationNext(location, nextLink, options) {
6306
- return this.client.sendOperationRequest({ location, nextLink, options }, listByLocationNextOperationSpec);
6307
- }
6308
- }
6309
- // Operation Specifications
6310
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6311
- const listByLocationOperationSpec = {
6312
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/locations/{location}/usages",
6313
- httpMethod: "GET",
6314
- responses: {
6315
- 200: {
6316
- bodyMapper: ListUsagesResult
6317
- },
6318
- default: {
6319
- bodyMapper: ErrorResponse
6320
- }
6321
- },
6322
- queryParameters: [apiVersion, filter],
6323
- urlParameters: [
6324
- $host,
6325
- subscriptionId,
6326
- location
6327
- ],
6328
- headerParameters: [accept],
6329
- serializer: serializer$1
6330
- };
6331
- const listByLocationNextOperationSpec = {
6332
- path: "{nextLink}",
6333
- httpMethod: "GET",
6334
- responses: {
6335
- 200: {
6336
- bodyMapper: ListUsagesResult
6337
- },
6338
- default: {
6339
- bodyMapper: ErrorResponse
6340
- }
6341
- },
6342
- queryParameters: [apiVersion, filter],
6343
- urlParameters: [
6344
- $host,
6345
- subscriptionId,
6346
- nextLink,
6347
- location
6348
- ],
6349
- headerParameters: [accept],
6350
- serializer: serializer$1
6351
- };
6352
-
6353
- /*
6354
- * Copyright (c) Microsoft Corporation.
6355
- * Licensed under the MIT License.
6356
- *
6357
- * Code generated by Microsoft (R) AutoRest Code Generator.
6358
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
6359
- */
6360
- /// <reference lib="esnext.asynciterable" />
6361
- /** Class containing Skus operations. */
6362
- class SkusImpl {
6363
- /**
6364
- * Initialize a new instance of the class Skus class.
6365
- * @param client Reference to the service client
6366
- */
6367
- constructor(client) {
6368
- this.client = client;
6369
- }
6370
- /**
6371
- * Returns a list of all the Azure Lab Services resource SKUs.
6372
- * @param options The options parameters.
6373
- */
6374
- list(options) {
6375
- const iter = this.listPagingAll(options);
6376
- return {
6377
- next() {
6378
- return iter.next();
6379
- },
6380
- [Symbol.asyncIterator]() {
6381
- return this;
6382
- },
6383
- byPage: () => {
6384
- return this.listPagingPage(options);
6385
- }
6386
- };
6387
- }
6388
- listPagingPage(options) {
6389
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
6390
- let result = yield tslib.__await(this._list(options));
6391
- yield yield tslib.__await(result.value || []);
6392
- let continuationToken = result.nextLink;
6393
- while (continuationToken) {
6394
- result = yield tslib.__await(this._listNext(continuationToken, options));
6395
- continuationToken = result.nextLink;
6396
- yield yield tslib.__await(result.value || []);
6397
- }
6398
- });
6399
- }
6400
- listPagingAll(options) {
6401
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
6402
- var e_1, _a;
6403
- try {
6404
- for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
6405
- const page = _c.value;
6406
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
6407
- }
6408
- }
6409
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
6410
- finally {
6411
- try {
6412
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
6413
- }
6414
- finally { if (e_1) throw e_1.error; }
6415
- }
6416
- });
6417
- }
6418
- /**
6419
- * Returns a list of all the Azure Lab Services resource SKUs.
6420
- * @param options The options parameters.
6421
- */
6422
- _list(options) {
6423
- return this.client.sendOperationRequest({ options }, listOperationSpec);
6424
- }
6425
- /**
6426
- * ListNext
6427
- * @param nextLink The nextLink from the previous successful call to the List method.
6428
- * @param options The options parameters.
6429
- */
6430
- _listNext(nextLink, options) {
6431
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
6432
- }
6433
- }
6434
- // Operation Specifications
6435
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6436
- const listOperationSpec = {
6437
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/skus",
6438
- httpMethod: "GET",
6439
- responses: {
6440
- 200: {
6441
- bodyMapper: PagedLabServicesSkus
6442
- },
6443
- default: {
6444
- bodyMapper: ErrorResponse
6445
- }
6446
- },
6447
- queryParameters: [apiVersion, filter],
6448
- urlParameters: [$host, subscriptionId],
6449
- headerParameters: [accept],
6450
- serializer
6451
- };
6452
- const listNextOperationSpec = {
6453
- path: "{nextLink}",
6454
- httpMethod: "GET",
6455
- responses: {
6456
- 200: {
6457
- bodyMapper: PagedLabServicesSkus
6458
- },
6459
- default: {
6460
- bodyMapper: ErrorResponse
6461
- }
6462
- },
6463
- queryParameters: [apiVersion, filter],
6464
- urlParameters: [
6465
- $host,
6466
- subscriptionId,
6467
- nextLink
6468
- ],
6469
- headerParameters: [accept],
6470
6537
  serializer
6471
6538
  };
6472
6539
 
@@ -6500,7 +6567,7 @@ class LabServicesClient extends coreClient__namespace.ServiceClient {
6500
6567
  requestContentType: "application/json; charset=utf-8",
6501
6568
  credential: credentials
6502
6569
  };
6503
- const packageDetails = `azsdk-js-arm-labservices/3.0.0-beta.3`;
6570
+ const packageDetails = `azsdk-js-arm-labservices/3.0.0`;
6504
6571
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
6505
6572
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
6506
6573
  : `${packageDetails}`;
@@ -6511,37 +6578,42 @@ class LabServicesClient extends coreClient__namespace.ServiceClient {
6511
6578
  userAgentPrefix
6512
6579
  }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
6513
6580
  super(optionsWithDefaults);
6581
+ let bearerTokenAuthenticationPolicyFound = false;
6514
6582
  if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
6515
6583
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
6516
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
6584
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
6517
6585
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
6518
- if (!bearerTokenAuthenticationPolicyFound) {
6519
- this.pipeline.removePolicy({
6520
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
6521
- });
6522
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
6523
- scopes: `${optionsWithDefaults.baseUri}/.default`,
6524
- challengeCallbacks: {
6525
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
6526
- }
6527
- }));
6528
- }
6586
+ }
6587
+ if (!options ||
6588
+ !options.pipeline ||
6589
+ options.pipeline.getOrderedPolicies().length == 0 ||
6590
+ !bearerTokenAuthenticationPolicyFound) {
6591
+ this.pipeline.removePolicy({
6592
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
6593
+ });
6594
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
6595
+ credential: credentials,
6596
+ scopes: `${optionsWithDefaults.credentialScopes}`,
6597
+ challengeCallbacks: {
6598
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
6599
+ }
6600
+ }));
6529
6601
  }
6530
6602
  // Parameter assignments
6531
6603
  this.subscriptionId = subscriptionId;
6532
6604
  // Assigning values to Constant parameters
6533
6605
  this.$host = options.$host || "https://management.azure.com";
6534
- this.apiVersion = options.apiVersion || "2021-11-15-preview";
6606
+ this.apiVersion = options.apiVersion || "2022-08-01";
6535
6607
  this.images = new ImagesImpl(this);
6536
6608
  this.labPlans = new LabPlansImpl(this);
6537
6609
  this.operations = new OperationsImpl(this);
6538
6610
  this.labs = new LabsImpl(this);
6539
6611
  this.operationResults = new OperationResultsImpl(this);
6540
6612
  this.schedules = new SchedulesImpl(this);
6613
+ this.skus = new SkusImpl(this);
6614
+ this.usages = new UsagesImpl(this);
6541
6615
  this.users = new UsersImpl(this);
6542
6616
  this.virtualMachines = new VirtualMachinesImpl(this);
6543
- this.usages = new UsagesImpl(this);
6544
- this.skus = new SkusImpl(this);
6545
6617
  this.addCustomApiVersionPolicy(options.apiVersion);
6546
6618
  }
6547
6619
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
@@ -6557,7 +6629,7 @@ class LabServicesClient extends coreClient__namespace.ServiceClient {
6557
6629
  if (param.length > 1) {
6558
6630
  const newParams = param[1].split("&").map((item) => {
6559
6631
  if (item.indexOf("api-version") > -1) {
6560
- return item.replace(/(?<==).*$/, apiVersion);
6632
+ return "api-version=" + apiVersion;
6561
6633
  }
6562
6634
  else {
6563
6635
  return item;