@metal-stack/api 0.0.40-beta.0 → 0.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/js/Makefile +4 -2
  2. package/js/buf/validate/validate_pb.d.ts +172 -3
  3. package/js/buf/validate/validate_pb.js +12 -7
  4. package/js/metalstack/admin/v2/filesystem_pb.js +1 -1
  5. package/js/metalstack/admin/v2/image_pb.js +1 -1
  6. package/js/metalstack/admin/v2/ip_pb.js +1 -1
  7. package/js/metalstack/admin/v2/machine_pb.d.ts +205 -1
  8. package/js/metalstack/admin/v2/machine_pb.js +42 -2
  9. package/js/metalstack/admin/v2/machine_pb.ts +233 -2
  10. package/js/metalstack/admin/v2/network_pb.js +2 -2
  11. package/js/metalstack/admin/v2/network_pb.ts +1 -1
  12. package/js/metalstack/admin/v2/partition_pb.js +1 -1
  13. package/js/metalstack/admin/v2/project_pb.js +1 -1
  14. package/js/metalstack/admin/v2/size_pb.js +1 -1
  15. package/js/metalstack/admin/v2/switch_pb.d.ts +1 -7
  16. package/js/metalstack/admin/v2/switch_pb.js +2 -2
  17. package/js/metalstack/admin/v2/task_pb.d.ts +396 -0
  18. package/js/metalstack/admin/v2/task_pb.js +121 -0
  19. package/js/metalstack/admin/v2/task_pb.ts +467 -0
  20. package/js/metalstack/admin/v2/tenant_pb.js +1 -1
  21. package/js/metalstack/admin/v2/token_pb.js +1 -1
  22. package/js/metalstack/admin/v2/vpn_pb.d.ts +151 -0
  23. package/js/metalstack/admin/v2/vpn_pb.js +38 -0
  24. package/js/metalstack/api/v2/common_pb.d.ts +35 -0
  25. package/js/metalstack/api/v2/common_pb.js +42 -6
  26. package/js/metalstack/api/v2/common_pb.ts +47 -5
  27. package/js/metalstack/api/v2/filesystem_pb.js +1 -1
  28. package/js/metalstack/api/v2/health_pb.js +1 -1
  29. package/js/metalstack/api/v2/image_pb.js +1 -1
  30. package/js/metalstack/api/v2/ip_pb.js +1 -1
  31. package/js/metalstack/api/v2/machine_pb.d.ts +451 -18
  32. package/js/metalstack/api/v2/machine_pb.js +160 -31
  33. package/js/metalstack/api/v2/machine_pb.ts +536 -45
  34. package/js/metalstack/api/v2/method_pb.d.ts +9 -1
  35. package/js/metalstack/api/v2/method_pb.js +2 -2
  36. package/js/metalstack/api/v2/method_pb.ts +9 -2
  37. package/js/metalstack/api/v2/network_pb.js +2 -2
  38. package/js/metalstack/api/v2/network_pb.ts +1 -1
  39. package/js/metalstack/api/v2/partition_pb.js +2 -2
  40. package/js/metalstack/api/v2/partition_pb.ts +1 -1
  41. package/js/metalstack/api/v2/predefined_rules_pb.d.ts +2 -2
  42. package/js/metalstack/api/v2/predefined_rules_pb.js +4 -4
  43. package/js/metalstack/api/v2/predefined_rules_pb.ts +3 -3
  44. package/js/metalstack/api/v2/project_pb.js +1 -1
  45. package/js/metalstack/api/v2/size_pb.js +1 -1
  46. package/js/metalstack/api/v2/switch_pb.d.ts +43 -1
  47. package/js/metalstack/api/v2/switch_pb.js +8 -3
  48. package/js/metalstack/api/v2/switch_pb.ts +1 -1
  49. package/js/metalstack/api/v2/tenant_pb.js +1 -1
  50. package/js/metalstack/api/v2/token_pb.d.ts +28 -3
  51. package/js/metalstack/api/v2/token_pb.js +2 -2
  52. package/js/metalstack/api/v2/token_pb.ts +26 -4
  53. package/js/metalstack/api/v2/user_pb.js +1 -1
  54. package/js/metalstack/api/v2/version_pb.js +1 -1
  55. package/js/metalstack/api/v2/vpn_pb.d.ts +55 -0
  56. package/js/metalstack/api/v2/vpn_pb.js +14 -0
  57. package/js/metalstack/infra/v2/bmc_pb.d.ts +142 -2
  58. package/js/metalstack/infra/v2/bmc_pb.js +25 -2
  59. package/js/metalstack/infra/v2/bmc_pb.ts +136 -18
  60. package/js/metalstack/infra/v2/boot_pb.d.ts +368 -0
  61. package/js/metalstack/infra/v2/boot_pb.js +80 -0
  62. package/js/metalstack/infra/v2/boot_pb.ts +435 -0
  63. package/js/metalstack/infra/v2/event_pb.js +1 -1
  64. package/js/metalstack/infra/v2/switch_pb.d.ts +4 -34
  65. package/js/metalstack/infra/v2/switch_pb.js +3 -8
  66. package/package.json +5 -3
