@metal-stack/api 0.0.47 → 0.0.48

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/Makefile CHANGED
@@ -2,6 +2,7 @@ VERSION_STRIPPED := $(patsubst v%,%,$(VERSION))
2
2
 
3
3
  .PHONY: install
4
4
  install:
5
+ bun upgrade || true
5
6
  bun install -dd
6
7
 
7
8
  .PHONY: clean
@@ -194,105 +194,147 @@ export declare const PartitionServiceCapacityRequestSchema: GenMessage<Partition
194
194
  * @generated from message metalstack.admin.v2.PartitionServiceCapacityResponse
195
195
  */
196
196
  export type PartitionServiceCapacityResponse = Message<"metalstack.admin.v2.PartitionServiceCapacityResponse"> & {
197
+ /**
198
+ * PartitionCapacity is a capacity report per partition
199
+ *
200
+ * @generated from field: repeated metalstack.admin.v2.PartitionCapacity partition_capacity = 1;
201
+ */
202
+ partitionCapacity: PartitionCapacity[];
203
+ };
204
+ /**
205
+ * Describes the message metalstack.admin.v2.PartitionServiceCapacityResponse.
206
+ * Use `create(PartitionServiceCapacityResponseSchema)` to create a new message.
207
+ */
208
+ export declare const PartitionServiceCapacityResponseSchema: GenMessage<PartitionServiceCapacityResponse>;
209
+ /**
210
+ * PartitionCapacity is the capacity of one partition
211
+ *
212
+ * @generated from message metalstack.admin.v2.PartitionCapacity
213
+ */
214
+ export type PartitionCapacity = Message<"metalstack.admin.v2.PartitionCapacity"> & {
215
+ /**
216
+ * Partition of which this capacity is reported.
217
+ *
218
+ * @generated from field: string partition = 1;
219
+ */
220
+ partition: string;
221
+ /**
222
+ * MachineSizeCapacities is the capacity per machine size.
223
+ *
224
+ * @generated from field: repeated metalstack.admin.v2.MachineSizeCapacity machine_size_capacities = 2;
225
+ */
226
+ machineSizeCapacities: MachineSizeCapacity[];
227
+ };
228
+ /**
229
+ * Describes the message metalstack.admin.v2.PartitionCapacity.
230
+ * Use `create(PartitionCapacitySchema)` to create a new message.
231
+ */
232
+ export declare const PartitionCapacitySchema: GenMessage<PartitionCapacity>;
233
+ /**
234
+ * ServerCapacity is the capacity of one server type, eg machine size
235
+ *
236
+ * @generated from message metalstack.admin.v2.MachineSizeCapacity
237
+ */
238
+ export type MachineSizeCapacity = Message<"metalstack.admin.v2.MachineSizeCapacity"> & {
197
239
  /**
198
240
  * Size is the size id correlating to all counts in this server capacity.
199
241
  *
200
- * @generated from field: string size = 1;
242
+ * @generated from field: string size = 2;
201
243
  */
202
244
  size: string;
203
245
  /**
204
246
  * Total is the total amount of machines for this size.
205
247
  *
206
- * @generated from field: int64 total = 2;
248
+ * @generated from field: int64 total = 3;
207
249
  */
208
250
  total: bigint;
209
251
  /**
210
252
  * PhonedHome is the amount of machines that are currently in the provisioning state "phoned home".
211
253
  *
212
- * @generated from field: int64 phoned_home = 3;
254
+ * @generated from field: int64 phoned_home = 4;
213
255
  */
214
256
  phonedHome: bigint;
215
257
  /**
216
258
  * Waiting is the amount of machines that are currently in the provisioning state "waiting".
217
259
  *
218
- * @generated from field: int64 waiting = 4;
260
+ * @generated from field: int64 waiting = 5;
219
261
  */
220
262
  waiting: bigint;
221
263
  /**
222
264
  * Other is the amount of machines that are neither in the provisioning state waiting nor in phoned home but in another provisioning state.
223
265
  *
224
- * @generated from field: int64 other = 5;
266
+ * @generated from field: int64 other = 6;
225
267
  */
226
268
  other: bigint;
227
269
  /**
228
270
  * OtherMachines contains the machine IDs for machines that were classified into "Other".
229
271
  *
230
- * @generated from field: repeated string other_machines = 6;
272
+ * @generated from field: repeated string other_machines = 7;
231
273
  */
232
274
  otherMachines: string[];
233
275
  /**
234
276
  * Allocated is the amount of machines that are currently allocated.
235
277
  *
236
- * @generated from field: int64 allocated = 7;
278
+ * @generated from field: int64 allocated = 8;
237
279
  */
238
280
  allocated: bigint;
239
281
  /**
240
282
  * Allocatable is the amount of machines in a partition is the amount of machines that can be allocated.
241
283
  * 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.
242
284
  *
243
- * @generated from field: int64 allocatable = 8;
285
+ * @generated from field: int64 allocatable = 9;
244
286
  */
245
287
  allocatable: bigint;
246
288
  /**
247
289
  * Free is the amount of machines in a partition that can be freely allocated at any given moment by a project.
248
290
  * 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.
249
291
  *
250
- * @generated from field: int64 free = 9;
292
+ * @generated from field: int64 free = 10;
251
293
  */
252
294
  free: bigint;
253
295
  /**
254
296
  * Unavailable is the amount of machine in a partition that are currently not allocatable because they are not waiting or
255
297
  * not in the machine state "available", e.g. locked or reserved.
256
298
  *
257
- * @generated from field: int64 unavailable = 10;
299
+ * @generated from field: int64 unavailable = 11;
258
300
  */
259
301
  unavailable: bigint;
260
302
  /**
261
303
  * Faulty is the amount of machines that are neither allocated nor in the pool of available machines because they report an error.
262
304
  *
263
- * @generated from field: int64 faulty = 11;
305
+ * @generated from field: int64 faulty = 12;
264
306
  */
265
307
  faulty: bigint;
266
308
  /**
267
309
  * FaultyMachines contains the machine IDs for machines that were classified into "Faulty".
268
310
  *
269
- * @generated from field: repeated string faulty_machines = 12;
311
+ * @generated from field: repeated string faulty_machines = 13;
270
312
  */
271
313
  faultyMachines: string[];
272
314
  /**
273
315
  * Reservations is the amount of reservations made for this size.
274
316
  *
275
- * @generated from field: int64 reservations = 13;
317
+ * @generated from field: int64 reservations = 14;
276
318
  */
277
319
  reservations: bigint;
278
320
  /**
279
321
  * UsedReservations is the amount of reservations already used up for this size.
280
322
  *
281
- * @generated from field: int64 used_reservations = 14;
323
+ * @generated from field: int64 used_reservations = 15;
282
324
  */
283
325
  usedReservations: bigint;
284
326
  /**
285
327
  * RemainingReservations is the amount of reservations remaining for this size.
286
328
  *
287
- * @generated from field: int64 remaining_reservations = 15;
329
+ * @generated from field: int64 remaining_reservations = 16;
288
330
  */
289
331
  remainingReservations: bigint;
290
332
  };
