@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,435 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
+ // @generated from file metalstack/admin/v2/switch.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 { Timestamp } from "@bufbuild/protobuf/wkt";
9
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
10
+ import type { UpdateMeta } from "../../api/v2/common_pb";
11
+ import { file_metalstack_api_v2_common } from "../../api/v2/common_pb";
12
+ import { file_metalstack_api_v2_predefined_rules } from "../../api/v2/predefined_rules_pb";
13
+ import type { Switch, SwitchNic, SwitchOS, SwitchPortStatus, SwitchQuery, SwitchReplaceMode } from "../../api/v2/switch_pb";
14
+ import { file_metalstack_api_v2_switch } from "../../api/v2/switch_pb";
15
+ import type { Message } from "@bufbuild/protobuf";
16
+
17
+ /**
18
+ * Describes the file metalstack/admin/v2/switch.proto.
19
+ */
20
+ export const file_metalstack_admin_v2_switch: GenFile = /*@__PURE__*/
21
+ fileDesc("CiBtZXRhbHN0YWNrL2FkbWluL3YyL3N3aXRjaC5wcm90bxITbWV0YWxzdGFjay5hZG1pbi52MiI0ChdTd2l0Y2hTZXJ2aWNlR2V0UmVxdWVzdBIZCgJpZBgBIAEoCUINukgKcgjAs66xAgFoASJFChhTd2l0Y2hTZXJ2aWNlR2V0UmVzcG9uc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4udjIuU3dpdGNoU2VydmljZUxpc3RSZXNwb25zZSIK0vMYAgEC4PMYAhJyCgZVcGRhdGUSLy5tZXRhbHN0YWNrLmFkbWluLnYyLlN3aXRjaFNlcnZpY2VVcGRhdGVSZXF1ZXN0GjAubWV0YWxzdGFjay5hZG1pbi52Mi5Td2l0Y2hTZXJ2aWNlVXBkYXRlUmVzcG9uc2UiBdLzGAEBEnIKBkRlbGV0ZRIvLm1ldGFsc3RhY2suYWRtaW4udjIuU3dpdGNoU2VydmljZURlbGV0ZVJlcXVlc3QaMC5tZXRhbHN0YWNrLmFkbWluLnYyLlN3aXRjaFNlcnZpY2VEZWxldGVSZXNwb25zZSIF0vMYAQESdQoHTWlncmF0ZRIwLm1ldGFsc3RhY2suYWRtaW4udjIuU3dpdGNoU2VydmljZU1pZ3JhdGVSZXF1ZXN0GjEubWV0YWxzdGFjay5hZG1pbi52Mi5Td2l0Y2hTZXJ2aWNlTWlncmF0ZVJlc3BvbnNlIgXS8xgBARJsCgRQb3J0Ei0ubWV0YWxzdGFjay5hZG1pbi52Mi5Td2l0Y2hTZXJ2aWNlUG9ydFJlcXVlc3QaLi5tZXRhbHN0YWNrLmFkbWluLnYyLlN3aXRjaFNlcnZpY2VQb3J0UmVzcG9uc2UiBdLzGAEBQs8BChdjb20ubWV0YWxzdGFjay5hZG1pbi52MkILU3dpdGNoUHJvdG9QAVo5Z2l0aHViLmNvbS9tZXRhbC1zdGFjay9hcGkvZ28vbWV0YWxzdGFjay9hZG1pbi92MjthZG1pbnYyogIDTUFYqgITTWV0YWxzdGFjay5BZG1pbi5WMsoCE01ldGFsc3RhY2tcQWRtaW5cVjLiAh9NZXRhbHN0YWNrXEFkbWluXFYyXEdQQk1ldGFkYXRh6gIVTWV0YWxzdGFjazo6QWRtaW46OlYyYgZwcm90bzM", [file_buf_validate_validate, file_google_protobuf_timestamp, file_metalstack_api_v2_common, file_metalstack_api_v2_predefined_rules, file_metalstack_api_v2_switch]);
22
+
23
+ /**
24
+ * SwitchServiceGetRequest.
25
+ *
26
+ * @generated from message metalstack.admin.v2.SwitchServiceGetRequest
27
+ */
28
+ export type SwitchServiceGetRequest = Message<"metalstack.admin.v2.SwitchServiceGetRequest"> & {
29
+ /**
30
+ * Id of the switch to get.
31
+ *
32
+ * @generated from field: string id = 1;
33
+ */
34
+ id: string;
35
+ };
36
+
37
+ /**
38
+ * Describes the message metalstack.admin.v2.SwitchServiceGetRequest.
39
+ * Use `create(SwitchServiceGetRequestSchema)` to create a new message.
40
+ */
41
+ export const SwitchServiceGetRequestSchema: GenMessage<SwitchServiceGetRequest> = /*@__PURE__*/
42
+ messageDesc(file_metalstack_admin_v2_switch, 0);
43
+
44
+ /**
45
+ * SwitchServiceGetResponse.
46
+ *
47
+ * @generated from message metalstack.admin.v2.SwitchServiceGetResponse
48
+ */
49
+ export type SwitchServiceGetResponse = Message<"metalstack.admin.v2.SwitchServiceGetResponse"> & {
50
+ /**
51
+ * Switch that was requested.
52
+ *
53
+ * @generated from field: metalstack.api.v2.Switch switch = 1;
54
+ */
55
+ switch?: Switch;
56
+ };
57
+
58
+ /**
59
+ * Describes the message metalstack.admin.v2.SwitchServiceGetResponse.
60
+ * Use `create(SwitchServiceGetResponseSchema)` to create a new message.
61
+ */
62
+ export const SwitchServiceGetResponseSchema: GenMessage<SwitchServiceGetResponse> = /*@__PURE__*/
63
+ messageDesc(file_metalstack_admin_v2_switch, 1);
64
+
65
+ /**
66
+ * SwitchServiceListRequest.
67
+ *
68
+ * @generated from message metalstack.admin.v2.SwitchServiceListRequest
69
+ */
70
+ export type SwitchServiceListRequest = Message<"metalstack.admin.v2.SwitchServiceListRequest"> & {
71
+ /**
72
+ * Query to filter the results.
73
+ *
74
+ * @generated from field: metalstack.api.v2.SwitchQuery query = 1;
75
+ */
76
+ query?: SwitchQuery;
77
+ };
78
+
79
+ /**
80
+ * Describes the message metalstack.admin.v2.SwitchServiceListRequest.
81
+ * Use `create(SwitchServiceListRequestSchema)` to create a new message.
82
+ */
83
+ export const SwitchServiceListRequestSchema: GenMessage<SwitchServiceListRequest> = /*@__PURE__*/
84
+ messageDesc(file_metalstack_admin_v2_switch, 2);
85
+
86
+ /**
87
+ * SwitchServiceListResponse.
88
+ *
89
+ * @generated from message metalstack.admin.v2.SwitchServiceListResponse
90
+ */
91
+ export type SwitchServiceListResponse = Message<"metalstack.admin.v2.SwitchServiceListResponse"> & {
92
+ /**
93
+ * Switches that match the request query.
94
+ *
95
+ * @generated from field: repeated metalstack.api.v2.Switch switches = 1;
96
+ */
97
+ switches: Switch[];
98
+ };
99
+
100
+ /**
101
+ * Describes the message metalstack.admin.v2.SwitchServiceListResponse.
102
+ * Use `create(SwitchServiceListResponseSchema)` to create a new message.
103
+ */
104
+ export const SwitchServiceListResponseSchema: GenMessage<SwitchServiceListResponse> = /*@__PURE__*/
105
+ messageDesc(file_metalstack_admin_v2_switch, 3);
106
+
107
+ /**
108
+ * SwitchServiceUpdateRequest.
109
+ *
110
+ * @generated from message metalstack.admin.v2.SwitchServiceUpdateRequest
111
+ */
112
+ export type SwitchServiceUpdateRequest = Message<"metalstack.admin.v2.SwitchServiceUpdateRequest"> & {
113
+ /**
114
+ * ID of the switch.
115
+ *
116
+ * @generated from field: string id = 1;
117
+ */
118
+ id: string;
119
+
120
+ /**
121
+ * UpdateMeta contains the timestamp and strategy to be used in this update request.
122
+ *
123
+ * @generated from field: metalstack.api.v2.UpdateMeta update_meta = 2;
124
+ */
125
+ updateMeta?: UpdateMeta;
126
+
127
+ /**
128
+ * UpdatedAt is the date when this entity was updated.
129
+ * must be part of the update request to ensure optimistic locking.
130
+ *
131
+ * @generated from field: google.protobuf.Timestamp updated_at = 3;
132
+ */
133
+ updatedAt?: Timestamp;
134
+
135
+ /**
136
+ * Description of the switch.
137
+ *
138
+ * @generated from field: optional string description = 4;
139
+ */
140
+ description?: string;
141
+
142
+ /**
143
+ * Replace mode is used to mark a switch ready for replacement.
144
+ *
145
+ * @generated from field: optional metalstack.api.v2.SwitchReplaceMode replace_mode = 5;
146
+ */
147
+ replaceMode?: SwitchReplaceMode;
148
+
149
+ /**
150
+ * Management IP is the switch's IP for management access.
151
+ *
152
+ * @generated from field: optional string management_ip = 6;
153
+ */
154
+ managementIp?: string;
155
+
156
+ /**
157
+ * Management user is the user name to use for management access.
158
+ *
159
+ * @generated from field: optional string management_user = 7;
160
+ */
161
+ managementUser?: string;
162
+
163
+ /**
164
+ * Console command is the command for accessing the switch's console.
165
+ *
166
+ * @generated from field: optional string console_command = 8;
167
+ */
168
+ consoleCommand?: string;
169
+
170
+ /**
171
+ * Nics are the front panel ports of the switch.
172
+ *
173
+ * @generated from field: repeated metalstack.api.v2.SwitchNic nics = 9;
174
+ */
175
+ nics: SwitchNic[];
176
+
177
+ /**
178
+ * SwitchOs is the OS running on the switch.
179
+ *
180
+ * @generated from field: optional metalstack.api.v2.SwitchOS os = 10;
181
+ */
182
+ os?: SwitchOS;
183
+ };
184
+
185
+ /**
186
+ * Describes the message metalstack.admin.v2.SwitchServiceUpdateRequest.
187
+ * Use `create(SwitchServiceUpdateRequestSchema)` to create a new message.
188
+ */
189
+ export const SwitchServiceUpdateRequestSchema: GenMessage<SwitchServiceUpdateRequest> = /*@__PURE__*/
190
+ messageDesc(file_metalstack_admin_v2_switch, 4);
191
+
192
+ /**
193
+ * SwitchServiceUpdateResponse.
194
+ *
195
+ * @generated from message metalstack.admin.v2.SwitchServiceUpdateResponse
196
+ */
197
+ export type SwitchServiceUpdateResponse = Message<"metalstack.admin.v2.SwitchServiceUpdateResponse"> & {
198
+ /**
199
+ * Switch that was updated.
200
+ *
201
+ * @generated from field: metalstack.api.v2.Switch switch = 1;
202
+ */
203
+ switch?: Switch;
204
+ };
205
+
206
+ /**
207
+ * Describes the message metalstack.admin.v2.SwitchServiceUpdateResponse.
208
+ * Use `create(SwitchServiceUpdateResponseSchema)` to create a new message.
209
+ */
210
+ export const SwitchServiceUpdateResponseSchema: GenMessage<SwitchServiceUpdateResponse> = /*@__PURE__*/
211
+ messageDesc(file_metalstack_admin_v2_switch, 5);
212
+
213
+ /**
214
+ * SwitchServiceDeleteRequest.
215
+ *
216
+ * @generated from message metalstack.admin.v2.SwitchServiceDeleteRequest
217
+ */
218
+ export type SwitchServiceDeleteRequest = Message<"metalstack.admin.v2.SwitchServiceDeleteRequest"> & {
219
+ /**
220
+ * Id of the switch.
221
+ *
222
+ * @generated from field: string id = 1;
223
+ */
224
+ id: string;
225
+
226
+ /**
227
+ * Force will allow switch deletion despite existing machine connections.
228
+ *
229
+ * @generated from field: bool force = 2;
230
+ */
231
+ force: boolean;
232
+ };
233
+
234
+ /**
235
+ * Describes the message metalstack.admin.v2.SwitchServiceDeleteRequest.
236
+ * Use `create(SwitchServiceDeleteRequestSchema)` to create a new message.
237
+ */
238
+ export const SwitchServiceDeleteRequestSchema: GenMessage<SwitchServiceDeleteRequest> = /*@__PURE__*/
239
+ messageDesc(file_metalstack_admin_v2_switch, 6);
240
+
241
+ /**
242
+ * SwitchServiceDeleteResponse.
243
+ *
244
+ * @generated from message metalstack.admin.v2.SwitchServiceDeleteResponse
245
+ */
246
+ export type SwitchServiceDeleteResponse = Message<"metalstack.admin.v2.SwitchServiceDeleteResponse"> & {
247
+ /**
248
+ * Switch that has been deleted.
249
+ *
250
+ * @generated from field: metalstack.api.v2.Switch switch = 1;
251
+ */
252
+ switch?: Switch;
253
+ };
254
+
255
+ /**
256
+ * Describes the message metalstack.admin.v2.SwitchServiceDeleteResponse.
257
+ * Use `create(SwitchServiceDeleteResponseSchema)` to create a new message.
258
+ */
259
+ export const SwitchServiceDeleteResponseSchema: GenMessage<SwitchServiceDeleteResponse> = /*@__PURE__*/
260
+ messageDesc(file_metalstack_admin_v2_switch, 7);
261
+
262
+ /**
263
+ * SwitchServiceMigrateRequest.
264
+ *
265
+ * @generated from message metalstack.admin.v2.SwitchServiceMigrateRequest
266
+ */
267
+ export type SwitchServiceMigrateRequest = Message<"metalstack.admin.v2.SwitchServiceMigrateRequest"> & {
268
+ /**
269
+ * OldSwitch which to migrate away from.
270
+ *
271
+ * @generated from field: string old_switch = 1;
272
+ */
273
+ oldSwitch: string;
274
+
275
+ /**
276
+ * NewSwitch which to migrate to.
277
+ *
278
+ * @generated from field: string new_switch = 2;
279
+ */
280
+ newSwitch: string;
281
+ };
282
+
283
+ /**
284
+ * Describes the message metalstack.admin.v2.SwitchServiceMigrateRequest.
285
+ * Use `create(SwitchServiceMigrateRequestSchema)` to create a new message.
286
+ */
287
+ export const SwitchServiceMigrateRequestSchema: GenMessage<SwitchServiceMigrateRequest> = /*@__PURE__*/
288
+ messageDesc(file_metalstack_admin_v2_switch, 8);
289
+
290
+ /**
291
+ * SwitchServiceMigrateResponse.
292
+ *
293
+ * @generated from message metalstack.admin.v2.SwitchServiceMigrateResponse
294
+ */
295
+ export type SwitchServiceMigrateResponse = Message<"metalstack.admin.v2.SwitchServiceMigrateResponse"> & {
296
+ /**
297
+ * Switch that was migrated to.
298
+ *
299
+ * @generated from field: metalstack.api.v2.Switch switch = 1;
300
+ */
301
+ switch?: Switch;
302
+ };
303
+
304
+ /**
305
+ * Describes the message metalstack.admin.v2.SwitchServiceMigrateResponse.
306
+ * Use `create(SwitchServiceMigrateResponseSchema)` to create a new message.
307
+ */
308
+ export const SwitchServiceMigrateResponseSchema: GenMessage<SwitchServiceMigrateResponse> = /*@__PURE__*/
309
+ messageDesc(file_metalstack_admin_v2_switch, 9);
310
+
311
+ /**
312
+ * SwitchServicePortRequest.
313
+ *
314
+ * @generated from message metalstack.admin.v2.SwitchServicePortRequest
315
+ */
316
+ export type SwitchServicePortRequest = Message<"metalstack.admin.v2.SwitchServicePortRequest"> & {
317
+ /**
318
+ * Id of the switch.
319
+ *
320
+ * @generated from field: string id = 1;
321
+ */
322
+ id: string;
323
+
324
+ /**
325
+ * NicName of the port whose status should be changed.
326
+ *
327
+ * @generated from field: string nic_name = 2;
328
+ */
329
+ nicName: string;
330
+
331
+ /**
332
+ * Status that the port should have.
333
+ *
334
+ * @generated from field: metalstack.api.v2.SwitchPortStatus status = 3;
335
+ */
336
+ status: SwitchPortStatus;
337
+ };
338
+
339
+ /**
340
+ * Describes the message metalstack.admin.v2.SwitchServicePortRequest.
341
+ * Use `create(SwitchServicePortRequestSchema)` to create a new message.
342
+ */
343
+ export const SwitchServicePortRequestSchema: GenMessage<SwitchServicePortRequest> = /*@__PURE__*/
344
+ messageDesc(file_metalstack_admin_v2_switch, 10);
345
+
346
+ /**
347
+ * SwitchServicePortResponse.
348
+ *
349
+ * @generated from message metalstack.admin.v2.SwitchServicePortResponse
350
+ */
351
+ export type SwitchServicePortResponse = Message<"metalstack.admin.v2.SwitchServicePortResponse"> & {
352
+ /**
353
+ * Switch after the port status toggle..
354
+ *
355
+ * @generated from field: metalstack.api.v2.Switch switch = 1;
356
+ */
357
+ switch?: Switch;
358
+ };
359
+
360
+ /**
361
+ * Describes the message metalstack.admin.v2.SwitchServicePortResponse.
362
+ * Use `create(SwitchServicePortResponseSchema)` to create a new message.
363
+ */
364
+ export const SwitchServicePortResponseSchema: GenMessage<SwitchServicePortResponse> = /*@__PURE__*/
365
+ messageDesc(file_metalstack_admin_v2_switch, 11);
366
+
367
+ /**
368
+ * SwitchService serves switch related functions.
369
+ *
370
+ * @generated from service metalstack.admin.v2.SwitchService
371
+ */
372
+ export const SwitchService: GenService<{
373
+ /**
374
+ * Get a switch by ID.
375
+ *
376
+ * @generated from rpc metalstack.admin.v2.SwitchService.Get
377
+ */
378
+ get: {
379
+ methodKind: "unary";
380
+ input: typeof SwitchServiceGetRequestSchema;
381
+ output: typeof SwitchServiceGetResponseSchema;
382
+ },
383
+ /**
384
+ * List switches.
385
+ *
386
+ * @generated from rpc metalstack.admin.v2.SwitchService.List
387
+ */
388
+ list: {
389
+ methodKind: "unary";
390
+ input: typeof SwitchServiceListRequestSchema;
391
+ output: typeof SwitchServiceListResponseSchema;
392
+ },
393
+ /**
394
+ * Update a switch.
395
+ *
396
+ * @generated from rpc metalstack.admin.v2.SwitchService.Update
397
+ */
398
+ update: {
399
+ methodKind: "unary";
400
+ input: typeof SwitchServiceUpdateRequestSchema;
401
+ output: typeof SwitchServiceUpdateResponseSchema;
402
+ },
403
+ /**
404
+ * Delete a switch.
405
+ *
406
+ * @generated from rpc metalstack.admin.v2.SwitchService.Delete
407
+ */
408
+ delete: {
409
+ methodKind: "unary";
410
+ input: typeof SwitchServiceDeleteRequestSchema;
411
+ output: typeof SwitchServiceDeleteResponseSchema;
412
+ },
413
+ /**
414
+ * Migrate a switch.
415
+ *
416
+ * @generated from rpc metalstack.admin.v2.SwitchService.Migrate
417
+ */
418
+ migrate: {
419
+ methodKind: "unary";
420
+ input: typeof SwitchServiceMigrateRequestSchema;
421
+ output: typeof SwitchServiceMigrateResponseSchema;
422
+ },
423
+ /**
424
+ * Port set the port status of a switch port.
425
+ *
426
+ * @generated from rpc metalstack.admin.v2.SwitchService.Port
427
+ */
428
+ port: {
429
+ methodKind: "unary";
430
+ input: typeof SwitchServicePortRequestSchema;
431
+ output: typeof SwitchServicePortResponseSchema;
432
+ },
433
+ }> = /*@__PURE__*/
434
+ serviceDesc(file_metalstack_admin_v2_switch, 0);
435
+
@@ -0,0 +1,149 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Paging } from "../../api/v2/common_pb";
3
+ import type { Tenant } from "../../api/v2/tenant_pb";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file metalstack/admin/v2/tenant.proto.
7
+ */
8
+ export declare const file_metalstack_admin_v2_tenant: GenFile;
9
+ /**
10
+ * TenantServiceCreateRequest is the request payload of the tenant create request
11
+ *
12
+ * @generated from message metalstack.admin.v2.TenantServiceCreateRequest
13
+ */
14
+ export type TenantServiceCreateRequest = Message<"metalstack.admin.v2.TenantServiceCreateRequest"> & {
15
+ /**
16
+ * Name of this tenant
17
+ *
18
+ * @generated from field: string name = 1;
19
+ */
20
+ name: string;
21
+ /**
22
+ * Description of this tenant
23
+ *
24
+ * @generated from field: optional string description = 2;
25
+ */
26
+ description?: string;
27
+ /**
28
+ * Email of the tenant, if not set will be inherited from the creator
29
+ *
30
+ * @generated from field: optional string email = 3;
31
+ */
32
+ email?: string;
33
+ /**
34
+ * AvatarUrl of the tenant
35
+ *
36
+ * @generated from field: optional string avatar_url = 4;
37
+ */
38
+ avatarUrl?: string;
39
+ };
40
+ /**
41
+ * Describes the message metalstack.admin.v2.TenantServiceCreateRequest.
42
+ * Use `create(TenantServiceCreateRequestSchema)` to create a new message.
43
+ */
44
+ export declare const TenantServiceCreateRequestSchema: GenMessage<TenantServiceCreateRequest>;
45
+ /**
46
+ * TenantServiceCreateResponse is the response payload of the tenant create request
47
+ *
48
+ * @generated from message metalstack.admin.v2.TenantServiceCreateResponse
49
+ */
50
+ export type TenantServiceCreateResponse = Message<"metalstack.admin.v2.TenantServiceCreateResponse"> & {
51
+ /**
52
+ * Tenant is the tenant
53
+ *
54
+ * @generated from field: metalstack.api.v2.Tenant tenant = 1;
55
+ */
56
+ tenant?: Tenant;
57
+ };
58
+ /**
59
+ * Describes the message metalstack.admin.v2.TenantServiceCreateResponse.
60
+ * Use `create(TenantServiceCreateResponseSchema)` to create a new message.
61
+ */
62
+ export declare const TenantServiceCreateResponseSchema: GenMessage<TenantServiceCreateResponse>;
63
+ /**
64
+ * TenantServiceListRequest is the request payload for a tenant list request
65
+ *
66
+ * @generated from message metalstack.admin.v2.TenantServiceListRequest
67
+ */
68
+ export type TenantServiceListRequest = Message<"metalstack.admin.v2.TenantServiceListRequest"> & {
69
+ /**
70
+ * Login of the tenant to list
71
+ *
72
+ * @generated from field: optional string login = 1;
73
+ */
74
+ login?: string;
75
+ /**
76
+ * Name of the tenant to list
77
+ *
78
+ * @generated from field: optional string name = 2;
79
+ */
80
+ name?: string;
81
+ /**
82
+ * Email of the tenant to list
83
+ *
84
+ * @generated from field: optional string email = 3;
85
+ */
86
+ email?: string;
87
+ /**
88
+ * Paging details for the list request
89
+ *
90
+ * @generated from field: metalstack.api.v2.Paging paging = 7;
91
+ */
92
+ paging?: Paging;
93
+ };
94
+ /**
95
+ * Describes the message metalstack.admin.v2.TenantServiceListRequest.
96
+ * Use `create(TenantServiceListRequestSchema)` to create a new message.
97
+ */
98
+ export declare const TenantServiceListRequestSchema: GenMessage<TenantServiceListRequest>;
99
+ /**
100
+ * TenantServiceListResponse is the response payload for a tenant list request
101
+ *
102
+ * @generated from message metalstack.admin.v2.TenantServiceListResponse
103
+ */
104
+ export type TenantServiceListResponse = Message<"metalstack.admin.v2.TenantServiceListResponse"> & {
105
+ /**
106
+ * Tenants are the list of tenants
107
+ *
108
+ * @generated from field: repeated metalstack.api.v2.Tenant tenants = 1;
109
+ */
110
+ tenants: Tenant[];
111
+ /**
112
+ * NextPage is used for pagination, returns the next page to be fetched and must then be provided in the list request.
113
+ *
114
+ * @generated from field: optional uint64 next_page = 2;
115
+ */
116
+ nextPage?: bigint;
117
+ };
118
+ /**
119
+ * Describes the message metalstack.admin.v2.TenantServiceListResponse.
120
+ * Use `create(TenantServiceListResponseSchema)` to create a new message.
121
+ */
122
+ export declare const TenantServiceListResponseSchema: GenMessage<TenantServiceListResponse>;
123
+ /**
124
+ * TenantService serves tenant related functions
125
+ *
126
+ * @generated from service metalstack.admin.v2.TenantService
127
+ */
128
+ export declare const TenantService: GenService<{
129
+ /**
130
+ * Create a tenant
131
+ *
132
+ * @generated from rpc metalstack.admin.v2.TenantService.Create
133
+ */
134
+ create: {
135
+ methodKind: "unary";
136
+ input: typeof TenantServiceCreateRequestSchema;
137
+ output: typeof TenantServiceCreateResponseSchema;
138
+ };
139
+ /**
140
+ * List all tenants
141
+ *
142
+ * @generated from rpc metalstack.admin.v2.TenantService.List
143
+ */
144
+ list: {
145
+ methodKind: "unary";
146
+ input: typeof TenantServiceListRequestSchema;
147
+ output: typeof TenantServiceListResponseSchema;
148
+ };
149
+ }>;
@@ -0,0 +1,38 @@
1
+ // @generated by protoc-gen-es v2.10.2 with parameter "target=ts"
2
+ // @generated from file metalstack/admin/v2/tenant.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_predefined_rules } from "../../api/v2/predefined_rules_pb";
8
+ import { file_metalstack_api_v2_tenant } from "../../api/v2/tenant_pb";
9
+ /**
10
+ * Describes the file metalstack/admin/v2/tenant.proto.
11
+ */
12
+ export const file_metalstack_admin_v2_tenant = /*@__PURE__*/ fileDesc("CiBtZXRhbHN0YWNrL2FkbWluL3YyL3RlbmFudC5wcm90bxITbWV0YWxzdGFjay5hZG1pbi52MiK9AQoaVGVuYW50U2VydmljZUNyZWF0ZVJlcXVlc3QSGQoEbmFtZRgBIAEoCUILukgIcgbAs66xAgESJQoLZGVzY3JpcHRpb24YAiABKAlCC7pICHIGyLOusQIBSACIAQESGwoFZW1haWwYAyABKAlCB7pIBHICYAFIAYgBARIXCgphdmF0YXJfdXJsGAQgASgJSAKIAQFCDgoMX2Rlc2NyaXB0aW9uQggKBl9lbWFpbEINCgtfYXZhdGFyX3VybCJIChtUZW5hbnRTZXJ2aWNlQ3JlYXRlUmVzcG9uc2USKQoGdGVuYW50GAEgASgLMhkubWV0YWxzdGFjay5hcGkudjIuVGVuYW50IqoBChhUZW5hbnRTZXJ2aWNlTGlzdFJlcXVlc3QSEgoFbG9naW4YASABKAlIAIgBARIeCgRuYW1lGAIgASgJQgu6SAhyBsCzrrECAUgBiAEBEhIKBWVtYWlsGAMgASgJSAKIAQESKQoGcGFnaW5nGAcgASgLMhkubWV0YWxzdGFjay5hcGkudjIuUGFnaW5nQggKBl9sb2dpbkIHCgVfbmFtZUIICgZfZW1haWwibQoZVGVuYW50U2VydmljZUxpc3RSZXNwb25zZRIqCgd0ZW5hbnRzGAEgAygLMhkubWV0YWxzdGFjay5hcGkudjIuVGVuYW50EhYKCW5leHRfcGFnZRgCIAEoBEgAiAEBQgwKCl9uZXh0X3BhZ2Uy8gEKDVRlbmFudFNlcnZpY2UScgoGQ3JlYXRlEi8ubWV0YWxzdGFjay5hZG1pbi52Mi5UZW5hbnRTZXJ2aWNlQ3JlYXRlUmVxdWVzdBowLm1ldGFsc3RhY2suYWRtaW4udjIuVGVuYW50U2VydmljZUNyZWF0ZVJlc3BvbnNlIgXS8xgBARJtCgRMaXN0Ei0ubWV0YWxzdGFjay5hZG1pbi52Mi5UZW5hbnRTZXJ2aWNlTGlzdFJlcXVlc3QaLi5tZXRhbHN0YWNrLmFkbWluLnYyLlRlbmFudFNlcnZpY2VMaXN0UmVzcG9uc2UiBtLzGAIBAkLPAQoXY29tLm1ldGFsc3RhY2suYWRtaW4udjJCC1RlbmFudFByb3RvUAFaOWdpdGh1Yi5jb20vbWV0YWwtc3RhY2svYXBpL2dvL21ldGFsc3RhY2svYWRtaW4vdjI7YWRtaW52MqICA01BWKoCE01ldGFsc3RhY2suQWRtaW4uVjLKAhNNZXRhbHN0YWNrXEFkbWluXFYy4gIfTWV0YWxzdGFja1xBZG1pblxWMlxHUEJNZXRhZGF0YeoCFU1ldGFsc3RhY2s6OkFkbWluOjpWMmIGcHJvdG8z", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_predefined_rules, file_metalstack_api_v2_tenant]);
13
+ /**
14
+ * Describes the message metalstack.admin.v2.TenantServiceCreateRequest.
15
+ * Use `create(TenantServiceCreateRequestSchema)` to create a new message.
16
+ */
17
+ export const TenantServiceCreateRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_tenant, 0);
18
+ /**
19
+ * Describes the message metalstack.admin.v2.TenantServiceCreateResponse.
20
+ * Use `create(TenantServiceCreateResponseSchema)` to create a new message.
21
+ */
22
+ export const TenantServiceCreateResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_tenant, 1);
23
+ /**
24
+ * Describes the message metalstack.admin.v2.TenantServiceListRequest.
25
+ * Use `create(TenantServiceListRequestSchema)` to create a new message.
26
+ */
27
+ export const TenantServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_tenant, 2);
28
+ /**
29
+ * Describes the message metalstack.admin.v2.TenantServiceListResponse.
30
+ * Use `create(TenantServiceListResponseSchema)` to create a new message.
31
+ */
32
+ export const TenantServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_tenant, 3);
33
+ /**
34
+ * TenantService serves tenant related functions
35
+ *
36
+ * @generated from service metalstack.admin.v2.TenantService
37
+ */
38
+ export const TenantService = /*@__PURE__*/ serviceDesc(file_metalstack_admin_v2_tenant, 0);