@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { MachineBMC, MachineBMCCommand, MachineBMCReport } from "../../api/v2/machine_pb";
|
|
2
3
|
import type { Message } from "@bufbuild/protobuf";
|
|
3
4
|
/**
|
|
4
5
|
* Describes the file metalstack/infra/v2/bmc.proto.
|
|
@@ -9,7 +10,22 @@ export declare const file_metalstack_infra_v2_bmc: GenFile;
|
|
|
9
10
|
*
|
|
10
11
|
* @generated from message metalstack.infra.v2.UpdateBMCInfoRequest
|
|
11
12
|
*/
|
|
12
|
-
export type UpdateBMCInfoRequest = Message<"metalstack.infra.v2.UpdateBMCInfoRequest"> & {
|
|
13
|
+
export type UpdateBMCInfoRequest = Message<"metalstack.infra.v2.UpdateBMCInfoRequest"> & {
|
|
14
|
+
/**
|
|
15
|
+
* Partition the partition id where metal-bmc wants to receive events
|
|
16
|
+
*
|
|
17
|
+
* @generated from field: string partition = 1;
|
|
18
|
+
*/
|
|
19
|
+
partition: string;
|
|
20
|
+
/**
|
|
21
|
+
* BmcReports contains maps the bmc report per machine uuid
|
|
22
|
+
*
|
|
23
|
+
* @generated from field: map<string, metalstack.api.v2.MachineBMCReport> bmc_reports = 2;
|
|
24
|
+
*/
|
|
25
|
+
bmcReports: {
|
|
26
|
+
[key: string]: MachineBMCReport;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
13
29
|
/**
|
|
14
30
|
* Describes the message metalstack.infra.v2.UpdateBMCInfoRequest.
|
|
15
31
|
* Use `create(UpdateBMCInfoRequestSchema)` to create a new message.
|
|
@@ -20,34 +36,116 @@ export declare const UpdateBMCInfoRequestSchema: GenMessage<UpdateBMCInfoRequest
|
|
|
20
36
|
*
|
|
21
37
|
* @generated from message metalstack.infra.v2.UpdateBMCInfoResponse
|
|
22
38
|
*/
|
|
23
|
-
export type UpdateBMCInfoResponse = Message<"metalstack.infra.v2.UpdateBMCInfoResponse"> & {
|
|
39
|
+
export type UpdateBMCInfoResponse = Message<"metalstack.infra.v2.UpdateBMCInfoResponse"> & {
|
|
40
|
+
/**
|
|
41
|
+
* UpdatedMachines is a slice of machine uuids which were updated
|
|
42
|
+
*
|
|
43
|
+
* @generated from field: repeated string updated_machines = 1;
|
|
44
|
+
*/
|
|
45
|
+
updatedMachines: string[];
|
|
46
|
+
/**
|
|
47
|
+
* CreatedMachines is a slice of machine uuids which were created
|
|
48
|
+
*
|
|
49
|
+
* @generated from field: repeated string created_machines = 2;
|
|
50
|
+
*/
|
|
51
|
+
createdMachines: string[];
|
|
52
|
+
};
|
|
24
53
|
/**
|
|
25
54
|
* Describes the message metalstack.infra.v2.UpdateBMCInfoResponse.
|
|
26
55
|
* Use `create(UpdateBMCInfoResponseSchema)` to create a new message.
|
|
27
56
|
*/
|
|
28
57
|
export declare const UpdateBMCInfoResponseSchema: GenMessage<UpdateBMCInfoResponse>;
|
|
29
58
|
/**
|
|
30
|
-
*
|
|
59
|
+
* WaitForBMCCommandRequest
|
|
31
60
|
*
|
|
32
|
-
* @generated from message metalstack.infra.v2.
|
|
61
|
+
* @generated from message metalstack.infra.v2.WaitForBMCCommandRequest
|
|
33
62
|
*/
|
|
34
|
-
export type
|
|
63
|
+
export type WaitForBMCCommandRequest = Message<"metalstack.infra.v2.WaitForBMCCommandRequest"> & {
|
|
64
|
+
/**
|
|
65
|
+
* Partition the partition id where metal-bmc wants to receive bmc commands
|
|
66
|
+
*
|
|
67
|
+
* @generated from field: string partition = 1;
|
|
68
|
+
*/
|
|
69
|
+
partition: string;
|
|
70
|
+
};
|
|
35
71
|
/**
|
|
36
|
-
* Describes the message metalstack.infra.v2.
|
|
37
|
-
* Use `create(
|
|
72
|
+
* Describes the message metalstack.infra.v2.WaitForBMCCommandRequest.
|
|
73
|
+
* Use `create(WaitForBMCCommandRequestSchema)` to create a new message.
|
|
38
74
|
*/
|
|
39
|
-
export declare const
|
|
75
|
+
export declare const WaitForBMCCommandRequestSchema: GenMessage<WaitForBMCCommandRequest>;
|
|
40
76
|
/**
|
|
41
|
-
*
|
|
77
|
+
* WaitForBMCCommandResponse
|
|
42
78
|
*
|
|
43
|
-
* @generated from message metalstack.infra.v2.
|
|
79
|
+
* @generated from message metalstack.infra.v2.WaitForBMCCommandResponse
|
|
44
80
|
*/
|
|
45
|
-
export type
|
|
81
|
+
export type WaitForBMCCommandResponse = Message<"metalstack.infra.v2.WaitForBMCCommandResponse"> & {
|
|
82
|
+
/**
|
|
83
|
+
* UUID of the machine to send the command to
|
|
84
|
+
*
|
|
85
|
+
* @generated from field: string uuid = 1;
|
|
86
|
+
*/
|
|
87
|
+
uuid: string;
|
|
88
|
+
/**
|
|
89
|
+
* BmcCommand to execute against the bmc of the machine
|
|
90
|
+
*
|
|
91
|
+
* @generated from field: metalstack.api.v2.MachineBMCCommand bmc_command = 2;
|
|
92
|
+
*/
|
|
93
|
+
bmcCommand: MachineBMCCommand;
|
|
94
|
+
/**
|
|
95
|
+
* MachineBmc contains connection details of the machine to issue the bmcCommand to
|
|
96
|
+
*
|
|
97
|
+
* @generated from field: metalstack.api.v2.MachineBMC machine_bmc = 3;
|
|
98
|
+
*/
|
|
99
|
+
machineBmc?: MachineBMC;
|
|
100
|
+
/**
|
|
101
|
+
* CommandId is a unique ID which must be sent back after execution
|
|
102
|
+
* it is usually in the form: <machine-uuid>:machine-bmc-command:<command>
|
|
103
|
+
*
|
|
104
|
+
* @generated from field: string command_id = 4;
|
|
105
|
+
*/
|
|
106
|
+
commandId: string;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Describes the message metalstack.infra.v2.WaitForBMCCommandResponse.
|
|
110
|
+
* Use `create(WaitForBMCCommandResponseSchema)` to create a new message.
|
|
111
|
+
*/
|
|
112
|
+
export declare const WaitForBMCCommandResponseSchema: GenMessage<WaitForBMCCommandResponse>;
|
|
113
|
+
/**
|
|
114
|
+
* BMCCommandDoneRequest must be returned after command execution
|
|
115
|
+
*
|
|
116
|
+
* @generated from message metalstack.infra.v2.BMCCommandDoneRequest
|
|
117
|
+
*/
|
|
118
|
+
export type BMCCommandDoneRequest = Message<"metalstack.infra.v2.BMCCommandDoneRequest"> & {
|
|
119
|
+
/**
|
|
120
|
+
* CommandId is a unique ID which must be sent back after execution
|
|
121
|
+
* it is usually in the form: <machine-uuid>:machine-bmc-command
|
|
122
|
+
*
|
|
123
|
+
* @generated from field: string command_id = 1;
|
|
124
|
+
*/
|
|
125
|
+
commandId: string;
|
|
126
|
+
/**
|
|
127
|
+
* Error of the command execution, nil if it was successful
|
|
128
|
+
*
|
|
129
|
+
* @generated from field: optional string error = 2;
|
|
130
|
+
*/
|
|
131
|
+
error?: string;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Describes the message metalstack.infra.v2.BMCCommandDoneRequest.
|
|
135
|
+
* Use `create(BMCCommandDoneRequestSchema)` to create a new message.
|
|
136
|
+
*/
|
|
137
|
+
export declare const BMCCommandDoneRequestSchema: GenMessage<BMCCommandDoneRequest>;
|
|
138
|
+
/**
|
|
139
|
+
* BMCCommandDoneResponse
|
|
140
|
+
*
|
|
141
|
+
* @generated from message metalstack.infra.v2.BMCCommandDoneResponse
|
|
142
|
+
*/
|
|
143
|
+
export type BMCCommandDoneResponse = Message<"metalstack.infra.v2.BMCCommandDoneResponse"> & {};
|
|
46
144
|
/**
|
|
47
|
-
* Describes the message metalstack.infra.v2.
|
|
48
|
-
* Use `create(
|
|
145
|
+
* Describes the message metalstack.infra.v2.BMCCommandDoneResponse.
|
|
146
|
+
* Use `create(BMCCommandDoneResponseSchema)` to create a new message.
|
|
49
147
|
*/
|
|
50
|
-
export declare const
|
|
148
|
+
export declare const BMCCommandDoneResponseSchema: GenMessage<BMCCommandDoneResponse>;
|
|
51
149
|
/**
|
|
52
150
|
* BMCService serves bmc related functions
|
|
53
151
|
*
|
|
@@ -65,13 +163,23 @@ export declare const BMCService: GenService<{
|
|
|
65
163
|
output: typeof UpdateBMCInfoResponseSchema;
|
|
66
164
|
};
|
|
67
165
|
/**
|
|
68
|
-
*
|
|
166
|
+
* WaitForBMCCommand is called by the metal-bmc and is returned with a bmc command to execute.
|
|
69
167
|
*
|
|
70
|
-
* @generated from rpc metalstack.infra.v2.BMCService.
|
|
168
|
+
* @generated from rpc metalstack.infra.v2.BMCService.WaitForBMCCommand
|
|
71
169
|
*/
|
|
72
|
-
|
|
170
|
+
waitForBMCCommand: {
|
|
73
171
|
methodKind: "server_streaming";
|
|
74
|
-
input: typeof
|
|
75
|
-
output: typeof
|
|
172
|
+
input: typeof WaitForBMCCommandRequestSchema;
|
|
173
|
+
output: typeof WaitForBMCCommandResponseSchema;
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* BMCCommandDone must be called from metal-bmc after the command execution
|
|
177
|
+
*
|
|
178
|
+
* @generated from rpc metalstack.infra.v2.BMCService.BMCCommandDone
|
|
179
|
+
*/
|
|
180
|
+
bMCCommandDone: {
|
|
181
|
+
methodKind: "unary";
|
|
182
|
+
input: typeof BMCCommandDoneRequestSchema;
|
|
183
|
+
output: typeof BMCCommandDoneResponseSchema;
|
|
76
184
|
};
|
|
77
185
|
}>;
|
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
// @generated from file metalstack/infra/v2/bmc.proto (package metalstack.infra.v2, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
|
|
5
6
|
import { file_metalstack_api_v2_common } from "../../api/v2/common_pb";
|
|
7
|
+
import { file_metalstack_api_v2_machine } from "../../api/v2/machine_pb";
|
|
8
|
+
import { file_metalstack_api_v2_predefined_rules } from "../../api/v2/predefined_rules_pb";
|
|
6
9
|
/**
|
|
7
10
|
* Describes the file metalstack/infra/v2/bmc.proto.
|
|
8
11
|
*/
|
|
9
|
-
export const file_metalstack_infra_v2_bmc = /*@__PURE__*/ fileDesc("
|
|
12
|
+
export const file_metalstack_infra_v2_bmc = /*@__PURE__*/ fileDesc("Ch1tZXRhbHN0YWNrL2luZnJhL3YyL2JtYy5wcm90bxITbWV0YWxzdGFjay5pbmZyYS52MiLtAQoUVXBkYXRlQk1DSW5mb1JlcXVlc3QSHgoJcGFydGl0aW9uGAEgASgJQgu6SAhyBtCzrrECARJdCgtibWNfcmVwb3J0cxgCIAMoCzI5Lm1ldGFsc3RhY2suaW5mcmEudjIuVXBkYXRlQk1DSW5mb1JlcXVlc3QuQm1jUmVwb3J0c0VudHJ5Qg26SAqaAQciBXIDsAEBGlYKD0JtY1JlcG9ydHNFbnRyeRILCgNrZXkYASABKAkSMgoFdmFsdWUYAiABKAsyIy5tZXRhbHN0YWNrLmFwaS52Mi5NYWNoaW5lQk1DUmVwb3J0OgI4ASJLChVVcGRhdGVCTUNJbmZvUmVzcG9uc2USGAoQdXBkYXRlZF9tYWNoaW5lcxgBIAMoCRIYChBjcmVhdGVkX21hY2hpbmVzGAIgAygJIjoKGFdhaXRGb3JCTUNDb21tYW5kUmVxdWVzdBIeCglwYXJ0aXRpb24YASABKAlCC7pICHIG0LOusQIBIrYBChlXYWl0Rm9yQk1DQ29tbWFuZFJlc3BvbnNlEhYKBHV1aWQYASABKAlCCLpIBXIDsAEBEjkKC2JtY19jb21tYW5kGAIgASgOMiQubWV0YWxzdGFjay5hcGkudjIuTWFjaGluZUJNQ0NvbW1hbmQSMgoLbWFjaGluZV9ibWMYAyABKAsyHS5tZXRhbHN0YWNrLmFwaS52Mi5NYWNoaW5lQk1DEhIKCmNvbW1hbmRfaWQYBCABKAkiSQoVQk1DQ29tbWFuZERvbmVSZXF1ZXN0EhIKCmNvbW1hbmRfaWQYASABKAkSEgoFZXJyb3IYAiABKAlIAIgBAUIICgZfZXJyb3IiGAoWQk1DQ29tbWFuZERvbmVSZXNwb25zZTL2AgoKQk1DU2VydmljZRJxCg1VcGRhdGVCTUNJbmZvEikubWV0YWxzdGFjay5pbmZyYS52Mi5VcGRhdGVCTUNJbmZvUmVxdWVzdBoqLm1ldGFsc3RhY2suaW5mcmEudjIuVXBkYXRlQk1DSW5mb1Jlc3BvbnNlIgng8xgC6vMYAQESfwoRV2FpdEZvckJNQ0NvbW1hbmQSLS5tZXRhbHN0YWNrLmluZnJhLnYyLldhaXRGb3JCTUNDb21tYW5kUmVxdWVzdBouLm1ldGFsc3RhY2suaW5mcmEudjIuV2FpdEZvckJNQ0NvbW1hbmRSZXNwb25zZSIJ4PMYAurzGAEBMAESdAoOQk1DQ29tbWFuZERvbmUSKi5tZXRhbHN0YWNrLmluZnJhLnYyLkJNQ0NvbW1hbmREb25lUmVxdWVzdBorLm1ldGFsc3RhY2suaW5mcmEudjIuQk1DQ29tbWFuZERvbmVSZXNwb25zZSIJ4PMYAerzGAEBQswBChdjb20ubWV0YWxzdGFjay5pbmZyYS52MkIIQm1jUHJvdG9QAVo5Z2l0aHViLmNvbS9tZXRhbC1zdGFjay9hcGkvZ28vbWV0YWxzdGFjay9pbmZyYS92MjtpbmZyYXYyogIDTUlYqgITTWV0YWxzdGFjay5JbmZyYS5WMsoCE01ldGFsc3RhY2tcSW5mcmFcVjLiAh9NZXRhbHN0YWNrXEluZnJhXFYyXEdQQk1ldGFkYXRh6gIVTWV0YWxzdGFjazo6SW5mcmE6OlYyYgZwcm90bzM", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_machine, file_metalstack_api_v2_predefined_rules]);
|
|
10
13
|
/**
|
|
11
14
|
* Describes the message metalstack.infra.v2.UpdateBMCInfoRequest.
|
|
12
15
|
* Use `create(UpdateBMCInfoRequestSchema)` to create a new message.
|
|
@@ -18,15 +21,25 @@ export const UpdateBMCInfoRequestSchema = /*@__PURE__*/ messageDesc(file_metalst
|
|
|
18
21
|
*/
|
|
19
22
|
export const UpdateBMCInfoResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_infra_v2_bmc, 1);
|
|
20
23
|
/**
|
|
21
|
-
* Describes the message metalstack.infra.v2.
|
|
22
|
-
* Use `create(
|
|
24
|
+
* Describes the message metalstack.infra.v2.WaitForBMCCommandRequest.
|
|
25
|
+
* Use `create(WaitForBMCCommandRequestSchema)` to create a new message.
|
|
23
26
|
*/
|
|
24
|
-
export const
|
|
27
|
+
export const WaitForBMCCommandRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_infra_v2_bmc, 2);
|
|
25
28
|
/**
|
|
26
|
-
* Describes the message metalstack.infra.v2.
|
|
27
|
-
* Use `create(
|
|
29
|
+
* Describes the message metalstack.infra.v2.WaitForBMCCommandResponse.
|
|
30
|
+
* Use `create(WaitForBMCCommandResponseSchema)` to create a new message.
|
|
28
31
|
*/
|
|
29
|
-
export const
|
|
32
|
+
export const WaitForBMCCommandResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_infra_v2_bmc, 3);
|
|
33
|
+
/**
|
|
34
|
+
* Describes the message metalstack.infra.v2.BMCCommandDoneRequest.
|
|
35
|
+
* Use `create(BMCCommandDoneRequestSchema)` to create a new message.
|
|
36
|
+
*/
|
|
37
|
+
export const BMCCommandDoneRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_infra_v2_bmc, 4);
|
|
38
|
+
/**
|
|
39
|
+
* Describes the message metalstack.infra.v2.BMCCommandDoneResponse.
|
|
40
|
+
* Use `create(BMCCommandDoneResponseSchema)` to create a new message.
|
|
41
|
+
*/
|
|
42
|
+
export const BMCCommandDoneResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_infra_v2_bmc, 5);
|
|
30
43
|
/**
|
|
31
44
|
* BMCService serves bmc related functions
|
|
32
45
|
*
|
|
@@ -4,14 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
6
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
+
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
|
|
7
8
|
import { file_metalstack_api_v2_common } from "../../api/v2/common_pb";
|
|
9
|
+
import type { MachineBMC, MachineBMCCommand, MachineBMCReport } from "../../api/v2/machine_pb";
|
|
10
|
+
import { file_metalstack_api_v2_machine } from "../../api/v2/machine_pb";
|
|
11
|
+
import { file_metalstack_api_v2_predefined_rules } from "../../api/v2/predefined_rules_pb";
|
|
8
12
|
import type { Message } from "@bufbuild/protobuf";
|
|
9
13
|
|
|
10
14
|
/**
|
|
11
15
|
* Describes the file metalstack/infra/v2/bmc.proto.
|
|
12
16
|
*/
|
|
13
17
|
export const file_metalstack_infra_v2_bmc: GenFile = /*@__PURE__*/
|
|
14
|
-
fileDesc("
|
|
18
|
+
fileDesc("Ch1tZXRhbHN0YWNrL2luZnJhL3YyL2JtYy5wcm90bxITbWV0YWxzdGFjay5pbmZyYS52MiLtAQoUVXBkYXRlQk1DSW5mb1JlcXVlc3QSHgoJcGFydGl0aW9uGAEgASgJQgu6SAhyBtCzrrECARJdCgtibWNfcmVwb3J0cxgCIAMoCzI5Lm1ldGFsc3RhY2suaW5mcmEudjIuVXBkYXRlQk1DSW5mb1JlcXVlc3QuQm1jUmVwb3J0c0VudHJ5Qg26SAqaAQciBXIDsAEBGlYKD0JtY1JlcG9ydHNFbnRyeRILCgNrZXkYASABKAkSMgoFdmFsdWUYAiABKAsyIy5tZXRhbHN0YWNrLmFwaS52Mi5NYWNoaW5lQk1DUmVwb3J0OgI4ASJLChVVcGRhdGVCTUNJbmZvUmVzcG9uc2USGAoQdXBkYXRlZF9tYWNoaW5lcxgBIAMoCRIYChBjcmVhdGVkX21hY2hpbmVzGAIgAygJIjoKGFdhaXRGb3JCTUNDb21tYW5kUmVxdWVzdBIeCglwYXJ0aXRpb24YASABKAlCC7pICHIG0LOusQIBIrYBChlXYWl0Rm9yQk1DQ29tbWFuZFJlc3BvbnNlEhYKBHV1aWQYASABKAlCCLpIBXIDsAEBEjkKC2JtY19jb21tYW5kGAIgASgOMiQubWV0YWxzdGFjay5hcGkudjIuTWFjaGluZUJNQ0NvbW1hbmQSMgoLbWFjaGluZV9ibWMYAyABKAsyHS5tZXRhbHN0YWNrLmFwaS52Mi5NYWNoaW5lQk1DEhIKCmNvbW1hbmRfaWQYBCABKAkiSQoVQk1DQ29tbWFuZERvbmVSZXF1ZXN0EhIKCmNvbW1hbmRfaWQYASABKAkSEgoFZXJyb3IYAiABKAlIAIgBAUIICgZfZXJyb3IiGAoWQk1DQ29tbWFuZERvbmVSZXNwb25zZTL2AgoKQk1DU2VydmljZRJxCg1VcGRhdGVCTUNJbmZvEikubWV0YWxzdGFjay5pbmZyYS52Mi5VcGRhdGVCTUNJbmZvUmVxdWVzdBoqLm1ldGFsc3RhY2suaW5mcmEudjIuVXBkYXRlQk1DSW5mb1Jlc3BvbnNlIgng8xgC6vMYAQESfwoRV2FpdEZvckJNQ0NvbW1hbmQSLS5tZXRhbHN0YWNrLmluZnJhLnYyLldhaXRGb3JCTUNDb21tYW5kUmVxdWVzdBouLm1ldGFsc3RhY2suaW5mcmEudjIuV2FpdEZvckJNQ0NvbW1hbmRSZXNwb25zZSIJ4PMYAurzGAEBMAESdAoOQk1DQ29tbWFuZERvbmUSKi5tZXRhbHN0YWNrLmluZnJhLnYyLkJNQ0NvbW1hbmREb25lUmVxdWVzdBorLm1ldGFsc3RhY2suaW5mcmEudjIuQk1DQ29tbWFuZERvbmVSZXNwb25zZSIJ4PMYAerzGAEBQswBChdjb20ubWV0YWxzdGFjay5pbmZyYS52MkIIQm1jUHJvdG9QAVo5Z2l0aHViLmNvbS9tZXRhbC1zdGFjay9hcGkvZ28vbWV0YWxzdGFjay9pbmZyYS92MjtpbmZyYXYyogIDTUlYqgITTWV0YWxzdGFjay5JbmZyYS5WMsoCE01ldGFsc3RhY2tcSW5mcmFcVjLiAh9NZXRhbHN0YWNrXEluZnJhXFYyXEdQQk1ldGFkYXRh6gIVTWV0YWxzdGFjazo6SW5mcmE6OlYyYgZwcm90bzM", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_machine, file_metalstack_api_v2_predefined_rules]);
|
|
15
19
|
|
|
16
20
|
/**
|
|
17
21
|
* UpdateBMCInfoRequest
|
|
@@ -19,6 +23,19 @@ export const file_metalstack_infra_v2_bmc: GenFile = /*@__PURE__*/
|
|
|
19
23
|
* @generated from message metalstack.infra.v2.UpdateBMCInfoRequest
|
|
20
24
|
*/
|
|
21
25
|
export type UpdateBMCInfoRequest = Message<"metalstack.infra.v2.UpdateBMCInfoRequest"> & {
|
|
26
|
+
/**
|
|
27
|
+
* Partition the partition id where metal-bmc wants to receive events
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: string partition = 1;
|
|
30
|
+
*/
|
|
31
|
+
partition: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* BmcReports contains maps the bmc report per machine uuid
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: map<string, metalstack.api.v2.MachineBMCReport> bmc_reports = 2;
|
|
37
|
+
*/
|
|
38
|
+
bmcReports: { [key: string]: MachineBMCReport };
|
|
22
39
|
};
|
|
23
40
|
|
|
24
41
|
/**
|
|
@@ -34,6 +51,19 @@ export const UpdateBMCInfoRequestSchema: GenMessage<UpdateBMCInfoRequest> = /*@_
|
|
|
34
51
|
* @generated from message metalstack.infra.v2.UpdateBMCInfoResponse
|
|
35
52
|
*/
|
|
36
53
|
export type UpdateBMCInfoResponse = Message<"metalstack.infra.v2.UpdateBMCInfoResponse"> & {
|
|
54
|
+
/**
|
|
55
|
+
* UpdatedMachines is a slice of machine uuids which were updated
|
|
56
|
+
*
|
|
57
|
+
* @generated from field: repeated string updated_machines = 1;
|
|
58
|
+
*/
|
|
59
|
+
updatedMachines: string[];
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* CreatedMachines is a slice of machine uuids which were created
|
|
63
|
+
*
|
|
64
|
+
* @generated from field: repeated string created_machines = 2;
|
|
65
|
+
*/
|
|
66
|
+
createdMachines: string[];
|
|
37
67
|
};
|
|
38
68
|
|
|
39
69
|
/**
|
|
@@ -44,35 +74,113 @@ export const UpdateBMCInfoResponseSchema: GenMessage<UpdateBMCInfoResponse> = /*
|
|
|
44
74
|
messageDesc(file_metalstack_infra_v2_bmc, 1);
|
|
45
75
|
|
|
46
76
|
/**
|
|
47
|
-
*
|
|
77
|
+
* WaitForBMCCommandRequest
|
|
48
78
|
*
|
|
49
|
-
* @generated from message metalstack.infra.v2.
|
|
79
|
+
* @generated from message metalstack.infra.v2.WaitForBMCCommandRequest
|
|
50
80
|
*/
|
|
51
|
-
export type
|
|
81
|
+
export type WaitForBMCCommandRequest = Message<"metalstack.infra.v2.WaitForBMCCommandRequest"> & {
|
|
82
|
+
/**
|
|
83
|
+
* Partition the partition id where metal-bmc wants to receive bmc commands
|
|
84
|
+
*
|
|
85
|
+
* @generated from field: string partition = 1;
|
|
86
|
+
*/
|
|
87
|
+
partition: string;
|
|
52
88
|
};
|
|
53
89
|
|
|
54
90
|
/**
|
|
55
|
-
* Describes the message metalstack.infra.v2.
|
|
56
|
-
* Use `create(
|
|
91
|
+
* Describes the message metalstack.infra.v2.WaitForBMCCommandRequest.
|
|
92
|
+
* Use `create(WaitForBMCCommandRequestSchema)` to create a new message.
|
|
57
93
|
*/
|
|
58
|
-
export const
|
|
94
|
+
export const WaitForBMCCommandRequestSchema: GenMessage<WaitForBMCCommandRequest> = /*@__PURE__*/
|
|
59
95
|
messageDesc(file_metalstack_infra_v2_bmc, 2);
|
|
60
96
|
|
|
61
97
|
/**
|
|
62
|
-
*
|
|
98
|
+
* WaitForBMCCommandResponse
|
|
63
99
|
*
|
|
64
|
-
* @generated from message metalstack.infra.v2.
|
|
100
|
+
* @generated from message metalstack.infra.v2.WaitForBMCCommandResponse
|
|
65
101
|
*/
|
|
66
|
-
export type
|
|
102
|
+
export type WaitForBMCCommandResponse = Message<"metalstack.infra.v2.WaitForBMCCommandResponse"> & {
|
|
103
|
+
/**
|
|
104
|
+
* UUID of the machine to send the command to
|
|
105
|
+
*
|
|
106
|
+
* @generated from field: string uuid = 1;
|
|
107
|
+
*/
|
|
108
|
+
uuid: string;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* BmcCommand to execute against the bmc of the machine
|
|
112
|
+
*
|
|
113
|
+
* @generated from field: metalstack.api.v2.MachineBMCCommand bmc_command = 2;
|
|
114
|
+
*/
|
|
115
|
+
bmcCommand: MachineBMCCommand;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* MachineBmc contains connection details of the machine to issue the bmcCommand to
|
|
119
|
+
*
|
|
120
|
+
* @generated from field: metalstack.api.v2.MachineBMC machine_bmc = 3;
|
|
121
|
+
*/
|
|
122
|
+
machineBmc?: MachineBMC;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* CommandId is a unique ID which must be sent back after execution
|
|
126
|
+
* it is usually in the form: <machine-uuid>:machine-bmc-command:<command>
|
|
127
|
+
*
|
|
128
|
+
* @generated from field: string command_id = 4;
|
|
129
|
+
*/
|
|
130
|
+
commandId: string;
|
|
67
131
|
};
|
|
68
132
|
|
|
69
133
|
/**
|
|
70
|
-
* Describes the message metalstack.infra.v2.
|
|
71
|
-
* Use `create(
|
|
134
|
+
* Describes the message metalstack.infra.v2.WaitForBMCCommandResponse.
|
|
135
|
+
* Use `create(WaitForBMCCommandResponseSchema)` to create a new message.
|
|
72
136
|
*/
|
|
73
|
-
export const
|
|
137
|
+
export const WaitForBMCCommandResponseSchema: GenMessage<WaitForBMCCommandResponse> = /*@__PURE__*/
|
|
74
138
|
messageDesc(file_metalstack_infra_v2_bmc, 3);
|
|
75
139
|
|
|
140
|
+
/**
|
|
141
|
+
* BMCCommandDoneRequest must be returned after command execution
|
|
142
|
+
*
|
|
143
|
+
* @generated from message metalstack.infra.v2.BMCCommandDoneRequest
|
|
144
|
+
*/
|
|
145
|
+
export type BMCCommandDoneRequest = Message<"metalstack.infra.v2.BMCCommandDoneRequest"> & {
|
|
146
|
+
/**
|
|
147
|
+
* CommandId is a unique ID which must be sent back after execution
|
|
148
|
+
* it is usually in the form: <machine-uuid>:machine-bmc-command
|
|
149
|
+
*
|
|
150
|
+
* @generated from field: string command_id = 1;
|
|
151
|
+
*/
|
|
152
|
+
commandId: string;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Error of the command execution, nil if it was successful
|
|
156
|
+
*
|
|
157
|
+
* @generated from field: optional string error = 2;
|
|
158
|
+
*/
|
|
159
|
+
error?: string;
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Describes the message metalstack.infra.v2.BMCCommandDoneRequest.
|
|
164
|
+
* Use `create(BMCCommandDoneRequestSchema)` to create a new message.
|
|
165
|
+
*/
|
|
166
|
+
export const BMCCommandDoneRequestSchema: GenMessage<BMCCommandDoneRequest> = /*@__PURE__*/
|
|
167
|
+
messageDesc(file_metalstack_infra_v2_bmc, 4);
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* BMCCommandDoneResponse
|
|
171
|
+
*
|
|
172
|
+
* @generated from message metalstack.infra.v2.BMCCommandDoneResponse
|
|
173
|
+
*/
|
|
174
|
+
export type BMCCommandDoneResponse = Message<"metalstack.infra.v2.BMCCommandDoneResponse"> & {
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Describes the message metalstack.infra.v2.BMCCommandDoneResponse.
|
|
179
|
+
* Use `create(BMCCommandDoneResponseSchema)` to create a new message.
|
|
180
|
+
*/
|
|
181
|
+
export const BMCCommandDoneResponseSchema: GenMessage<BMCCommandDoneResponse> = /*@__PURE__*/
|
|
182
|
+
messageDesc(file_metalstack_infra_v2_bmc, 5);
|
|
183
|
+
|
|
76
184
|
/**
|
|
77
185
|
* BMCService serves bmc related functions
|
|
78
186
|
*
|
|
@@ -90,14 +198,24 @@ export const BMCService: GenService<{
|
|
|
90
198
|
output: typeof UpdateBMCInfoResponseSchema;
|
|
91
199
|
},
|
|
92
200
|
/**
|
|
93
|
-
*
|
|
201
|
+
* WaitForBMCCommand is called by the metal-bmc and is returned with a bmc command to execute.
|
|
94
202
|
*
|
|
95
|
-
* @generated from rpc metalstack.infra.v2.BMCService.
|
|
203
|
+
* @generated from rpc metalstack.infra.v2.BMCService.WaitForBMCCommand
|
|
96
204
|
*/
|
|
97
|
-
|
|
205
|
+
waitForBMCCommand: {
|
|
98
206
|
methodKind: "server_streaming";
|
|
99
|
-
input: typeof
|
|
100
|
-
output: typeof
|
|
207
|
+
input: typeof WaitForBMCCommandRequestSchema;
|
|
208
|
+
output: typeof WaitForBMCCommandResponseSchema;
|
|
209
|
+
},
|
|
210
|
+
/**
|
|
211
|
+
* BMCCommandDone must be called from metal-bmc after the command execution
|
|
212
|
+
*
|
|
213
|
+
* @generated from rpc metalstack.infra.v2.BMCService.BMCCommandDone
|
|
214
|
+
*/
|
|
215
|
+
bMCCommandDone: {
|
|
216
|
+
methodKind: "unary";
|
|
217
|
+
input: typeof BMCCommandDoneRequestSchema;
|
|
218
|
+
output: typeof BMCCommandDoneResponseSchema;
|
|
101
219
|
},
|
|
102
220
|
}> = /*@__PURE__*/
|
|
103
221
|
serviceDesc(file_metalstack_infra_v2_bmc, 0);
|