@fi-ts/api 0.0.0-pr.30.fcb99880 → 0.0.0-pr.32.1041a7e5

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.
@@ -0,0 +1,724 @@
1
+ // @generated by protoc-gen-es v2.14.1 with parameter "target=ts,import_extension=js"
2
+ // @generated from file fits/api/pcvm/v1/vm.proto (package fits.api.pcvm.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import { file_buf_validate_validate } from "../../../../buf/validate/validate_pb.js";
8
+ import type { Labels, Meta, Paging, UpdateLabels, UpdateMeta } from "../../v1/common_pb.js";
9
+ import { file_fits_api_v1_common } from "../../v1/common_pb.js";
10
+ import { file_fits_api_v1_predefined_rules } from "../../v1/predefined_rules_pb.js";
11
+ import type { Message } from "@bufbuild/protobuf";
12
+
13
+ /**
14
+ * Describes the file fits/api/pcvm/v1/vm.proto.
15
+ */
16
+ export const file_fits_api_pcvm_v1_vm: GenFile = /*@__PURE__*/
17
+ fileDesc("ChlmaXRzL2FwaS9wY3ZtL3YxL3ZtLnByb3RvEhBmaXRzLmFwaS5wY3ZtLnYxIvABCg1QdWJsaWNDbG91ZFZNEhYKBHV1aWQYASABKAlCCLpIBXIDsAEBEh8KBG1ldGEYAiABKAsyES5maXRzLmFwaS52MS5NZXRhEhkKBG5hbWUYAyABKAlCC7pICHIGwLOusQIBEhsKBnRlbmFudBgEIAEoCUILukgIcgbAs66xAgESHgoMcHJvamVjdF91dWlkGAUgASgJQgi6SAVyA7ABARIkCgRzaXplGAYgASgOMhYuZml0cy5hcGkucGN2bS52MS5TaXplEigKBnN0YXR1cxgHIAEoCzIYLmZpdHMuYXBpLnBjdm0udjEuU3RhdHVzInsKBlN0YXR1cxImCgVzdGF0ZRgBIAEoDjIXL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udjFCB1ZtUHJvdG9QAVovZ2l0aHViLmNvbS9maS10cy9hcGkvZ28vZml0cy9hcGkvcGN2bS92MTtwY3ZtdjGiAgNGQVCqAhBGaXRzLkFwaS5QY3ZtLlYxygIQRml0c1xBcGlcUGN2bVxWMeICHEZpdHNcQXBpXFBjdm1cVjFcR1BCTWV0YWRhdGHqAhNGaXRzOjpBcGk6OlBjdm06OlYxYgZwcm90bzM", [file_buf_validate_validate, file_fits_api_v1_common, file_fits_api_v1_predefined_rules]);
18
+
19
+ /**
20
+ * The VM resource.
21
+ *
22
+ * @generated from message fits.api.pcvm.v1.PublicCloudVM
23
+ */
24
+ export type PublicCloudVM = Message<"fits.api.pcvm.v1.PublicCloudVM"> & {
25
+ /**
26
+ * UUID of this VM.
27
+ *
28
+ * @generated from field: string uuid = 1;
29
+ */
30
+ uuid: string;
31
+
32
+ /**
33
+ * Metadata for this VM including labels.
34
+ *
35
+ * @generated from field: fits.api.v1.Meta meta = 2;
36
+ */
37
+ meta?: Meta | undefined;
38
+
39
+ /**
40
+ * Name of the VM.
41
+ *
42
+ * @generated from field: string name = 3;
43
+ */
44
+ name: string;
45
+
46
+ /**
47
+ * Tenant this VM belongs to.
48
+ *
49
+ * @generated from field: string tenant = 4;
50
+ */
51
+ tenant: string;
52
+
53
+ /**
54
+ * UUID of the project this VM belongs to.
55
+ *
56
+ * @generated from field: string project_uuid = 5;
57
+ */
58
+ projectUuid: string;
59
+
60
+ /**
61
+ * Size of the VM.
62
+ *
63
+ * @generated from field: fits.api.pcvm.v1.Size size = 6;
64
+ */
65
+ size: Size;
66
+
67
+ /**
68
+ * The status of the VM.
69
+ *
70
+ * @generated from field: fits.api.pcvm.v1.Status status = 7;
71
+ */
72
+ status?: Status | undefined;
73
+ };
74
+
75
+ /**
76
+ * Describes the message fits.api.pcvm.v1.PublicCloudVM.
77
+ * Use `create(PublicCloudVMSchema)` to create a new message.
78
+ */
79
+ export const PublicCloudVMSchema: GenMessage<PublicCloudVM> = /*@__PURE__*/
80
+ messageDesc(file_fits_api_pcvm_v1_vm, 0);
81
+
82
+ /**
83
+ * The Status of a VM.
84
+ *
85
+ * @generated from message fits.api.pcvm.v1.Status
86
+ */
87
+ export type Status = Message<"fits.api.pcvm.v1.Status"> & {
88
+ /**
89
+ * The state of the VM status.
90
+ *
91
+ * @generated from field: fits.api.pcvm.v1.State state = 1;
92
+ */
93
+ state: State;
94
+
95
+ /**
96
+ * The info details of the current state.
97
+ *
98
+ * @generated from field: string info = 2;
99
+ */
100
+ info: string;
101
+
102
+ /**
103
+ * The current operation running on the VM.
104
+ *
105
+ * @generated from field: fits.api.pcvm.v1.Operation operation = 3;
106
+ */
107
+ operation: Operation;
108
+ };
109
+
110
+ /**
111
+ * Describes the message fits.api.pcvm.v1.Status.
112
+ * Use `create(StatusSchema)` to create a new message.
113
+ */
114
+ export const StatusSchema: GenMessage<Status> = /*@__PURE__*/
115
+ messageDesc(file_fits_api_pcvm_v1_vm, 1);
116
+
117
+ /**
118
+ * The VM query parameters to filter the list of results.
119
+ *
120
+ * @generated from message fits.api.pcvm.v1.PublicCloudVMQuery
121
+ */
122
+ export type PublicCloudVMQuery = Message<"fits.api.pcvm.v1.PublicCloudVMQuery"> & {
123
+ /**
124
+ * The name of the VMs.
125
+ *
126
+ * @generated from field: optional string name = 1;
127
+ */
128
+ name?: string | undefined;
129
+
130
+ /**
131
+ * The labels each VM should have.
132
+ *
133
+ * @generated from field: optional fits.api.v1.Labels labels = 2;
134
+ */
135
+ labels?: Labels | undefined;
136
+ };
137
+
138
+ /**
139
+ * Describes the message fits.api.pcvm.v1.PublicCloudVMQuery.
140
+ * Use `create(PublicCloudVMQuerySchema)` to create a new message.
141
+ */
142
+ export const PublicCloudVMQuerySchema: GenMessage<PublicCloudVMQuery> = /*@__PURE__*/
143
+ messageDesc(file_fits_api_pcvm_v1_vm, 2);
144
+
145
+ /**
146
+ * Request to get a VM by UUID.
147
+ *
148
+ * @generated from message fits.api.pcvm.v1.PublicCloudVMServiceGetRequest
149
+ */
150
+ export type PublicCloudVMServiceGetRequest = Message<"fits.api.pcvm.v1.PublicCloudVMServiceGetRequest"> & {
151
+ /**
152
+ * UUID of the VM to get.
153
+ *
154
+ * @generated from field: string uuid = 1;
155
+ */
156
+ uuid: string;
157
+
158
+ /**
159
+ * UUID of the project this VM belongs to.
160
+ *
161
+ * @generated from field: string project_uuid = 2;
162
+ */
163
+ projectUuid: string;
164
+ };
165
+
166
+ /**
167
+ * Describes the message fits.api.pcvm.v1.PublicCloudVMServiceGetRequest.
168
+ * Use `create(PublicCloudVMServiceGetRequestSchema)` to create a new message.
169
+ */
170
+ export const PublicCloudVMServiceGetRequestSchema: GenMessage<PublicCloudVMServiceGetRequest> = /*@__PURE__*/
171
+ messageDesc(file_fits_api_pcvm_v1_vm, 3);
172
+
173
+ /**
174
+ * Response containing the requested VM.
175
+ *
176
+ * @generated from message fits.api.pcvm.v1.PublicCloudVMServiceGetResponse
177
+ */
178
+ export type PublicCloudVMServiceGetResponse = Message<"fits.api.pcvm.v1.PublicCloudVMServiceGetResponse"> & {
179
+ /**
180
+ * The VM.
181
+ *
182
+ * @generated from field: fits.api.pcvm.v1.PublicCloudVM vm = 1;
183
+ */
184
+ vm?: PublicCloudVM | undefined;
185
+ };
186
+
187
+ /**
188
+ * Describes the message fits.api.pcvm.v1.PublicCloudVMServiceGetResponse.
189
+ * Use `create(PublicCloudVMServiceGetResponseSchema)` to create a new message.
190
+ */
191
+ export const PublicCloudVMServiceGetResponseSchema: GenMessage<PublicCloudVMServiceGetResponse> = /*@__PURE__*/
192
+ messageDesc(file_fits_api_pcvm_v1_vm, 4);
193
+
194
+ /**
195
+ * The request to create a new VM.
196
+ *
197
+ * @generated from message fits.api.pcvm.v1.PublicCloudVMServiceCreateRequest
198
+ */
199
+ export type PublicCloudVMServiceCreateRequest = Message<"fits.api.pcvm.v1.PublicCloudVMServiceCreateRequest"> & {
200
+ /**
201
+ * UUID of the project this VM belongs to.
202
+ *
203
+ * @generated from field: string project_uuid = 1;
204
+ */
205
+ projectUuid: string;
206
+
207
+ /**
208
+ * Name of the VM.
209
+ *
210
+ * @generated from field: string name = 2;
211
+ */
212
+ name: string;
213
+
214
+ /**
215
+ * Labels for this VM.
216
+ *
217
+ * @generated from field: fits.api.v1.Labels labels = 3;
218
+ */
219
+ labels?: Labels | undefined;
220
+
221
+ /**
222
+ * Size of the VM.
223
+ *
224
+ * @generated from field: fits.api.pcvm.v1.Size size = 4;
225
+ */
226
+ size: Size;
227
+ };
228
+
229
+ /**
230
+ * Describes the message fits.api.pcvm.v1.PublicCloudVMServiceCreateRequest.
231
+ * Use `create(PublicCloudVMServiceCreateRequestSchema)` to create a new message.
232
+ */
233
+ export const PublicCloudVMServiceCreateRequestSchema: GenMessage<PublicCloudVMServiceCreateRequest> = /*@__PURE__*/
234
+ messageDesc(file_fits_api_pcvm_v1_vm, 5);
235
+
236
+ /**
237
+ * The response when creating a new VM.
238
+ *
239
+ * @generated from message fits.api.pcvm.v1.PublicCloudVMServiceCreateResponse
240
+ */
241
+ export type PublicCloudVMServiceCreateResponse = Message<"fits.api.pcvm.v1.PublicCloudVMServiceCreateResponse"> & {
242
+ /**
243
+ * The VM just created.
244
+ *
245
+ * @generated from field: fits.api.pcvm.v1.PublicCloudVM vm = 1;
246
+ */
247
+ vm?: PublicCloudVM | undefined;
248
+ };
249
+
250
+ /**
251
+ * Describes the message fits.api.pcvm.v1.PublicCloudVMServiceCreateResponse.
252
+ * Use `create(PublicCloudVMServiceCreateResponseSchema)` to create a new message.
253
+ */
254
+ export const PublicCloudVMServiceCreateResponseSchema: GenMessage<PublicCloudVMServiceCreateResponse> = /*@__PURE__*/
255
+ messageDesc(file_fits_api_pcvm_v1_vm, 6);
256
+
257
+ /**
258
+ * The request to list and filter VMs.
259
+ *
260
+ * @generated from message fits.api.pcvm.v1.PublicCloudVMServiceListRequest
261
+ */
262
+ export type PublicCloudVMServiceListRequest = Message<"fits.api.pcvm.v1.PublicCloudVMServiceListRequest"> & {
263
+ /**
264
+ * UUID of the project this VM belongs to.
265
+ *
266
+ * @generated from field: string project_uuid = 1;
267
+ */
268
+ projectUuid: string;
269
+
270
+ /**
271
+ * Paging details for the list request.
272
+ *
273
+ * @generated from field: fits.api.v1.Paging paging = 2;
274
+ */
275
+ paging?: Paging | undefined;
276
+
277
+ /**
278
+ * Query defines how to filter the VMs.
279
+ *
280
+ * @generated from field: fits.api.pcvm.v1.PublicCloudVMQuery query = 3;
281
+ */
282
+ query?: PublicCloudVMQuery | undefined;
283
+ };
284
+
285
+ /**
286
+ * Describes the message fits.api.pcvm.v1.PublicCloudVMServiceListRequest.
287
+ * Use `create(PublicCloudVMServiceListRequestSchema)` to create a new message.
288
+ */
289
+ export const PublicCloudVMServiceListRequestSchema: GenMessage<PublicCloudVMServiceListRequest> = /*@__PURE__*/
290
+ messageDesc(file_fits_api_pcvm_v1_vm, 7);
291
+
292
+ /**
293
+ * The response when listing VMs.
294
+ *
295
+ * @generated from message fits.api.pcvm.v1.PublicCloudVMServiceListResponse
296
+ */
297
+ export type PublicCloudVMServiceListResponse = Message<"fits.api.pcvm.v1.PublicCloudVMServiceListResponse"> & {
298
+ /**
299
+ * VMs is a list of filtered VMs resources.
300
+ *
301
+ * @generated from field: repeated fits.api.pcvm.v1.PublicCloudVM vms = 1;
302
+ */
303
+ vms: PublicCloudVM[];
304
+ };
305
+
306
+ /**
307
+ * Describes the message fits.api.pcvm.v1.PublicCloudVMServiceListResponse.
308
+ * Use `create(PublicCloudVMServiceListResponseSchema)` to create a new message.
309
+ */
310
+ export const PublicCloudVMServiceListResponseSchema: GenMessage<PublicCloudVMServiceListResponse> = /*@__PURE__*/
311
+ messageDesc(file_fits_api_pcvm_v1_vm, 8);
312
+
313
+ /**
314
+ * The request to update a VM.
315
+ *
316
+ * @generated from message fits.api.pcvm.v1.PublicCloudVMServiceUpdateRequest
317
+ */
318
+ export type PublicCloudVMServiceUpdateRequest = Message<"fits.api.pcvm.v1.PublicCloudVMServiceUpdateRequest"> & {
319
+ /**
320
+ * UUID of the VM to update.
321
+ *
322
+ * @generated from field: string uuid = 1;
323
+ */
324
+ uuid: string;
325
+
326
+ /**
327
+ * UUID of the project this VM belongs to.
328
+ *
329
+ * @generated from field: string project_uuid = 2;
330
+ */
331
+ projectUuid: string;
332
+
333
+ /**
334
+ * UpdateMeta contains the timestamp and strategy to be used in this update request.
335
+ *
336
+ * @generated from field: fits.api.v1.UpdateMeta update_meta = 3;
337
+ */
338
+ updateMeta?: UpdateMeta | undefined;
339
+
340
+ /**
341
+ * The labels to update.
342
+ *
343
+ * @generated from field: optional fits.api.v1.UpdateLabels labels = 4;
344
+ */
345
+ labels?: UpdateLabels | undefined;
346
+
347
+ /**
348
+ * Name of the VM.
349
+ *
350
+ * @generated from field: optional string name = 5;
351
+ */
352
+ name?: string | undefined;
353
+
354
+ /**
355
+ * Size of the VM. The new size must be bigger or equal than before.
356
+ * Downgrades are not possible.
357
+ *
358
+ * @generated from field: optional fits.api.pcvm.v1.Size size = 6;
359
+ */
360
+ size?: Size | undefined;
361
+ };
362
+
363
+ /**
364
+ * Describes the message fits.api.pcvm.v1.PublicCloudVMServiceUpdateRequest.
365
+ * Use `create(PublicCloudVMServiceUpdateRequestSchema)` to create a new message.
366
+ */
367
+ export const PublicCloudVMServiceUpdateRequestSchema: GenMessage<PublicCloudVMServiceUpdateRequest> = /*@__PURE__*/
368
+ messageDesc(file_fits_api_pcvm_v1_vm, 9);
369
+
370
+ /**
371
+ * The response when updating a VM.
372
+ *
373
+ * @generated from message fits.api.pcvm.v1.PublicCloudVMServiceUpdateResponse
374
+ */
375
+ export type PublicCloudVMServiceUpdateResponse = Message<"fits.api.pcvm.v1.PublicCloudVMServiceUpdateResponse"> & {
376
+ /**
377
+ * The updated VM.
378
+ *
379
+ * @generated from field: fits.api.pcvm.v1.PublicCloudVM vm = 1;
380
+ */
381
+ vm?: PublicCloudVM | undefined;
382
+ };
383
+
384
+ /**
385
+ * Describes the message fits.api.pcvm.v1.PublicCloudVMServiceUpdateResponse.
386
+ * Use `create(PublicCloudVMServiceUpdateResponseSchema)` to create a new message.
387
+ */
388
+ export const PublicCloudVMServiceUpdateResponseSchema: GenMessage<PublicCloudVMServiceUpdateResponse> = /*@__PURE__*/
389
+ messageDesc(file_fits_api_pcvm_v1_vm, 10);
390
+
391
+ /**
392
+ * The request to delete a VM.
393
+ *
394
+ * @generated from message fits.api.pcvm.v1.PublicCloudVMServiceDeleteRequest
395
+ */
396
+ export type PublicCloudVMServiceDeleteRequest = Message<"fits.api.pcvm.v1.PublicCloudVMServiceDeleteRequest"> & {
397
+ /**
398
+ * UUID of the VM to delete.
399
+ *
400
+ * @generated from field: string uuid = 1;
401
+ */
402
+ uuid: string;
403
+
404
+ /**
405
+ * UUID of the project this VM belongs to.
406
+ *
407
+ * @generated from field: string project_uuid = 2;
408
+ */
409
+ projectUuid: string;
410
+ };
411
+
412
+ /**
413
+ * Describes the message fits.api.pcvm.v1.PublicCloudVMServiceDeleteRequest.
414
+ * Use `create(PublicCloudVMServiceDeleteRequestSchema)` to create a new message.
415
+ */
416
+ export const PublicCloudVMServiceDeleteRequestSchema: GenMessage<PublicCloudVMServiceDeleteRequest> = /*@__PURE__*/
417
+ messageDesc(file_fits_api_pcvm_v1_vm, 11);
418
+
419
+ /**
420
+ * The response after deleting a VM.
421
+ * The VM is deleted immediately will not be able to be requested.
422
+ *
423
+ * @generated from message fits.api.pcvm.v1.PublicCloudVMServiceDeleteResponse
424
+ */
425
+ export type PublicCloudVMServiceDeleteResponse = Message<"fits.api.pcvm.v1.PublicCloudVMServiceDeleteResponse"> & {
426
+ };
427
+
428
+ /**
429
+ * Describes the message fits.api.pcvm.v1.PublicCloudVMServiceDeleteResponse.
430
+ * Use `create(PublicCloudVMServiceDeleteResponseSchema)` to create a new message.
431
+ */
432
+ export const PublicCloudVMServiceDeleteResponseSchema: GenMessage<PublicCloudVMServiceDeleteResponse> = /*@__PURE__*/
433
+ messageDesc(file_fits_api_pcvm_v1_vm, 12);
434
+
435
+ /**
436
+ * Request to validate a VM create without creating anything.
437
+ *
438
+ * @generated from message fits.api.pcvm.v1.PublicCloudVMServiceValidateCreateRequest
439
+ */
440
+ export type PublicCloudVMServiceValidateCreateRequest = Message<"fits.api.pcvm.v1.PublicCloudVMServiceValidateCreateRequest"> & {
441
+ /**
442
+ * The create request to validate.
443
+ *
444
+ * @generated from field: fits.api.pcvm.v1.PublicCloudVMServiceCreateRequest create = 1;
445
+ */
446
+ create?: PublicCloudVMServiceCreateRequest | undefined;
447
+ };
448
+
449
+ /**
450
+ * Describes the message fits.api.pcvm.v1.PublicCloudVMServiceValidateCreateRequest.
451
+ * Use `create(PublicCloudVMServiceValidateCreateRequestSchema)` to create a new message.
452
+ */
453
+ export const PublicCloudVMServiceValidateCreateRequestSchema: GenMessage<PublicCloudVMServiceValidateCreateRequest> = /*@__PURE__*/
454
+ messageDesc(file_fits_api_pcvm_v1_vm, 13);
455
+
456
+ /**
457
+ * Response for ValidateCreate; violations are returned as an InvalidArgument error.
458
+ *
459
+ * @generated from message fits.api.pcvm.v1.PublicCloudVMServiceValidateCreateResponse
460
+ */
461
+ export type PublicCloudVMServiceValidateCreateResponse = Message<"fits.api.pcvm.v1.PublicCloudVMServiceValidateCreateResponse"> & {
462
+ };
463
+
464
+ /**
465
+ * Describes the message fits.api.pcvm.v1.PublicCloudVMServiceValidateCreateResponse.
466
+ * Use `create(PublicCloudVMServiceValidateCreateResponseSchema)` to create a new message.
467
+ */
468
+ export const PublicCloudVMServiceValidateCreateResponseSchema: GenMessage<PublicCloudVMServiceValidateCreateResponse> = /*@__PURE__*/
469
+ messageDesc(file_fits_api_pcvm_v1_vm, 14);
470
+
471
+ /**
472
+ * Request to validate a VM update without updating anything.
473
+ *
474
+ * @generated from message fits.api.pcvm.v1.PublicCloudVMServiceValidateUpdateRequest
475
+ */
476
+ export type PublicCloudVMServiceValidateUpdateRequest = Message<"fits.api.pcvm.v1.PublicCloudVMServiceValidateUpdateRequest"> & {
477
+ /**
478
+ * The update request to validate.
479
+ *
480
+ * @generated from field: fits.api.pcvm.v1.PublicCloudVMServiceUpdateRequest update = 1;
481
+ */
482
+ update?: PublicCloudVMServiceUpdateRequest | undefined;
483
+ };
484
+
485
+ /**
486
+ * Describes the message fits.api.pcvm.v1.PublicCloudVMServiceValidateUpdateRequest.
487
+ * Use `create(PublicCloudVMServiceValidateUpdateRequestSchema)` to create a new message.
488
+ */
489
+ export const PublicCloudVMServiceValidateUpdateRequestSchema: GenMessage<PublicCloudVMServiceValidateUpdateRequest> = /*@__PURE__*/
490
+ messageDesc(file_fits_api_pcvm_v1_vm, 15);
491
+
492
+ /**
493
+ * Response for ValidateUpdate; violations are returned as an InvalidArgument error.
494
+ *
495
+ * @generated from message fits.api.pcvm.v1.PublicCloudVMServiceValidateUpdateResponse
496
+ */
497
+ export type PublicCloudVMServiceValidateUpdateResponse = Message<"fits.api.pcvm.v1.PublicCloudVMServiceValidateUpdateResponse"> & {
498
+ };
499
+
500
+ /**
501
+ * Describes the message fits.api.pcvm.v1.PublicCloudVMServiceValidateUpdateResponse.
502
+ * Use `create(PublicCloudVMServiceValidateUpdateResponseSchema)` to create a new message.
503
+ */
504
+ export const PublicCloudVMServiceValidateUpdateResponseSchema: GenMessage<PublicCloudVMServiceValidateUpdateResponse> = /*@__PURE__*/
505
+ messageDesc(file_fits_api_pcvm_v1_vm, 16);
506
+
507
+ /**
508
+ * The health state of the VM.
509
+ *
510
+ * @generated from enum fits.api.pcvm.v1.State
511
+ */
512
+ export enum State {
513
+ /**
514
+ * STATE_UNSPECIFIED is not specified.
515
+ *
516
+ * @generated from enum value: STATE_UNSPECIFIED = 0;
517
+ */
518
+ UNSPECIFIED = 0,
519
+
520
+ /**
521
+ * STATE_HEALTHY: the VM is healthy.
522
+ *
523
+ * @generated from enum value: STATE_HEALTHY = 1;
524
+ */
525
+ HEALTHY = 1,
526
+
527
+ /**
528
+ * STATE_HEALTHY: there are some health warnings for this VM.
529
+ *
530
+ * @generated from enum value: STATE_WARNING = 2;
531
+ */
532
+ WARNING = 2,
533
+
534
+ /**
535
+ * STATE_ERROR: the VM is unhealthy.
536
+ *
537
+ * @generated from enum value: STATE_ERROR = 3;
538
+ */
539
+ ERROR = 3,
540
+ }
541
+
542
+ /**
543
+ * Describes the enum fits.api.pcvm.v1.State.
544
+ */
545
+ export const StateSchema: GenEnum<State> = /*@__PURE__*/
546
+ enumDesc(file_fits_api_pcvm_v1_vm, 0);
547
+
548
+ /**
549
+ * The operation of the VM.
550
+ *
551
+ * @generated from enum fits.api.pcvm.v1.Operation
552
+ */
553
+ export enum Operation {
554
+ /**
555
+ * OPERATION_UNSPECIFIED is not specified.
556
+ *
557
+ * @generated from enum value: OPERATION_UNSPECIFIED = 0;
558
+ */
559
+ UNSPECIFIED = 0,
560
+
561
+ /**
562
+ * OPERATION_CREATING: the VM hostname is reserved and provisioning has started.
563
+ *
564
+ * @generated from enum value: OPERATION_CREATING = 1;
565
+ */
566
+ CREATING = 1,
567
+
568
+ /**
569
+ * OPERATION_ACTIVE: the VM is active.
570
+ *
571
+ * @generated from enum value: OPERATION_ACTIVE = 2;
572
+ */
573
+ ACTIVE = 2,
574
+
575
+ /**
576
+ * OPERATION_UPDATING: there is an ongoing operation for the VM.
577
+ *
578
+ * @generated from enum value: OPERATION_UPDATING = 3;
579
+ */
580
+ UPDATING = 3,
581
+
582
+ /**
583
+ * OPERATION_DELETED: the VM is deleted.
584
+ *
585
+ * @generated from enum value: OPERATION_DELETED = 4;
586
+ */
587
+ DELETED = 4,
588
+
589
+ /**
590
+ * OPERATION_ERROR: the
591
+ *
592
+ * @generated from enum value: OPERATION_ERROR = 5;
593
+ */
594
+ ERROR = 5,
595
+ }
596
+
597
+ /**
598
+ * Describes the enum fits.api.pcvm.v1.Operation.
599
+ */
600
+ export const OperationSchema: GenEnum<Operation> = /*@__PURE__*/
601
+ enumDesc(file_fits_api_pcvm_v1_vm, 1);
602
+
603
+ /**
604
+ * Size specifies the size of the VM machine
605
+ *
606
+ * @generated from enum fits.api.pcvm.v1.Size
607
+ */
608
+ export enum Size {
609
+ /**
610
+ * SIZE_UNSPECIFIED is not specified.
611
+ *
612
+ * @generated from enum value: SIZE_UNSPECIFIED = 0;
613
+ */
614
+ UNSPECIFIED = 0,
615
+
616
+ /**
617
+ * SIZE_SMALL: small machine size.
618
+ *
619
+ * @generated from enum value: SIZE_SMALL = 1;
620
+ */
621
+ SMALL = 1,
622
+
623
+ /**
624
+ * SIZE_MEDIUM: medium machine size.
625
+ *
626
+ * @generated from enum value: SIZE_MEDIUM = 2;
627
+ */
628
+ MEDIUM = 2,
629
+
630
+ /**
631
+ * SIZE_LARGE: large machine size.
632
+ *
633
+ * @generated from enum value: SIZE_LARGE = 3;
634
+ */
635
+ LARGE = 3,
636
+ }
637
+
638
+ /**
639
+ * Describes the enum fits.api.pcvm.v1.Size.
640
+ */
641
+ export const SizeSchema: GenEnum<Size> = /*@__PURE__*/
642
+ enumDesc(file_fits_api_pcvm_v1_vm, 2);
643
+
644
+ /**
645
+ * VMService provides VM operations.
646
+ *
647
+ * @generated from service fits.api.pcvm.v1.PublicCloudVMService
648
+ */
649
+ export const PublicCloudVMService: GenService<{
650
+ /**
651
+ * Returns the VM with the specified UUID.
652
+ *
653
+ * @generated from rpc fits.api.pcvm.v1.PublicCloudVMService.Get
654
+ */
655
+ get: {
656
+ methodKind: "unary";
657
+ input: typeof PublicCloudVMServiceGetRequestSchema;
658
+ output: typeof PublicCloudVMServiceGetResponseSchema;
659
+ },
660
+ /**
661
+ * Creates a new VM.
662
+ *
663
+ * @generated from rpc fits.api.pcvm.v1.PublicCloudVMService.Create
664
+ */
665
+ create: {
666
+ methodKind: "unary";
667
+ input: typeof PublicCloudVMServiceCreateRequestSchema;
668
+ output: typeof PublicCloudVMServiceCreateResponseSchema;
669
+ },
670
+ /**
671
+ * Returns the list of all VMs.
672
+ *
673
+ * @generated from rpc fits.api.pcvm.v1.PublicCloudVMService.List
674
+ */
675
+ list: {
676
+ methodKind: "unary";
677
+ input: typeof PublicCloudVMServiceListRequestSchema;
678
+ output: typeof PublicCloudVMServiceListResponseSchema;
679
+ },
680
+ /**
681
+ * Updates a VM.
682
+ *
683
+ * @generated from rpc fits.api.pcvm.v1.PublicCloudVMService.Update
684
+ */
685
+ update: {
686
+ methodKind: "unary";
687
+ input: typeof PublicCloudVMServiceUpdateRequestSchema;
688
+ output: typeof PublicCloudVMServiceUpdateResponseSchema;
689
+ },
690
+ /**
691
+ * Deletes a VM immediately.
692
+ *
693
+ * @generated from rpc fits.api.pcvm.v1.PublicCloudVMService.Delete
694
+ */
695
+ delete: {
696
+ methodKind: "unary";
697
+ input: typeof PublicCloudVMServiceDeleteRequestSchema;
698
+ output: typeof PublicCloudVMServiceDeleteResponseSchema;
699
+ },
700
+ /**
701
+ * Validates a VM create request without creating anything. Intended for
702
+ * form pre-checks; the create endpoint validates again before executing.
703
+ *
704
+ * @generated from rpc fits.api.pcvm.v1.PublicCloudVMService.ValidateCreate
705
+ */
706
+ validateCreate: {
707
+ methodKind: "unary";
708
+ input: typeof PublicCloudVMServiceValidateCreateRequestSchema;
709
+ output: typeof PublicCloudVMServiceValidateCreateResponseSchema;
710
+ },
711
+ /**
712
+ * Validates a VM update request without updating anything. Intended for
713
+ * form pre-checks; the update endpoint validates again before executing.
714
+ *
715
+ * @generated from rpc fits.api.pcvm.v1.PublicCloudVMService.ValidateUpdate
716
+ */
717
+ validateUpdate: {
718
+ methodKind: "unary";
719
+ input: typeof PublicCloudVMServiceValidateUpdateRequestSchema;
720
+ output: typeof PublicCloudVMServiceValidateUpdateResponseSchema;
721
+ },
722
+ }> = /*@__PURE__*/
723
+ serviceDesc(file_fits_api_pcvm_v1_vm, 0);
724
+