@@ -370,6 +370,95 @@ export type MachineServiceDeleteResponse = Message<"metalstack.api.v2.MachineSer
370
370
  * Use `create(MachineServiceDeleteResponseSchema)` to create a new message.
371
371
  */
372
372
  export declare const MachineServiceDeleteResponseSchema: GenMessage<MachineServiceDeleteResponse>;
373
+ /**
374
+ * MachineServiceBMCCommandRequest is the request payload for a machine bmc command
375
+ *
376
+ * @generated from message metalstack.api.v2.MachineServiceBMCCommandRequest
377
+ */
378
+ export type MachineServiceBMCCommandRequest = Message<"metalstack.api.v2.MachineServiceBMCCommandRequest"> & {
379
+ /**
380
+ * UUID of the machine to send the command to
381
+ *
382
+ * @generated from field: string uuid = 1;
383
+ */
384
+ uuid: string;
385
+ /**
386
+ * Project of the machine
387
+ *
388
+ * @generated from field: string project = 2;
389
+ */
390
+ project: string;
391
+ /**
392
+ * Command to send to the bmc of the machine
393
+ *
394
+ * @generated from field: metalstack.api.v2.MachineBMCCommand command = 3;
395
+ */
396
+ command: MachineBMCCommand;
397
+ };
398
+ /**
399
+ * Describes the message metalstack.api.v2.MachineServiceBMCCommandRequest.
400
+ * Use `create(MachineServiceBMCCommandRequestSchema)` to create a new message.
401
+ */
402
+ export declare const MachineServiceBMCCommandRequestSchema: GenMessage<MachineServiceBMCCommandRequest>;
403
+ /**
404
+ * MachineServiceBMCCommandResponse is the response payload for a machine bmc command
405
+ *
406
+ * @generated from message metalstack.api.v2.MachineServiceBMCCommandResponse
407
+ */
408
+ export type MachineServiceBMCCommandResponse = Message<"metalstack.api.v2.MachineServiceBMCCommandResponse"> & {};
409
+ /**
410
+ * Describes the message metalstack.api.v2.MachineServiceBMCCommandResponse.
411
+ * Use `create(MachineServiceBMCCommandResponseSchema)` to create a new message.
412
+ */
413
+ export declare const MachineServiceBMCCommandResponseSchema: GenMessage<MachineServiceBMCCommandResponse>;
414
+ /**
415
+ * MachineServiceGetBMCRequest is the request payload for a machine getbmc request
416
+ *
417
+ * @generated from message metalstack.api.v2.MachineServiceGetBMCRequest
418
+ */
419
+ export type MachineServiceGetBMCRequest = Message<"metalstack.api.v2.MachineServiceGetBMCRequest"> & {
420
+ /**
421
+ * UUID of the machine to get
422
+ *
423
+ * @generated from field: string uuid = 1;
424
+ */
425
+ uuid: string;
426
+ /**
427
+ * Project of the machine
428
+ *
429
+ * @generated from field: string project = 2;
430
+ */
431
+ project: string;
432
+ };
433
+ /**
434
+ * Describes the message metalstack.api.v2.MachineServiceGetBMCRequest.
435
+ * Use `create(MachineServiceGetBMCRequestSchema)` to create a new message.
436
+ */
437
+ export declare const MachineServiceGetBMCRequestSchema: GenMessage<MachineServiceGetBMCRequest>;
438
+ /**
439
+ * MachineServiceGetBMCResponse is the response payload for a machine getbmc request
440
+ *
441
+ * @generated from message metalstack.api.v2.MachineServiceGetBMCResponse
442
+ */
443
+ export type MachineServiceGetBMCResponse = Message<"metalstack.api.v2.MachineServiceGetBMCResponse"> & {
444
+ /**
445
+ * UUID of the machine
446
+ *
447
+ * @generated from field: string uuid = 1;
448
+ */
449
+ uuid: string;
450
+ /**
451
+ * BMC contains the BMC details of this machine
452
+ *
453
+ * @generated from field: metalstack.api.v2.MachineBMCReport bmc = 2;
454
+ */
455
+ bmc?: MachineBMCReport;
456
+ };
457
+ /**
458
+ * Describes the message metalstack.api.v2.MachineServiceGetBMCResponse.
459
+ * Use `create(MachineServiceGetBMCResponseSchema)` to create a new message.
460
+ */
461
+ export declare const MachineServiceGetBMCResponseSchema: GenMessage<MachineServiceGetBMCResponse>;
373
462
  /**
374
463
  * Machine represents a physical bare metal machine.
375
464
  *
@@ -412,12 +501,6 @@ export type Machine = Message<"metalstack.api.v2.Machine"> & {
412
501
  * @generated from field: metalstack.api.v2.MachineHardware hardware = 6;
413
502
  */
