@metal-stack/api 0.0.44 → 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.
- 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
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file metalstack/admin/v2/task.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_metalstack_admin_v2_task: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* TaskServiceGetRequest is the message to a get task request
|
|
10
|
+
*
|
|
11
|
+
* @generated from message metalstack.admin.v2.TaskServiceGetRequest
|
|
12
|
+
*/
|
|
13
|
+
export type TaskServiceGetRequest = Message<"metalstack.admin.v2.TaskServiceGetRequest"> & {
|
|
14
|
+
/**
|
|
15
|
+
* TaskId to get
|
|
16
|
+
*
|
|
17
|
+
* @generated from field: string task_id = 1;
|
|
18
|
+
*/
|
|
19
|
+
taskId: string;
|
|
20
|
+
/**
|
|
21
|
+
* Queue where this task was scheduled to
|
|
22
|
+
*
|
|
23
|
+
* @generated from field: string queue = 2;
|
|
24
|
+
*/
|
|
25
|
+
queue: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message metalstack.admin.v2.TaskServiceGetRequest.
|
|
29
|
+
* Use `create(TaskServiceGetRequestSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export declare const TaskServiceGetRequestSchema: GenMessage<TaskServiceGetRequest>;
|
|
32
|
+
/**
|
|
33
|
+
* TaskServiceGetResponse is the response to a task get request
|
|
34
|
+
*
|
|
35
|
+
* @generated from message metalstack.admin.v2.TaskServiceGetResponse
|
|
36
|
+
*/
|
|
37
|
+
export type TaskServiceGetResponse = Message<"metalstack.admin.v2.TaskServiceGetResponse"> & {
|
|
38
|
+
/**
|
|
39
|
+
* Task contains the task details
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: metalstack.admin.v2.TaskInfo task = 1;
|
|
42
|
+
*/
|
|
43
|
+
task?: TaskInfo;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message metalstack.admin.v2.TaskServiceGetResponse.
|
|
47
|
+
* Use `create(TaskServiceGetResponseSchema)` to create a new message.
|
|
48
|
+
*/
|
|
49
|
+
export declare const TaskServiceGetResponseSchema: GenMessage<TaskServiceGetResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* TaskServiceDeleteRequest is the message to a delete task request
|
|
52
|
+
*
|
|
53
|
+
* @generated from message metalstack.admin.v2.TaskServiceDeleteRequest
|
|
54
|
+
*/
|
|
55
|
+
export type TaskServiceDeleteRequest = Message<"metalstack.admin.v2.TaskServiceDeleteRequest"> & {
|
|
56
|
+
/**
|
|
57
|
+
* TaskId to cancel
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: string task_id = 1;
|
|
60
|
+
*/
|
|
61
|
+
taskId: string;
|
|
62
|
+
/**
|
|
63
|
+
* Queue where this task was scheduled to
|
|
64
|
+
*
|
|
65
|
+
* @generated from field: string queue = 2;
|
|
66
|
+
*/
|
|
67
|
+
queue: string;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Describes the message metalstack.admin.v2.TaskServiceDeleteRequest.
|
|
71
|
+
* Use `create(TaskServiceDeleteRequestSchema)` to create a new message.
|
|
72
|
+
*/
|
|
73
|
+
export declare const TaskServiceDeleteRequestSchema: GenMessage<TaskServiceDeleteRequest>;
|
|
74
|
+
/**
|
|
75
|
+
* TaskServiceDeleteResponse is the response to a task delete request
|
|
76
|
+
*
|
|
77
|
+
* @generated from message metalstack.admin.v2.TaskServiceDeleteResponse
|
|
78
|
+
*/
|
|
79
|
+
export type TaskServiceDeleteResponse = Message<"metalstack.admin.v2.TaskServiceDeleteResponse"> & {};
|
|
80
|
+
/**
|
|
81
|
+
* Describes the message metalstack.admin.v2.TaskServiceDeleteResponse.
|
|
82
|
+
* Use `create(TaskServiceDeleteResponseSchema)` to create a new message.
|
|
83
|
+
*/
|
|
84
|
+
export declare const TaskServiceDeleteResponseSchema: GenMessage<TaskServiceDeleteResponse>;
|
|
85
|
+
/**
|
|
86
|
+
* TaskServiceQueuesRequest is the message to get all queues
|
|
87
|
+
*
|
|
88
|
+
* @generated from message metalstack.admin.v2.TaskServiceQueuesRequest
|
|
89
|
+
*/
|
|
90
|
+
export type TaskServiceQueuesRequest = Message<"metalstack.admin.v2.TaskServiceQueuesRequest"> & {};
|
|
91
|
+
/**
|
|
92
|
+
* Describes the message metalstack.admin.v2.TaskServiceQueuesRequest.
|
|
93
|
+
* Use `create(TaskServiceQueuesRequestSchema)` to create a new message.
|
|
94
|
+
*/
|
|
95
|
+
export declare const TaskServiceQueuesRequestSchema: GenMessage<TaskServiceQueuesRequest>;
|
|
96
|
+
/**
|
|
97
|
+
* TaskServiceQueuesResponse is the response to a queues request
|
|
98
|
+
*
|
|
99
|
+
* @generated from message metalstack.admin.v2.TaskServiceQueuesResponse
|
|
100
|
+
*/
|
|
101
|
+
export type TaskServiceQueuesResponse = Message<"metalstack.admin.v2.TaskServiceQueuesResponse"> & {
|
|
102
|
+
/**
|
|
103
|
+
* Queues configured for the async system
|
|
104
|
+
*
|
|
105
|
+
* @generated from field: repeated string queues = 1;
|
|
106
|
+
*/
|
|
107
|
+
queues: string[];
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Describes the message metalstack.admin.v2.TaskServiceQueuesResponse.
|
|
111
|
+
* Use `create(TaskServiceQueuesResponseSchema)` to create a new message.
|
|
112
|
+
*/
|
|
113
|
+
export declare const TaskServiceQueuesResponseSchema: GenMessage<TaskServiceQueuesResponse>;
|
|
114
|
+
/**
|
|
115
|
+
* TaskServiceListRequest is the message to a task list request
|
|
116
|
+
*
|
|
117
|
+
* @generated from message metalstack.admin.v2.TaskServiceListRequest
|
|
118
|
+
*/
|
|
119
|
+
export type TaskServiceListRequest = Message<"metalstack.admin.v2.TaskServiceListRequest"> & {
|
|
120
|
+
/**
|
|
121
|
+
* Queue where this tasks should be listed
|
|
122
|
+
* will return tasks from all queues if not specified
|
|
123
|
+
*
|
|
124
|
+
* @generated from field: optional string queue = 1;
|
|
125
|
+
*/
|
|
126
|
+
queue?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Count of tasks to return
|
|
129
|
+
*
|
|
130
|
+
* @generated from field: optional uint32 count = 2;
|
|
131
|
+
*/
|
|
132
|
+
count?: number;
|
|
133
|
+
/**
|
|
134
|
+
* Page of tasks to return
|
|
135
|
+
*
|
|
136
|
+
* @generated from field: optional uint32 page = 3;
|
|
137
|
+
*/
|
|
138
|
+
page?: number;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Describes the message metalstack.admin.v2.TaskServiceListRequest.
|
|
142
|
+
* Use `create(TaskServiceListRequestSchema)` to create a new message.
|
|
143
|
+
*/
|
|
144
|
+
export declare const TaskServiceListRequestSchema: GenMessage<TaskServiceListRequest>;
|
|
145
|
+
/**
|
|
146
|
+
* TaskServiceListResponse is the response to a task list request
|
|
147
|
+
*
|
|
148
|
+
* @generated from message metalstack.admin.v2.TaskServiceListResponse
|
|
149
|
+
*/
|
|
150
|
+
export type TaskServiceListResponse = Message<"metalstack.admin.v2.TaskServiceListResponse"> & {
|
|
151
|
+
/**
|
|
152
|
+
* Tasks contains the requested list of tasks
|
|
153
|
+
*
|
|
154
|
+
* @generated from field: repeated metalstack.admin.v2.TaskInfo tasks = 1;
|
|
155
|
+
*/
|
|
156
|
+
tasks: TaskInfo[];
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Describes the message metalstack.admin.v2.TaskServiceListResponse.
|
|
160
|
+
* Use `create(TaskServiceListResponseSchema)` to create a new message.
|
|
161
|
+
*/
|
|
162
|
+
export declare const TaskServiceListResponseSchema: GenMessage<TaskServiceListResponse>;
|
|
163
|
+
/**
|
|
164
|
+
* TaskInfo contains details of an async task
|
|
165
|
+
*
|
|
166
|
+
* @generated from message metalstack.admin.v2.TaskInfo
|
|
167
|
+
*/
|
|
168
|
+
export type TaskInfo = Message<"metalstack.admin.v2.TaskInfo"> & {
|
|
169
|
+
/**
|
|
170
|
+
* ID is the identifier of the task.
|
|
171
|
+
*
|
|
172
|
+
* @generated from field: string id = 1;
|
|
173
|
+
*/
|
|
174
|
+
id: string;
|
|
175
|
+
/**
|
|
176
|
+
* Queue is the name of the queue in which the task belongs.
|
|
177
|
+
*
|
|
178
|
+
* @generated from field: string queue = 2;
|
|
179
|
+
*/
|
|
180
|
+
queue: string;
|
|
181
|
+
/**
|
|
182
|
+
* Type is the type name of the task.
|
|
183
|
+
*
|
|
184
|
+
* @generated from field: string type = 3;
|
|
185
|
+
*/
|
|
186
|
+
type: string;
|
|
187
|
+
/**
|
|
188
|
+
* Payload is the payload data of the task.
|
|
189
|
+
*
|
|
190
|
+
* @generated from field: bytes payload = 4;
|
|
191
|
+
*/
|
|
192
|
+
payload: Uint8Array;
|
|
193
|
+
/**
|
|
194
|
+
* State indicates the task state.
|
|
195
|
+
*
|
|
196
|
+
* @generated from field: metalstack.admin.v2.TaskState state = 5;
|
|
197
|
+
*/
|
|
198
|
+
state: TaskState;
|
|
199
|
+
/**
|
|
200
|
+
* MaxRetry is the maximum number of times the task can be retried.
|
|
201
|
+
*
|
|
202
|
+
* @generated from field: int32 max_retry = 6;
|
|
203
|
+
*/
|
|
204
|
+
maxRetry: number;
|
|
205
|
+
/**
|
|
206
|
+
* Retried is the number of times the task has retried so far.
|
|
207
|
+
*
|
|
208
|
+
* @generated from field: int32 retried = 7;
|
|
209
|
+
*/
|
|
210
|
+
retried: number;
|
|
211
|
+
/**
|
|
212
|
+
* LastError is the error message from the last failure.
|
|
213
|
+
*
|
|
214
|
+
* @generated from field: string last_error = 8;
|
|
215
|
+
*/
|
|
216
|
+
lastError: string;
|
|
217
|
+
/**
|
|
218
|
+
* LastFailedAt is the time time of the last failure if any.
|
|
219
|
+
* If the task has no failures, LastFailedAt is zero time (i.e. time.Time{}).
|
|
220
|
+
*
|
|
221
|
+
* @generated from field: google.protobuf.Timestamp last_failed_at = 9;
|
|
222
|
+
*/
|
|
223
|
+
lastFailedAt?: Timestamp;
|
|
224
|
+
/**
|
|
225
|
+
* Timeout is the duration the task can be processed by Handler before being retried,
|
|
226
|
+
*
|
|
227
|
+
* @generated from field: google.protobuf.Duration timeout = 10;
|
|
228
|
+
*/
|
|
229
|
+
timeout?: Duration;
|
|
230
|
+
/**
|
|
231
|
+
* Deadline is the deadline for the task.
|
|
232
|
+
*
|
|
233
|
+
* @generated from field: google.protobuf.Timestamp deadline = 11;
|
|
234
|
+
*/
|
|
235
|
+
deadline?: Timestamp;
|
|
236
|
+
/**
|
|
237
|
+
* Group is the name of the group in which the task belongs.
|
|
238
|
+
*
|
|
239
|
+
* Tasks in the same queue can be grouped together by Group name and will be aggregated into one task
|
|
240
|
+
* by a Server processing the queue.
|
|
241
|
+
*
|
|
242
|
+
* Empty string (default) indicates task does not belong to any groups, and no aggregation will be applied to the task.
|
|
243
|
+
*
|
|
244
|
+
* @generated from field: string group = 12;
|
|
245
|
+
*/
|
|
246
|
+
group: string;
|
|
247
|
+
/**
|
|
248
|
+
* NextProcessAt is the time the task is scheduled to be processed,
|
|
249
|
+
* zero if not applicable.
|
|
250
|
+
*
|
|
251
|
+
* @generated from field: google.protobuf.Timestamp next_process_at = 13;
|
|
252
|
+
*/
|
|
253
|
+
nextProcessAt?: Timestamp;
|
|
254
|
+
/**
|
|
255
|
+
* IsOrphaned describes whether the task is left in active state with no worker processing it.
|
|
256
|
+
* An orphaned task indicates that the worker has crashed or experienced network failures and was not able to
|
|
257
|
+
* extend its lease on the task.
|
|
258
|
+
*
|
|
259
|
+
* This task will be recovered by running a server against the queue the task is in.
|
|
260
|
+
* This field is only applicable to tasks with TaskStateActive.
|
|
261
|
+
*
|
|
262
|
+
* @generated from field: bool is_orphaned = 14;
|
|
263
|
+
*/
|
|
264
|
+
isOrphaned: boolean;
|
|
265
|
+
/**
|
|
266
|
+
* Retention is duration of the retention period after the task is successfully processed.
|
|
267
|
+
*
|
|
268
|
+
* @generated from field: google.protobuf.Duration retention = 15;
|
|
269
|
+
*/
|
|
270
|
+
retention?: Duration;
|
|
271
|
+
/**
|
|
272
|
+
* CompletedAt is the time when the task is processed successfully.
|
|
273
|
+
* Zero value (i.e. time.Time{}) indicates no value.
|
|
274
|
+
*
|
|
275
|
+
* @generated from field: google.protobuf.Timestamp completed_at = 16;
|
|
276
|
+
*/
|
|
277
|
+
completedAt?: Timestamp;
|
|
278
|
+
/**
|
|
279
|
+
* Result holds the result data associated with the task.
|
|
280
|
+
* Use ResultWriter to write result data from the Handler.
|
|
281
|
+
*
|
|
282
|
+
* @generated from field: bytes result = 17;
|
|
283
|
+
*/
|
|
284
|
+
result: Uint8Array;
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* Describes the message metalstack.admin.v2.TaskInfo.
|
|
288
|
+
* Use `create(TaskInfoSchema)` to create a new message.
|
|
289
|
+
*/
|
|
290
|
+
export declare const TaskInfoSchema: GenMessage<TaskInfo>;
|
|
291
|
+
/**
|
|
292
|
+
* TaskState defines the state of the task
|
|
293
|
+
*
|
|
294
|
+
* @generated from enum metalstack.admin.v2.TaskState
|
|
295
|
+
*/
|
|
296
|
+
export declare enum TaskState {
|
|
297
|
+
/**
|
|
298
|
+
* TASK_STATE_UNSPECIFIED indicates a undefined state
|
|
299
|
+
*
|
|
300
|
+
* @generated from enum value: TASK_STATE_UNSPECIFIED = 0;
|
|
301
|
+
*/
|
|
302
|
+
UNSPECIFIED = 0,
|
|
303
|
+
/**
|
|
304
|
+
* TASK_STATE_ACTIVE indicates that the task is currently being processed by Handler.
|
|
305
|
+
*
|
|
306
|
+
* @generated from enum value: TASK_STATE_ACTIVE = 1;
|
|
307
|
+
*/
|
|
308
|
+
ACTIVE = 1,
|
|
309
|
+
/**
|
|
310
|
+
* TASK_STATE_PENDING indicates that the task is ready to be processed by Handler.
|
|
311
|
+
*
|
|
312
|
+
* @generated from enum value: TASK_STATE_PENDING = 2;
|
|
313
|
+
*/
|
|
314
|
+
PENDING = 2,
|
|
315
|
+
/**
|
|
316
|
+
* TASK_STATE_SCHEDULED indicates that the task is scheduled to be processed some time in the future.
|
|
317
|
+
*
|
|
318
|
+
* @generated from enum value: TASK_STATE_SCHEDULED = 3;
|
|
319
|
+
*/
|
|
320
|
+
SCHEDULED = 3,
|
|
321
|
+
/**
|
|
322
|
+
* TASK_STATE_RETRY indicates that the task has previously failed and scheduled to be processed some time in the future.
|
|
323
|
+
*
|
|
324
|
+
* @generated from enum value: TASK_STATE_RETRY = 4;
|
|
325
|
+
*/
|
|
326
|
+
RETRY = 4,
|
|
327
|
+
/**
|
|
328
|
+
* TASK_STATE_ARCHIVED indicates that the task is archived and stored for inspection purposes.
|
|
329
|
+
*
|
|
330
|
+
* @generated from enum value: TASK_STATE_ARCHIVED = 5;
|
|
331
|
+
*/
|
|
332
|
+
ARCHIVED = 5,
|
|
333
|
+
/**
|
|
334
|
+
* TASK_STATE_COMPLETED indicates that the task is processed successfully and retained until the retention TTL expires.
|
|
335
|
+
*
|
|
336
|
+
* @generated from enum value: TASK_STATE_COMPLETED = 6;
|
|
337
|
+
*/
|
|
338
|
+
COMPLETED = 6,
|
|
339
|
+
/**
|
|
340
|
+
* TASK_STATE_AGGREGATING indicates that the task is waiting in a group to be aggregated into one task.
|
|
341
|
+
*
|
|
342
|
+
* @generated from enum value: TASK_STATE_AGGREGATING = 7;
|
|
343
|
+
*/
|
|
344
|
+
AGGREGATING = 7
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Describes the enum metalstack.admin.v2.TaskState.
|
|
348
|
+
*/
|
|
349
|
+
export declare const TaskStateSchema: GenEnum<TaskState>;
|
|
350
|
+
/**
|
|
351
|
+
* TaskService provides services to async tasks
|
|
352
|
+
*
|
|
353
|
+
* @generated from service metalstack.admin.v2.TaskService
|
|
354
|
+
*/
|
|
355
|
+
export declare const TaskService: GenService<{
|
|
356
|
+
/**
|
|
357
|
+
* Get a specific task
|
|
358
|
+
*
|
|
359
|
+
* @generated from rpc metalstack.admin.v2.TaskService.Get
|
|
360
|
+
*/
|
|
361
|
+
get: {
|
|
362
|
+
methodKind: "unary";
|
|
363
|
+
input: typeof TaskServiceGetRequestSchema;
|
|
364
|
+
output: typeof TaskServiceGetResponseSchema;
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* Delete a specific task
|
|
368
|
+
*
|
|
369
|
+
* @generated from rpc metalstack.admin.v2.TaskService.Delete
|
|
370
|
+
*/
|
|
371
|
+
delete: {
|
|
372
|
+
methodKind: "unary";
|
|
373
|
+
input: typeof TaskServiceDeleteRequestSchema;
|
|
374
|
+
output: typeof TaskServiceDeleteResponseSchema;
|
|
375
|
+
};
|
|
376
|
+
/**
|
|
377
|
+
* Queues returns all configures queues
|
|
378
|
+
*
|
|
379
|
+
* @generated from rpc metalstack.admin.v2.TaskService.Queues
|
|
380
|
+
*/
|
|
381
|
+
queues: {
|
|
382
|
+
methodKind: "unary";
|
|
383
|
+
input: typeof TaskServiceQueuesRequestSchema;
|
|
384
|
+
output: typeof TaskServiceQueuesResponseSchema;
|
|
385
|
+
};
|
|
386
|
+
/**
|
|
387
|
+
* List list all tasks
|
|
388
|
+
*
|
|
389
|
+
* @generated from rpc metalstack.admin.v2.TaskService.List
|
|
390
|
+
*/
|
|
391
|
+
list: {
|
|
392
|
+
methodKind: "unary";
|
|
393
|
+
input: typeof TaskServiceListRequestSchema;
|
|
394
|
+
output: typeof TaskServiceListResponseSchema;
|
|
395
|
+
};
|
|
396
|
+
}>;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file metalstack/admin/v2/task.proto (package metalstack.admin.v2, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_google_protobuf_duration, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
6
|
+
import { file_metalstack_api_v2_common } from "../../api/v2/common_pb";
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file metalstack/admin/v2/task.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_metalstack_admin_v2_task = /*@__PURE__*/ fileDesc("Ch5tZXRhbHN0YWNrL2FkbWluL3YyL3Rhc2sucHJvdG8SE21ldGFsc3RhY2suYWRtaW4udjIiNwoVVGFza1NlcnZpY2VHZXRSZXF1ZXN0Eg8KB3Rhc2tfaWQYASABKAkSDQoFcXVldWUYAiABKAkiRQoWVGFza1NlcnZpY2VHZXRSZXNwb25zZRIrCgR0YXNrGAEgASgLMh0ubWV0YWxzdGFjay5hZG1pbi52Mi5UYXNrSW5mbyI6ChhUYXNrU2VydmljZURlbGV0ZVJlcXVlc3QSDwoHdGFza19pZBgBIAEoCRINCgVxdWV1ZRgCIAEoCSIbChlUYXNrU2VydmljZURlbGV0ZVJlc3BvbnNlIhoKGFRhc2tTZXJ2aWNlUXVldWVzUmVxdWVzdCIrChlUYXNrU2VydmljZVF1ZXVlc1Jlc3BvbnNlEg4KBnF1ZXVlcxgBIAMoCSJwChZUYXNrU2VydmljZUxpc3RSZXF1ZXN0EhIKBXF1ZXVlGAEgASgJSACIAQESEgoFY291bnQYAiABKA1IAYgBARIRCgRwYWdlGAMgASgNSAKIAQFCCAoGX3F1ZXVlQggKBl9jb3VudEIHCgVfcGFnZSJHChdUYXNrU2VydmljZUxpc3RSZXNwb25zZRIsCgV0YXNrcxgBIAMoCzIdLm1ldGFsc3RhY2suYWRtaW4udjIuVGFza0luZm8iggQKCFRhc2tJbmZvEgoKAmlkGAEgASgJEg0KBXF1ZXVlGAIgASgJEgwKBHR5cGUYAyABKAkSDwoHcGF5bG9hZBgEIAEoDBItCgVzdGF0ZRgFIAEoDjIeLm1ldGFsc3RhY2suYWRtaW4udjIuVGFza1N0YXRlEhEKCW1heF9yZXRyeRgGIAEoBRIPCgdyZXRyaWVkGAcgASgFEhIKCmxhc3RfZXJyb3IYCCABKAkSMgoObGFzdF9mYWlsZWRfYXQYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEioKB3RpbWVvdXQYCiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24SLAoIZGVhZGxpbmUYCyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEg0KBWdyb3VwGAwgASgJEjMKD25leHRfcHJvY2Vzc19hdBgNIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASEwoLaXNfb3JwaGFuZWQYDiABKAgSLAoJcmV0ZW50aW9uGA8gASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEjAKDGNvbXBsZXRlZF9hdBgQIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASDgoGcmVzdWx0GBEgASgMKrYCCglUYXNrU3RhdGUSGgoWVEFTS19TVEFURV9VTlNQRUNJRklFRBAAEiEKEVRBU0tfU1RBVEVfQUNUSVZFEAEaCoKyGQZhY3RpdmUSIwoSVEFTS19TVEFURV9QRU5ESU5HEAIaC4KyGQdwZW5kaW5nEicKFFRBU0tfU1RBVEVfU0NIRURVTEVEEAMaDYKyGQlzY2hlZHVsZWQSHwoQVEFTS19TVEFURV9SRVRSWRAEGgmCshkFcmV0cnkSJQoTVEFTS19TVEFURV9BUkNISVZFRBAFGgyCshkIYXJjaGl2ZWQSJwoUVEFTS19TVEFURV9DT01QTEVURUQQBhoNgrIZCWNvbXBsZXRlZBIrChZUQVNLX1NUQVRFX0FHR1JFR0FUSU5HEAcaD4KyGQthZ2dyZWdhdGluZzLBAwoLVGFza1NlcnZpY2USZgoDR2V0EioubWV0YWxzdGFjay5hZG1pbi52Mi5UYXNrU2VydmljZUdldFJlcXVlc3QaKy5tZXRhbHN0YWNrLmFkbWluLnYyLlRhc2tTZXJ2aWNlR2V0UmVzcG9uc2UiBtLzGAIBAhJuCgZEZWxldGUSLS5tZXRhbHN0YWNrLmFkbWluLnYyLlRhc2tTZXJ2aWNlRGVsZXRlUmVxdWVzdBouLm1ldGFsc3RhY2suYWRtaW4udjIuVGFza1NlcnZpY2VEZWxldGVSZXNwb25zZSIF0vMYAQESbwoGUXVldWVzEi0ubWV0YWxzdGFjay5hZG1pbi52Mi5UYXNrU2VydmljZVF1ZXVlc1JlcXVlc3QaLi5tZXRhbHN0YWNrLmFkbWluLnYyLlRhc2tTZXJ2aWNlUXVldWVzUmVzcG9uc2UiBtLzGAIBAhJpCgRMaXN0EisubWV0YWxzdGFjay5hZG1pbi52Mi5UYXNrU2VydmljZUxpc3RSZXF1ZXN0GiwubWV0YWxzdGFjay5hZG1pbi52Mi5UYXNrU2VydmljZUxpc3RSZXNwb25zZSIG0vMYAgECQs0BChdjb20ubWV0YWxzdGFjay5hZG1pbi52MkIJVGFza1Byb3RvUAFaOWdpdGh1Yi5jb20vbWV0YWwtc3RhY2svYXBpL2dvL21ldGFsc3RhY2svYWRtaW4vdjI7YWRtaW52MqICA01BWKoCE01ldGFsc3RhY2suQWRtaW4uVjLKAhNNZXRhbHN0YWNrXEFkbWluXFYy4gIfTWV0YWxzdGFja1xBZG1pblxWMlxHUEJNZXRhZGF0YeoCFU1ldGFsc3RhY2s6OkFkbWluOjpWMmIGcHJvdG8z", [file_google_protobuf_duration, file_google_protobuf_timestamp, file_metalstack_api_v2_common]);
|
|
11
|
+
/**
|
|
12
|
+
* Describes the message metalstack.admin.v2.TaskServiceGetRequest.
|
|
13
|
+
* Use `create(TaskServiceGetRequestSchema)` to create a new message.
|
|
14
|
+
*/
|
|
15
|
+
export const TaskServiceGetRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_task, 0);
|
|
16
|
+
/**
|
|
17
|
+
* Describes the message metalstack.admin.v2.TaskServiceGetResponse.
|
|
18
|
+
* Use `create(TaskServiceGetResponseSchema)` to create a new message.
|
|
19
|
+
*/
|
|
20
|
+
export const TaskServiceGetResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_task, 1);
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message metalstack.admin.v2.TaskServiceDeleteRequest.
|
|
23
|
+
* Use `create(TaskServiceDeleteRequestSchema)` to create a new message.
|
|
24
|
+
*/
|
|
25
|
+
export const TaskServiceDeleteRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_task, 2);
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message metalstack.admin.v2.TaskServiceDeleteResponse.
|
|
28
|
+
* Use `create(TaskServiceDeleteResponseSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
export const TaskServiceDeleteResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_task, 3);
|
|
31
|
+
/**
|
|
32
|
+
* Describes the message metalstack.admin.v2.TaskServiceQueuesRequest.
|
|
33
|
+
* Use `create(TaskServiceQueuesRequestSchema)` to create a new message.
|
|
34
|
+
*/
|
|
35
|
+
export const TaskServiceQueuesRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_task, 4);
|
|
36
|
+
/**
|
|
37
|
+
* Describes the message metalstack.admin.v2.TaskServiceQueuesResponse.
|
|
38
|
+
* Use `create(TaskServiceQueuesResponseSchema)` to create a new message.
|
|
39
|
+
*/
|
|
40
|
+
export const TaskServiceQueuesResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_task, 5);
|
|
41
|
+
/**
|
|
42
|
+
* Describes the message metalstack.admin.v2.TaskServiceListRequest.
|
|
43
|
+
* Use `create(TaskServiceListRequestSchema)` to create a new message.
|
|
44
|
+
*/
|
|
45
|
+
export const TaskServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_task, 6);
|
|
46
|
+
/**
|
|
47
|
+
* Describes the message metalstack.admin.v2.TaskServiceListResponse.
|
|
48
|
+
* Use `create(TaskServiceListResponseSchema)` to create a new message.
|
|
49
|
+
*/
|
|
50
|
+
export const TaskServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_task, 7);
|
|
51
|
+
/**
|
|
52
|
+
* Describes the message metalstack.admin.v2.TaskInfo.
|
|
53
|
+
* Use `create(TaskInfoSchema)` to create a new message.
|
|
54
|
+
*/
|
|
55
|
+
export const TaskInfoSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_task, 8);
|
|
56
|
+
/**
|
|
57
|
+
* TaskState defines the state of the task
|
|
58
|
+
*
|
|
59
|
+
* @generated from enum metalstack.admin.v2.TaskState
|
|
60
|
+
*/
|
|
61
|
+
export var TaskState;
|
|
62
|
+
(function (TaskState) {
|
|
63
|
+
/**
|
|
64
|
+
* TASK_STATE_UNSPECIFIED indicates a undefined state
|
|
65
|
+
*
|
|
66
|
+
* @generated from enum value: TASK_STATE_UNSPECIFIED = 0;
|
|
67
|
+
*/
|
|
68
|
+
TaskState[TaskState["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
69
|
+
/**
|
|
70
|
+
* TASK_STATE_ACTIVE indicates that the task is currently being processed by Handler.
|
|
71
|
+
*
|
|
72
|
+
* @generated from enum value: TASK_STATE_ACTIVE = 1;
|
|
73
|
+
*/
|
|
74
|
+
TaskState[TaskState["ACTIVE"] = 1] = "ACTIVE";
|
|
75
|
+
/**
|
|
76
|
+
* TASK_STATE_PENDING indicates that the task is ready to be processed by Handler.
|
|
77
|
+
*
|
|
78
|
+
* @generated from enum value: TASK_STATE_PENDING = 2;
|
|
79
|
+
*/
|
|
80
|
+
TaskState[TaskState["PENDING"] = 2] = "PENDING";
|
|
81
|
+
/**
|
|
82
|
+
* TASK_STATE_SCHEDULED indicates that the task is scheduled to be processed some time in the future.
|
|
83
|
+
*
|
|
84
|
+
* @generated from enum value: TASK_STATE_SCHEDULED = 3;
|
|
85
|
+
*/
|
|
86
|
+
TaskState[TaskState["SCHEDULED"] = 3] = "SCHEDULED";
|
|
87
|
+
/**
|
|
88
|
+
* TASK_STATE_RETRY indicates that the task has previously failed and scheduled to be processed some time in the future.
|
|
89
|
+
*
|
|
90
|
+
* @generated from enum value: TASK_STATE_RETRY = 4;
|
|
91
|
+
*/
|
|
92
|
+
TaskState[TaskState["RETRY"] = 4] = "RETRY";
|
|
93
|
+
/**
|
|
94
|
+
* TASK_STATE_ARCHIVED indicates that the task is archived and stored for inspection purposes.
|
|
95
|
+
*
|
|
96
|
+
* @generated from enum value: TASK_STATE_ARCHIVED = 5;
|
|
97
|
+
*/
|
|
98
|
+
TaskState[TaskState["ARCHIVED"] = 5] = "ARCHIVED";
|
|
99
|
+
/**
|
|
100
|
+
* TASK_STATE_COMPLETED indicates that the task is processed successfully and retained until the retention TTL expires.
|
|
101
|
+
*
|
|
102
|
+
* @generated from enum value: TASK_STATE_COMPLETED = 6;
|
|
103
|
+
*/
|
|
104
|
+
TaskState[TaskState["COMPLETED"] = 6] = "COMPLETED";
|
|
105
|
+
/**
|
|
106
|
+
* TASK_STATE_AGGREGATING indicates that the task is waiting in a group to be aggregated into one task.
|
|
107
|
+
*
|
|
108
|
+
* @generated from enum value: TASK_STATE_AGGREGATING = 7;
|
|
109
|
+
*/
|
|
110
|
+
TaskState[TaskState["AGGREGATING"] = 7] = "AGGREGATING";
|
|
111
|
+
})(TaskState || (TaskState = {}));
|
|
112
|
+
/**
|
|
113
|
+
* Describes the enum metalstack.admin.v2.TaskState.
|
|
114
|
+
*/
|
|
115
|
+
export const TaskStateSchema = /*@__PURE__*/ enumDesc(file_metalstack_admin_v2_task, 0);
|
|
116
|
+
/**
|
|
117
|
+
* TaskService provides services to async tasks
|
|
118
|
+
*
|
|
119
|
+
* @generated from service metalstack.admin.v2.TaskService
|
|
120
|
+
*/
|
|
121
|
+
export const TaskService = /*@__PURE__*/ serviceDesc(file_metalstack_admin_v2_task, 0);
|