291
333
  /**
292
- * Describes the message metalstack.admin.v2.PartitionServiceCapacityResponse.
293
- * Use `create(PartitionServiceCapacityResponseSchema)` to create a new message.
334
+ * Describes the message metalstack.admin.v2.MachineSizeCapacity.
335
+ * Use `create(MachineSizeCapacitySchema)` to create a new message.
294
336
  */
295
- export declare const PartitionServiceCapacityResponseSchema: GenMessage<PartitionServiceCapacityResponse>;
337
+ export declare const MachineSizeCapacitySchema: GenMessage<MachineSizeCapacity>;
296
338
  /**
297
339
  * PartitionService serves partition address related functions
298
340
  *
@@ -9,7 +9,7 @@ import { file_metalstack_api_v2_predefined_rules } from "../../api/v2/predefined
9
9
  /**
10
10
  * Describes the file metalstack/admin/v2/partition.proto.
11
11
  */
12
- export const file_metalstack_admin_v2_partition = /*@__PURE__*/ fileDesc("CiNtZXRhbHN0YWNrL2FkbWluL3YyL3BhcnRpdGlvbi5wcm90bxITbWV0YWxzdGFjay5hZG1pbi52MiJQCh1QYXJ0aXRpb25TZXJ2aWNlQ3JlYXRlUmVxdWVzdBIvCglwYXJ0aXRpb24YASABKAsyHC5tZXRhbHN0YWNrLmFwaS52Mi5QYXJ0aXRpb24izwMKHVBhcnRpdGlvblNlcnZpY2VVcGRhdGVSZXF1ZXN0EhcKAmlkGAEgASgJQgu6SAhyBtCzrrECARI6Cgt1cGRhdGVfbWV0YRgCIAEoCzIdLm1ldGFsc3RhY2suYXBpLnYyLlVwZGF0ZU1ldGFCBrpIA8gBARIlCgtkZXNjcmlwdGlvbhgDIAEoCUILukgIcgbIs66xAgFIAIgBARJJChJib290X2NvbmZpZ3VyYXRpb24YBCABKAsyLS5tZXRhbHN0YWNrLmFwaS52Mi5QYXJ0aXRpb25Cb290Q29uZmlndXJhdGlvbhI6CgpkbnNfc2VydmVyGAUgAygLMhwubWV0YWxzdGFjay5hcGkudjIuRE5TU2VydmVyQgi6SAWSAQIQAxI6CgpudHBfc2VydmVyGAYgAygLMhwubWV0YWxzdGFjay5hcGkudjIuTlRQU2VydmVyQgi6SAWSAQIQChIeChZtZ210X3NlcnZpY2VfYWRkcmVzc2VzGAcgAygJEjQKBmxhYmVscxgIIAEo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IVTWV0YWxzdGFjazo6QWRtaW46OlYyYgZwcm90bzM", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_partition, file_metalstack_api_v2_predefined_rules]);
12
+ export const file_metalstack_admin_v2_partition = /*@__PURE__*/ fileDesc("CiNtZXRhbHN0YWNrL2FkbWluL3YyL3BhcnRpdGlvbi5wcm90bxITbWV0YWxzdGFjay5hZG1pbi52MiJQCh1QYXJ0aXRpb25TZXJ2aWNlQ3JlYXRlUmVxdWVzdBIvCglwYXJ0aXRpb24YASABKAsyHC5tZXRhbHN0YWNrLmFwaS52Mi5QYXJ0aXRpb24izwMKHVBhcnRpdGlvblNlcnZpY2VVcGRhdGVSZXF1ZXN0EhcKAmlkGAEgASgJQgu6SAhyBtCzrrECARI6Cgt1cGRhdGVfbWV0YRgCIAEoCzIdLm1ldGFsc3RhY2suYXBpLnYyLlVwZGF0ZU1ldGFCBrpIA8gBARIlCgtkZXNjcmlwdGlvbhgDIAEoCUILukgIcgbIs66xAgFIAIgBARJJChJib290X2NvbmZpZ3VyYXRpb24YBCABKAsyLS5tZXRhbHN0YWNrLmFwaS52Mi5QYXJ0aXRpb25Cb290Q29uZmlndXJhdGlvbhI6CgpkbnNfc2VydmVyGAUgAygLMhwubWV0YWxzdGFjay5hcGkudjIuRE5TU2VydmVyQgi6SAWSAQIQAxI6CgpudHBfc2VydmVyGAYgAygLMhwubWV0YWxzdGFjay5hcGkudjIuTlRQU2VydmVyQgi6SAWSAQIQChIeChZtZ210X3NlcnZpY2VfYWRkcmVzc2VzGAcgAygJEjQKBmxhYmVscxgIIAEoCzIfLm1ldGFsc3RhY2suYXBpLnYyLlVwZGF0ZUxhYmVsc0gBiAEBQg4KDF9kZXNjcmlwdGlvbkIJCgdfbGFiZWxzIjgKHVBhcnRpdGlvblNlcnZpY2VEZWxldGVSZXF1ZXN0EhcKAmlkGAEgASgJQgu6SAhyBtCzrrECASJRCh5QYXJ0aXRpb25TZXJ2aWNlQ3JlYXRlUmVzc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ICH01ldGFsc3RhY2tcQWRtaW5cVjJcR1BCTWV0YWRhdGHqAhVNZXRhbHN0YWNrOjpBZG1pbjo6VjJiBnByb3RvMw", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_partition, file_metalstack_api_v2_predefined_rules]);
13
13
  /**
14
14
  * Describes the message metalstack.admin.v2.PartitionServiceCreateRequest.
15
15
  * Use `create(PartitionServiceCreateRequestSchema)` to create a new message.
@@ -50,6 +50,16 @@ export const PartitionServiceCapacityRequestSchema = /*@__PURE__*/ messageDesc(f
50
50
  * Use `create(PartitionServiceCapacityResponseSchema)` to create a new message.
51
51
  */
52
52
  export const PartitionServiceCapacityResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_partition, 7);
