@metal-stack/api 0.0.40-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +111 -0
  3. package/js/Makefile +16 -0
  4. package/js/buf/validate/validate_pb.d.ts +4597 -0
  5. package/js/buf/validate/validate_pb.js +351 -0
  6. package/js/buf/validate/validate_pb.ts +4938 -0
  7. package/js/metalstack/admin/v2/filesystem_pb.d.ts +207 -0
  8. package/js/metalstack/admin/v2/filesystem_pb.js +48 -0
  9. package/js/metalstack/admin/v2/filesystem_pb.ts +248 -0
  10. package/js/metalstack/admin/v2/image_pb.d.ts +242 -0
  11. package/js/metalstack/admin/v2/image_pb.js +59 -0
  12. package/js/metalstack/admin/v2/image_pb.ts +288 -0
  13. package/js/metalstack/admin/v2/ip_pb.d.ts +60 -0
  14. package/js/metalstack/admin/v2/ip_pb.js +26 -0
  15. package/js/metalstack/admin/v2/ip_pb.ts +78 -0
  16. package/js/metalstack/admin/v2/machine_pb.d.ts +113 -0
  17. package/js/metalstack/admin/v2/machine_pb.js +38 -0
  18. package/js/metalstack/admin/v2/machine_pb.ts +140 -0
  19. package/js/metalstack/admin/v2/network_pb.d.ts +407 -0
  20. package/js/metalstack/admin/v2/network_pb.js +68 -0
  21. package/js/metalstack/admin/v2/network_pb.ts +478 -0
  22. package/js/metalstack/admin/v2/partition_pb.d.ts +341 -0
  23. package/js/metalstack/admin/v2/partition_pb.js +58 -0
  24. package/js/metalstack/admin/v2/partition_pb.ts +402 -0
  25. package/js/metalstack/admin/v2/project_pb.d.ts +67 -0
  26. package/js/metalstack/admin/v2/project_pb.js +27 -0
  27. package/js/metalstack/admin/v2/project_pb.ts +87 -0
  28. package/js/metalstack/admin/v2/size_pb.d.ts +183 -0
  29. package/js/metalstack/admin/v2/size_pb.js +48 -0
  30. package/js/metalstack/admin/v2/size_pb.ts +220 -0
  31. package/js/metalstack/admin/v2/switch_pb.d.ts +377 -0
  32. package/js/metalstack/admin/v2/switch_pb.js +79 -0
  33. package/js/metalstack/admin/v2/switch_pb.ts +435 -0
  34. package/js/metalstack/admin/v2/tenant_pb.d.ts +149 -0
  35. package/js/metalstack/admin/v2/tenant_pb.js +38 -0
  36. package/js/metalstack/admin/v2/tenant_pb.ts +182 -0
  37. package/js/metalstack/admin/v2/token_pb.d.ts +164 -0
  38. package/js/metalstack/admin/v2/token_pb.js +47 -0
  39. package/js/metalstack/admin/v2/token_pb.ts +199 -0
  40. package/js/metalstack/admin/v2/vpn_pb.ts +184 -0
  41. package/js/metalstack/api/v2/common_pb.d.ts +407 -0
  42. package/js/metalstack/api/v2/common_pb.js +311 -0
  43. package/js/metalstack/api/v2/common_pb.ts +488 -0
  44. package/js/metalstack/api/v2/filesystem_pb.d.ts +704 -0
  45. package/js/metalstack/api/v2/filesystem_pb.js +259 -0
  46. package/js/metalstack/api/v2/filesystem_pb.ts +819 -0
  47. package/js/metalstack/api/v2/health_pb.d.ts +220 -0
  48. package/js/metalstack/api/v2/health_pb.js +130 -0
  49. package/js/metalstack/api/v2/health_pb.ts +264 -0
  50. package/js/metalstack/api/v2/image_pb.d.ts +368 -0
  51. package/js/metalstack/api/v2/image_pb.js +129 -0
  52. package/js/metalstack/api/v2/image_pb.ts +436 -0
  53. package/js/metalstack/api/v2/ip_pb.d.ts +555 -0
  54. package/js/metalstack/api/v2/ip_pb.js +137 -0
  55. package/js/metalstack/api/v2/ip_pb.ts +650 -0
  56. package/js/metalstack/api/v2/machine_pb.d.ts +1831 -0
  57. package/js/metalstack/api/v2/machine_pb.js +459 -0
  58. package/js/metalstack/api/v2/machine_pb.ts +2155 -0
  59. package/js/metalstack/api/v2/method_pb.d.ts +122 -0
  60. package/js/metalstack/api/v2/method_pb.js +38 -0
  61. package/js/metalstack/api/v2/method_pb.ts +149 -0
  62. package/js/metalstack/api/v2/network_pb.d.ts +820 -0
  63. package/js/metalstack/api/v2/network_pb.js +244 -0
  64. package/js/metalstack/api/v2/network_pb.ts +954 -0
  65. package/js/metalstack/api/v2/partition_pb.d.ts +251 -0
  66. package/js/metalstack/api/v2/partition_pb.js +62 -0
  67. package/js/metalstack/api/v2/partition_pb.ts +300 -0
  68. package/js/metalstack/api/v2/predefined_rules_pb.d.ts +54 -0
  69. package/js/metalstack/api/v2/predefined_rules_pb.js +57 -0
  70. package/js/metalstack/api/v2/predefined_rules_pb.ts +79 -0
  71. package/js/metalstack/api/v2/project_pb.d.ts +862 -0
  72. package/js/metalstack/api/v2/project_pb.js +163 -0
  73. package/js/metalstack/api/v2/project_pb.ts +1001 -0
  74. package/js/metalstack/api/v2/size_pb.d.ts +261 -0
  75. package/js/metalstack/api/v2/size_pb.js +94 -0
  76. package/js/metalstack/api/v2/size_pb.ts +312 -0
  77. package/js/metalstack/api/v2/switch_pb.d.ts +508 -0
  78. package/js/metalstack/api/v2/switch_pb.js +207 -0
  79. package/js/metalstack/api/v2/switch_pb.ts +653 -0
  80. package/js/metalstack/api/v2/tenant_pb.d.ts +864 -0
  81. package/js/metalstack/api/v2/tenant_pb.js +163 -0
  82. package/js/metalstack/api/v2/tenant_pb.ts +1004 -0
  83. package/js/metalstack/api/v2/token_pb.d.ts +540 -0
  84. package/js/metalstack/api/v2/token_pb.js +118 -0
  85. package/js/metalstack/api/v2/token_pb.ts +621 -0
  86. package/js/metalstack/api/v2/user_pb.d.ts +108 -0
  87. package/js/metalstack/api/v2/user_pb.js +34 -0
  88. package/js/metalstack/api/v2/user_pb.ts +139 -0
  89. package/js/metalstack/api/v2/version_pb.d.ts +88 -0
  90. package/js/metalstack/api/v2/version_pb.js +30 -0
  91. package/js/metalstack/api/v2/version_pb.ts +112 -0
  92. package/js/metalstack/api/v2/vpn_pb.ts +72 -0
  93. package/js/metalstack/infra/v2/bmc_pb.d.ts +45 -0
  94. package/js/metalstack/infra/v2/bmc_pb.js +25 -0
  95. package/js/metalstack/infra/v2/bmc_pb.ts +104 -0
  96. package/js/metalstack/infra/v2/event_pb.d.ts +181 -0
  97. package/js/metalstack/infra/v2/event_pb.js +116 -0
  98. package/js/metalstack/infra/v2/event_pb.ts +218 -0
  99. package/js/metalstack/infra/v2/switch_pb.d.ts +223 -0
  100. package/js/metalstack/infra/v2/switch_pb.js +54 -0
  101. package/js/metalstack/infra/v2/switch_pb.ts +228 -0
  102. package/js/tsconfig.json +70 -0
  103. package/package.json +21 -0