414
503
  hardware?: MachineHardware;
415
- /**
416
- * Bios details for this machine
417
- *
418
- * @generated from field: metalstack.api.v2.MachineBios bios = 7;
419
- */
420
- bios?: MachineBios;
421
504
  /**
422
505
  * Allocation details
423
506
  *
@@ -1020,6 +1103,60 @@ export type MachineChassisIdentifyLEDState = Message<"metalstack.api.v2.MachineC
1020
1103
  * Use `create(MachineChassisIdentifyLEDStateSchema)` to create a new message.
1021
1104
  */
1022
1105
  export declare const MachineChassisIdentifyLEDStateSchema: GenMessage<MachineChassisIdentifyLEDState>;
1106
+ /**
1107
+ * MachineBMCReport is sent from the metal-bmc to update bmc and power related details
1108
+ *
1109
+ * @generated from message metalstack.api.v2.MachineBMCReport
1110
+ */
1111
+ export type MachineBMCReport = Message<"metalstack.api.v2.MachineBMCReport"> & {
1112
+ /**
1113
+ * Bmc contains bmc details
1114
+ *
1115
+ * @generated from field: metalstack.api.v2.MachineBMC bmc = 1;
1116
+ */
1117
+ bmc?: MachineBMC;
1118
+ /**
1119
+ * Bios contains bios details
1120
+ *
1121
+ * @generated from field: metalstack.api.v2.MachineBios bios = 2;
1122
+ */
1123
+ bios?: MachineBios;
1124
+ /**
1125
+ * Fru containers field replaceable unit details
1126
+ *
1127
+ * @generated from field: metalstack.api.v2.MachineFRU fru = 3;
1128
+ */
1129
+ fru?: MachineFRU;
1130
+ /**
1131
+ * PowerMetric contains the power statistics of the machine
1132
+ *
1133
+ * @generated from field: metalstack.api.v2.MachinePowerMetric power_metric = 4;
1134
+ */
1135
+ powerMetric?: MachinePowerMetric;
1136
+ /**
1137
+ * PowerSupplies contains details about all power supplies and their state
1138
+ *
1139
+ * @generated from field: repeated metalstack.api.v2.MachinePowerSupply power_supplies = 5;
1140
+ */
1141
+ powerSupplies: MachinePowerSupply[];
1142
+ /**
1143
+ * LedState indicates the state of the indicator LED on this machine
1144
+ *
1145
+ * @generated from field: metalstack.api.v2.MachineChassisIdentifyLEDState led_state = 6;
1146
+ */
1147
+ ledState?: MachineChassisIdentifyLEDState;
1148
+ /**
1149
+ * UpdatedAt contains the date when this data was last updated
1150
+ *
1151
+ * @generated from field: google.protobuf.Timestamp updated_at = 7;
1152
+ */
1153
+ updatedAt?: Timestamp;
1154
+ };
1155
+ /**
1156
+ * Describes the message metalstack.api.v2.MachineBMCReport.
1157
+ * Use `create(MachineBMCReportSchema)` to create a new message.
1158
+ */
1159
+ export declare const MachineBMCReportSchema: GenMessage<MachineBMCReport>;
1023
1160
  /**
1024
1161
  * MachineBios contains BIOS details of this machine
1025
1162
  *
@@ -1050,6 +1187,189 @@ export type MachineBios = Message<"metalstack.api.v2.MachineBios"> & {
1050
1187
  * Use `create(MachineBiosSchema)` to create a new message.
1051
1188
  */