53
+ /**
54
+ * Describes the message metalstack.admin.v2.PartitionCapacity.
55
+ * Use `create(PartitionCapacitySchema)` to create a new message.
56
+ */
57
+ export const PartitionCapacitySchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_partition, 8);
58
+ /**
59
+ * Describes the message metalstack.admin.v2.MachineSizeCapacity.
60
+ * Use `create(MachineSizeCapacitySchema)` to create a new message.
61
+ */
62
+ export const MachineSizeCapacitySchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_partition, 9);
53
63
  /**
54
64
  * PartitionService serves partition address related functions
55
65
  *
@@ -16,7 +16,7 @@ import type { Message } from "@bufbuild/protobuf";
16
16
  * Describes the file metalstack/admin/v2/partition.proto.
17
17
  */
18
18
  export const file_metalstack_admin_v2_partition: GenFile = /*@__PURE__*/
19
- fileDesc("CiNtZXRhbHN0YWNrL2FkbWluL3YyL3BhcnRpdGlvbi5wcm90bxITbWV0YWxzdGFjay5hZG1pbi52MiJQCh1QYXJ0aXRpb25TZXJ2aWNlQ3JlYXRlUmVxdWVzdBIvCglwYXJ0aXRpb24YASABKAsyHC5tZXRhbHN0YWNrLmFwaS52Mi5QYXJ0aXRpb24izwMKHVBhcnRpdGlvblNlcnZpY2VVcGRhdG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J0aXRpb25TZXJ2aWNlRGVsZXRlUmVzcG9uc2UiCdLzGAEB4PMYARKDAQoIQ2FwYWNpdHkSNC5tZXRhbHN0YWNrLmFkbWluLnYyLlBhcnRpdGlvblNlcnZpY2VDYXBhY2l0eVJlcXVlc3QaNS5tZXRhbHN0YWNrLmFkbWluLnYyLlBhcnRpdGlvblNlcnZpY2VDYXBhY2l0eVJlc3BvbnNlIgrS8xgCAgHg8xgCQtIBChdjb20ubWV0YWxzdGFjay5hZG1pbi52MkIOUGFydGl0aW9uUHJvdG9QAVo5Z2l0aHViLmNvbS9tZXRhbC1zdGFjay9hcGkvZ28vbWV0YWxzdGFjay9hZG1pbi92MjthZG1pbnYyogIDTUFYqgITTWV0YWxzdGFjay5BZG1pbi5WMsoCE01ldGFsc3RhY2tcQWRtaW5cVjLiAh9NZXRhbHN0YWNrXEFkbWluXFYyXEdQQk1ldGFkYXRh6gIVTWV0YWxzdGFjazo6QWRtaW46OlYyYgZwcm90bzM", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_partition, file_metalstack_api_v2_predefined_rules]);
19
+ fileDesc("CiNtZXRhbHN0YWNrL2FkbWluL3YyL3BhcnRpdGlvbi5wcm90bxITbWV0YWxzdGFjay5hZG1pbi52MiJQCh1QYXJ0aXRpb25TZXJ2aWNlQ3JlYXRlUmVxdWVzdBIvCglwYXJ0aXRpb24YASABKAsyHC5tZXRhbHN0YWNrLmFwaS52Mi5QYXJ0aXRpb24izwMKHVBhcnRpdGlvblNlcnZpY2VVcGRhdGVSZXF1ZXN0EhcKAmlkGAEgASgJQgu6SAhyBtCzrrECARI6Cgt1cGRhdGVfbWV0YRgCIAEoCzIdLm1ldGFsc3RhY2suYXBpLnYyLlVwZGF0ZU1ldGFCBrpIA8gBARIlCgtkZXNjcmlwdGlvbhgDIAEoCUILukgIcgbIs66xAgFIAIgBARJJChJib290X2NvbmZpZ3VyYXRpb24YBCABKAsyLS5tZXRhbHN0YWNrLmFwaS52Mi5QY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XRhbHN0YWNrLmFkbWluLnYyLlBhcnRpdGlvblNlcnZpY2VEZWxldGVSZXNwb25zZSIJ0vMYAQHg8xgBEoMBCghDYXBhY2l0eRI0Lm1ldGFsc3RhY2suYWRtaW4udjIuUGFydGl0aW9uU2VydmljZUNhcGFjaXR5UmVxdWVzdBo1Lm1ldGFsc3RhY2suYWRtaW4udjIuUGFydGl0aW9uU2VydmljZUNhcGFjaXR5UmVzcG9uc2UiCtLzGAICAeDzGAJC0gEKF2NvbS5tZXRhbHN0YWNrLmFkbWluLnYyQg5QYXJ0aXRpb25Qcm90b1ABWjlnaXRodWIuY29tL21ldGFsLXN0YWNrL2FwaS9nby9tZXRhbHN0YWNrL2FkbWluL3YyO2FkbWludjKiAgNNQViqAhNNZXRhbHN0YWNrLkFkbWluLlYyygITTWV0YWxzdGFja1xBZG1pblxWMuICH01ldGFsc3RhY2tcQWRtaW5cVjJcR1BCTWV0YWRhdGHqAhVNZXRhbHN0YWNrOjpBZG1pbjo6VjJiBnByb3RvMw", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_partition, file_metalstack_api_v2_predefined_rules]);
20
20
 
