@metal-stack/api 0.0.44 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/metalstack/admin/v2/machine_pb.d.ts +205 -1
- package/js/metalstack/admin/v2/machine_pb.js +41 -1
- package/js/metalstack/admin/v2/machine_pb.ts +233 -2
- package/js/metalstack/admin/v2/network_pb.js +1 -1
- package/js/metalstack/admin/v2/network_pb.ts +1 -1
- package/js/metalstack/admin/v2/task_pb.d.ts +396 -0
- package/js/metalstack/admin/v2/task_pb.js +121 -0
- package/js/metalstack/admin/v2/task_pb.ts +467 -0
- package/js/metalstack/api/v2/common_pb.d.ts +35 -0
- package/js/metalstack/api/v2/common_pb.js +41 -5
- package/js/metalstack/api/v2/common_pb.ts +47 -5
- package/js/metalstack/api/v2/machine_pb.d.ts +439 -16
- package/js/metalstack/api/v2/machine_pb.js +159 -30
- package/js/metalstack/api/v2/machine_pb.ts +536 -45
- package/js/metalstack/api/v2/method_pb.d.ts +9 -1
- package/js/metalstack/api/v2/method_pb.js +1 -1
- package/js/metalstack/api/v2/method_pb.ts +9 -2
- package/js/metalstack/api/v2/network_pb.js +1 -1
- package/js/metalstack/api/v2/network_pb.ts +1 -1
- package/js/metalstack/api/v2/partition_pb.js +1 -1
- package/js/metalstack/api/v2/partition_pb.ts +1 -1
- package/js/metalstack/api/v2/predefined_rules_pb.d.ts +2 -2
- package/js/metalstack/api/v2/predefined_rules_pb.js +3 -3
- package/js/metalstack/api/v2/predefined_rules_pb.ts +3 -3
- package/js/metalstack/api/v2/switch_pb.js +1 -1
- package/js/metalstack/api/v2/switch_pb.ts +1 -1
- package/js/metalstack/api/v2/token_pb.d.ts +28 -3
- package/js/metalstack/api/v2/token_pb.js +1 -1
- package/js/metalstack/api/v2/token_pb.ts +26 -4
- package/js/metalstack/infra/v2/bmc_pb.d.ts +127 -19
- package/js/metalstack/infra/v2/bmc_pb.js +20 -7
- package/js/metalstack/infra/v2/bmc_pb.ts +136 -18
- package/js/metalstack/infra/v2/boot_pb.d.ts +368 -0
- package/js/metalstack/infra/v2/boot_pb.js +80 -0
- package/js/metalstack/infra/v2/boot_pb.ts +435 -0
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ import type { Message } from "@bufbuild/protobuf";
|
|
|
13
13
|
* Describes the file metalstack/api/v2/common.proto.
|
|
14
14
|
*/
|
|
15
15
|
export const file_metalstack_api_v2_common: GenFile = /*@__PURE__*/
|
|
16
|
-
fileDesc("
|
|
16
|
+
fileDesc("Ch5tZXRhbHN0YWNrL2FwaS92Mi9jb21tb24ucHJvdG8SEW1ldGFsc3RhY2suYXBpLnYyIkIKBlBhZ2luZxIRCgRwYWdlGAEgASgESACIAQESEgoFY291bnQYAiABKARIAYgBAUIHCgVfcGFnZUIICgZfY291bnQiiAEKBkxhYmVscxJPCgZsYWJlbHMYASADKAsyJS5tZXRhbHN0YWNrLmFwaS52Mi5MYWJlbHMuTGFiZWxzRW50cnlCGLpIFZoBEiIHcgUQARiAAioHcgUQABiAAhotCgtMYWJlbHNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIrUBCgRNZXRhEi4KBmxhYmVscxgBIAEoCzIZLm1ldGFsc3RhY2suYXBpLnYyLkxhYmVsc0gAiAEBEi4KCmNyZWF0ZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhIKCmdlbmVyYXRpb24YBCABKARCCQoHX2xhYmVscyJJCgxVcGRhdGVMYWJlbHMSKQoGdXBkYXRlGAEgASgLMhkubWV0YWxzdGFjay5hcGkudjIuTGFiZWxzEg4KBnJlbW92ZRgCIAMoCSKOAQoKVXBkYXRlTWV0YRIuCgp1cGRhdGVkX2F0GAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBJQChBsb2NraW5nX3N0cmF0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dHJpbmdfdmFsdWUSIS5nb29nbGUucHJvdG9idWYuRW51bVZhbHVlT3B0aW9ucxiglgMgASgJUg9lbnVtU3RyaW5nVmFsdWVCwQEKFWNvbS5tZXRhbHN0YWNrLmFwaS52MkILQ29tbW9uUHJvdG9QAVo1Z2l0aHViLmNvbS9tZXRhbC1zdGFjay9hcGkvZ28vbWV0YWxzdGFjay9hcGkvdjI7YXBpdjKiAgNNQViqAhFNZXRhbHN0YWNrLkFwaS5WMsoCEU1ldGFsc3RhY2tcQXBpXFYy4gIdTWV0YWxzdGFja1xBcGlcVjJcR1BCTWV0YWRhdGHqAhNNZXRhbHN0YWNrOjpBcGk6OlYyYgZwcm90bzM", [file_buf_validate_validate, file_google_protobuf_descriptor, file_google_protobuf_timestamp]);
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Paging defines paging for methods with a lot of results
|
|
@@ -324,6 +324,40 @@ export enum InfraRole {
|
|
|
324
324
|
export const InfraRoleSchema: GenEnum<InfraRole> = /*@__PURE__*/
|
|
325
325
|
enumDesc(file_metalstack_api_v2_common, 3);
|
|
326
326
|
|
|
327
|
+
/**
|
|
328
|
+
* MachineRole specifies what role a microservice needs to call this machine service
|
|
329
|
+
*
|
|
330
|
+
* @generated from enum metalstack.api.v2.MachineRole
|
|
331
|
+
*/
|
|
332
|
+
export enum MachineRole {
|
|
333
|
+
/**
|
|
334
|
+
* MACHINE_ROLE_UNSPECIFIED is not specified
|
|
335
|
+
*
|
|
336
|
+
* @generated from enum value: MACHINE_ROLE_UNSPECIFIED = 0;
|
|
337
|
+
*/
|
|
338
|
+
UNSPECIFIED = 0,
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* MACHINE_ROLE_EDITOR a microservice needs at least editor role to call this method
|
|
342
|
+
*
|
|
343
|
+
* @generated from enum value: MACHINE_ROLE_EDITOR = 1;
|
|
344
|
+
*/
|
|
345
|
+
EDITOR = 1,
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* MACHINE_ROLE_VIEWER a microservice needs at least viewer role to call this method
|
|
349
|
+
*
|
|
350
|
+
* @generated from enum value: MACHINE_ROLE_VIEWER = 2;
|
|
351
|
+
*/
|
|
352
|
+
VIEWER = 2,
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Describes the enum metalstack.api.v2.MachineRole.
|
|
357
|
+
*/
|
|
358
|
+
export const MachineRoleSchema: GenEnum<MachineRole> = /*@__PURE__*/
|
|
359
|
+
enumDesc(file_metalstack_api_v2_common, 4);
|
|
360
|
+
|
|
327
361
|
/**
|
|
328
362
|
* Visibility of a method
|
|
329
363
|
*
|
|
@@ -356,7 +390,7 @@ export enum Visibility {
|
|
|
356
390
|
* Describes the enum metalstack.api.v2.Visibility.
|
|
357
391
|
*/
|
|
358
392
|
export const VisibilitySchema: GenEnum<Visibility> = /*@__PURE__*/
|
|
359
|
-
enumDesc(file_metalstack_api_v2_common,
|
|
393
|
+
enumDesc(file_metalstack_api_v2_common, 5);
|
|
360
394
|
|
|
361
395
|
/**
|
|
362
396
|
* Auditing option specified per service method
|
|
@@ -392,7 +426,7 @@ export enum Auditing {
|
|
|
392
426
|
* Describes the enum metalstack.api.v2.Auditing.
|
|
393
427
|
*/
|
|
394
428
|
export const AuditingSchema: GenEnum<Auditing> = /*@__PURE__*/
|
|
395
|
-
enumDesc(file_metalstack_api_v2_common,
|
|
429
|
+
enumDesc(file_metalstack_api_v2_common, 6);
|
|
396
430
|
|
|
397
431
|
/**
|
|
398
432
|
* OptimisticLockingStrategy defines how optimistic locking should be handled.
|
|
@@ -428,7 +462,7 @@ export enum OptimisticLockingStrategy {
|
|
|
428
462
|
* Describes the enum metalstack.api.v2.OptimisticLockingStrategy.
|
|
429
463
|
*/
|
|
430
464
|
export const OptimisticLockingStrategySchema: GenEnum<OptimisticLockingStrategy> = /*@__PURE__*/
|
|
431
|
-
enumDesc(file_metalstack_api_v2_common,
|
|
465
|
+
enumDesc(file_metalstack_api_v2_common, 7);
|
|
432
466
|
|
|
433
467
|
/**
|
|
434
468
|
* TenantRoles are used to define which tenant role a logged in user must provide to call this method
|
|
@@ -478,11 +512,19 @@ export const auditing: GenExtension<MethodOptions, Auditing> = /*@__PURE__*/
|
|
|
478
512
|
export const infra_roles: GenExtension<MethodOptions, InfraRole[]> = /*@__PURE__*/
|
|
479
513
|
extDesc(file_metalstack_api_v2_common, 5);
|
|
480
514
|
|
|
515
|
+
/**
|
|
516
|
+
* MachineRole are used to define which infra role a microservice must provide to call this method
|
|
517
|
+
*
|
|
518
|
+
* @generated from extension: repeated metalstack.api.v2.MachineRole machine_roles = 51006;
|
|
519
|
+
*/
|
|
520
|
+
export const machine_roles: GenExtension<MethodOptions, MachineRole[]> = /*@__PURE__*/
|
|
521
|
+
extDesc(file_metalstack_api_v2_common, 6);
|
|
522
|
+
|
|
481
523
|
/**
|
|
482
524
|
* StringValue which can be set to a enum
|
|
483
525
|
*
|
|
484
526
|
* @generated from extension: string enum_string_value = 52000;
|
|
485
527
|
*/
|
|
486
528
|
export const enum_string_value: GenExtension<EnumValueOptions, string> = /*@__PURE__*/
|
|
487
|
-
extDesc(file_metalstack_api_v2_common,
|
|
529
|
+
extDesc(file_metalstack_api_v2_common, 7);
|
|
488
530
|
|
|
@@ -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
|
*
|
|
@@ -1219,13 +1539,13 @@ export type MachineQuery = Message<"metalstack.api.v2.MachineQuery"> & {
|
|
|
1219
1539
|
*/
|
|
1220
1540
|
disk?: MachineDiskQuery;
|
|
1221
1541
|
/**
|
|
1222
|
-
*
|
|
1542
|
+
* Bmc specific machine queries
|
|
1223
1543
|
*
|
|
1224
|
-
* @generated from field: optional metalstack.api.v2.
|
|
1544
|
+
* @generated from field: optional metalstack.api.v2.MachineBMCQuery bmc = 11;
|
|
1225
1545
|
*/
|
|
1226
|
-
|
|
1546
|
+
bmc?: MachineBMCQuery;
|
|
1227
1547
|
/**
|
|
1228
|
-
*
|
|
1548
|
+
* Fru specific machine queries
|
|
1229
1549
|
*
|
|
1230
1550
|
* @generated from field: optional metalstack.api.v2.MachineFRUQuery fru = 12;
|
|
1231
1551
|
*/
|
|
@@ -1423,11 +1743,11 @@ export type MachineDiskQuery = Message<"metalstack.api.v2.MachineDiskQuery"> & {
|
|
|
1423
1743
|
*/
|
|
1424
1744
|
export declare const MachineDiskQuerySchema: GenMessage<MachineDiskQuery>;
|
|
1425
1745
|
/**
|
|
1426
|
-
*
|
|
1746
|
+
* MachineBMCQuery machine ipmi or bmc specific machine queries
|
|
1427
1747
|
*
|
|
1428
|
-
* @generated from message metalstack.api.v2.
|
|
1748
|
+
* @generated from message metalstack.api.v2.MachineBMCQuery
|
|
1429
1749
|
*/
|
|
1430
|
-
export type
|
|
1750
|
+
export type MachineBMCQuery = Message<"metalstack.api.v2.MachineBMCQuery"> & {
|
|
1431
1751
|
/**
|
|
1432
1752
|
* Address of the ipmi system of this machine
|
|
1433
1753
|
*
|
|
@@ -1454,10 +1774,10 @@ export type MachineIPMIQuery = Message<"metalstack.api.v2.MachineIPMIQuery"> & {
|
|
|
1454
1774
|
interface?: string;
|
|
1455
1775
|
};
|
|
1456
1776
|
/**
|
|
1457
|
-
* Describes the message metalstack.api.v2.
|
|
1458
|
-
* Use `create(
|
|
1777
|
+
* Describes the message metalstack.api.v2.MachineBMCQuery.
|
|
1778
|
+
* Use `create(MachineBMCQuerySchema)` to create a new message.
|
|
1459
1779
|
*/
|
|
1460
|
-
export declare const
|
|
1780
|
+
export declare const MachineBMCQuerySchema: GenMessage<MachineBMCQuery>;
|
|
1461
1781
|
/**
|
|
1462
1782
|
* MachineFRUQuery machine fru specific machine queries
|
|
1463
1783
|
*
|
|
@@ -1782,6 +2102,89 @@ export declare enum MachineAllocationType {
|
|
|
1782
2102
|
* Describes the enum metalstack.api.v2.MachineAllocationType.
|
|
1783
2103
|
*/
|
|
1784
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>;
|
|
1785
2188
|
/**
|
|
1786
2189
|
* MachineService serves machine related functions
|
|
1787
2190
|
*
|
|
@@ -1838,4 +2241,24 @@ export declare const MachineService: GenService<{
|
|
|
1838
2241
|
input: typeof MachineServiceDeleteRequestSchema;
|
|
1839
2242
|
output: typeof MachineServiceDeleteResponseSchema;
|
|
1840
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
|
+
};
|
|
1841
2264
|
}>;
|