1052
1189
  export declare const MachineBiosSchema: GenMessage<MachineBios>;
1190
+ /**
1191
+ * MachineBMC describe details of the ipmi or out of band device
1192
+ *
1193
+ * @generated from message metalstack.api.v2.MachineBMC
1194
+ */
1195
+ export type MachineBMC = Message<"metalstack.api.v2.MachineBMC"> & {
1196
+ /**
1197
+ * Address of this ipmi device from outside in the form of <ip or hostname>:<port>
1198
+ *
1199
+ * @generated from field: string address = 1;
1200
+ */
1201
+ address: string;
1202
+ /**
1203
+ * Mac address of the network interface of this ipmi device
1204
+ *
1205
+ * @generated from field: string mac = 2;
1206
+ */
1207
+ mac: string;
1208
+ /**
1209
+ * User of this ipmi device
1210
+ *
1211
+ * @generated from field: string user = 3;
1212
+ */
1213
+ user: string;
1214
+ /**
1215
+ * Password of this ipmi device
1216
+ *
1217
+ * @generated from field: string password = 4;
1218
+ */
1219
+ password: string;
1220
+ /**
1221
+ * Interface of this ipmi device
1222
+ *
1223
+ * @generated from field: string interface = 5;
1224
+ */
1225
+ interface: string;
1226
+ /**
1227
+ * Version of this bmc device
1228
+ *
1229
+ * @generated from field: string version = 7;
1230
+ */
1231
+ version: string;
1232
+ /**
1233
+ * PowerState of this machine
1234
+ *
1235
+ * @generated from field: string power_state = 8;
1236
+ */
1237
+ powerState: string;
1238
+ };
1239
+ /**
1240
+ * Describes the message metalstack.api.v2.MachineBMC.
1241
+ * Use `create(MachineBMCSchema)` to create a new message.
1242
+ */
1243
+ export declare const MachineBMCSchema: GenMessage<MachineBMC>;
1244
+ /**
1245
+ * MachineFRU describes details to the machine which are required in case of a necessary replacement
1246
+ *
1247
+ * @generated from message metalstack.api.v2.MachineFRU
1248
+ */
1249
+ export type MachineFRU = Message<"metalstack.api.v2.MachineFRU"> & {
1250
+ /**
1251
+ * ChassisPartNumber is the part number of the machine chassis
1252
+ *
1253
+ * @generated from field: optional string chassis_part_number = 1;
1254
+ */
1255
+ chassisPartNumber?: string;
1256
+ /**
1257
+ * ChassisPartSerial is the serial number of the machine chassis
1258
+ *
1259
+ * @generated from field: optional string chassis_part_serial = 2;
1260
+ */
1261
+ chassisPartSerial?: string;
1262
+ /**
1263
+ * BoardMfg is the short description of the mainboard
1264
+ *
1265
+ * @generated from field: optional string board_mfg = 3;
1266
+ */
1267
+ boardMfg?: string;
1268
+ /**
1269
+ * BoardMfgSerial is the serial number of the mainboard
1270
+ *
1271
+ * @generated from field: optional string board_mfg_serial = 4;
1272
+ */
1273
+ boardMfgSerial?: string;
1274
+ /**
1275
+ * BoardPartNumber is the part number of the mainboard
1276
+ *
1277
+ * @generated from field: optional string board_part_number = 5;
1278
+ */
1279
+ boardPartNumber?: string;
1280
+ /**
1281
+ * ProductManufacturer is the manufacturer of the machine
1282
+ *
1283
+ * @generated from field: optional string product_manufacturer = 6;
1284
+ */
1285
+ productManufacturer?: string;
1286
+ /**
1287
+ * ProductPartNumber is the part number of the machine
1288
+ *
1289
+ * @generated from field: optional string product_part_number = 7;
1290
+ */
1291
+ productPartNumber?: string;
1292
+ /**
1293
+ * ProductSerial is the serial number of the machine
1294
+ *
1295
+ * @generated from field: optional string product_serial = 8;
1296
+ */
1297
+ productSerial?: string;
1298
+ };
1299
+ /**
1300
+ * Describes the message metalstack.api.v2.MachineFRU.
1301
+ * Use `create(MachineFRUSchema)` to create a new message.
1302
+ */
1303
+ export declare const MachineFRUSchema: GenMessage<MachineFRU>;
1304
+ /**
1305
+ * MachinePowerMetric contains metrics of the power consumption of a machine
1306
+ *
1307
+ * @generated from message metalstack.api.v2.MachinePowerMetric
1308
+ */
1309
+ export type MachinePowerMetric = Message<"metalstack.api.v2.MachinePowerMetric"> & {
1310
+ /**
1311
+ * AverageConsumedWatts shall represent the
1312
+ * average power level that occurred averaged over the last IntervalInMin
1313
+ * minutes.
1314
+ *
1315
+ * @generated from field: float average_consumed_watts = 1;
1316
+ */
1317
+ averageConsumedWatts: number;
1318
+ /**
1319
+ * IntervalInMin shall represent the time
1320
+ * interval (or window), in minutes, in which the PowerMetrics properties
1321
+ * are measured over.
1322
+ * Should be an integer, but some Dell implementations return as a float.
1323
+ *
1324
+ * @generated from field: float interval_in_min = 2;
1325
+ */
1326
+ intervalInMin: number;
1327
+ /**
1328
+ * MaxConsumedWatts shall represent the
1329
+ * maximum power level in watts that occurred within the last
1330
+ * IntervalInMin minutes.
1331
+ *
1332
+ * @generated from field: float max_consumed_watts = 3;
1333
+ */
1334
+ maxConsumedWatts: number;
1335
+ /**
1336
+ * MinConsumedWatts shall represent the
1337
+ * minimum power level in watts that occurred within the last
1338
+ * IntervalInMin minutes.
1339
+ *
1340
+ * @generated from field: float min_consumed_watts = 4;
1341
+ */
1342
+ minConsumedWatts: number;
1343
+ };
1344
+ /**
1345
+ * Describes the message metalstack.api.v2.MachinePowerMetric.
1346
+ * Use `create(MachinePowerMetricSchema)` to create a new message.
1347
+ */
1348
+ export declare const MachinePowerMetricSchema: GenMessage<MachinePowerMetric>;
1349
+ /**
1350
+ * MachinePowerSupply contains details of the power supply of a machine
1351
+ *
1352
+ * @generated from message metalstack.api.v2.MachinePowerSupply
1353
+ */
1354
+ export type MachinePowerSupply = Message<"metalstack.api.v2.MachinePowerSupply"> & {
1355
+ /**
1356
+ * Health of the powersupply
1357
+ *
1358
+ * @generated from field: string health = 1;
1359
+ */
1360
+ health: string;
1361
+ /**
1362
+ * State of the powersupply
1363
+ *
1364
+ * @generated from field: string state = 2;
1365
+ */
1366
+ state: string;
1367
+ };
1368
+ /**
1369
+ * Describes the message metalstack.api.v2.MachinePowerSupply.
1370
+ * Use `create(MachinePowerSupplySchema)` to create a new message.
1371
+ */
1372
+ export declare const MachinePowerSupplySchema: GenMessage<MachinePowerSupply>;
1053
1373
  /**
1054
1374
  * MachineRecentProvisioningEvents the recent provisioning events for this machine
1055
1375
  *
@@ -1137,11 +1457,15 @@ export type MachineVPN = Message<"metalstack.api.v2.MachineVPN"> & {
1137
1457
  /**
1138
1458
  * Connected indicate if this machine is connected to the VPN
1139
1459
  *
1140
- * TODO add machine ips
1141
- *
1142
1460
  * @generated from field: bool connected = 3;
1143
1461
  */