21
21
  /**
22
22
  * PartitionServiceCreateRequest is the request payload for a partition create request
@@ -236,52 +236,101 @@ export const PartitionServiceCapacityRequestSchema: GenMessage<PartitionServiceC
236
236
  * @generated from message metalstack.admin.v2.PartitionServiceCapacityResponse
237
237
  */
238
238
  export type PartitionServiceCapacityResponse = Message<"metalstack.admin.v2.PartitionServiceCapacityResponse"> & {
239
+ /**
240
+ * PartitionCapacity is a capacity report per partition
241
+ *
242
+ * @generated from field: repeated metalstack.admin.v2.PartitionCapacity partition_capacity = 1;
243
+ */
244
+ partitionCapacity: PartitionCapacity[];
245
+ };
246
+
247
+ /**
248
+ * Describes the message metalstack.admin.v2.PartitionServiceCapacityResponse.
249
+ * Use `create(PartitionServiceCapacityResponseSchema)` to create a new message.
250
+ */
251
+ export const PartitionServiceCapacityResponseSchema: GenMessage<PartitionServiceCapacityResponse> = /*@__PURE__*/
252
+ messageDesc(file_metalstack_admin_v2_partition, 7);
253
+
254
+ /**
255
+ * PartitionCapacity is the capacity of one partition
256
+ *
257
+ * @generated from message metalstack.admin.v2.PartitionCapacity
258
+ */
259
+ export type PartitionCapacity = Message<"metalstack.admin.v2.PartitionCapacity"> & {
260
+ /**
261
+ * Partition of which this capacity is reported.
262
+ *
263
+ * @generated from field: string partition = 1;
264
+ */
265
+ partition: string;
266
+
267
+ /**
268
+ * MachineSizeCapacities is the capacity per machine size.
269
+ *
270
+ * @generated from field: repeated metalstack.admin.v2.MachineSizeCapacity machine_size_capacities = 2;
271
+ */
272
+ machineSizeCapacities: MachineSizeCapacity[];
273
+ };
274
+
275
+ /**
276
+ * Describes the message metalstack.admin.v2.PartitionCapacity.
277
+ * Use `create(PartitionCapacitySchema)` to create a new message.
278
+ */
279
+ export const PartitionCapacitySchema: GenMessage<PartitionCapacity> = /*@__PURE__*/
280
+ messageDesc(file_metalstack_admin_v2_partition, 8);
281
+
282
+ /**
283
+ * ServerCapacity is the capacity of one server type, eg machine size
284
+ *
285
+ * @generated from message metalstack.admin.v2.MachineSizeCapacity
286
+ */
287
+ export type MachineSizeCapacity = Message<"metalstack.admin.v2.MachineSizeCapacity"> & {
239
288
  /**
240
289
  * Size is the size id correlating to all counts in this server capacity.
241
290
  *
242
- * @generated from field: string size = 1;
291
+ * @generated from field: string size = 2;
243
292
  */
244
293
  size: string;
245
294
 
246
295
  /**
247
296
  * Total is the total amount of machines for this size.
248
297
  *
249
- * @generated from field: int64 total = 2;
298
+ * @generated from field: int64 total = 3;
250
299
  */
251
300
  total: bigint;
252
301
 
253
302
  /**
254
303
  * PhonedHome is the amount of machines that are currently in the provisioning state "phoned home".
255
304
  *
256
- * @generated from field: int64 phoned_home = 3;
305
+ * @generated from field: int64 phoned_home = 4;
257
306
  */
258
307
  phonedHome: bigint;
259
308
 
260
309
  /**
261
310
  * Waiting is the amount of machines that are currently in the provisioning state "waiting".
262
311
  *
263
- * @generated from field: int64 waiting = 4;
312
+ * @generated from field: int64 waiting = 5;
264
313
  */
265
314
  waiting: bigint;
266
315
 
267
316
  /**
268
317
  * Other is the amount of machines that are neither in the provisioning state waiting nor in phoned home but in another provisioning state.
269
318
  *
270
- * @generated from field: int64 other = 5;
319
+ * @generated from field: int64 other = 6;
271
320
  */
272
321
  other: bigint;
273
322
 
274
323
  /**
275
324
  * OtherMachines contains the machine IDs for machines that were classified into "Other".
276
325
  *
277
- * @generated from field: repeated string other_machines = 6;
326
+ * @generated from field: repeated string other_machines = 7;
278
327
  */
279
328
  otherMachines: string[];
280
329
 
281
330
  /**
282
331
  * Allocated is the amount of machines that are currently allocated.
283
332
  *
284
- * @generated from field: int64 allocated = 7;
333
+ * @generated from field: int64 allocated = 8;
285
334
  */
286
335
  allocated: bigint;
287
336
 
@@ -289,7 +338,7 @@ export type PartitionServiceCapacityResponse = Message<"metalstack.admin.v2.Part
289
338
  * Allocatable is the amount of machines in a partition is the amount of machines that can be allocated.
290
339
  * 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.
291
340
  *
292
- * @generated from field: int64 allocatable = 8;
341
+ * @generated from field: int64 allocatable = 9;
293
342
  */
294
343
  allocatable: bigint;
295
344
 
@@ -297,7 +346,7 @@ export type PartitionServiceCapacityResponse = Message<"metalstack.admin.v2.Part
297
346
  * Free is the amount of machines in a partition that can be freely allocated at any given moment by a project.
298
347
  * 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.
299
348
  *
300
- * @generated from field: int64 free = 9;
349
+ * @generated from field: int64 free = 10;
301
350
  */
302
351
  free: bigint;
303
352
 
@@ -305,52 +354,52 @@ export type PartitionServiceCapacityResponse = Message<"metalstack.admin.v2.Part
305
354
  * Unavailable is the amount of machine in a partition that are currently not allocatable because they are not waiting or
306
355
  * not in the machine state "available", e.g. locked or reserved.
307
356
  *
308
- * @generated from field: int64 unavailable = 10;
357
+ * @generated from field: int64 unavailable = 11;
309
358
  */
310
359
  unavailable: bigint;
311
360
 
312
361
  /**
313
362
  * Faulty is the amount of machines that are neither allocated nor in the pool of available machines because they report an error.
314
363
  *
315
- * @generated from field: int64 faulty = 11;
364
+ * @generated from field: int64 faulty = 12;
316
365
  */
317
366
  faulty: bigint;
318
367
 
319
368
  /**
320
369
  * FaultyMachines contains the machine IDs for machines that were classified into "Faulty".
321
370
  *
322
- * @generated from field: repeated string faulty_machines = 12;
371
+ * @generated from field: repeated string faulty_machines = 13;
323
372
  */
324
373
  faultyMachines: string[];
325
374
 
326
375
  /**
327
376
  * Reservations is the amount of reservations made for this size.
328
377
  *
329
- * @generated from field: int64 reservations = 13;
378
+ * @generated from field: int64 reservations = 14;
330
379
  */
331
380
  reservations: bigint;
332
381
 
333
382
  /**
334
383
  * UsedReservations is the amount of reservations already used up for this size.
335
384
  *
336
- * @generated from field: int64 used_reservations = 14;
385
+ * @generated from field: int64 used_reservations = 15;
337
386
  */
338
387
  usedReservations: bigint;
339
388
 
340
389
  /**
341
390
  * RemainingReservations is the amount of reservations remaining for this size.
342
391
  *
343
- * @generated from field: int64 remaining_reservations = 15;
392
+ * @generated from field: int64 remaining_reservations = 16;
344
393
  */
345
394
  remainingReservations: bigint;
346
395
  };
347
396
 
348
397
  /**
349
- * Describes the message metalstack.admin.v2.PartitionServiceCapacityResponse.
350
- * Use `create(PartitionServiceCapacityResponseSchema)` to create a new message.
398
+ * Describes the message metalstack.admin.v2.MachineSizeCapacity.
399
+ * Use `create(MachineSizeCapacitySchema)` to create a new message.
351
400
  */
352
- export const PartitionServiceCapacityResponseSchema: GenMessage<PartitionServiceCapacityResponse> = /*@__PURE__*/
353
- messageDesc(file_metalstack_admin_v2_partition, 7);
401
+ export const MachineSizeCapacitySchema: GenMessage<MachineSizeCapacity> = /*@__PURE__*/
402
+ messageDesc(file_metalstack_admin_v2_partition, 9);
354
403
 
355
404
  /**
356
405
  * PartitionService serves partition address related functions
package/package.json CHANGED
@@ -19,5 +19,5 @@
19
19
  "files": [
20
20
  "js/*"
21
21
  ],
22
- "version": "0.0.47"
22
+ "version": "0.0.48"
23
23
  }