@@ -0,0 +1,704 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Meta } from "./common_pb";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file metalstack/api/v2/filesystem.proto.
6
+ */
7
+ export declare const file_metalstack_api_v2_filesystem: GenFile;
8
+ /**
9
+ * FilesystemServiceGetRequest is the request payload for a filesystem get request
10
+ *
11
+ * @generated from message metalstack.api.v2.FilesystemServiceGetRequest
12
+ */
13
+ export type FilesystemServiceGetRequest = Message<"metalstack.api.v2.FilesystemServiceGetRequest"> & {
14
+ /**
15
+ * ID of the filesystem to get
16
+ *
17
+ * @generated from field: string id = 1;
18
+ */
19
+ id: string;
20
+ };
21
+ /**
22
+ * Describes the message metalstack.api.v2.FilesystemServiceGetRequest.
23
+ * Use `create(FilesystemServiceGetRequestSchema)` to create a new message.
24
+ */
25
+ export declare const FilesystemServiceGetRequestSchema: GenMessage<FilesystemServiceGetRequest>;
26
+ /**
27
+ * FilesystemServiceListRequest is the request payload for a filesystem list request
28
+ *
29
+ * @generated from message metalstack.api.v2.FilesystemServiceListRequest
30
+ */
31
+ export type FilesystemServiceListRequest = Message<"metalstack.api.v2.FilesystemServiceListRequest"> & {
32
+ /**
33
+ * ID of the filesystem to get
34
+ *
35
+ * @generated from field: optional string id = 1;
36
+ */
37
+ id?: string;
38
+ };
39
+ /**
40
+ * Describes the message metalstack.api.v2.FilesystemServiceListRequest.
41
+ * Use `create(FilesystemServiceListRequestSchema)` to create a new message.
42
+ */
43
+ export declare const FilesystemServiceListRequestSchema: GenMessage<FilesystemServiceListRequest>;
44
+ /**
45
+ * FilesystemServiceGetResponse is the response payload for a filesystem get request
46
+ *
47
+ * @generated from message metalstack.api.v2.FilesystemServiceGetResponse
48
+ */
49
+ export type FilesystemServiceGetResponse = Message<"metalstack.api.v2.FilesystemServiceGetResponse"> & {
50
+ /**
51
+ * FilesystemLayout the filesystemlayout
52
+ *
53
+ * @generated from field: metalstack.api.v2.FilesystemLayout filesystem_layout = 1;
54
+ */
55
+ filesystemLayout?: FilesystemLayout;
56
+ };
57
+ /**
58
+ * Describes the message metalstack.api.v2.FilesystemServiceGetResponse.
59
+ * Use `create(FilesystemServiceGetResponseSchema)` to create a new message.
60
+ */
61
+ export declare const FilesystemServiceGetResponseSchema: GenMessage<FilesystemServiceGetResponse>;
62
+ /**
63
+ * FilesystemServiceListResponse is the response payload for a filesystem list request
64
+ *
65
+ * @generated from message metalstack.api.v2.FilesystemServiceListResponse
66
+ */
67
+ export type FilesystemServiceListResponse = Message<"metalstack.api.v2.FilesystemServiceListResponse"> & {
68
+ /**
69
+ * FilesystemLayouts the filesystemlayouts
70
+ *
71
+ * @generated from field: repeated metalstack.api.v2.FilesystemLayout filesystem_layouts = 1;
72
+ */
73
+ filesystemLayouts: FilesystemLayout[];
74
+ };
75
+ /**
76
+ * Describes the message metalstack.api.v2.FilesystemServiceListResponse.
77
+ * Use `create(FilesystemServiceListResponseSchema)` to create a new message.
78
+ */
79
+ export declare const FilesystemServiceListResponseSchema: GenMessage<FilesystemServiceListResponse>;
80
+ /**
81
+ * FilesystemServiceMatchRequest
82
+ *
83
+ * @generated from message metalstack.api.v2.FilesystemServiceMatchRequest
84
+ */
85
+ export type FilesystemServiceMatchRequest = Message<"metalstack.api.v2.FilesystemServiceMatchRequest"> & {
86
+ /**
87
+ * Match either size and image to a filesystemlayout
88
+ * or if a machine matches to a filesystemlayout
89
+ *
90
+ * @generated from oneof metalstack.api.v2.FilesystemServiceMatchRequest.match
91
+ */
92
+ match: {
93
+ /**
94
+ * SizeAndImage
95
+ *
96
+ * @generated from field: metalstack.api.v2.MatchImageAndSize size_and_image = 1;
97
+ */
98
+ value: MatchImageAndSize;
99
+ case: "sizeAndImage";
100
+ } | {
101
+ /**
102
+ * MachineAndFilesystemlayout
103
+ *
104
+ * @generated from field: metalstack.api.v2.MatchMachine machine_and_filesystemlayout = 2;
105
+ */
106
+ value: MatchMachine;
107
+ case: "machineAndFilesystemlayout";
108
+ } | {
109
+ case: undefined;
110
+ value?: undefined;
111
+ };
112
+ };
113
+ /**
114
+ * Describes the message metalstack.api.v2.FilesystemServiceMatchRequest.
115
+ * Use `create(FilesystemServiceMatchRequestSchema)` to create a new message.
116
+ */
117
+ export declare const FilesystemServiceMatchRequestSchema: GenMessage<FilesystemServiceMatchRequest>;
118
+ /**
119
+ * MatchImageAndSize
120
+ *
121
+ * @generated from message metalstack.api.v2.MatchImageAndSize
122
+ */
123
+ export type MatchImageAndSize = Message<"metalstack.api.v2.MatchImageAndSize"> & {
124
+ /**
125
+ * Size, machine size to try
126
+ *
127
+ * @generated from field: string size = 1;
128
+ */
129
+ size: string;
130
+ /**
131
+ * Image machine image to try
132
+ *
133
+ * @generated from field: string image = 2;
134
+ */
135
+ image: string;
136
+ };
137
+ /**
138
+ * Describes the message metalstack.api.v2.MatchImageAndSize.
139
+ * Use `create(MatchImageAndSizeSchema)` to create a new message.
140
+ */
141
+ export declare const MatchImageAndSizeSchema: GenMessage<MatchImageAndSize>;
142
+ /**
143
+ * MatchMachine
144
+ *
145
+ * @generated from message metalstack.api.v2.MatchMachine
146
+ */
147
+ export type MatchMachine = Message<"metalstack.api.v2.MatchMachine"> & {
148
+ /**
149
+ * Machine to check
150
+ *
151
+ * @generated from field: string machine = 1;
152
+ */
153
+ machine: string;
154
+ /**
155
+ * FilesystemLayout to check
156
+ *
157
+ * @generated from field: string filesystem_layout = 2;
158
+ */
159
+ filesystemLayout: string;
160
+ };
161
+ /**
162
+ * Describes the message metalstack.api.v2.MatchMachine.
163
+ * Use `create(MatchMachineSchema)` to create a new message.
164
+ */
165
+ export declare const MatchMachineSchema: GenMessage<MatchMachine>;
166
+ /**
167
+ * FilesystemServiceMatchResponse
168
+ *
169
+ * @generated from message metalstack.api.v2.FilesystemServiceMatchResponse
170
+ */
171
+ export type FilesystemServiceMatchResponse = Message<"metalstack.api.v2.FilesystemServiceMatchResponse"> & {
172
+ /**
173
+ * FilesystemLayout the filesystemlayout
174
+ *
175
+ * @generated from field: metalstack.api.v2.FilesystemLayout filesystem_layout = 1;
176
+ */
177
+ filesystemLayout?: FilesystemLayout;
178
+ };
179
+ /**
180
+ * Describes the message metalstack.api.v2.FilesystemServiceMatchResponse.
181
+ * Use `create(FilesystemServiceMatchResponseSchema)` to create a new message.
182
+ */
183
+ export declare const FilesystemServiceMatchResponseSchema: GenMessage<FilesystemServiceMatchResponse>;
184
+ /**
185
+ * FilesystemLayout
186
+ *
187
+ * @generated from message metalstack.api.v2.FilesystemLayout
188
+ */
189
+ export type FilesystemLayout = Message<"metalstack.api.v2.FilesystemLayout"> & {
190
+ /**
191
+ * Id of this filesystemLayout
192
+ *
193
+ * @generated from field: string id = 1;
194
+ */
195
+ id: string;
196
+ /**
197
+ * Meta for this filesystemLayout
198
+ *
199
+ * @generated from field: metalstack.api.v2.Meta meta = 2;
200
+ */
201
+ meta?: Meta;
202
+ /**
203
+ * Name of this filesystemLayout
204
+ *
205
+ * @generated from field: optional string name = 3;
206
+ */
207
+ name?: string;
208
+ /**
209
+ * Description of this filesystemLayout
210
+ *
211
+ * @generated from field: optional string description = 4;
212
+ */
213
+ description?: string;
214
+ /**
215
+ * Filesystems is a list of filesystems to create on a machine
216
+ *
217
+ * @generated from field: repeated metalstack.api.v2.Filesystem filesystems = 5;
218
+ */
219
+ filesystems: Filesystem[];
220
+ /**
221
+ * Disks list of disks that belong to this layout
222
+ *
223
+ * @generated from field: repeated metalstack.api.v2.Disk disks = 6;
224
+ */
225
+ disks: Disk[];
226
+ /**
227
+ * raid arrays to create
228
+ *
229
+ * @generated from field: repeated metalstack.api.v2.Raid raid = 7;
230
+ */
231
+ raid: Raid[];
232
+ /**
233
+ * VolumeGroups list of volumegroups to create
234
+ *
235
+ * @generated from field: repeated metalstack.api.v2.VolumeGroup volume_groups = 8;
236
+ */
237
+ volumeGroups: VolumeGroup[];
238
+ /**
239
+ * LogicalVolumes list of logicalvolumes to create
240
+ *
241
+ * @generated from field: repeated metalstack.api.v2.LogicalVolume logical_volumes = 9;
242
+ */
243
+ logicalVolumes: LogicalVolume[];
244
+ /**
245
+ * Constraints which must match that this layout is taken, if sizes and images are empty these are develop layouts
246
+ *
247
+ * @generated from field: metalstack.api.v2.FilesystemLayoutConstraints constraints = 10;
248
+ */
249
+ constraints?: FilesystemLayoutConstraints;
250
+ };
251
+ /**
252
+ * Describes the message metalstack.api.v2.FilesystemLayout.
253
+ * Use `create(FilesystemLayoutSchema)` to create a new message.
254
+ */
255
+ export declare const FilesystemLayoutSchema: GenMessage<FilesystemLayout>;
256
+ /**
257
+ * FilesystemLayoutConstraints
258
+ *
259
+ * @generated from message metalstack.api.v2.FilesystemLayoutConstraints
260
+ */
261
+ export type FilesystemLayoutConstraints = Message<"metalstack.api.v2.FilesystemLayoutConstraints"> & {
262
+ /**
263
+ * Sizes list of sizes this layout applies to
264
+ *
265
+ * @generated from field: repeated string sizes = 1;
266
+ */
267
+ sizes: string[];
268
+ /**
269
+ * Images list of images this layout applies to
270
+ *
271
+ * @generated from field: map<string, string> images = 2;
272
+ */
273
+ images: {
274
+ [key: string]: string;
275
+ };
276
+ };
277
+ /**
278
+ * Describes the message metalstack.api.v2.FilesystemLayoutConstraints.
279
+ * Use `create(FilesystemLayoutConstraintsSchema)` to create a new message.
280
+ */
281
+ export declare const FilesystemLayoutConstraintsSchema: GenMessage<FilesystemLayoutConstraints>;
282
+ /**
283
+ * Filesystem
284
+ *
285
+ * @generated from message metalstack.api.v2.Filesystem
286
+ */
287
+ export type Filesystem = Message<"metalstack.api.v2.Filesystem"> & {
288
+ /**
289
+ * Device the underlying device where this filesystem should be created
290
+ *
291
+ * @generated from field: string device = 1;
292
+ */
293
+ device: string;
294
+ /**
295
+ * Format of the filesystem format
296
+ *
297
+ * @generated from field: metalstack.api.v2.Format format = 2;
298
+ */
299
+ format: Format;
300
+ /**
301
+ * Name of this filesystem
302
+ *
303
+ * @generated from field: optional string name = 3;
304
+ */
305
+ name?: string;
306
+ /**
307
+ * Description of this filesystem
308
+ *
309
+ * @generated from field: optional string description = 4;
310
+ */
311
+ description?: string;
312
+ /**
313
+ * Path the mountpoint where this filesystem should be mounted on
314
+ *
315
+ * @generated from field: optional string path = 5;
316
+ */
317
+ path?: string;
318
+ /**
319
+ * Label optional label for this this filesystem
320
+ *
321
+ * @generated from field: optional string label = 6;
322
+ */
323
+ label?: string;
324
+ /**
325
+ * MountOptions the options to use to mount this filesystem
326
+ *
327
+ * @generated from field: repeated string mount_options = 7;
328
+ */
329
+ mountOptions: string[];
330
+ /**
331
+ * CreateOptions the options to use to create (mkfs) this filesystem
332
+ *
333
+ * @generated from field: repeated string create_options = 8;
334
+ */
335
+ createOptions: string[];
336
+ };
337
+ /**
338
+ * Describes the message metalstack.api.v2.Filesystem.
339
+ * Use `create(FilesystemSchema)` to create a new message.
340
+ */
341
+ export declare const FilesystemSchema: GenMessage<Filesystem>;
342
+ /**
343
+ * Disk
344
+ *
345
+ * @generated from message metalstack.api.v2.Disk
346
+ */
347
+ export type Disk = Message<"metalstack.api.v2.Disk"> & {
348
+ /**
349
+ * Device the device to create the partitions
350
+ *
351
+ * @generated from field: string device = 1;
352
+ */
353
+ device: string;
354
+ /**
355
+ * Partitions list of partitions to create on this disk
356
+ *
357
+ * @generated from field: repeated metalstack.api.v2.DiskPartition partitions = 2;
358
+ */
359
+ partitions: DiskPartition[];
360
+ };
361
+ /**
362
+ * Describes the message metalstack.api.v2.Disk.
363
+ * Use `create(DiskSchema)` to create a new message.
364
+ */
365
+ export declare const DiskSchema: GenMessage<Disk>;
366
+ /**
367
+ * Raid
368
+ *
369
+ * @generated from message metalstack.api.v2.Raid
370
+ */
371
+ export type Raid = Message<"metalstack.api.v2.Raid"> & {
372
+ /**
373
+ * ArrayName the name of the resulting array device
374
+ *
375
+ * @generated from field: string array_name = 1;
376
+ */
377
+ arrayName: string;
378
+ /**
379
+ * Devices list of devices to form the raid array from
380
+ *
381
+ * @generated from field: repeated string devices = 2;
382
+ */
383
+ devices: string[];
384
+ /**
385
+ * Level raid level to create, should be 0 or 1
386
+ *
387
+ * @generated from field: metalstack.api.v2.RaidLevel level = 3;
388
+ */
389
+ level: RaidLevel;
390
+ /**
391
+ * CreateOptions the options to use to create the raid array
392
+ *
393
+ * @generated from field: repeated string create_options = 4;
394
+ */
395
+ createOptions: string[];
396
+ /**
397
+ * Spares number of spares for the raid array
398
+ *
399
+ * @generated from field: int32 spares = 5;
400
+ */
401
+ spares: number;
402
+ };
403
+ /**
404
+ * Describes the message metalstack.api.v2.Raid.
405
+ * Use `create(RaidSchema)` to create a new message.
406
+ */
407
+ export declare const RaidSchema: GenMessage<Raid>;
408
+ /**
409
+ * DiskPartition
410
+ *
411
+ * @generated from message metalstack.api.v2.DiskPartition
412
+ */
413
+ export type DiskPartition = Message<"metalstack.api.v2.DiskPartition"> & {
414
+ /**
415
+ * Number partition number, will be appended to partitionprefix to create the final devicename
416
+ *
417
+ * @generated from field: uint32 number = 1;
418
+ */
419
+ number: number;
420
+ /**
421
+ * optional label for this this partition
422
+ *
423
+ * @generated from field: optional string label = 2;
424
+ */
425
+ label?: string;
426
+ /**
427
+ * Size size in mebibytes (MiB) of this partition"
428
+ *
429
+ * @generated from field: uint64 size = 3;
430
+ */
431
+ size: bigint;
432
+ /**
433
+ * GPTType the gpt partition table type of this partition
434
+ *
435
+ * @generated from field: optional metalstack.api.v2.GPTType gpt_type = 4;
436
+ */
437
+ gptType?: GPTType;
438
+ };
439
+ /**
440
+ * Describes the message metalstack.api.v2.DiskPartition.
441
+ * Use `create(DiskPartitionSchema)` to create a new message.
442
+ */
443
+ export declare const DiskPartitionSchema: GenMessage<DiskPartition>;
444
+ /**
445
+ * VolumeGroup
446
+ *
447
+ * @generated from message metalstack.api.v2.VolumeGroup
448
+ */
449
+ export type VolumeGroup = Message<"metalstack.api.v2.VolumeGroup"> & {
450
+ /**
451
+ * Name the name of the resulting volume group
452
+ *
453
+ * @generated from field: string name = 1;
454
+ */
455
+ name: string;
456
+ /**
457
+ * Devices list of devices to form the volume group from
458
+ *
459
+ * @generated from field: repeated string devices = 2;
460
+ */
461
+ devices: string[];
462
+ /**
463
+ * Tags list of tags to add to the volume group
464
+ *
465
+ * @generated from field: repeated string tags = 3;
466
+ */
467
+ tags: string[];
468
+ };
469
+ /**
470
+ * Describes the message metalstack.api.v2.VolumeGroup.
471
+ * Use `create(VolumeGroupSchema)` to create a new message.
472
+ */
473
+ export declare const VolumeGroupSchema: GenMessage<VolumeGroup>;
474
+ /**
475
+ * LogicalVolume
476
+ *
477
+ * @generated from message metalstack.api.v2.LogicalVolume
478
+ */
479
+ export type LogicalVolume = Message<"metalstack.api.v2.LogicalVolume"> & {
480
+ /**
481
+ * Name the name of the logical volume
482
+ *
483
+ * @generated from field: string name = 1;
484
+ */
485
+ name: string;
486
+ /**
487
+ * VolumeGroup the name of the volume group where to create the logical volume onto
488
+ *
489
+ * @generated from field: string volume_group = 2;
490
+ */
491
+ volumeGroup: string;
492
+ /**
493
+ * Size size in mebibytes (MiB) of this volume
494
+ *
495
+ * @generated from field: uint64 size = 3;
496
+ */
497
+ size: bigint;
498
+ /**
499
+ * LVMType the type of this logical volume can be either linear|striped|raid1
500
+ *
501
+ * @generated from field: metalstack.api.v2.LVMType lvm_type = 4;
502
+ */
503
+ lvmType: LVMType;
504
+ };
505
+ /**
506
+ * Describes the message metalstack.api.v2.LogicalVolume.
507
+ * Use `create(LogicalVolumeSchema)` to create a new message.
508
+ */
509
+ export declare const LogicalVolumeSchema: GenMessage<LogicalVolume>;
510
+ /**
511
+ * LVMType
512
+ *
513
+ * @generated from enum metalstack.api.v2.LVMType
514
+ */
515
+ export declare enum LVMType {
516
+ /**
517
+ * LVM_TYPE_UNSPECIFIED is not specified
518
+ *
519
+ * @generated from enum value: LVM_TYPE_UNSPECIFIED = 0;
520
+ */
521
+ LVM_TYPE_UNSPECIFIED = 0,
522
+ /**
523
+ * LVM_TYPE_LINEAR append across all physical volumes
524
+ *
525
+ * @generated from enum value: LVM_TYPE_LINEAR = 1;
526
+ */
527
+ LVM_TYPE_LINEAR = 1,
528
+ /**
529
+ * LVM_TYPE_STRIPED stripe across all physical volumes
530
+ *
531
+ * @generated from enum value: LVM_TYPE_STRIPED = 2;
532
+ */
533
+ LVM_TYPE_STRIPED = 2,
534
+ /**
535
+ * LVM_TYPE_RAID1 mirror with raid across all physical volumes
536
+ *
537
+ * @generated from enum value: LVM_TYPE_RAID1 = 3;
538
+ */
539
+ LVM_TYPE_RAID1 = 3
540
+ }
541
+ /**
542
+ * Describes the enum metalstack.api.v2.LVMType.
543
+ */
544
+ export declare const LVMTypeSchema: GenEnum<LVMType>;
545
+ /**
546
+ * Format specifies the filesystem to use on a volume
547
+ *
548
+ * @generated from enum metalstack.api.v2.Format
549
+ */
550
+ export declare enum Format {
551
+ /**
552
+ * FORMAT_UNSPECIFIED
553
+ *
554
+ * @generated from enum value: FORMAT_UNSPECIFIED = 0;
555
+ */
556
+ UNSPECIFIED = 0,
557
+ /**
558
+ * FORMAT_VFAT is used for the UEFI boot partition
559
+ *
560
+ * @generated from enum value: FORMAT_VFAT = 1;
561
+ */
562
+ VFAT = 1,
563
+ /**
564
+ * FORMAT_EXT3 is usually only used for /boot
565
+ *
566
+ * @generated from enum value: FORMAT_EXT3 = 2;
567
+ */
568
+ EXT3 = 2,
569
+ /**
570
+ * FORMAT_EXT4 is the default fs
571
+ *
572
+ * @generated from enum value: FORMAT_EXT4 = 3;
573
+ */
574
+ EXT4 = 3,
575
+ /**
576
+ * FORMAT_SWAP is for the swap partition
577
+ *
578
+ * @generated from enum value: FORMAT_SWAP = 4;
579
+ */
580
+ SWAP = 4,
581
+ /**
582
+ * FORMAT_TMPFS is used for a memory filesystem typically /tmp
583
+ *
584
+ * @generated from enum value: FORMAT_TMPFS = 5;
585
+ */
586
+ TMPFS = 5,
587
+ /**
588
+ * FORMAT_NONE
589
+ *
590
+ * @generated from enum value: FORMAT_NONE = 6;
591
+ */
592
+ NONE = 6
593
+ }
594
+ /**
595
+ * Describes the enum metalstack.api.v2.Format.
596
+ */
597
+ export declare const FormatSchema: GenEnum<Format>;
598
+ /**
599
+ * GPTType specifies the partition type in uefi systems
600
+ *
601
+ * @generated from enum metalstack.api.v2.GPTType
602
+ */
603
+ export declare enum GPTType {
604
+ /**
605
+ * GPT_TYPE_UNSPECIFIED is no specified
606
+ *
607
+ * @generated from enum value: GPT_TYPE_UNSPECIFIED = 0;
608
+ */
609
+ GPT_TYPE_UNSPECIFIED = 0,
610
+ /**
611
+ * GPT_TYPE_BOOT EFI Boot Partition
612
+ *
613
+ * @generated from enum value: GPT_TYPE_BOOT = 1;
614
+ */
615
+ GPT_TYPE_BOOT = 1,
616
+ /**
617
+ * GPT_TYPE_LINUX Linux Partition
618
+ *
619
+ * @generated from enum value: GPT_TYPE_LINUX = 2;
620
+ */
621
+ GPT_TYPE_LINUX = 2,
622
+ /**
623
+ * GPT_TYPE_LINUX_RAID Linux Raid Partition
624
+ *
625
+ * @generated from enum value: GPT_TYPE_LINUX_RAID = 3;
626
+ */
627
+ GPT_TYPE_LINUX_RAID = 3,
628
+ /**
629
+ * GPT_TYPE_LINUX_LVM Linux LVM Partition
630
+ *
631
+ * @generated from enum value: GPT_TYPE_LINUX_LVM = 4;
632
+ */
633
+ GPT_TYPE_LINUX_LVM = 4
634
+ }
635
+ /**
636
+ * Describes the enum metalstack.api.v2.GPTType.
637
+ */
638
+ export declare const GPTTypeSchema: GenEnum<GPTType>;
639
+ /**
640
+ * RaidLevel defines howto mirror two or more block devices
641
+ *
642
+ * @generated from enum metalstack.api.v2.RaidLevel
643
+ */
644
+ export declare enum RaidLevel {
645
+ /**
646
+ * RAID_LEVEL_UNSPECIFIED is not specified
647
+ *
648
+ * @generated from enum value: RAID_LEVEL_UNSPECIFIED = 0;
649
+ */
650
+ RAID_LEVEL_UNSPECIFIED = 0,
651
+ /**
652
+ * RAID_LEVEL_0 is a stripe of two or more disks
653
+ *
654
+ * @generated from enum value: RAID_LEVEL_0 = 1;
655
+ */
656
+ RAID_LEVEL_0 = 1,
657
+ /**
658
+ * RAID_LEVEL_1 is a mirror of two disks
659
+ *
660
+ * @generated from enum value: RAID_LEVEL_1 = 2;
661
+ */
662
+ RAID_LEVEL_1 = 2
663
+ }
664
+ /**
665
+ * Describes the enum metalstack.api.v2.RaidLevel.
666
+ */
667
+ export declare const RaidLevelSchema: GenEnum<RaidLevel>;
668
+ /**
669
+ * FilesystemService serves filesystem related functions
670
+ *
671
+ * @generated from service metalstack.api.v2.FilesystemService
672
+ */
673
+ export declare const FilesystemService: GenService<{
674
+ /**
675
+ * Get a filesystem
676
+ *
677
+ * @generated from rpc metalstack.api.v2.FilesystemService.Get
678
+ */
679
+ get: {
680
+ methodKind: "unary";
681
+ input: typeof FilesystemServiceGetRequestSchema;
682
+ output: typeof FilesystemServiceGetResponseSchema;
683
+ };
684
+ /**
685
+ * List all filesystems
686
+ *
687
+ * @generated from rpc metalstack.api.v2.FilesystemService.List
688
+ */
689
+ list: {
690
+ methodKind: "unary";
691
+ input: typeof FilesystemServiceListRequestSchema;
692
+ output: typeof FilesystemServiceListResponseSchema;
693
+ };
694
+ /**
695
+ * Match a filesystems
696
+ *
697
+ * @generated from rpc metalstack.api.v2.FilesystemService.Match
698
+ */
699
+ match: {
700
+ methodKind: "unary";
701
+ input: typeof FilesystemServiceMatchRequestSchema;
702
+ output: typeof FilesystemServiceMatchResponseSchema;
703
+ };
704
+ }>;