@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,650 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
+ // @generated from file metalstack/api/v2/ip.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, UpdateLabels, UpdateMeta } 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/ip.proto.
15
+ */
16
+ export const file_metalstack_api_v2_ip: GenFile = /*@__PURE__*/
17
+ fileDesc("ChptZXRhbHN0YWNrL2FwaS92Mi9pcC5wcm90bxIRbWV0YWxzdGFjay5hcGkudjIisAIKAklQEhYKBHV1aWQYASABKAlCCLpIBXIDsAEBEiUKBG1ldGEYAiABKAsyFy5tZXRhbHN0YWNrLmFwaS52Mi5NZXRhEhMKAmlwGAMgASgJQge6SARyAnABEhkKBG5hbWUYBCABKAlCC7pICHIGwLOusQIBEiAKC2Rlc2NyaXB0aW9uGAUgASgJQgu6SAhyBsizrrECARIbCgduZXR3b3JrGAYgASgJQgq6SAdyBRACGIABEhkKB3Byb2plY3QYByABKAlCCLpIBXIDsAEBEjEKBHR5cGUYCCABKA4yGS5tZXRhbHN0YW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C8rzGAMBAgPg8xgCEmcKBkNyZWF0ZRIpLm1ldGFsc3RhY2suYXBpLnYyLklQU2VydmljZUNyZWF0ZVJlcXVlc3QaKi5tZXRhbHN0YWNrLmFwaS52Mi5JUFNlcnZpY2VDcmVhdGVSZXNwb25zZSIGyvMYAgECEmcKBlVwZGF0ZRIpLm1ldGFsc3RhY2suYXBpLnYyLklQU2VydmljZVVwZGF0ZVJlcXVlc3QaKi5tZXRhbHN0YWNrLmFwaS52Mi5JUFNlcnZpY2VVcGRhdGVSZXNwb25zZSIGyvMYAgECEmYKBExpc3QSJy5tZXRhbHN0YWNrLmFwaS52Mi5JUFNlcnZpY2VMaXN0UmVxdWVzdBooLm1ldGFsc3RhY2suYXBpLnYyLklQU2VydmljZUxpc3RSZXNwb25zZSILyvMYAwECA+DzGAISZwoGRGVsZXRlEikubWV0YWxzdGFjay5hcGkudjIuSVBTZXJ2aWNlRGVsZXRlUmVxdWVzdBoqLm1ldGFsc3RhY2suYXBpLnYyLklQU2VydmljZURlbGV0ZVJlc3BvbnNlIgbK8xgCAQJCvQEKFWNvbS5tZXRhbHN0YWNrLmFwaS52MkIHSXBQcm90b1ABWjVnaXRodWIuY29tL21ldGFsLXN0YWNrL2FwaS9nby9tZXRhbHN0YWNrL2FwaS92MjthcGl2MqICA01BWKoCEU1ldGFsc3RhY2suQXBpLlYyygIRTWV0YWxzdGFja1xBcGlcVjLiAh1NZXRhbHN0YWNrXEFwaVxWMlxHUEJNZXRhZGF0YeoCE01ldGFsc3RhY2s6OkFwaTo6VjJiBnByb3RvMw", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_predefined_rules]);
18
+
19
+ /**
20
+ * IP is a ip address which can be used as loadbalancer addresses
21
+ *
22
+ * @generated from message metalstack.api.v2.IP
23
+ */
24
+ export type IP = Message<"metalstack.api.v2.IP"> & {
25
+ /**
26
+ * Uuid of this ip
27
+ *
28
+ * @generated from field: string uuid = 1;
29
+ */
30
+ uuid: string;
31
+
32
+ /**
33
+ * Meta for this ip
34
+ *
35
+ * @generated from field: metalstack.api.v2.Meta meta = 2;
36
+ */
37
+ meta?: Meta;
38
+
39
+ /**
40
+ * Ip is either ipv4 or ipv6 address
41
+ *
42
+ * @generated from field: string ip = 3;
43
+ */
44
+ ip: string;
45
+
46
+ /**
47
+ * Name of this ip
48
+ *
49
+ * @generated from field: string name = 4;
50
+ */
51
+ name: string;
52
+
53
+ /**
54
+ * Description of this ip
55
+ *
56
+ * @generated from field: string description = 5;
57
+ */
58
+ description: string;
59
+
60
+ /**
61
+ * Network is the network this ip belongs to
62
+ *
63
+ * @generated from field: string network = 6;
64
+ */
65
+ network: string;
66
+
67
+ /**
68
+ * Project where this ip address belongs to
69
+ *
70
+ * @generated from field: string project = 7;
71
+ */
72
+ project: string;
73
+
74
+ /**
75
+ * Type of this ip
76
+ *
77
+ * @generated from field: metalstack.api.v2.IPType type = 8;
78
+ */
79
+ type: IPType;
80
+
81
+ /**
82
+ * Namespace if specified this ip is from a namespaced network and can therefore overlap with others
83
+ * Will be equal with project most of the time
84
+ *
85
+ * @generated from field: optional string namespace = 9;
86
+ */
87
+ namespace?: string;
88
+ };
89
+
90
+ /**
91
+ * Describes the message metalstack.api.v2.IP.
92
+ * Use `create(IPSchema)` to create a new message.
93
+ */
94
+ export const IPSchema: GenMessage<IP> = /*@__PURE__*/
95
+ messageDesc(file_metalstack_api_v2_ip, 0);
96
+
97
+ /**
98
+ * IPServiceGetRequest is the request payload for a ip get request
99
+ *
100
+ * @generated from message metalstack.api.v2.IPServiceGetRequest
101
+ */
102
+ export type IPServiceGetRequest = Message<"metalstack.api.v2.IPServiceGetRequest"> & {
103
+ /**
104
+ * IP of the ip to get
105
+ *
106
+ * @generated from field: string ip = 1;
107
+ */
108
+ ip: string;
109
+
110
+ /**
111
+ * Project of the ip
112
+ *
113
+ * @generated from field: string project = 2;
114
+ */
115
+ project: string;
116
+
117
+ /**
118
+ * Namespace can be specified to get the ip of a namespace.
119
+ *
120
+ * @generated from field: optional string namespace = 3;
121
+ */
122
+ namespace?: string;
123
+ };
124
+
125
+ /**
126
+ * Describes the message metalstack.api.v2.IPServiceGetRequest.
127
+ * Use `create(IPServiceGetRequestSchema)` to create a new message.
128
+ */
129
+ export const IPServiceGetRequestSchema: GenMessage<IPServiceGetRequest> = /*@__PURE__*/
130
+ messageDesc(file_metalstack_api_v2_ip, 1);
131
+
132
+ /**
133
+ * IPServiceCreateRequest is the request payload for a ip create request
134
+ *
135
+ * @generated from message metalstack.api.v2.IPServiceCreateRequest
136
+ */
137
+ export type IPServiceCreateRequest = Message<"metalstack.api.v2.IPServiceCreateRequest"> & {
138
+ /**
139
+ * Network from which the IP should be created
140
+ *
141
+ * @generated from field: string network = 1;
142
+ */
143
+ network: string;
144
+
145
+ /**
146
+ * Project of the ip
147
+ *
148
+ * @generated from field: string project = 2;
149
+ */
150
+ project: string;
151
+
152
+ /**
153
+ * Name of the ip
154
+ *
155
+ * @generated from field: optional string name = 3;
156
+ */
157
+ name?: string;
158
+
159
+ /**
160
+ * Description of the ip
161
+ *
162
+ * @generated from field: optional string description = 4;
163
+ */
164
+ description?: string;
165
+
166
+ /**
167
+ * IP if given try to create this ip if still available
168
+ *
169
+ * @generated from field: optional string ip = 5;
170
+ */
171
+ ip?: string;
172
+
173
+ /**
174
+ * Machine for which this ip should get created
175
+ *
176
+ * @generated from field: optional string machine = 6;
177
+ */
178
+ machine?: string;
179
+
180
+ /**
181
+ * Labels to put onto the ip
182
+ *
183
+ * @generated from field: optional metalstack.api.v2.Labels labels = 7;
184
+ */
185
+ labels?: Labels;
186
+
187
+ /**
188
+ * Type of the IP, ether ephemeral (default), or static
189
+ *
190
+ * @generated from field: optional metalstack.api.v2.IPType type = 8;
191
+ */
192
+ type?: IPType;
193
+
194
+ /**
195
+ * Addressfamily of the IP to create, defaults to ipv4
196
+ *
197
+ * @generated from field: optional metalstack.api.v2.IPAddressFamily address_family = 9;
198
+ */
199
+ addressFamily?: IPAddressFamily;
200
+ };
201
+
202
+ /**
203
+ * Describes the message metalstack.api.v2.IPServiceCreateRequest.
204
+ * Use `create(IPServiceCreateRequestSchema)` to create a new message.
205
+ */
206
+ export const IPServiceCreateRequestSchema: GenMessage<IPServiceCreateRequest> = /*@__PURE__*/
207
+ messageDesc(file_metalstack_api_v2_ip, 2);
208
+
209
+ /**
210
+ * IPServiceUpdateRequest is the request payload for a ip update request
211
+ *
212
+ * @generated from message metalstack.api.v2.IPServiceUpdateRequest
213
+ */
214
+ export type IPServiceUpdateRequest = Message<"metalstack.api.v2.IPServiceUpdateRequest"> & {
215
+ /**
216
+ * Ip the ip to update
217
+ *
218
+ * @generated from field: string ip = 1;
219
+ */
220
+ ip: string;
221
+
222
+ /**
223
+ * UpdateMeta contains the timestamp and strategy to be used in this update request
224
+ *
225
+ * @generated from field: metalstack.api.v2.UpdateMeta update_meta = 2;
226
+ */
227
+ updateMeta?: UpdateMeta;
228
+
229
+ /**
230
+ * Project id of the ip
231
+ *
232
+ * @generated from field: string project = 3;
233
+ */
234
+ project: string;
235
+
236
+ /**
237
+ * Name of this ip
238
+ *
239
+ * @generated from field: optional string name = 4;
240
+ */
241
+ name?: string;
242
+
243
+ /**
244
+ * Description of this ip
245
+ *
246
+ * @generated from field: optional string description = 5;
247
+ */
248
+ description?: string;
249
+
250
+ /**
251
+ * Type of this ip
252
+ *
253
+ * @generated from field: optional metalstack.api.v2.IPType type = 6;
254
+ */
255
+ type?: IPType;
256
+
257
+ /**
258
+ * Labels on this ip
259
+ *
260
+ * @generated from field: optional metalstack.api.v2.UpdateLabels labels = 7;
261
+ */
262
+ labels?: UpdateLabels;
263
+ };
264
+
265
+ /**
266
+ * Describes the message metalstack.api.v2.IPServiceUpdateRequest.
267
+ * Use `create(IPServiceUpdateRequestSchema)` to create a new message.
268
+ */
269
+ export const IPServiceUpdateRequestSchema: GenMessage<IPServiceUpdateRequest> = /*@__PURE__*/
270
+ messageDesc(file_metalstack_api_v2_ip, 3);
271
+
272
+ /**
273
+ * IPServiceListRequest is the request payload for a ip list request
274
+ *
275
+ * @generated from message metalstack.api.v2.IPServiceListRequest
276
+ */
277
+ export type IPServiceListRequest = Message<"metalstack.api.v2.IPServiceListRequest"> & {
278
+ /**
279
+ * Project of the ips to list
280
+ *
281
+ * @generated from field: string project = 1;
282
+ */
283
+ project: string;
284
+
285
+ /**
286
+ * Query to list one ore more ips
287
+ *
288
+ * @generated from field: metalstack.api.v2.IPQuery query = 2;
289
+ */
290
+ query?: IPQuery;
291
+ };
292
+
293
+ /**
294
+ * Describes the message metalstack.api.v2.IPServiceListRequest.
295
+ * Use `create(IPServiceListRequestSchema)` to create a new message.
296
+ */
297
+ export const IPServiceListRequestSchema: GenMessage<IPServiceListRequest> = /*@__PURE__*/
298
+ messageDesc(file_metalstack_api_v2_ip, 4);
299
+
300
+ /**
301
+ * IPQuery can be used to query a IP or a list of IP
302
+ *
303
+ * @generated from message metalstack.api.v2.IPQuery
304
+ */
305
+ export type IPQuery = Message<"metalstack.api.v2.IPQuery"> & {
306
+ /**
307
+ * Ip the ip to list
308
+ *
309
+ * @generated from field: optional string ip = 1;
310
+ */
311
+ ip?: string;
312
+
313
+ /**
314
+ * Network from where the ips to list
315
+ *
316
+ * @generated from field: optional string network = 2;
317
+ */
318
+ network?: string;
319
+
320
+ /**
321
+ * Project of the ips to list
322
+ *
323
+ * @generated from field: optional string project = 3;
324
+ */
325
+ project?: string;
326
+
327
+ /**
328
+ * Name of this ip
329
+ *
330
+ * @generated from field: optional string name = 4;
331
+ */
332
+ name?: string;
333
+
334
+ /**
335
+ * Uuid for which this ips should get filtered
336
+ *
337
+ * @generated from field: optional string uuid = 5;
338
+ */
339
+ uuid?: string;
340
+
341
+ /**
342
+ * Machine for which this ips should get filtered
343
+ *
344
+ * @generated from field: optional string machine = 6;
345
+ */
346
+ machine?: string;
347
+
348
+ /**
349
+ * ParentPrefixCidr for which this ips should get filtered
350
+ *
351
+ * @generated from field: optional string parent_prefix_cidr = 7;
352
+ */
353
+ parentPrefixCidr?: string;
354
+
355
+ /**
356
+ * Labels for which this ips should get filtered
357
+ *
358
+ * @generated from field: optional metalstack.api.v2.Labels labels = 8;
359
+ */
360
+ labels?: Labels;
361
+
362
+ /**
363
+ * Static if set to true, this will be a Static ip
364
+ *
365
+ * @generated from field: optional metalstack.api.v2.IPType type = 9;
366
+ */
367
+ type?: IPType;
368
+
369
+ /**
370
+ * Addressfamily of the IPs to list, defaults to all addressfamilies
371
+ *
372
+ * @generated from field: optional metalstack.api.v2.IPAddressFamily address_family = 10;
373
+ */
374
+ addressFamily?: IPAddressFamily;
375
+
376
+ /**
377
+ * Namespace can be specified to get the ip of a namespace.
378
+ *
379
+ * @generated from field: optional string namespace = 11;
380
+ */
381
+ namespace?: string;
382
+ };
383
+
384
+ /**
385
+ * Describes the message metalstack.api.v2.IPQuery.
386
+ * Use `create(IPQuerySchema)` to create a new message.
387
+ */
388
+ export const IPQuerySchema: GenMessage<IPQuery> = /*@__PURE__*/
389
+ messageDesc(file_metalstack_api_v2_ip, 5);
390
+
391
+ /**
392
+ * IPServiceDeleteRequest is the request payload for a ip delete request
393
+ *
394
+ * @generated from message metalstack.api.v2.IPServiceDeleteRequest
395
+ */
396
+ export type IPServiceDeleteRequest = Message<"metalstack.api.v2.IPServiceDeleteRequest"> & {
397
+ /**
398
+ * IP of the ip to delete
399
+ *
400
+ * @generated from field: string ip = 1;
401
+ */
402
+ ip: string;
403
+
404
+ /**
405
+ * Project of the ip
406
+ *
407
+ * @generated from field: string project = 2;
408
+ */
409
+ project: string;
410
+ };
411
+
412
+ /**
413
+ * Describes the message metalstack.api.v2.IPServiceDeleteRequest.
414
+ * Use `create(IPServiceDeleteRequestSchema)` to create a new message.
415
+ */
416
+ export const IPServiceDeleteRequestSchema: GenMessage<IPServiceDeleteRequest> = /*@__PURE__*/
417
+ messageDesc(file_metalstack_api_v2_ip, 6);
418
+
419
+ /**
420
+ * IPServiceGetResponse is the response payload for a ip get request
421
+ *
422
+ * @generated from message metalstack.api.v2.IPServiceGetResponse
423
+ */
424
+ export type IPServiceGetResponse = Message<"metalstack.api.v2.IPServiceGetResponse"> & {
425
+ /**
426
+ * Ip the ip
427
+ *
428
+ * @generated from field: metalstack.api.v2.IP ip = 1;
429
+ */
430
+ ip?: IP;
431
+ };
432
+
433
+ /**
434
+ * Describes the message metalstack.api.v2.IPServiceGetResponse.
435
+ * Use `create(IPServiceGetResponseSchema)` to create a new message.
436
+ */
437
+ export const IPServiceGetResponseSchema: GenMessage<IPServiceGetResponse> = /*@__PURE__*/
438
+ messageDesc(file_metalstack_api_v2_ip, 7);
439
+
440
+ /**
441
+ * IPServiceUpdateResponse is the response payload for a ip update request
442
+ *
443
+ * @generated from message metalstack.api.v2.IPServiceUpdateResponse
444
+ */
445
+ export type IPServiceUpdateResponse = Message<"metalstack.api.v2.IPServiceUpdateResponse"> & {
446
+ /**
447
+ * Ip the ip
448
+ *
449
+ * @generated from field: metalstack.api.v2.IP ip = 1;
450
+ */
451
+ ip?: IP;
452
+ };
453
+
454
+ /**
455
+ * Describes the message metalstack.api.v2.IPServiceUpdateResponse.
456
+ * Use `create(IPServiceUpdateResponseSchema)` to create a new message.
457
+ */
458
+ export const IPServiceUpdateResponseSchema: GenMessage<IPServiceUpdateResponse> = /*@__PURE__*/
459
+ messageDesc(file_metalstack_api_v2_ip, 8);
460
+
461
+ /**
462
+ * IPServiceCreateResponse is the response payload for a ip create request
463
+ *
464
+ * @generated from message metalstack.api.v2.IPServiceCreateResponse
465
+ */
466
+ export type IPServiceCreateResponse = Message<"metalstack.api.v2.IPServiceCreateResponse"> & {
467
+ /**
468
+ * Ip the ip
469
+ *
470
+ * @generated from field: metalstack.api.v2.IP ip = 1;
471
+ */
472
+ ip?: IP;
473
+ };
474
+
475
+ /**
476
+ * Describes the message metalstack.api.v2.IPServiceCreateResponse.
477
+ * Use `create(IPServiceCreateResponseSchema)` to create a new message.
478
+ */
479
+ export const IPServiceCreateResponseSchema: GenMessage<IPServiceCreateResponse> = /*@__PURE__*/
480
+ messageDesc(file_metalstack_api_v2_ip, 9);
481
+
482
+ /**
483
+ * IPServiceListResponse is the response payload for a ip list request
484
+ *
485
+ * @generated from message metalstack.api.v2.IPServiceListResponse
486
+ */
487
+ export type IPServiceListResponse = Message<"metalstack.api.v2.IPServiceListResponse"> & {
488
+ /**
489
+ * Ips the ips
490
+ *
491
+ * @generated from field: repeated metalstack.api.v2.IP ips = 1;
492
+ */
493
+ ips: IP[];
494
+ };
495
+
496
+ /**
497
+ * Describes the message metalstack.api.v2.IPServiceListResponse.
498
+ * Use `create(IPServiceListResponseSchema)` to create a new message.
499
+ */
500
+ export const IPServiceListResponseSchema: GenMessage<IPServiceListResponse> = /*@__PURE__*/
501
+ messageDesc(file_metalstack_api_v2_ip, 10);
502
+
503
+ /**
504
+ * IPServiceDeleteResponse is the response payload for a ip delete request
505
+ *
506
+ * @generated from message metalstack.api.v2.IPServiceDeleteResponse
507
+ */
508
+ export type IPServiceDeleteResponse = Message<"metalstack.api.v2.IPServiceDeleteResponse"> & {
509
+ /**
510
+ * Ip the ip
511
+ *
512
+ * @generated from field: metalstack.api.v2.IP ip = 1;
513
+ */
514
+ ip?: IP;
515
+ };
516
+
517
+ /**
518
+ * Describes the message metalstack.api.v2.IPServiceDeleteResponse.
519
+ * Use `create(IPServiceDeleteResponseSchema)` to create a new message.
520
+ */
521
+ export const IPServiceDeleteResponseSchema: GenMessage<IPServiceDeleteResponse> = /*@__PURE__*/
522
+ messageDesc(file_metalstack_api_v2_ip, 11);
523
+
524
+ /**
525
+ * IPType specifies different ip address types
526
+ *
527
+ * @generated from enum metalstack.api.v2.IPType
528
+ */
529
+ export enum IPType {
530
+ /**
531
+ * IP_TYPE_UNSPECIFIED is not specified
532
+ *
533
+ * @generated from enum value: IP_TYPE_UNSPECIFIED = 0;
534
+ */
535
+ IP_TYPE_UNSPECIFIED = 0,
536
+
537
+ /**
538
+ * IP_TYPE_EPHEMERAL defines a ephemeral ip address which is freed/deleted after usage
539
+ *
540
+ * @generated from enum value: IP_TYPE_EPHEMERAL = 1;
541
+ */
542
+ IP_TYPE_EPHEMERAL = 1,
543
+
544
+ /**
545
+ * IP_TYPE_STATIC defines a static ip address which must be freed/deleted explicitly
546
+ *
547
+ * @generated from enum value: IP_TYPE_STATIC = 2;
548
+ */
549
+ IP_TYPE_STATIC = 2,
550
+ }
551
+
552
+ /**
553
+ * Describes the enum metalstack.api.v2.IPType.
554
+ */
555
+ export const IPTypeSchema: GenEnum<IPType> = /*@__PURE__*/
556
+ enumDesc(file_metalstack_api_v2_ip, 0);
557
+
558
+ /**
559
+ * IPAddressFamily defines either IPv4 or IPv6 Addressfamily
560
+ *
561
+ * @generated from enum metalstack.api.v2.IPAddressFamily
562
+ */
563
+ export enum IPAddressFamily {
564
+ /**
565
+ * IP_ADDRESS_FAMILY_UNSPECIFIED is not specified
566
+ *
567
+ * @generated from enum value: IP_ADDRESS_FAMILY_UNSPECIFIED = 0;
568
+ */
569
+ IP_ADDRESS_FAMILY_UNSPECIFIED = 0,
570
+
571
+ /**
572
+ * IP_ADDRESS_FAMILY_V4 defines a IPv4 address
573
+ *
574
+ * @generated from enum value: IP_ADDRESS_FAMILY_V4 = 1;
575
+ */
576
+ IP_ADDRESS_FAMILY_V4 = 1,
577
+
578
+ /**
579
+ * IP_ADDRESS_FAMILY_V6 defines a IPv6 address
580
+ *
581
+ * @generated from enum value: IP_ADDRESS_FAMILY_V6 = 2;
582
+ */
583
+ IP_ADDRESS_FAMILY_V6 = 2,
584
+ }
585
+
586
+ /**
587
+ * Describes the enum metalstack.api.v2.IPAddressFamily.
588
+ */
589
+ export const IPAddressFamilySchema: GenEnum<IPAddressFamily> = /*@__PURE__*/
590
+ enumDesc(file_metalstack_api_v2_ip, 1);
591
+
592
+ /**
593
+ * IPService serves ip address related functions
594
+ *
595
+ * @generated from service metalstack.api.v2.IPService
596
+ */
597
+ export const IPService: GenService<{
598
+ /**
599
+ * Get a ip
600
+ *
601
+ * @generated from rpc metalstack.api.v2.IPService.Get
602
+ */
603
+ get: {
604
+ methodKind: "unary";
605
+ input: typeof IPServiceGetRequestSchema;
606
+ output: typeof IPServiceGetResponseSchema;
607
+ },
608
+ /**
609
+ * Create a ip
610
+ *
611
+ * @generated from rpc metalstack.api.v2.IPService.Create
612
+ */
613
+ create: {
614
+ methodKind: "unary";
615
+ input: typeof IPServiceCreateRequestSchema;
616
+ output: typeof IPServiceCreateResponseSchema;
617
+ },
618
+ /**
619
+ * Update a ip
620
+ *
621
+ * @generated from rpc metalstack.api.v2.IPService.Update
622
+ */
623
+ update: {
624
+ methodKind: "unary";
625
+ input: typeof IPServiceUpdateRequestSchema;
626
+ output: typeof IPServiceUpdateResponseSchema;
627
+ },
628
+ /**
629
+ * List all ips
630
+ *
631
+ * @generated from rpc metalstack.api.v2.IPService.List
632
+ */
633
+ list: {
634
+ methodKind: "unary";
635
+ input: typeof IPServiceListRequestSchema;
636
+ output: typeof IPServiceListResponseSchema;
637
+ },
638
+ /**
639
+ * Delete a ip
640
+ *
641
+ * @generated from rpc metalstack.api.v2.IPService.Delete
642
+ */
643
+ delete: {
644
+ methodKind: "unary";
645
+ input: typeof IPServiceDeleteRequestSchema;
646
+ output: typeof IPServiceDeleteResponseSchema;
647
+ },
648
+ }> = /*@__PURE__*/
649
+ serviceDesc(file_metalstack_api_v2_ip, 0);
650
+