@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,261 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Labels, Meta } from "./common_pb";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file metalstack/api/v2/size.proto.
6
+ */
7
+ export declare const file_metalstack_api_v2_size: GenFile;
8
+ /**
9
+ * SizeServiceGetRequest is the request payload for a size get request
10
+ *
11
+ * @generated from message metalstack.api.v2.SizeServiceGetRequest
12
+ */
13
+ export type SizeServiceGetRequest = Message<"metalstack.api.v2.SizeServiceGetRequest"> & {
14
+ /**
15
+ * ID of the size to get
16
+ *
17
+ * @generated from field: string id = 1;
18
+ */
19
+ id: string;
20
+ };
21
+ /**
22
+ * Describes the message metalstack.api.v2.SizeServiceGetRequest.
23
+ * Use `create(SizeServiceGetRequestSchema)` to create a new message.
24
+ */
25
+ export declare const SizeServiceGetRequestSchema: GenMessage<SizeServiceGetRequest>;
26
+ /**
27
+ * SizeServiceListRequest is the request payload for a size list request
28
+ *
29
+ * @generated from message metalstack.api.v2.SizeServiceListRequest
30
+ */
31
+ export type SizeServiceListRequest = Message<"metalstack.api.v2.SizeServiceListRequest"> & {
32
+ /**
33
+ * Query for sizes
34
+ *
35
+ * @generated from field: metalstack.api.v2.SizeQuery query = 1;
36
+ */
37
+ query?: SizeQuery;
38
+ };
39
+ /**
40
+ * Describes the message metalstack.api.v2.SizeServiceListRequest.
41
+ * Use `create(SizeServiceListRequestSchema)` to create a new message.
42
+ */
43
+ export declare const SizeServiceListRequestSchema: GenMessage<SizeServiceListRequest>;
44
+ /**
45
+ * SizeServiceGetResponse is the response payload for a size get request
46
+ *
47
+ * @generated from message metalstack.api.v2.SizeServiceGetResponse
48
+ */
49
+ export type SizeServiceGetResponse = Message<"metalstack.api.v2.SizeServiceGetResponse"> & {
50
+ /**
51
+ * Size the size
52
+ *
53
+ * @generated from field: metalstack.api.v2.Size size = 1;
54
+ */
55
+ size?: Size;
56
+ };
57
+ /**
58
+ * Describes the message metalstack.api.v2.SizeServiceGetResponse.
59
+ * Use `create(SizeServiceGetResponseSchema)` to create a new message.
60
+ */
61
+ export declare const SizeServiceGetResponseSchema: GenMessage<SizeServiceGetResponse>;
62
+ /**
63
+ * SizeServiceListResponse is the response payload for a size list request
64
+ *
65
+ * @generated from message metalstack.api.v2.SizeServiceListResponse
66
+ */
67
+ export type SizeServiceListResponse = Message<"metalstack.api.v2.SizeServiceListResponse"> & {
68
+ /**
69
+ * Sizes the sizes
70
+ *
71
+ * @generated from field: repeated metalstack.api.v2.Size sizes = 1;
72
+ */
73
+ sizes: Size[];
74
+ };
75
+ /**
76
+ * Describes the message metalstack.api.v2.SizeServiceListResponse.
77
+ * Use `create(SizeServiceListResponseSchema)` to create a new message.
78
+ */
79
+ export declare const SizeServiceListResponseSchema: GenMessage<SizeServiceListResponse>;
80
+ /**
81
+ * Size
82
+ *
83
+ * @generated from message metalstack.api.v2.Size
84
+ */
85
+ export type Size = Message<"metalstack.api.v2.Size"> & {
86
+ /**
87
+ * Id of this size
88
+ *
89
+ * @generated from field: string id = 1;
90
+ */
91
+ id: string;
92
+ /**
93
+ * Meta for this size
94
+ *
95
+ * @generated from field: metalstack.api.v2.Meta meta = 2;
96
+ */
97
+ meta?: Meta;
98
+ /**
99
+ * Name of this size
100
+ *
101
+ * @generated from field: optional string name = 4;
102
+ */
103
+ name?: string;
104
+ /**
105
+ * Description of this size
106
+ *
107
+ * @generated from field: optional string description = 5;
108
+ */
109
+ description?: string;
110
+ /**
111
+ * Constraints which must match that a specific machine is considered of this size
112
+ *
113
+ * @generated from field: repeated metalstack.api.v2.SizeConstraint constraints = 6;
114
+ */
115
+ constraints: SizeConstraint[];
116
+ };
117
+ /**
118
+ * Describes the message metalstack.api.v2.Size.
119
+ * Use `create(SizeSchema)` to create a new message.
120
+ */
121
+ export declare const SizeSchema: GenMessage<Size>;
122
+ /**
123
+ * SizeConstraint defines the boundaries for certain type of machine property which must match to identify this machine as this size.
124
+ *
125
+ * @generated from message metalstack.api.v2.SizeConstraint
126
+ */
127
+ export type SizeConstraint = Message<"metalstack.api.v2.SizeConstraint"> & {
128
+ /**
129
+ * Type a machine matches to a size in order to make them easier to categorize
130
+ *
131
+ * @generated from field: metalstack.api.v2.SizeConstraintType type = 1;
132
+ */
133
+ type: SizeConstraintType;
134
+ /**
135
+ * Min the minimum value of the constraint
136
+ *
137
+ * @generated from field: uint64 min = 2;
138
+ */
139
+ min: bigint;
140
+ /**
141
+ * Max the maximum value of the constraint
142
+ *
143
+ * @generated from field: uint64 max = 3;
144
+ */
145
+ max: bigint;
146
+ /**
147
+ * Identifier glob pattern which matches to the given type, for example gpu pci id
148
+ *
149
+ * @generated from field: optional string identifier = 4;
150
+ */
151
+ identifier?: string;
152
+ };
153
+ /**
154
+ * Describes the message metalstack.api.v2.SizeConstraint.
155
+ * Use `create(SizeConstraintSchema)` to create a new message.
156
+ */
157
+ export declare const SizeConstraintSchema: GenMessage<SizeConstraint>;
158
+ /**
159
+ * SizeQuery is used to search sizes
160
+ *
161
+ * @generated from message metalstack.api.v2.SizeQuery
162
+ */
163
+ export type SizeQuery = Message<"metalstack.api.v2.SizeQuery"> & {
164
+ /**
165
+ * ID of the size to get
166
+ *
167
+ * @generated from field: optional string id = 1;
168
+ */
169
+ id?: string;
170
+ /**
171
+ * Name of the size to query
172
+ *
173
+ * @generated from field: optional string name = 2;
174
+ */
175
+ name?: string;
176
+ /**
177
+ * Description of the size to query
178
+ *
179
+ * @generated from field: optional string description = 3;
180
+ */
181
+ description?: string;
182
+ /**
183
+ * Labels lists only sizes containing the given labels
184
+ *
185
+ * @generated from field: optional metalstack.api.v2.Labels labels = 4;
186
+ */
187
+ labels?: Labels;
188
+ };
189
+ /**
190
+ * Describes the message metalstack.api.v2.SizeQuery.
191
+ * Use `create(SizeQuerySchema)` to create a new message.
192
+ */
193
+ export declare const SizeQuerySchema: GenMessage<SizeQuery>;
194
+ /**
195
+ * SizeConstraintType defines the property for which a constraint is defined
196
+ *
197
+ * @generated from enum metalstack.api.v2.SizeConstraintType
198
+ */
199
+ export declare enum SizeConstraintType {
200
+ /**
201
+ * SIZE_CONSTRAINT_TYPE_UNSPECIFIED type is not specified
202
+ *
203
+ * @generated from enum value: SIZE_CONSTRAINT_TYPE_UNSPECIFIED = 0;
204
+ */
205
+ UNSPECIFIED = 0,
206
+ /**
207
+ * SIZE_CONSTRAINT_TYPE_CORES defines the number of cores as property
208
+ *
209
+ * @generated from enum value: SIZE_CONSTRAINT_TYPE_CORES = 1;
210
+ */
211
+ CORES = 1,
212
+ /**
213
+ * SIZE_CONSTRAINT_TYPE_MEMORY defines the amount of memory as property
214
+ *
215
+ * @generated from enum value: SIZE_CONSTRAINT_TYPE_MEMORY = 2;
216
+ */
217
+ MEMORY = 2,
218
+ /**
219
+ * SIZE_CONSTRAINT_TYPE_STORAGE defines the amount of storage as property
220
+ *
221
+ * @generated from enum value: SIZE_CONSTRAINT_TYPE_STORAGE = 3;
222
+ */
223
+ STORAGE = 3,
224
+ /**
225
+ * SIZE_CONSTRAINT_TYPE_GPU defines the number of gpus as property
226
+ *
227
+ * @generated from enum value: SIZE_CONSTRAINT_TYPE_GPU = 4;
228
+ */
229
+ GPU = 4
230
+ }
231
+ /**
232
+ * Describes the enum metalstack.api.v2.SizeConstraintType.
233
+ */
234
+ export declare const SizeConstraintTypeSchema: GenEnum<SizeConstraintType>;
235
+ /**
236
+ * SizeService serves size related functions
237
+ *
238
+ * @generated from service metalstack.api.v2.SizeService
239
+ */
240
+ export declare const SizeService: GenService<{
241
+ /**
242
+ * Get a size
243
+ *
244
+ * @generated from rpc metalstack.api.v2.SizeService.Get
245
+ */
246
+ get: {
247
+ methodKind: "unary";
248
+ input: typeof SizeServiceGetRequestSchema;
249
+ output: typeof SizeServiceGetResponseSchema;
250
+ };
251
+ /**
252
+ * List all sizes
253
+ *
254
+ * @generated from rpc metalstack.api.v2.SizeService.List
255
+ */
256
+ list: {
257
+ methodKind: "unary";
258
+ input: typeof SizeServiceListRequestSchema;
259
+ output: typeof SizeServiceListResponseSchema;
260
+ };
261
+ }>;
@@ -0,0 +1,94 @@
1
+ // @generated by protoc-gen-es v2.10.2 with parameter "target=ts"
2
+ // @generated from file metalstack/api/v2/size.proto (package metalstack.api.v2, syntax proto3)
3
+ /* eslint-disable */
4
+ import { enumDesc, 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 "./common_pb";
7
+ import { file_metalstack_api_v2_predefined_rules } from "./predefined_rules_pb";
8
+ /**
9
+ * Describes the file metalstack/api/v2/size.proto.
10
+ */
11
+ export const file_metalstack_api_v2_size = /*@__PURE__*/ fileDesc("ChxtZXRhbHN0YWNrL2FwaS92Mi9zaXplLnByb3RvEhFtZXRhbHN0YWNrLmFwaS52MiIvChVTaXplU2VydmljZUdldFJlcXVlc3QSFgoCaWQYASABKAlCCrpIB3IFEAIYgAEiRQoWU2l6ZVNlcnZpY2VMaXN0UmVxdWVzdBIrCgVxdWVyeRgBIAEoCzIcLm1ldGFsc3RhY2suYXBpLnYyLlNpemVRdWVyeSI/ChZTaXplU2VydmljZUdldFJlc3BvbnNlEiUKBHNpemUYASABKAsyFy5tZXRhbHN0YWNrLmFwaS52Mi5TaXplIkEKF1NpemVTZXJ2aWNlTGlzdFJlc3BvbnNlEiYKBXNpemVzGAEgAygLMhcubWV0YWxzdGFjay5hcGkudjIuU2l6ZSLdAQoEU2l6ZRIWCgJpZBgBIAEoCUIKukgHcgUQAhiAARIlCgRtZ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ZXQSKC5tZXRhbHN0YWNrLmFwaS52Mi5TaXplU2VydmljZUdldFJlcXVlc3QaKS5tZXRhbHN0YWNrLmFwaS52Mi5TaXplU2VydmljZUdldFJlc3BvbnNlIgjY8xgD4PMYAhJnCgRMaXN0EikubWV0YWxzdGFjay5hcGkudjIuU2l6ZVNlcnZpY2VMaXN0UmVxdWVzdBoqLm1ldGFsc3RhY2suYXBpLnYyLlNpemVTZXJ2aWNlTGlzdFJlc3BvbnNlIgjY8xgD4PMYAkK/AQoVY29tLm1ldGFsc3RhY2suYXBpLnYyQglTaXplUHJvdG9QAVo1Z2l0aHViLmNvbS9tZXRhbC1zdGFjay9hcGkvZ28vbWV0YWxzdGFjay9hcGkvdjI7YXBpdjKiAgNNQViqAhFNZXRhbHN0YWNrLkFwaS5WMsoCEU1ldGFsc3RhY2tcQXBpXFYy4gIdTWV0YWxzdGFja1xBcGlcVjJcR1BCTWV0YWRhdGHqAhNNZXRhbHN0YWNrOjpBcGk6OlYyYgZwcm90bzM", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_predefined_rules]);
12
+ /**
13
+ * Describes the message metalstack.api.v2.SizeServiceGetRequest.
14
+ * Use `create(SizeServiceGetRequestSchema)` to create a new message.
15
+ */
16
+ export const SizeServiceGetRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_size, 0);
17
+ /**
18
+ * Describes the message metalstack.api.v2.SizeServiceListRequest.
19
+ * Use `create(SizeServiceListRequestSchema)` to create a new message.
20
+ */
21
+ export const SizeServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_size, 1);
22
+ /**
23
+ * Describes the message metalstack.api.v2.SizeServiceGetResponse.
24
+ * Use `create(SizeServiceGetResponseSchema)` to create a new message.
25
+ */
26
+ export const SizeServiceGetResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_size, 2);
27
+ /**
28
+ * Describes the message metalstack.api.v2.SizeServiceListResponse.
29
+ * Use `create(SizeServiceListResponseSchema)` to create a new message.
30
+ */
31
+ export const SizeServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_size, 3);
32
+ /**
33
+ * Describes the message metalstack.api.v2.Size.
34
+ * Use `create(SizeSchema)` to create a new message.
35
+ */
36
+ export const SizeSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_size, 4);
37
+ /**
38
+ * Describes the message metalstack.api.v2.SizeConstraint.
39
+ * Use `create(SizeConstraintSchema)` to create a new message.
40
+ */
41
+ export const SizeConstraintSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_size, 5);
42
+ /**
43
+ * Describes the message metalstack.api.v2.SizeQuery.
44
+ * Use `create(SizeQuerySchema)` to create a new message.
45
+ */
46
+ export const SizeQuerySchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_size, 6);
47
+ /**
48
+ * SizeConstraintType defines the property for which a constraint is defined
49
+ *
50
+ * @generated from enum metalstack.api.v2.SizeConstraintType
51
+ */
52
+ export var SizeConstraintType;
53
+ (function (SizeConstraintType) {
54
+ /**
55
+ * SIZE_CONSTRAINT_TYPE_UNSPECIFIED type is not specified
56
+ *
57
+ * @generated from enum value: SIZE_CONSTRAINT_TYPE_UNSPECIFIED = 0;
58
+ */
59
+ SizeConstraintType[SizeConstraintType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
60
+ /**
61
+ * SIZE_CONSTRAINT_TYPE_CORES defines the number of cores as property
62
+ *
63
+ * @generated from enum value: SIZE_CONSTRAINT_TYPE_CORES = 1;
64
+ */
65
+ SizeConstraintType[SizeConstraintType["CORES"] = 1] = "CORES";
66
+ /**
67
+ * SIZE_CONSTRAINT_TYPE_MEMORY defines the amount of memory as property
68
+ *
69
+ * @generated from enum value: SIZE_CONSTRAINT_TYPE_MEMORY = 2;
70
+ */
71
+ SizeConstraintType[SizeConstraintType["MEMORY"] = 2] = "MEMORY";
72
+ /**
73
+ * SIZE_CONSTRAINT_TYPE_STORAGE defines the amount of storage as property
74
+ *
75
+ * @generated from enum value: SIZE_CONSTRAINT_TYPE_STORAGE = 3;
76
+ */
77
+ SizeConstraintType[SizeConstraintType["STORAGE"] = 3] = "STORAGE";
78
+ /**
79
+ * SIZE_CONSTRAINT_TYPE_GPU defines the number of gpus as property
80
+ *
81
+ * @generated from enum value: SIZE_CONSTRAINT_TYPE_GPU = 4;
82
+ */
83
+ SizeConstraintType[SizeConstraintType["GPU"] = 4] = "GPU";
84
+ })(SizeConstraintType || (SizeConstraintType = {}));
85
+ /**
86
+ * Describes the enum metalstack.api.v2.SizeConstraintType.
87
+ */
88
+ export const SizeConstraintTypeSchema = /*@__PURE__*/ enumDesc(file_metalstack_api_v2_size, 0);
89
+ /**
90
+ * SizeService serves size related functions
91
+ *
92
+ * @generated from service metalstack.api.v2.SizeService
93
+ */
94
+ export const SizeService = /*@__PURE__*/ serviceDesc(file_metalstack_api_v2_size, 0);
@@ -0,0 +1,312 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
+ // @generated from file metalstack/api/v2/size.proto (package metalstack.api.v2, 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";
8
+ import type { Labels, Meta } from "./common_pb";
9
+ import { file_metalstack_api_v2_common } from "./common_pb";
10
+ import { file_metalstack_api_v2_predefined_rules } from "./predefined_rules_pb";
11
+ import type { Message } from "@bufbuild/protobuf";
12
+
13
+ /**
14
+ * Describes the file metalstack/api/v2/size.proto.
15
+ */
16
+ export const file_metalstack_api_v2_size: GenFile = /*@__PURE__*/
17
+ fileDesc("ChxtZXRhbHN0YWNrL2FwaS92Mi9zaXplLnByb3RvEhFtZXRhbHN0YWNrLmFwaS52MiIvChVTaXplU2VydmljZUdldFJlcXVlc3QSFgoCaWQYASABKAlCCrpI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Db25zdHJhaW50VHlwZRIkCiBTSVpFX0NPTlNUUkFJTlRfVFlQRV9VTlNQRUNJRklFRBAAEikKGlNJWkVfQ09OU1RSQUlOVF9UWVBFX0NPUkVTEAEaCYKyGQVjb3JlcxIrChtTSVpFX0NPTlNUUkFJTlRfVFlQRV9NRU1PUlkQAhoKgrIZBm1lbW9yeRItChxTSVpFX0NPTlNUUkFJTlRfVFlQRV9TVE9SQUdFEAMaC4KyGQdzdG9yYWdlEiUKGFNJWkVfQ09OU1RSQUlOVF9UWVBFX0dQVRAEGgeCshkDZ3B1MtwBCgtTaXplU2VydmljZRJkCgNHZXQSKC5tZXRhbHN0YWNrLmFwaS52Mi5TaXplU2VydmljZUdldFJlcXVlc3QaKS5tZXRhbHN0YWNrLmFwaS52Mi5TaXplU2VydmljZUdldFJlc3BvbnNlIgjY8xgD4PMYAhJnCgRMaXN0EikubWV0YWxzdGFjay5hcGkudjIuU2l6ZVNlcnZpY2VMaXN0UmVxdWVzdBoqLm1ldGFsc3RhY2suYXBpLnYyLlNpemVTZXJ2aWNlTGlzdFJlc3BvbnNlIgjY8xgD4PMYAkK/AQoVY29tLm1ldGFsc3RhY2suYXBpLnYyQglTaXplUHJvdG9QAVo1Z2l0aHViLmNvbS9tZXRhbC1zdGFjay9hcGkvZ28vbWV0YWxzdGFjay9hcGkvdjI7YXBpdjKiAgNNQViqAhFNZXRhbHN0YWNrLkFwaS5WMsoCEU1ldGFsc3RhY2tcQXBpXFYy4gIdTWV0YWxzdGFja1xBcGlcVjJcR1BCTWV0YWRhdGHqAhNNZXRhbHN0YWNrOjpBcGk6OlYyYgZwcm90bzM", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_predefined_rules]);
18
+
19
+ /**
20
+ * SizeServiceGetRequest is the request payload for a size get request
21
+ *
22
+ * @generated from message metalstack.api.v2.SizeServiceGetRequest
23
+ */
24
+ export type SizeServiceGetRequest = Message<"metalstack.api.v2.SizeServiceGetRequest"> & {
25
+ /**
26
+ * ID of the size to get
27
+ *
28
+ * @generated from field: string id = 1;
29
+ */
30
+ id: string;
31
+ };
32
+
33
+ /**
34
+ * Describes the message metalstack.api.v2.SizeServiceGetRequest.
35
+ * Use `create(SizeServiceGetRequestSchema)` to create a new message.
36
+ */
37
+ export const SizeServiceGetRequestSchema: GenMessage<SizeServiceGetRequest> = /*@__PURE__*/
38
+ messageDesc(file_metalstack_api_v2_size, 0);
39
+
40
+ /**
41
+ * SizeServiceListRequest is the request payload for a size list request
42
+ *
43
+ * @generated from message metalstack.api.v2.SizeServiceListRequest
44
+ */
45
+ export type SizeServiceListRequest = Message<"metalstack.api.v2.SizeServiceListRequest"> & {
46
+ /**
47
+ * Query for sizes
48
+ *
49
+ * @generated from field: metalstack.api.v2.SizeQuery query = 1;
50
+ */
51
+ query?: SizeQuery;
52
+ };
53
+
54
+ /**
55
+ * Describes the message metalstack.api.v2.SizeServiceListRequest.
56
+ * Use `create(SizeServiceListRequestSchema)` to create a new message.
57
+ */
58
+ export const SizeServiceListRequestSchema: GenMessage<SizeServiceListRequest> = /*@__PURE__*/
59
+ messageDesc(file_metalstack_api_v2_size, 1);
60
+
61
+ /**
62
+ * SizeServiceGetResponse is the response payload for a size get request
63
+ *
64
+ * @generated from message metalstack.api.v2.SizeServiceGetResponse
65
+ */
66
+ export type SizeServiceGetResponse = Message<"metalstack.api.v2.SizeServiceGetResponse"> & {
67
+ /**
68
+ * Size the size
69
+ *
70
+ * @generated from field: metalstack.api.v2.Size size = 1;
71
+ */
72
+ size?: Size;
73
+ };
74
+
75
+ /**
76
+ * Describes the message metalstack.api.v2.SizeServiceGetResponse.
77
+ * Use `create(SizeServiceGetResponseSchema)` to create a new message.
78
+ */
79
+ export const SizeServiceGetResponseSchema: GenMessage<SizeServiceGetResponse> = /*@__PURE__*/
80
+ messageDesc(file_metalstack_api_v2_size, 2);
81
+
82
+ /**
83
+ * SizeServiceListResponse is the response payload for a size list request
84
+ *
85
+ * @generated from message metalstack.api.v2.SizeServiceListResponse
86
+ */
87
+ export type SizeServiceListResponse = Message<"metalstack.api.v2.SizeServiceListResponse"> & {
88
+ /**
89
+ * Sizes the sizes
90
+ *
91
+ * @generated from field: repeated metalstack.api.v2.Size sizes = 1;
92
+ */
93
+ sizes: Size[];
94
+ };
95
+
96
+ /**
97
+ * Describes the message metalstack.api.v2.SizeServiceListResponse.
98
+ * Use `create(SizeServiceListResponseSchema)` to create a new message.
99
+ */
100
+ export const SizeServiceListResponseSchema: GenMessage<SizeServiceListResponse> = /*@__PURE__*/
101
+ messageDesc(file_metalstack_api_v2_size, 3);
102
+
103
+ /**
104
+ * Size
105
+ *
106
+ * @generated from message metalstack.api.v2.Size
107
+ */
108
+ export type Size = Message<"metalstack.api.v2.Size"> & {
109
+ /**
110
+ * Id of this size
111
+ *
112
+ * @generated from field: string id = 1;
113
+ */
114
+ id: string;
115
+
116
+ /**
117
+ * Meta for this size
118
+ *
119
+ * @generated from field: metalstack.api.v2.Meta meta = 2;
120
+ */
121
+ meta?: Meta;
122
+
123
+ /**
124
+ * Name of this size
125
+ *
126
+ * @generated from field: optional string name = 4;
127
+ */
128
+ name?: string;
129
+
130
+ /**
131
+ * Description of this size
132
+ *
133
+ * @generated from field: optional string description = 5;
134
+ */
135
+ description?: string;
136
+
137
+ /**
138
+ * Constraints which must match that a specific machine is considered of this size
139
+ *
140
+ * @generated from field: repeated metalstack.api.v2.SizeConstraint constraints = 6;
141
+ */
142
+ constraints: SizeConstraint[];
143
+ };
144
+
145
+ /**
146
+ * Describes the message metalstack.api.v2.Size.
147
+ * Use `create(SizeSchema)` to create a new message.
148
+ */
149
+ export const SizeSchema: GenMessage<Size> = /*@__PURE__*/
150
+ messageDesc(file_metalstack_api_v2_size, 4);
151
+
152
+ /**
153
+ * SizeConstraint defines the boundaries for certain type of machine property which must match to identify this machine as this size.
154
+ *
155
+ * @generated from message metalstack.api.v2.SizeConstraint
156
+ */
157
+ export type SizeConstraint = Message<"metalstack.api.v2.SizeConstraint"> & {
158
+ /**
159
+ * Type a machine matches to a size in order to make them easier to categorize
160
+ *
161
+ * @generated from field: metalstack.api.v2.SizeConstraintType type = 1;
162
+ */
163
+ type: SizeConstraintType;
164
+
165
+ /**
166
+ * Min the minimum value of the constraint
167
+ *
168
+ * @generated from field: uint64 min = 2;
169
+ */
170
+ min: bigint;
171
+
172
+ /**
173
+ * Max the maximum value of the constraint
174
+ *
175
+ * @generated from field: uint64 max = 3;
176
+ */
177
+ max: bigint;
178
+
179
+ /**
180
+ * Identifier glob pattern which matches to the given type, for example gpu pci id
181
+ *
182
+ * @generated from field: optional string identifier = 4;
183
+ */
184
+ identifier?: string;
185
+ };
186
+
187
+ /**
188
+ * Describes the message metalstack.api.v2.SizeConstraint.
189
+ * Use `create(SizeConstraintSchema)` to create a new message.
190
+ */
191
+ export const SizeConstraintSchema: GenMessage<SizeConstraint> = /*@__PURE__*/
192
+ messageDesc(file_metalstack_api_v2_size, 5);
193
+
194
+ /**
195
+ * SizeQuery is used to search sizes
196
+ *
197
+ * @generated from message metalstack.api.v2.SizeQuery
198
+ */
199
+ export type SizeQuery = Message<"metalstack.api.v2.SizeQuery"> & {
200
+ /**
201
+ * ID of the size to get
202
+ *
203
+ * @generated from field: optional string id = 1;
204
+ */
205
+ id?: string;
206
+
207
+ /**
208
+ * Name of the size to query
209
+ *
210
+ * @generated from field: optional string name = 2;
211
+ */
212
+ name?: string;
213
+
214
+ /**
215
+ * Description of the size to query
216
+ *
217
+ * @generated from field: optional string description = 3;
218
+ */
219
+ description?: string;
220
+
221
+ /**
222
+ * Labels lists only sizes containing the given labels
223
+ *
224
+ * @generated from field: optional metalstack.api.v2.Labels labels = 4;
225
+ */
226
+ labels?: Labels;
227
+ };
228
+
229
+ /**
230
+ * Describes the message metalstack.api.v2.SizeQuery.
231
+ * Use `create(SizeQuerySchema)` to create a new message.
232
+ */
233
+ export const SizeQuerySchema: GenMessage<SizeQuery> = /*@__PURE__*/
234
+ messageDesc(file_metalstack_api_v2_size, 6);
235
+
236
+ /**
237
+ * SizeConstraintType defines the property for which a constraint is defined
238
+ *
239
+ * @generated from enum metalstack.api.v2.SizeConstraintType
240
+ */
241
+ export enum SizeConstraintType {
242
+ /**
243
+ * SIZE_CONSTRAINT_TYPE_UNSPECIFIED type is not specified
244
+ *
245
+ * @generated from enum value: SIZE_CONSTRAINT_TYPE_UNSPECIFIED = 0;
246
+ */
247
+ UNSPECIFIED = 0,
248
+
249
+ /**
250
+ * SIZE_CONSTRAINT_TYPE_CORES defines the number of cores as property
251
+ *
252
+ * @generated from enum value: SIZE_CONSTRAINT_TYPE_CORES = 1;
253
+ */
254
+ CORES = 1,
255
+
256
+ /**
257
+ * SIZE_CONSTRAINT_TYPE_MEMORY defines the amount of memory as property
258
+ *
259
+ * @generated from enum value: SIZE_CONSTRAINT_TYPE_MEMORY = 2;
260
+ */
261
+ MEMORY = 2,
262
+
263
+ /**
264
+ * SIZE_CONSTRAINT_TYPE_STORAGE defines the amount of storage as property
265
+ *
266
+ * @generated from enum value: SIZE_CONSTRAINT_TYPE_STORAGE = 3;
267
+ */
268
+ STORAGE = 3,
269
+
270
+ /**
271
+ * SIZE_CONSTRAINT_TYPE_GPU defines the number of gpus as property
272
+ *
273
+ * @generated from enum value: SIZE_CONSTRAINT_TYPE_GPU = 4;
274
+ */
275
+ GPU = 4,
276
+ }
277
+
278
+ /**
279
+ * Describes the enum metalstack.api.v2.SizeConstraintType.
280
+ */
281
+ export const SizeConstraintTypeSchema: GenEnum<SizeConstraintType> = /*@__PURE__*/
282
+ enumDesc(file_metalstack_api_v2_size, 0);
283
+
284
+ /**
285
+ * SizeService serves size related functions
286
+ *
287
+ * @generated from service metalstack.api.v2.SizeService
288
+ */
289
+ export const SizeService: GenService<{
290
+ /**
291
+ * Get a size
292
+ *
293
+ * @generated from rpc metalstack.api.v2.SizeService.Get
294
+ */
295
+ get: {
296
+ methodKind: "unary";
297
+ input: typeof SizeServiceGetRequestSchema;
298
+ output: typeof SizeServiceGetResponseSchema;
299
+ },
300
+ /**
301
+ * List all sizes
302
+ *
303
+ * @generated from rpc metalstack.api.v2.SizeService.List
304
+ */
305
+ list: {
306
+ methodKind: "unary";
307
+ input: typeof SizeServiceListRequestSchema;
308
+ output: typeof SizeServiceListResponseSchema;
309
+ },
310
+ }> = /*@__PURE__*/
311
+ serviceDesc(file_metalstack_api_v2_size, 0);
312
+