@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,402 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
+ // @generated from file metalstack/admin/v2/partition.proto (package metalstack.admin.v2, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
8
+ import type { UpdateLabels, UpdateMeta } from "../../api/v2/common_pb";
9
+ import { file_metalstack_api_v2_common } from "../../api/v2/common_pb";
10
+ import type { DNSServer, NTPServer, Partition, PartitionBootConfiguration } from "../../api/v2/partition_pb";
11
+ import { file_metalstack_api_v2_partition } from "../../api/v2/partition_pb";
12
+ import { file_metalstack_api_v2_predefined_rules } from "../../api/v2/predefined_rules_pb";
13
+ import type { Message } from "@bufbuild/protobuf";
14
+
15
+ /**
16
+ * Describes the file metalstack/admin/v2/partition.proto.
17
+ */
18
+ export const file_metalstack_admin_v2_partition: GenFile = /*@__PURE__*/
19
+ fileDesc("CiNtZXRhbHN0YWNrL2FkbWluL3YyL3BhcnRpdGlvbi5wcm90bxITbWV0YWxzdGFjay5hZG1pbi52MiJQCh1QYXJ0aXRpb25TZXJ2aWNlQ3JlYXRlUmVxdWVzdBIvCglwYXJ0aXRpb24YASABKAsyHC5tZXRhbHN0YWNrLmFwaS52Mi5QYXJ0aXRpb24izgMKHVBhcnRpdGlvblNlcnZpY2VVcGRhdGVSZXF1ZXN0EhYKAmlkGAEgASgJQgq6SAdyBRACGIABEjo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gBEoMBCghDYXBhY2l0eRI0Lm1ldGFsc3RhY2suYWRtaW4udjIuUGFydGl0aW9uU2VydmljZUNhcGFjaXR5UmVxdWVzdBo1Lm1ldGFsc3RhY2suYWRtaW4udjIuUGFydGl0aW9uU2VydmljZUNhcGFjaXR5UmVzcG9uc2UiCtLzGAICAeDzGAJC0gEKF2NvbS5tZXRhbHN0YWNrLmFkbWluLnYyQg5QYXJ0aXRpb25Qcm90b1ABWjlnaXRodWIuY29tL21ldGFsLXN0YWNrL2FwaS9nby9tZXRhbHN0YWNrL2FkbWluL3YyO2FkbWludjKiAgNNQViqAhNNZXRhbHN0YWNrLkFkbWluLlYyygITTWV0YWxzdGFja1xBZG1pblxWMuICH01ldGFsc3RhY2tcQWRtaW5cVjJcR1BCTWV0YWRhdGHqAhVNZXRhbHN0YWNrOjpBZG1pbjo6VjJiBnByb3RvMw", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_partition, file_metalstack_api_v2_predefined_rules]);
20
+
21
+ /**
22
+ * PartitionServiceCreateRequest is the request payload for a partition create request
23
+ *
24
+ * @generated from message metalstack.admin.v2.PartitionServiceCreateRequest
25
+ */
26
+ export type PartitionServiceCreateRequest = Message<"metalstack.admin.v2.PartitionServiceCreateRequest"> & {
27
+ /**
28
+ * Partition the partition
29
+ *
30
+ * @generated from field: metalstack.api.v2.Partition partition = 1;
31
+ */
32
+ partition?: Partition;
33
+ };
34
+
35
+ /**
36
+ * Describes the message metalstack.admin.v2.PartitionServiceCreateRequest.
37
+ * Use `create(PartitionServiceCreateRequestSchema)` to create a new message.
38
+ */
39
+ export const PartitionServiceCreateRequestSchema: GenMessage<PartitionServiceCreateRequest> = /*@__PURE__*/
40
+ messageDesc(file_metalstack_admin_v2_partition, 0);
41
+
42
+ /**
43
+ * PartitionServiceUpdateRequest is the request payload for a partition update request
44
+ *
45
+ * @generated from message metalstack.admin.v2.PartitionServiceUpdateRequest
46
+ */
47
+ export type PartitionServiceUpdateRequest = Message<"metalstack.admin.v2.PartitionServiceUpdateRequest"> & {
48
+ /**
49
+ * ID of this partition
50
+ *
51
+ * @generated from field: string id = 1;
52
+ */
53
+ id: string;
54
+
55
+ /**
56
+ * UpdateMeta contains the timestamp and strategy to be used in this update request
57
+ *
58
+ * @generated from field: metalstack.api.v2.UpdateMeta update_meta = 2;
59
+ */
60
+ updateMeta?: UpdateMeta;
61
+
62
+ /**
63
+ * Description of this partition
64
+ *
65
+ * @generated from field: optional string description = 3;
66
+ */
67
+ description?: string;
68
+
69
+ /**
70
+ * PartitionBootConfiguration defines how metal-hammer boots
71
+ *
72
+ * @generated from field: metalstack.api.v2.PartitionBootConfiguration boot_configuration = 4;
73
+ */
74
+ bootConfiguration?: PartitionBootConfiguration;
75
+
76
+ /**
77
+ * DNSServers for this partition
78
+ *
79
+ * @generated from field: repeated metalstack.api.v2.DNSServer dns_server = 5;
80
+ */
81
+ dnsServer: DNSServer[];
82
+
83
+ /**
84
+ * NTPServers for this partition
85
+ *
86
+ * @generated from field: repeated metalstack.api.v2.NTPServer ntp_server = 6;
87
+ */
88
+ ntpServer: NTPServer[];
89
+
90
+ /**
91
+ * ManagementServiceAddresses defines where the management is reachable
92
+ * should be in the form <ip|host>:<port>
93
+ *
94
+ * @generated from field: repeated string mgmt_service_addresses = 7;
95
+ */
96
+ mgmtServiceAddresses: string[];
97
+
98
+ /**
99
+ * Labels to update on this network
100
+ *
101
+ * @generated from field: optional metalstack.api.v2.UpdateLabels labels = 8;
102
+ */
103
+ labels?: UpdateLabels;
104
+ };
105
+
106
+ /**
107
+ * Describes the message metalstack.admin.v2.PartitionServiceUpdateRequest.
108
+ * Use `create(PartitionServiceUpdateRequestSchema)` to create a new message.
109
+ */
110
+ export const PartitionServiceUpdateRequestSchema: GenMessage<PartitionServiceUpdateRequest> = /*@__PURE__*/
111
+ messageDesc(file_metalstack_admin_v2_partition, 1);
112
+
113
+ /**
114
+ * PartitionServiceDeleteRequest is the request payload for a partition delete request
115
+ *
116
+ * @generated from message metalstack.admin.v2.PartitionServiceDeleteRequest
117
+ */
118
+ export type PartitionServiceDeleteRequest = Message<"metalstack.admin.v2.PartitionServiceDeleteRequest"> & {
119
+ /**
120
+ * ID of the partition to get
121
+ *
122
+ * @generated from field: string id = 1;
123
+ */
124
+ id: string;
125
+ };
126
+
127
+ /**
128
+ * Describes the message metalstack.admin.v2.PartitionServiceDeleteRequest.
129
+ * Use `create(PartitionServiceDeleteRequestSchema)` to create a new message.
130
+ */
131
+ export const PartitionServiceDeleteRequestSchema: GenMessage<PartitionServiceDeleteRequest> = /*@__PURE__*/
132
+ messageDesc(file_metalstack_admin_v2_partition, 2);
133
+
134
+ /**
135
+ * PartitionServiceCreateResponse is the response payload for a partition create request
136
+ *
137
+ * @generated from message metalstack.admin.v2.PartitionServiceCreateResponse
138
+ */
139
+ export type PartitionServiceCreateResponse = Message<"metalstack.admin.v2.PartitionServiceCreateResponse"> & {
140
+ /**
141
+ * Partition the partition
142
+ *
143
+ * @generated from field: metalstack.api.v2.Partition partition = 1;
144
+ */
145
+ partition?: Partition;
146
+ };
147
+
148
+ /**
149
+ * Describes the message metalstack.admin.v2.PartitionServiceCreateResponse.
150
+ * Use `create(PartitionServiceCreateResponseSchema)` to create a new message.
151
+ */
152
+ export const PartitionServiceCreateResponseSchema: GenMessage<PartitionServiceCreateResponse> = /*@__PURE__*/
153
+ messageDesc(file_metalstack_admin_v2_partition, 3);
154
+
155
+ /**
156
+ * PartitionServiceUpdateResponse is the response payload for a partition update request
157
+ *
158
+ * @generated from message metalstack.admin.v2.PartitionServiceUpdateResponse
159
+ */
160
+ export type PartitionServiceUpdateResponse = Message<"metalstack.admin.v2.PartitionServiceUpdateResponse"> & {
161
+ /**
162
+ * Partition the partition
163
+ *
164
+ * @generated from field: metalstack.api.v2.Partition partition = 1;
165
+ */
166
+ partition?: Partition;
167
+ };
168
+
169
+ /**
170
+ * Describes the message metalstack.admin.v2.PartitionServiceUpdateResponse.
171
+ * Use `create(PartitionServiceUpdateResponseSchema)` to create a new message.
172
+ */
173
+ export const PartitionServiceUpdateResponseSchema: GenMessage<PartitionServiceUpdateResponse> = /*@__PURE__*/
174
+ messageDesc(file_metalstack_admin_v2_partition, 4);
175
+
176
+ /**
177
+ * PartitionServiceCapacityResponse is the response payload for a partition delete request
178
+ *
179
+ * @generated from message metalstack.admin.v2.PartitionServiceDeleteResponse
180
+ */
181
+ export type PartitionServiceDeleteResponse = Message<"metalstack.admin.v2.PartitionServiceDeleteResponse"> & {
182
+ /**
183
+ * Partition the partition
184
+ *
185
+ * @generated from field: metalstack.api.v2.Partition partition = 1;
186
+ */
187
+ partition?: Partition;
188
+ };
189
+
190
+ /**
191
+ * Describes the message metalstack.admin.v2.PartitionServiceDeleteResponse.
192
+ * Use `create(PartitionServiceDeleteResponseSchema)` to create a new message.
193
+ */
194
+ export const PartitionServiceDeleteResponseSchema: GenMessage<PartitionServiceDeleteResponse> = /*@__PURE__*/
195
+ messageDesc(file_metalstack_admin_v2_partition, 5);
196
+
197
+ /**
198
+ * PartitionServiceListRequest is the request payload for a partition capacity request
199
+ *
200
+ * @generated from message metalstack.admin.v2.PartitionServiceCapacityRequest
201
+ */
202
+ export type PartitionServiceCapacityRequest = Message<"metalstack.admin.v2.PartitionServiceCapacityRequest"> & {
203
+ /**
204
+ * ID of the partition to get
205
+ *
206
+ * @generated from field: optional string id = 1;
207
+ */
208
+ id?: string;
209
+
210
+ /**
211
+ * Size of machines to show the capacity
212
+ *
213
+ * @generated from field: optional string size = 2;
214
+ */
215
+ size?: string;
216
+
217
+ /**
218
+ * Project of machines to show the capacity
219
+ *
220
+ * @generated from field: optional string project = 3;
221
+ */
222
+ project?: string;
223
+ };
224
+
225
+ /**
226
+ * Describes the message metalstack.admin.v2.PartitionServiceCapacityRequest.
227
+ * Use `create(PartitionServiceCapacityRequestSchema)` to create a new message.
228
+ */
229
+ export const PartitionServiceCapacityRequestSchema: GenMessage<PartitionServiceCapacityRequest> = /*@__PURE__*/
230
+ messageDesc(file_metalstack_admin_v2_partition, 6);
231
+
232
+ /**
233
+ * PartitionServiceCapacityResponse is the response payload for a partition capacity request
234
+ *
235
+ * @generated from message metalstack.admin.v2.PartitionServiceCapacityResponse
236
+ */
237
+ export type PartitionServiceCapacityResponse = Message<"metalstack.admin.v2.PartitionServiceCapacityResponse"> & {
238
+ /**
239
+ * Size is the size id correlating to all counts in this server capacity.
240
+ *
241
+ * @generated from field: string size = 1;
242
+ */
243
+ size: string;
244
+
245
+ /**
246
+ * Total is the total amount of machines for this size.
247
+ *
248
+ * @generated from field: int64 total = 2;
249
+ */
250
+ total: bigint;
251
+
252
+ /**
253
+ * PhonedHome is the amount of machines that are currently in the provisioning state "phoned home".
254
+ *
255
+ * @generated from field: int64 phoned_home = 3;
256
+ */
257
+ phonedHome: bigint;
258
+
259
+ /**
260
+ * Waiting is the amount of machines that are currently in the provisioning state "waiting".
261
+ *
262
+ * @generated from field: int64 waiting = 4;
263
+ */
264
+ waiting: bigint;
265
+
266
+ /**
267
+ * Other is the amount of machines that are neither in the provisioning state waiting nor in phoned home but in another provisioning state.
268
+ *
269
+ * @generated from field: int64 other = 5;
270
+ */
271
+ other: bigint;
272
+
273
+ /**
274
+ * OtherMachines contains the machine IDs for machines that were classified into "Other".
275
+ *
276
+ * @generated from field: repeated string other_machines = 6;
277
+ */
278
+ otherMachines: string[];
279
+
280
+ /**
281
+ * Allocated is the amount of machines that are currently allocated.
282
+ *
283
+ * @generated from field: int64 allocated = 7;
284
+ */
285
+ allocated: bigint;
286
+
287
+ /**
288
+ * Allocatable is the amount of machines in a partition is the amount of machines that can be allocated.
289
+ * Effectively this is the amount of waiting machines minus the machines that are unavailable due to machine state or un-allocatable. Size reservations are not considered in this count.
290
+ *
291
+ * @generated from field: int64 allocatable = 8;
292
+ */
293
+ allocatable: bigint;
294
+
295
+ /**
296
+ * Free is the amount of machines in a partition that can be freely allocated at any given moment by a project.
297
+ * Effectively this is the amount of waiting machines minus the machines that are unavailable due to machine state or un-allocatable due to size reservations.
298
+ *
299
+ * @generated from field: int64 free = 9;
300
+ */
301
+ free: bigint;
302
+
303
+ /**
304
+ * Unavailable is the amount of machine in a partition that are currently not allocatable because they are not waiting or
305
+ * not in the machine state "available", e.g. locked or reserved.
306
+ *
307
+ * @generated from field: int64 unavailable = 10;
308
+ */
309
+ unavailable: bigint;
310
+
311
+ /**
312
+ * Faulty is the amount of machines that are neither allocated nor in the pool of available machines because they report an error.
313
+ *
314
+ * @generated from field: int64 faulty = 11;
315
+ */
316
+ faulty: bigint;
317
+
318
+ /**
319
+ * FaultyMachines contains the machine IDs for machines that were classified into "Faulty".
320
+ *
321
+ * @generated from field: repeated string faulty_machines = 12;
322
+ */
323
+ faultyMachines: string[];
324
+
325
+ /**
326
+ * Reservations is the amount of reservations made for this size.
327
+ *
328
+ * @generated from field: int64 reservations = 13;
329
+ */
330
+ reservations: bigint;
331
+
332
+ /**
333
+ * UsedReservations is the amount of reservations already used up for this size.
334
+ *
335
+ * @generated from field: int64 used_reservations = 14;
336
+ */
337
+ usedReservations: bigint;
338
+
339
+ /**
340
+ * RemainingReservations is the amount of reservations remaining for this size.
341
+ *
342
+ * @generated from field: int64 remaining_reservations = 15;
343
+ */
344
+ remainingReservations: bigint;
345
+ };
346
+
347
+ /**
348
+ * Describes the message metalstack.admin.v2.PartitionServiceCapacityResponse.
349
+ * Use `create(PartitionServiceCapacityResponseSchema)` to create a new message.
350
+ */
351
+ export const PartitionServiceCapacityResponseSchema: GenMessage<PartitionServiceCapacityResponse> = /*@__PURE__*/
352
+ messageDesc(file_metalstack_admin_v2_partition, 7);
353
+
354
+ /**
355
+ * PartitionService serves partition address related functions
356
+ *
357
+ * @generated from service metalstack.admin.v2.PartitionService
358
+ */
359
+ export const PartitionService: GenService<{
360
+ /**
361
+ * Create a partition
362
+ *
363
+ * @generated from rpc metalstack.admin.v2.PartitionService.Create
364
+ */
365
+ create: {
366
+ methodKind: "unary";
367
+ input: typeof PartitionServiceCreateRequestSchema;
368
+ output: typeof PartitionServiceCreateResponseSchema;
369
+ },
370
+ /**
371
+ * Update a partition
372
+ *
373
+ * @generated from rpc metalstack.admin.v2.PartitionService.Update
374
+ */
375
+ update: {
376
+ methodKind: "unary";
377
+ input: typeof PartitionServiceUpdateRequestSchema;
378
+ output: typeof PartitionServiceUpdateResponseSchema;
379
+ },
380
+ /**
381
+ * Delete a partition
382
+ *
383
+ * @generated from rpc metalstack.admin.v2.PartitionService.Delete
384
+ */
385
+ delete: {
386
+ methodKind: "unary";
387
+ input: typeof PartitionServiceDeleteRequestSchema;
388
+ output: typeof PartitionServiceDeleteResponseSchema;
389
+ },
390
+ /**
391
+ * Capacity of a partitions
392
+ *
393
+ * @generated from rpc metalstack.admin.v2.PartitionService.Capacity
394
+ */
395
+ capacity: {
396
+ methodKind: "unary";
397
+ input: typeof PartitionServiceCapacityRequestSchema;
398
+ output: typeof PartitionServiceCapacityResponseSchema;
399
+ },
400
+ }> = /*@__PURE__*/
401
+ serviceDesc(file_metalstack_admin_v2_partition, 0);
402
+
@@ -0,0 +1,67 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Labels } from "../../api/v2/common_pb";
3
+ import type { Project } from "../../api/v2/project_pb";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file metalstack/admin/v2/project.proto.
7
+ */
8
+ export declare const file_metalstack_admin_v2_project: GenFile;
9
+ /**
10
+ * ProjectServiceListRequest is the request payload for the project list request
11
+ *
12
+ * @generated from message metalstack.admin.v2.ProjectServiceListRequest
13
+ */
14
+ export type ProjectServiceListRequest = Message<"metalstack.admin.v2.ProjectServiceListRequest"> & {
15
+ /**
16
+ * Tenant lists only projects of this tenant
17
+ *
18
+ * @generated from field: optional string tenant = 1;
19
+ */
20
+ tenant?: string;
21
+ /**
22
+ * Labels lists only projects containing the given labels
23
+ *
24
+ * @generated from field: optional metalstack.api.v2.Labels labels = 2;
25
+ */
26
+ labels?: Labels;
27
+ };
28
+ /**
29
+ * Describes the message metalstack.admin.v2.ProjectServiceListRequest.
30
+ * Use `create(ProjectServiceListRequestSchema)` to create a new message.
31
+ */
32
+ export declare const ProjectServiceListRequestSchema: GenMessage<ProjectServiceListRequest>;
33
+ /**
34
+ * ProjectServiceListResponse is the response payload for the project list request
35
+ *
36
+ * @generated from message metalstack.admin.v2.ProjectServiceListResponse
37
+ */
38
+ export type ProjectServiceListResponse = Message<"metalstack.admin.v2.ProjectServiceListResponse"> & {
39
+ /**
40
+ * Projects is a list of all projects
41
+ *
42
+ * @generated from field: repeated metalstack.api.v2.Project projects = 1;
43
+ */
44
+ projects: Project[];
45
+ };
46
+ /**
47
+ * Describes the message metalstack.admin.v2.ProjectServiceListResponse.
48
+ * Use `create(ProjectServiceListResponseSchema)` to create a new message.
49
+ */
50
+ export declare const ProjectServiceListResponseSchema: GenMessage<ProjectServiceListResponse>;
51
+ /**
52
+ * ProjectService serves project related functions
53
+ *
54
+ * @generated from service metalstack.admin.v2.ProjectService
55
+ */
56
+ export declare const ProjectService: GenService<{
57
+ /**
58
+ * List projects based on various filter criteria
59
+ *
60
+ * @generated from rpc metalstack.admin.v2.ProjectService.List
61
+ */
62
+ list: {
63
+ methodKind: "unary";
64
+ input: typeof ProjectServiceListRequestSchema;
65
+ output: typeof ProjectServiceListResponseSchema;
66
+ };
67
+ }>;
@@ -0,0 +1,27 @@
1
+ // @generated by protoc-gen-es v2.10.2 with parameter "target=ts"
2
+ // @generated from file metalstack/admin/v2/project.proto (package metalstack.admin.v2, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
6
+ import { file_metalstack_api_v2_common } from "../../api/v2/common_pb";
7
+ import { file_metalstack_api_v2_project } from "../../api/v2/project_pb";
8
+ /**
9
+ * Describes the file metalstack/admin/v2/project.proto.
10
+ */
11
+ export const file_metalstack_admin_v2_project = /*@__PURE__*/ fileDesc("CiFtZXRhbHN0YWNrL2FkbWluL3YyL3Byb2plY3QucHJvdG8SE21ldGFsc3RhY2suYWRtaW4udjIiggEKGVByb2plY3RTZXJ2aWNlTGlzdFJlcXVlc3QSHwoGdGVuYW50GAEgASgJQgq6SAdyBRACGIABSACIAQESLgoGbGFiZWxzGAIgASgLMhkubWV0YWxzdGFjay5hcGkudjIuTGFiZWxzSAGIAQFCCQoHX3RlbmFudEIJCgdfbGFiZWxzIkoKGlByb2plY3RTZXJ2aWNlTGlzdFJlc3BvbnNlEiwKCHByb2plY3RzGAEgAygLMhoubWV0YWxzdGFjay5hcGkudjIuUHJvamVjdDKFAQoOUHJvamVjdFNlcnZpY2UScwoETGlzdBIuLm1ldGFsc3RhY2suYWRtaW4udjIuUHJvamVjdFNlcnZpY2VMaXN0UmVxdWVzdBovLm1ldGFsc3RhY2suYWRtaW4udjIuUHJvamVjdFNlcnZpY2VMaXN0UmVzcG9uc2UiCtLzGAIBAuDzGAJC0AEKF2NvbS5tZXRhbHN0YWNrLmFkbWluLnYyQgxQcm9qZWN0UHJvdG9QAVo5Z2l0aHViLmNvbS9tZXRhbC1zdGFjay9hcGkvZ28vbWV0YWxzdGFjay9hZG1pbi92MjthZG1pbnYyogIDTUFYqgITTWV0YWxzdGFjay5BZG1pbi5WMsoCE01ldGFsc3RhY2tcQWRtaW5cVjLiAh9NZXRhbHN0YWNrXEFkbWluXFYyXEdQQk1ldGFkYXRh6gIVTWV0YWxzdGFjazo6QWRtaW46OlYyYgZwcm90bzM", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_project]);
12
+ /**
13
+ * Describes the message metalstack.admin.v2.ProjectServiceListRequest.
14
+ * Use `create(ProjectServiceListRequestSchema)` to create a new message.
15
+ */
16
+ export const ProjectServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_project, 0);
17
+ /**
18
+ * Describes the message metalstack.admin.v2.ProjectServiceListResponse.
19
+ * Use `create(ProjectServiceListResponseSchema)` to create a new message.
20
+ */
21
+ export const ProjectServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_project, 1);
22
+ /**
23
+ * ProjectService serves project related functions
24
+ *
25
+ * @generated from service metalstack.admin.v2.ProjectService
26
+ */
27
+ export const ProjectService = /*@__PURE__*/ serviceDesc(file_metalstack_admin_v2_project, 0);
@@ -0,0 +1,87 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
+ // @generated from file metalstack/admin/v2/project.proto (package metalstack.admin.v2, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
8
+ import type { Labels } from "../../api/v2/common_pb";
9
+ import { file_metalstack_api_v2_common } from "../../api/v2/common_pb";
10
+ import type { Project } from "../../api/v2/project_pb";
11
+ import { file_metalstack_api_v2_project } from "../../api/v2/project_pb";
12
+ import type { Message } from "@bufbuild/protobuf";
13
+
14
+ /**
15
+ * Describes the file metalstack/admin/v2/project.proto.
16
+ */
17
+ export const file_metalstack_admin_v2_project: GenFile = /*@__PURE__*/
18
+ fileDesc("CiFtZXRhbHN0YWNrL2FkbWluL3YyL3Byb2plY3QucHJvdG8SE21ldGFsc3RhY2suYWRtaW4udjIiggEKGVByb2plY3RTZXJ2aWNlTGlzdFJlcXVlc3QSHwoGdGVuYW50GAEgASgJQgq6SAdyBRACGIABSACIAQESLgoGbGFiZWxzGAIgASgLMhkubWV0YWxzdGFjay5hcGkudjIuTGFiZWxzSAGIAQFCCQoHX3RlbmFudEIJCgdfbGFiZWxzIkoKGlByb2plY3RTZXJ2aWNlTGlzdFJlc3BvbnNlEiwKCHByb2plY3RzGAEgAygLMhoubWV0YWxzdGFjay5hcGkudjIuUHJvamVjdDKFAQoOUHJvamVjdFNlcnZpY2UScwoETGlzdBIuLm1ldGFsc3RhY2suYWRtaW4udjIuUHJvamVjdFNlcnZpY2VMaXN0UmVxdWVzdBovLm1ldGFsc3RhY2suYWRtaW4udjIuUHJvamVjdFNlcnZpY2VMaXN0UmVzcG9uc2UiCtLzGAIBAuDzGAJC0AEKF2NvbS5tZXRhbHN0YWNrLmFkbWluLnYyQgxQcm9qZWN0UHJvdG9QAVo5Z2l0aHViLmNvbS9tZXRhbC1zdGFjay9hcGkvZ28vbWV0YWxzdGFjay9hZG1pbi92MjthZG1pbnYyogIDTUFYqgITTWV0YWxzdGFjay5BZG1pbi5WMsoCE01ldGFsc3RhY2tcQWRtaW5cVjLiAh9NZXRhbHN0YWNrXEFkbWluXFYyXEdQQk1ldGFkYXRh6gIVTWV0YWxzdGFjazo6QWRtaW46OlYyYgZwcm90bzM", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_project]);
19
+
20
+ /**
21
+ * ProjectServiceListRequest is the request payload for the project list request
22
+ *
23
+ * @generated from message metalstack.admin.v2.ProjectServiceListRequest
24
+ */
25
+ export type ProjectServiceListRequest = Message<"metalstack.admin.v2.ProjectServiceListRequest"> & {
26
+ /**
27
+ * Tenant lists only projects of this tenant
28
+ *
29
+ * @generated from field: optional string tenant = 1;
30
+ */
31
+ tenant?: string;
32
+
33
+ /**
34
+ * Labels lists only projects containing the given labels
35
+ *
36
+ * @generated from field: optional metalstack.api.v2.Labels labels = 2;
37
+ */
38
+ labels?: Labels;
39
+ };
40
+
41
+ /**
42
+ * Describes the message metalstack.admin.v2.ProjectServiceListRequest.
43
+ * Use `create(ProjectServiceListRequestSchema)` to create a new message.
44
+ */
45
+ export const ProjectServiceListRequestSchema: GenMessage<ProjectServiceListRequest> = /*@__PURE__*/
46
+ messageDesc(file_metalstack_admin_v2_project, 0);
47
+
48
+ /**
49
+ * ProjectServiceListResponse is the response payload for the project list request
50
+ *
51
+ * @generated from message metalstack.admin.v2.ProjectServiceListResponse
52
+ */
53
+ export type ProjectServiceListResponse = Message<"metalstack.admin.v2.ProjectServiceListResponse"> & {
54
+ /**
55
+ * Projects is a list of all projects
56
+ *
57
+ * @generated from field: repeated metalstack.api.v2.Project projects = 1;
58
+ */
59
+ projects: Project[];
60
+ };
61
+
62
+ /**
63
+ * Describes the message metalstack.admin.v2.ProjectServiceListResponse.
64
+ * Use `create(ProjectServiceListResponseSchema)` to create a new message.
65
+ */
66
+ export const ProjectServiceListResponseSchema: GenMessage<ProjectServiceListResponse> = /*@__PURE__*/
67
+ messageDesc(file_metalstack_admin_v2_project, 1);
68
+
69
+ /**
70
+ * ProjectService serves project related functions
71
+ *
72
+ * @generated from service metalstack.admin.v2.ProjectService
73
+ */
74
+ export const ProjectService: GenService<{
75
+ /**
76
+ * List projects based on various filter criteria
77
+ *
78
+ * @generated from rpc metalstack.admin.v2.ProjectService.List
79
+ */
80
+ list: {
81
+ methodKind: "unary";
82
+ input: typeof ProjectServiceListRequestSchema;
83
+ output: typeof ProjectServiceListResponseSchema;
84
+ },
85
+ }> = /*@__PURE__*/
86
+ serviceDesc(file_metalstack_admin_v2_project, 0);
87
+