1144
1462
  connected: boolean;
1463
+ /**
1464
+ * IPs of the machine connected to the vpn
1465
+ *
1466
+ * @generated from field: repeated string ips = 5;
1467
+ */
1468
+ ips: string[];
1145
1469
  };
1146
1470
  /**
1147
1471
  * Describes the message metalstack.api.v2.MachineVPN.
@@ -1215,13 +1539,13 @@ export type MachineQuery = Message<"metalstack.api.v2.MachineQuery"> & {
1215
1539
  */
1216
1540
  disk?: MachineDiskQuery;
1217
1541
  /**
1218
- * IPMI specific machine queries
1542
+ * Bmc specific machine queries
1219
1543
  *
1220
- * @generated from field: optional metalstack.api.v2.MachineIPMIQuery ipmi = 11;
1544
+ * @generated from field: optional metalstack.api.v2.MachineBMCQuery bmc = 11;
1221
1545
  */
1222
- ipmi?: MachineIPMIQuery;
1546
+ bmc?: MachineBMCQuery;
1223
1547
  /**
1224
- * FRU specific machine queries
1548
+ * Fru specific machine queries
1225
1549
  *
1226
1550
  * @generated from field: optional metalstack.api.v2.MachineFRUQuery fru = 12;
1227
1551
  */
