@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,488 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
+ // @generated from file metalstack/api/v2/common.proto (package metalstack.api.v2, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
+ import { enumDesc, extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
8
+ import type { EnumValueOptions, MethodOptions, Timestamp } from "@bufbuild/protobuf/wkt";
9
+ import { file_google_protobuf_descriptor, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
10
+ import type { Message } from "@bufbuild/protobuf";
11
+
12
+ /**
13
+ * Describes the file metalstack/api/v2/common.proto.
14
+ */
15
+ export const file_metalstack_api_v2_common: GenFile = /*@__PURE__*/
16
+ fileDesc("Ch5tZXRhbHN0YWNrL2FwaS92Mi9jb21tb24ucHJvdG8SEW1ldGFsc3RhY2suYXBpLnYyIkIKBlBhZ2luZxIRCgRwYWdlGAEgASgESACIAQESEgoFY291bnQYAiABKARIAYgBAUIHCgVfcGFnZUIICgZfY291bnQiiAEKBkxhYmVscxJPCgZsYWJlbHMYASADKAsyJS5tZXRhbHN0YWNrLmFwaS52Mi5MYWJlbHMuTGFiZWxzRW50cnlCGLpIFZoBEiIHcgUQARiAAioHcgUQABiAAhotCgtMYWJlbHNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIrUBCgRNZXRhEi4KBmxhYmVscxgBIAEoCzIZLm1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luZzpfCgtpbmZyYV9yb2xlcxIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zGL2OAyADKA4yHC5tZXRhbHN0YWNrLmFwaS52Mi5JbmZyYVJvbGVSCmluZnJhUm9sZXM6TwoRZW51bV9zdHJpbmdfdmFsdWUSIS5nb29nbGUucHJvdG9idWYuRW51bVZhbHVlT3B0aW9ucxiglgMgASgJUg9lbnVtU3RyaW5nVmFsdWVCwQEKFWNvbS5tZXRhbHN0YWNrLmFwaS52MkILQ29tbW9uUHJvdG9QAVo1Z2l0aHViLmNvbS9tZXRhbC1zdGFjay9hcGkvZ28vbWV0YWxzdGFjay9hcGkvdjI7YXBpdjKiAgNNQViqAhFNZXRhbHN0YWNrLkFwaS5WMsoCEU1ldGFsc3RhY2tcQXBpXFYy4gIdTWV0YWxzdGFja1xBcGlcVjJcR1BCTWV0YWRhdGHqAhNNZXRhbHN0YWNrOjpBcGk6OlYyYgZwcm90bzM", [file_buf_validate_validate, file_google_protobuf_descriptor, file_google_protobuf_timestamp]);
17
+
18
+ /**
19
+ * Paging defines paging for methods with a lot of results
20
+ *
21
+ * @generated from message metalstack.api.v2.Paging
22
+ */
23
+ export type Paging = Message<"metalstack.api.v2.Paging"> & {
24
+ /**
25
+ * Page is used for pagination, if unset only the first page is returned,
26
+ * the list response contains then the page number for the next page.
27
+ *
28
+ * @generated from field: optional uint64 page = 1;
29
+ */
30
+ page?: bigint;
31
+
32
+ /**
33
+ * Count is the number of results returned per page, if not given server side defaults apply
34
+ *
35
+ * @generated from field: optional uint64 count = 2;
36
+ */
37
+ count?: bigint;
38
+ };
39
+
40
+ /**
41
+ * Describes the message metalstack.api.v2.Paging.
42
+ * Use `create(PagingSchema)` to create a new message.
43
+ */
44
+ export const PagingSchema: GenMessage<Paging> = /*@__PURE__*/
45
+ messageDesc(file_metalstack_api_v2_common, 0);
46
+
47
+ /**
48
+ * Labels define additional information to a entity
49
+ *
50
+ * @generated from message metalstack.api.v2.Labels
51
+ */
52
+ export type Labels = Message<"metalstack.api.v2.Labels"> & {
53
+ /**
54
+ * Labels consists labels
55
+ *
56
+ * @generated from field: map<string, string> labels = 1;
57
+ */
58
+ labels: { [key: string]: string };
59
+ };
60
+
61
+ /**
62
+ * Describes the message metalstack.api.v2.Labels.
63
+ * Use `create(LabelsSchema)` to create a new message.
64
+ */
65
+ export const LabelsSchema: GenMessage<Labels> = /*@__PURE__*/
66
+ messageDesc(file_metalstack_api_v2_common, 1);
67
+
68
+ /**
69
+ * Meta of a message
70
+ *
71
+ * @generated from message metalstack.api.v2.Meta
72
+ */
73
+ export type Meta = Message<"metalstack.api.v2.Meta"> & {
74
+ /**
75
+ * Tags on this entity
76
+ *
77
+ * @generated from field: optional metalstack.api.v2.Labels labels = 1;
78
+ */
79
+ labels?: Labels;
80
+
81
+ /**
82
+ * CreatedAt is the date when this entity was created
83
+ *
84
+ * @generated from field: google.protobuf.Timestamp created_at = 2;
85
+ */
86
+ createdAt?: Timestamp;
87
+
88
+ /**
89
+ * UpdatedAt is the date when this entity was updated
90
+ * must be part of the update request to ensure optimistic locking
91
+ *
92
+ * @generated from field: google.protobuf.Timestamp updated_at = 3;
93
+ */
94
+ updatedAt?: Timestamp;
95
+
96
+ /**
97
+ * Generation identifies how often this entity was modified since creation.
98
+ *
99
+ * @generated from field: uint64 generation = 4;
100
+ */
101
+ generation: bigint;
102
+ };
103
+
104
+ /**
105
+ * Describes the message metalstack.api.v2.Meta.
106
+ * Use `create(MetaSchema)` to create a new message.
107
+ */
108
+ export const MetaSchema: GenMessage<Meta> = /*@__PURE__*/
109
+ messageDesc(file_metalstack_api_v2_common, 2);
110
+
111
+ /**
112
+ * UpdateLabels is a message to update labels
113
+ *
114
+ * @generated from message metalstack.api.v2.UpdateLabels
115
+ */
116
+ export type UpdateLabels = Message<"metalstack.api.v2.UpdateLabels"> & {
117
+ /**
118
+ * Update labels. New ones will be added, existing ones overwritten
119
+ *
120
+ * @generated from field: metalstack.api.v2.Labels update = 1;
121
+ */
122
+ update?: Labels;
123
+
124
+ /**
125
+ * Remove labels by key
126
+ *
127
+ * @generated from field: repeated string remove = 2;
128
+ */
129
+ remove: string[];
130
+ };
131
+
132
+ /**
133
+ * Describes the message metalstack.api.v2.UpdateLabels.
134
+ * Use `create(UpdateLabelsSchema)` to create a new message.
135
+ */
136
+ export const UpdateLabelsSchema: GenMessage<UpdateLabels> = /*@__PURE__*/
137
+ messageDesc(file_metalstack_api_v2_common, 3);
138
+
139
+ /**
140
+ * UpdateMeta must be provided with every UpdateRequest to define how optimistic locking should be handled
141
+ *
142
+ * @generated from message metalstack.api.v2.UpdateMeta
143
+ */
144
+ export type UpdateMeta = Message<"metalstack.api.v2.UpdateMeta"> & {
145
+ /**
146
+ * UpdatedAt is the date when this entity was updated
147
+ * must be part of the update request to ensure optimistic locking
148
+ *
149
+ * @generated from field: google.protobuf.Timestamp updated_at = 1;
150
+ */
151
+ updatedAt?: Timestamp;
152
+
153
+ /**
154
+ * LockingStrategy to be used for this update request
155
+ *
156
+ * @generated from field: metalstack.api.v2.OptimisticLockingStrategy locking_strategy = 2;
157
+ */
158
+ lockingStrategy: OptimisticLockingStrategy;
159
+ };
160
+
161
+ /**
162
+ * Describes the message metalstack.api.v2.UpdateMeta.
163
+ * Use `create(UpdateMetaSchema)` to create a new message.
164
+ */
165
+ export const UpdateMetaSchema: GenMessage<UpdateMeta> = /*@__PURE__*/
166
+ messageDesc(file_metalstack_api_v2_common, 4);
167
+
168
+ /**
169
+ * TenantRole specifies what role a logged in user needs to call this tenant scoped service
170
+ *
171
+ * @generated from enum metalstack.api.v2.TenantRole
172
+ */
173
+ export enum TenantRole {
174
+ /**
175
+ * TENANT_ROLE_UNSPECIFIED is not specified
176
+ *
177
+ * @generated from enum value: TENANT_ROLE_UNSPECIFIED = 0;
178
+ */
179
+ UNSPECIFIED = 0,
180
+
181
+ /**
182
+ * TENANT_ROLE_OWNER the logged in user needs at least owner role to call this method
183
+ *
184
+ * @generated from enum value: TENANT_ROLE_OWNER = 1;
185
+ */
186
+ OWNER = 1,
187
+
188
+ /**
189
+ * TENANT_ROLE_EDITOR the logged in user needs at least editor role to call this method
190
+ *
191
+ * @generated from enum value: TENANT_ROLE_EDITOR = 2;
192
+ */
193
+ EDITOR = 2,
194
+
195
+ /**
196
+ * TENANT_ROLE_VIEWER the logged in user needs at least viewer role to call this method
197
+ *
198
+ * @generated from enum value: TENANT_ROLE_VIEWER = 3;
199
+ */
200
+ VIEWER = 3,
201
+
202
+ /**
203
+ * TENANT_ROLE_GUEST the logged in user needs at least guest role to call this method
204
+ * The guest role is assumed by users who are invited to a tenant's project without them
205
+ * having a direct membership within the tenant.
206
+ *
207
+ * @generated from enum value: TENANT_ROLE_GUEST = 4;
208
+ */
209
+ GUEST = 4,
210
+ }
211
+
212
+ /**
213
+ * Describes the enum metalstack.api.v2.TenantRole.
214
+ */
215
+ export const TenantRoleSchema: GenEnum<TenantRole> = /*@__PURE__*/
216
+ enumDesc(file_metalstack_api_v2_common, 0);
217
+
218
+ /**
219
+ * ProjectRole specifies what role a logged in user needs to call this project scoped service
220
+ *
221
+ * @generated from enum metalstack.api.v2.ProjectRole
222
+ */
223
+ export enum ProjectRole {
224
+ /**
225
+ * PROJECT_ROLE_UNSPECIFIED is not specified
226
+ *
227
+ * @generated from enum value: PROJECT_ROLE_UNSPECIFIED = 0;
228
+ */
229
+ UNSPECIFIED = 0,
230
+
231
+ /**
232
+ * PROJECT_ROLE_OWNER the logged in user needs at least owner role to call this method
233
+ *
234
+ * @generated from enum value: PROJECT_ROLE_OWNER = 1;
235
+ */
236
+ OWNER = 1,
237
+
238
+ /**
239
+ * PROJECT_ROLE_EDITOR the logged in user needs at least editor role to call this method
240
+ *
241
+ * @generated from enum value: PROJECT_ROLE_EDITOR = 2;
242
+ */
243
+ EDITOR = 2,
244
+
245
+ /**
246
+ * PROJECT_ROLE_VIEWER the logged in user needs at least viewer role to call this method
247
+ *
248
+ * @generated from enum value: PROJECT_ROLE_VIEWER = 3;
249
+ */
250
+ VIEWER = 3,
251
+ }
252
+
253
+ /**
254
+ * Describes the enum metalstack.api.v2.ProjectRole.
255
+ */
256
+ export const ProjectRoleSchema: GenEnum<ProjectRole> = /*@__PURE__*/
257
+ enumDesc(file_metalstack_api_v2_common, 1);
258
+
259
+ /**
260
+ * AdminRole specifies what role a logged in user needs to call this admin service
261
+ *
262
+ * @generated from enum metalstack.api.v2.AdminRole
263
+ */
264
+ export enum AdminRole {
265
+ /**
266
+ * ADMIN_ROLE_UNSPECIFIED is not specified
267
+ *
268
+ * @generated from enum value: ADMIN_ROLE_UNSPECIFIED = 0;
269
+ */
270
+ UNSPECIFIED = 0,
271
+
272
+ /**
273
+ * ADMIN_ROLE_EDITOR the logged in user needs at least editor role to call this method
274
+ *
275
+ * @generated from enum value: ADMIN_ROLE_EDITOR = 1;
276
+ */
277
+ EDITOR = 1,
278
+
279
+ /**
280
+ * ADMIN_ROLE_VIEWER the logged in user needs at least viewer role to call this method
281
+ *
282
+ * @generated from enum value: ADMIN_ROLE_VIEWER = 2;
283
+ */
284
+ VIEWER = 2,
285
+ }
286
+
287
+ /**
288
+ * Describes the enum metalstack.api.v2.AdminRole.
289
+ */
290
+ export const AdminRoleSchema: GenEnum<AdminRole> = /*@__PURE__*/
291
+ enumDesc(file_metalstack_api_v2_common, 2);
292
+
293
+ /**
294
+ * InfraRole specifies what role a microservice needs to call this infra service
295
+ *
296
+ * @generated from enum metalstack.api.v2.InfraRole
297
+ */
298
+ export enum InfraRole {
299
+ /**
300
+ * INFRA_ROLE_UNSPECIFIED is not specified
301
+ *
302
+ * @generated from enum value: INFRA_ROLE_UNSPECIFIED = 0;
303
+ */
304
+ UNSPECIFIED = 0,
305
+
306
+ /**
307
+ * INFRA_ROLE_EDITOR a microservice needs at least editor role to call this method
308
+ *
309
+ * @generated from enum value: INFRA_ROLE_EDITOR = 1;
310
+ */
311
+ EDITOR = 1,
312
+
313
+ /**
314
+ * INFRA_ROLE_VIEWER a microservice needs at least viewer role to call this method
315
+ *
316
+ * @generated from enum value: INFRA_ROLE_VIEWER = 2;
317
+ */
318
+ VIEWER = 2,
319
+ }
320
+
321
+ /**
322
+ * Describes the enum metalstack.api.v2.InfraRole.
323
+ */
324
+ export const InfraRoleSchema: GenEnum<InfraRole> = /*@__PURE__*/
325
+ enumDesc(file_metalstack_api_v2_common, 3);
326
+
327
+ /**
328
+ * Visibility of a method
329
+ *
330
+ * @generated from enum metalstack.api.v2.Visibility
331
+ */
332
+ export enum Visibility {
333
+ /**
334
+ * VISIBILITY_UNSPECIFIED is not defined
335
+ *
336
+ * @generated from enum value: VISIBILITY_UNSPECIFIED = 0;
337
+ */
338
+ UNSPECIFIED = 0,
339
+
340
+ /**
341
+ * VISIBILITY_PUBLIC specifies that this service is accessible without authentication
342
+ *
343
+ * @generated from enum value: VISIBILITY_PUBLIC = 1;
344
+ */
345
+ PUBLIC = 1,
346
+
347
+ /**
348
+ * VISIBILITY_SELF enable call this endpoint from the authenticated user only
349
+ *
350
+ * @generated from enum value: VISIBILITY_SELF = 3;
351
+ */
352
+ SELF = 3,
353
+ }
354
+
355
+ /**
356
+ * Describes the enum metalstack.api.v2.Visibility.
357
+ */
358
+ export const VisibilitySchema: GenEnum<Visibility> = /*@__PURE__*/
359
+ enumDesc(file_metalstack_api_v2_common, 4);
360
+
361
+ /**
362
+ * Auditing option specified per service method
363
+ * by default all service methods are included
364
+ * add the auditing option if you want to exclude a method in auditing
365
+ *
366
+ * @generated from enum metalstack.api.v2.Auditing
367
+ */
368
+ export enum Auditing {
369
+ /**
370
+ * AUDITING_UNSPECIFIED is not specified
371
+ *
372
+ * @generated from enum value: AUDITING_UNSPECIFIED = 0;
373
+ */
374
+ UNSPECIFIED = 0,
375
+
376
+ /**
377
+ * AUDITING_INCLUDED if a method is annotated with this, all calls are audited
378
+ *
379
+ * @generated from enum value: AUDITING_INCLUDED = 1;
380
+ */
381
+ INCLUDED = 1,
382
+
383
+ /**
384
+ * AUDITING_EXCLUDED if a method is annotated with this, no calls are audited
385
+ *
386
+ * @generated from enum value: AUDITING_EXCLUDED = 2;
387
+ */
388
+ EXCLUDED = 2,
389
+ }
390
+
391
+ /**
392
+ * Describes the enum metalstack.api.v2.Auditing.
393
+ */
394
+ export const AuditingSchema: GenEnum<Auditing> = /*@__PURE__*/
395
+ enumDesc(file_metalstack_api_v2_common, 5);
396
+
397
+ /**
398
+ * OptimisticLockingStrategy defines how optimistic locking should be handled.
399
+ * It defaults to client side, which requires the UpdatedAt timestamp to be provided
400
+ *
401
+ * @generated from enum metalstack.api.v2.OptimisticLockingStrategy
402
+ */
403
+ export enum OptimisticLockingStrategy {
404
+ /**
405
+ * OPTIMISTIC_LOCKING_STRATEGY_UNSPECIFIED same as client side
406
+ *
407
+ * @generated from enum value: OPTIMISTIC_LOCKING_STRATEGY_UNSPECIFIED = 0;
408
+ */
409
+ UNSPECIFIED = 0,
410
+
411
+ /**
412
+ * OPTIMISTIC_LOCKING_STRATEGY_CLIENT requires UpdatedAt to be specified
413
+ *
414
+ * @generated from enum value: OPTIMISTIC_LOCKING_STRATEGY_CLIENT = 1;
415
+ */
416
+ CLIENT = 1,
417
+
418
+ /**
419
+ * OPTIMISTIC_LOCKING_STRATEGY_SERVER allows to omit UpdatedAt
420
+ * and fetches the most recent entity before updating with the given values with the update request
421
+ *
422
+ * @generated from enum value: OPTIMISTIC_LOCKING_STRATEGY_SERVER = 2;
423
+ */
424
+ SERVER = 2,
425
+ }
426
+
427
+ /**
428
+ * Describes the enum metalstack.api.v2.OptimisticLockingStrategy.
429
+ */
430
+ export const OptimisticLockingStrategySchema: GenEnum<OptimisticLockingStrategy> = /*@__PURE__*/
431
+ enumDesc(file_metalstack_api_v2_common, 6);
432
+
433
+ /**
434
+ * TenantRoles are used to define which tenant role a logged in user must provide to call this method
435
+ *
436
+ * @generated from extension: repeated metalstack.api.v2.TenantRole tenant_roles = 51000;
437
+ */
438
+ export const tenant_roles: GenExtension<MethodOptions, TenantRole[]> = /*@__PURE__*/
439
+ extDesc(file_metalstack_api_v2_common, 0);
440
+
441
+ /**
442
+ * ProjectRoles are used to define which project role a logged in user must provide to call this method
443
+ *
444
+ * @generated from extension: repeated metalstack.api.v2.ProjectRole project_roles = 51001;
445
+ */
446
+ export const project_roles: GenExtension<MethodOptions, ProjectRole[]> = /*@__PURE__*/
447
+ extDesc(file_metalstack_api_v2_common, 1);
448
+
449
+ /**
450
+ * AdminRoles are used to define which admin role a logged in user must provide to call this method
451
+ *
452
+ * @generated from extension: repeated metalstack.api.v2.AdminRole admin_roles = 51002;
453
+ */
454
+ export const admin_roles: GenExtension<MethodOptions, AdminRole[]> = /*@__PURE__*/
455
+ extDesc(file_metalstack_api_v2_common, 2);
456
+
457
+ /**
458
+ * Visibility defines the visibility of this method, this is used to have public or self visible methods
459
+ *
460
+ * @generated from extension: metalstack.api.v2.Visibility visibility = 51003;
461
+ */
462
+ export const visibility: GenExtension<MethodOptions, Visibility> = /*@__PURE__*/
463
+ extDesc(file_metalstack_api_v2_common, 3);
464
+
465
+ /**
466
+ * Auditing defines if calls to this method should be audited or not
467
+ *
468
+ * @generated from extension: metalstack.api.v2.Auditing auditing = 51004;
469
+ */
470
+ export const auditing: GenExtension<MethodOptions, Auditing> = /*@__PURE__*/
471
+ extDesc(file_metalstack_api_v2_common, 4);
472
+
473
+ /**
474
+ * InfraRoles are used to define which infra role a microservice must provide to call this method
475
+ *
476
+ * @generated from extension: repeated metalstack.api.v2.InfraRole infra_roles = 51005;
477
+ */
478
+ export const infra_roles: GenExtension<MethodOptions, InfraRole[]> = /*@__PURE__*/
479
+ extDesc(file_metalstack_api_v2_common, 5);
480
+
481
+ /**
482
+ * StringValue which can be set to a enum
483
+ *
484
+ * @generated from extension: string enum_string_value = 52000;
485
+ */
486
+ export const enum_string_value: GenExtension<EnumValueOptions, string> = /*@__PURE__*/
487
+ extDesc(file_metalstack_api_v2_common, 6);
488
+