@@ -1298,6 +1622,12 @@ export type MachineAllocationQuery = Message<"metalstack.api.v2.MachineAllocatio
1298
1622
  * @generated from field: optional metalstack.api.v2.Labels labels = 8;
1299
1623
  */
1300
1624
  labels?: Labels;
1625
+ /**
1626
+ * VPN query if this machine has a vpn configuration
1627
+ *
1628
+ * @generated from field: optional metalstack.api.v2.MachineVPN vpn = 9;
1629
+ */
1630
+ vpn?: MachineVPN;
1301
1631
  };
1302
1632
  /**
1303
1633
  * Describes the message metalstack.api.v2.MachineAllocationQuery.
@@ -1413,11 +1743,11 @@ export type MachineDiskQuery = Message<"metalstack.api.v2.MachineDiskQuery"> & {
1413
1743
  */
1414
1744
  export declare const MachineDiskQuerySchema: GenMessage<MachineDiskQuery>;
1415
1745
  /**
1416
- * MachineIPMIQuery machine ipmi specific machine queries
1746
+ * MachineBMCQuery machine ipmi or bmc specific machine queries
1417
1747
  *
1418
- * @generated from message metalstack.api.v2.MachineIPMIQuery
1748
+ * @generated from message metalstack.api.v2.MachineBMCQuery
1419
1749
  */
1420
- export type MachineIPMIQuery = Message<"metalstack.api.v2.MachineIPMIQuery"> & {
1750
+ export type MachineBMCQuery = Message<"metalstack.api.v2.MachineBMCQuery"> & {
1421
1751
  /**
1422
1752
  * Address of the ipmi system of this machine
1423
1753
  *
@@ -1444,10 +1774,10 @@ export type MachineIPMIQuery = Message<"metalstack.api.v2.MachineIPMIQuery"> & {
1444
1774
  interface?: string;
1445
1775
  };
1446
1776
  /**
1447
- * Describes the message metalstack.api.v2.MachineIPMIQuery.
1448
- * Use `create(MachineIPMIQuerySchema)` to create a new message.
1777
+ * Describes the message metalstack.api.v2.MachineBMCQuery.
1778
+ * Use `create(MachineBMCQuerySchema)` to create a new message.
1449
1779
  */
1450
- export declare const MachineIPMIQuerySchema: GenMessage<MachineIPMIQuery>;
1780
+ export declare const MachineBMCQuerySchema: GenMessage<MachineBMCQuery>;
1451
1781
  /**
1452
1782
  * MachineFRUQuery machine fru specific machine queries
1453
1783
  *
@@ -1772,6 +2102,89 @@ export declare enum MachineAllocationType {
1772
2102
  * Describes the enum metalstack.api.v2.MachineAllocationType.
1773
2103
  */
1774
2104
  export declare const MachineAllocationTypeSchema: GenEnum<MachineAllocationType>;
2105
+ /**
2106
+ * MachineBMCCommand defines commands send to the BMC of the machine
2107
+ *
2108
+ * @generated from enum metalstack.api.v2.MachineBMCCommand
2109
+ */
2110
+ export declare enum MachineBMCCommand {
2111
+ /**
2112
+ * MACHINE_BMC_COMMAND_UNSPECIFIED is not defined
2113
+ *
2114
+ * @generated from enum value: MACHINE_BMC_COMMAND_UNSPECIFIED = 0;
2115
+ */
2116
+ MACHINE_BMC_COMMAND_UNSPECIFIED = 0,
2117
+ /**
2118
+ * MACHINE_BMC_COMMAND_ON Power on the machine
2119
+ *
2120
+ * @generated from enum value: MACHINE_BMC_COMMAND_ON = 1;
2121
+ */
2122
+ MACHINE_BMC_COMMAND_ON = 1,
2123
+ /**
2124
+ * MACHINE_BMC_COMMAND_OFF Power off the machine
2125
+ *
2126
+ * @generated from enum value: MACHINE_BMC_COMMAND_OFF = 2;
2127
+ */
2128
+ MACHINE_BMC_COMMAND_OFF = 2,
2129
+ /**
2130
+ * MACHINE_BMC_COMMAND_RESET Power reset the machine
2131
+ *
2132
+ * @generated from enum value: MACHINE_BMC_COMMAND_RESET = 3;
2133
+ */
2134
+ MACHINE_BMC_COMMAND_RESET = 3,
2135
+ /**
2136
+ * MACHINE_BMC_COMMAND_CYCLE Power cycle the machine
2137
+ *
2138
+ * @generated from enum value: MACHINE_BMC_COMMAND_CYCLE = 4;
2139
+ */
2140
+ MACHINE_BMC_COMMAND_CYCLE = 4,
2141
+ /**
2142
+ * MACHINE_BMC_COMMAND_BOOT_TO_BIOS boot the machine into bios
2143
+ *
2144
+ * @generated from enum value: MACHINE_BMC_COMMAND_BOOT_TO_BIOS = 5;
2145
+ */
2146
+ MACHINE_BMC_COMMAND_BOOT_TO_BIOS = 5,
2147
+ /**
2148
+ * MACHINE_BMC_COMMAND_BOOT_FROM_DISK boot the machine from hard disk
2149
+ *
2150
+ * @generated from enum value: MACHINE_BMC_COMMAND_BOOT_FROM_DISK = 6;
2151
+ */
2152
+ MACHINE_BMC_COMMAND_BOOT_FROM_DISK = 6,
2153
+ /**
2154
+ * MACHINE_BMC_COMMAND_BOOT_FROM_PXE boot the machine from pxe
2155
+ *
2156
+ * @generated from enum value: MACHINE_BMC_COMMAND_BOOT_FROM_PXE = 7;
2157
+ */
2158
+ MACHINE_BMC_COMMAND_BOOT_FROM_PXE = 7,
2159
+ /**
2160
+ * MACHINE_BMC_COMMAND_IDENTIFY_LED_ON set identify led of the machine chassis to on
2161
+ *
2162
+ * @generated from enum value: MACHINE_BMC_COMMAND_IDENTIFY_LED_ON = 8;
2163
+ */
2164
+ MACHINE_BMC_COMMAND_IDENTIFY_LED_ON = 8,
2165
+ /**
2166
+ * MACHINE_BMC_COMMAND_IDENTIFY_LED_OFF set identify led of the machine chassis to off
2167
+ *
2168
+ * @generated from enum value: MACHINE_BMC_COMMAND_IDENTIFY_LED_OFF = 9;
2169
+ */
2170
+ MACHINE_BMC_COMMAND_IDENTIFY_LED_OFF = 9,
2171
+ /**
2172
+ * MACHINE_BMC_COMMAND_MACHINE_DELETED should be called if the machine was deleted to power cycle and boot into pxe
2173
+ *
2174
+ * @generated from enum value: MACHINE_BMC_COMMAND_MACHINE_DELETED = 10;
2175
+ */
2176
+ MACHINE_BMC_COMMAND_MACHINE_DELETED = 10,
2177
+ /**
2178
+ * MACHINE_BMC_COMMAND_MACHINE_CREATED should be called if the machine was created to set the boot order to boot from disk
2179
+ *
2180
+ * @generated from enum value: MACHINE_BMC_COMMAND_MACHINE_CREATED = 11;
2181
+ */
2182
+ MACHINE_BMC_COMMAND_MACHINE_CREATED = 11
2183
+ }
2184
+ /**
2185
+ * Describes the enum metalstack.api.v2.MachineBMCCommand.
2186
+ */
2187
+ export declare const MachineBMCCommandSchema: GenEnum<MachineBMCCommand>;
1775
2188
  /**
1776
2189
  * MachineService serves machine related functions
1777
2190
  *
@@ -1828,4 +2241,24 @@ export declare const MachineService: GenService<{
1828
2241
  input: typeof MachineServiceDeleteRequestSchema;
1829
2242
  output: typeof MachineServiceDeleteResponseSchema;
1830
2243
  };
2244
+ /**
2245
+ * BMCCommand send a command to the bmc of a machine
2246
+ *
2247
+ * @generated from rpc metalstack.api.v2.MachineService.BMCCommand
2248
+ */
2249
+ bMCCommand: {
2250
+ methodKind: "unary";
2251
+ input: typeof MachineServiceBMCCommandRequestSchema;
2252
+ output: typeof MachineServiceBMCCommandResponseSchema;
2253
+ };
2254
+ /**
2255
+ * GetBMC returns the BMC details of a machine
2256
+ *
2257
+ * @generated from rpc metalstack.api.v2.MachineService.GetBMC
2258
+ */
2259
+ getBMC: {
2260
+ methodKind: "unary";
2261
+ input: typeof MachineServiceGetBMCRequestSchema;
2262
+ output: typeof MachineServiceGetBMCResponseSchema;
2263
+ };
1831
2264
  }>;