metalstack.cloud 0.15.2__py3-none-any.whl

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 (111) hide show
  1. buf/__init__.py +0 -0
  2. buf/validate/__init__.py +0 -0
  3. buf/validate/validate_pb2.py +450 -0
  4. buf/validate/validate_pb2.pyi +631 -0
  5. buf/validate/validate_pb2_grpc.py +4 -0
  6. metalstack_cloud-0.15.2.dist-info/METADATA +26 -0
  7. metalstack_cloud-0.15.2.dist-info/RECORD +111 -0
  8. metalstack_cloud-0.15.2.dist-info/WHEEL +5 -0
  9. metalstack_cloud-0.15.2.dist-info/top_level.txt +2 -0
  10. metalstackcloud/__init__.py +0 -0
  11. metalstackcloud/admin/__init__.py +0 -0
  12. metalstackcloud/admin/v1/__init__.py +0 -0
  13. metalstackcloud/admin/v1/cluster_connecpy.py +214 -0
  14. metalstackcloud/admin/v1/cluster_pb2.py +70 -0
  15. metalstackcloud/admin/v1/cluster_pb2.pyi +93 -0
  16. metalstackcloud/admin/v1/cluster_pb2_grpc.py +169 -0
  17. metalstackcloud/admin/v1/machine_pb2.py +42 -0
  18. metalstackcloud/admin/v1/machine_pb2.pyi +76 -0
  19. metalstackcloud/admin/v1/machine_pb2_grpc.py +4 -0
  20. metalstackcloud/admin/v1/payment_connecpy.py +158 -0
  21. metalstackcloud/admin/v1/payment_pb2.py +51 -0
  22. metalstackcloud/admin/v1/payment_pb2.pyi +33 -0
  23. metalstackcloud/admin/v1/payment_pb2_grpc.py +125 -0
  24. metalstackcloud/admin/v1/project_connecpy.py +102 -0
  25. metalstackcloud/admin/v1/project_pb2.py +49 -0
  26. metalstackcloud/admin/v1/project_pb2.pyi +34 -0
  27. metalstackcloud/admin/v1/project_pb2_grpc.py +81 -0
  28. metalstackcloud/admin/v1/storage_connecpy.py +214 -0
  29. metalstackcloud/admin/v1/storage_pb2.py +75 -0
  30. metalstackcloud/admin/v1/storage_pb2.pyi +149 -0
  31. metalstackcloud/admin/v1/storage_pb2_grpc.py +169 -0
  32. metalstackcloud/admin/v1/tenant_connecpy.py +270 -0
  33. metalstackcloud/admin/v1/tenant_pb2.py +66 -0
  34. metalstackcloud/admin/v1/tenant_pb2.pyi +72 -0
  35. metalstackcloud/admin/v1/tenant_pb2_grpc.py +213 -0
  36. metalstackcloud/admin/v1/token_connecpy.py +158 -0
  37. metalstackcloud/admin/v1/token_pb2.py +56 -0
  38. metalstackcloud/admin/v1/token_pb2.pyi +34 -0
  39. metalstackcloud/admin/v1/token_pb2_grpc.py +125 -0
  40. metalstackcloud/api/__init__.py +0 -0
  41. metalstackcloud/api/v1/__init__.py +0 -0
  42. metalstackcloud/api/v1/asset_connecpy.py +102 -0
  43. metalstackcloud/api/v1/asset_pb2.py +76 -0
  44. metalstackcloud/api/v1/asset_pb2.pyi +132 -0
  45. metalstackcloud/api/v1/asset_pb2_grpc.py +81 -0
  46. metalstackcloud/api/v1/audit_connecpy.py +158 -0
  47. metalstackcloud/api/v1/audit_pb2.py +84 -0
  48. metalstackcloud/api/v1/audit_pb2.pyi +95 -0
  49. metalstackcloud/api/v1/audit_pb2_grpc.py +125 -0
  50. metalstackcloud/api/v1/cluster_connecpy.py +494 -0
  51. metalstackcloud/api/v1/cluster_pb2.py +183 -0
  52. metalstackcloud/api/v1/cluster_pb2.pyi +311 -0
  53. metalstackcloud/api/v1/cluster_pb2_grpc.py +389 -0
  54. metalstackcloud/api/v1/common_pb2.py +52 -0
  55. metalstackcloud/api/v1/common_pb2.pyi +98 -0
  56. metalstackcloud/api/v1/common_pb2_grpc.py +4 -0
  57. metalstackcloud/api/v1/health_connecpy.py +102 -0
  58. metalstackcloud/api/v1/health_pb2.py +58 -0
  59. metalstackcloud/api/v1/health_pb2.pyi +74 -0
  60. metalstackcloud/api/v1/health_pb2_grpc.py +81 -0
  61. metalstackcloud/api/v1/ip_connecpy.py +326 -0
  62. metalstackcloud/api/v1/ip_pb2.py +110 -0
  63. metalstackcloud/api/v1/ip_pb2.pyi +122 -0
  64. metalstackcloud/api/v1/ip_pb2_grpc.py +257 -0
  65. metalstackcloud/api/v1/method_connecpy.py +158 -0
  66. metalstackcloud/api/v1/method_pb2.py +62 -0
  67. metalstackcloud/api/v1/method_pb2.pyi +50 -0
  68. metalstackcloud/api/v1/method_pb2_grpc.py +128 -0
  69. metalstackcloud/api/v1/payment_connecpy.py +550 -0
  70. metalstackcloud/api/v1/payment_pb2.py +134 -0
  71. metalstackcloud/api/v1/payment_pb2.pyi +291 -0
  72. metalstackcloud/api/v1/payment_pb2_grpc.py +433 -0
  73. metalstackcloud/api/v1/project_connecpy.py +718 -0
  74. metalstackcloud/api/v1/project_pb2.py +156 -0
  75. metalstackcloud/api/v1/project_pb2.pyi +234 -0
  76. metalstackcloud/api/v1/project_pb2_grpc.py +565 -0
  77. metalstackcloud/api/v1/snapshot_connecpy.py +214 -0
  78. metalstackcloud/api/v1/snapshot_pb2.py +75 -0
  79. metalstackcloud/api/v1/snapshot_pb2.pyi +109 -0
  80. metalstackcloud/api/v1/snapshot_pb2_grpc.py +169 -0
  81. metalstackcloud/api/v1/tenant_connecpy.py +774 -0
  82. metalstackcloud/api/v1/tenant_pb2.py +159 -0
  83. metalstackcloud/api/v1/tenant_pb2.pyi +305 -0
  84. metalstackcloud/api/v1/tenant_pb2_grpc.py +609 -0
  85. metalstackcloud/api/v1/token_connecpy.py +326 -0
  86. metalstackcloud/api/v1/token_pb2.py +131 -0
  87. metalstackcloud/api/v1/token_pb2.pyi +175 -0
  88. metalstackcloud/api/v1/token_pb2_grpc.py +257 -0
  89. metalstackcloud/api/v1/user_connecpy.py +102 -0
  90. metalstackcloud/api/v1/user_pb2.py +48 -0
  91. metalstackcloud/api/v1/user_pb2.pyi +42 -0
  92. metalstackcloud/api/v1/user_pb2_grpc.py +81 -0
  93. metalstackcloud/api/v1/version_connecpy.py +102 -0
  94. metalstackcloud/api/v1/version_pb2.py +46 -0
  95. metalstackcloud/api/v1/version_pb2.pyi +29 -0
  96. metalstackcloud/api/v1/version_pb2_grpc.py +81 -0
  97. metalstackcloud/api/v1/volume_connecpy.py +270 -0
  98. metalstackcloud/api/v1/volume_pb2.py +91 -0
  99. metalstackcloud/api/v1/volume_pb2.pyi +165 -0
  100. metalstackcloud/api/v1/volume_pb2_grpc.py +213 -0
  101. metalstackcloud/client.py +139 -0
  102. metalstackcloud/status/__init__.py +0 -0
  103. metalstackcloud/status/v1/__init__.py +0 -0
  104. metalstackcloud/status/v1/message_connecpy.py +102 -0
  105. metalstackcloud/status/v1/message_pb2.py +51 -0
  106. metalstackcloud/status/v1/message_pb2.pyi +65 -0
  107. metalstackcloud/status/v1/message_pb2_grpc.py +84 -0
  108. metalstackcloud/status/v1/status_connecpy.py +102 -0
  109. metalstackcloud/status/v1/status_pb2.py +45 -0
  110. metalstackcloud/status/v1/status_pb2.pyi +24 -0
  111. metalstackcloud/status/v1/status_pb2_grpc.py +84 -0
@@ -0,0 +1,389 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
5
+ from metalstackcloud.api.v1 import cluster_pb2 as api_dot_v1_dot_cluster__pb2
6
+
7
+
8
+ class ClusterServiceStub(object):
9
+ """ClusterService serves kubernetes cluster related functions
10
+ """
11
+
12
+ def __init__(self, channel):
13
+ """Constructor.
14
+
15
+ Args:
16
+ channel: A grpc.Channel.
17
+ """
18
+ self.Create = channel.unary_unary(
19
+ '/api.v1.ClusterService/Create',
20
+ request_serializer=api_dot_v1_dot_cluster__pb2.ClusterServiceCreateRequest.SerializeToString,
21
+ response_deserializer=api_dot_v1_dot_cluster__pb2.ClusterServiceCreateResponse.FromString,
22
+ _registered_method=True)
23
+ self.Get = channel.unary_unary(
24
+ '/api.v1.ClusterService/Get',
25
+ request_serializer=api_dot_v1_dot_cluster__pb2.ClusterServiceGetRequest.SerializeToString,
26
+ response_deserializer=api_dot_v1_dot_cluster__pb2.ClusterServiceGetResponse.FromString,
27
+ _registered_method=True)
28
+ self.List = channel.unary_unary(
29
+ '/api.v1.ClusterService/List',
30
+ request_serializer=api_dot_v1_dot_cluster__pb2.ClusterServiceListRequest.SerializeToString,
31
+ response_deserializer=api_dot_v1_dot_cluster__pb2.ClusterServiceListResponse.FromString,
32
+ _registered_method=True)
33
+ self.WatchStatus = channel.unary_stream(
34
+ '/api.v1.ClusterService/WatchStatus',
35
+ request_serializer=api_dot_v1_dot_cluster__pb2.ClusterServiceWatchStatusRequest.SerializeToString,
36
+ response_deserializer=api_dot_v1_dot_cluster__pb2.ClusterServiceWatchStatusResponse.FromString,
37
+ _registered_method=True)
38
+ self.Delete = channel.unary_unary(
39
+ '/api.v1.ClusterService/Delete',
40
+ request_serializer=api_dot_v1_dot_cluster__pb2.ClusterServiceDeleteRequest.SerializeToString,
41
+ response_deserializer=api_dot_v1_dot_cluster__pb2.ClusterServiceDeleteResponse.FromString,
42
+ _registered_method=True)
43
+ self.Update = channel.unary_unary(
44
+ '/api.v1.ClusterService/Update',
45
+ request_serializer=api_dot_v1_dot_cluster__pb2.ClusterServiceUpdateRequest.SerializeToString,
46
+ response_deserializer=api_dot_v1_dot_cluster__pb2.ClusterServiceUpdateResponse.FromString,
47
+ _registered_method=True)
48
+ self.GetCredentials = channel.unary_unary(
49
+ '/api.v1.ClusterService/GetCredentials',
50
+ request_serializer=api_dot_v1_dot_cluster__pb2.ClusterServiceGetCredentialsRequest.SerializeToString,
51
+ response_deserializer=api_dot_v1_dot_cluster__pb2.ClusterServiceGetCredentialsResponse.FromString,
52
+ _registered_method=True)
53
+ self.Operate = channel.unary_unary(
54
+ '/api.v1.ClusterService/Operate',
55
+ request_serializer=api_dot_v1_dot_cluster__pb2.ClusterServiceOperateRequest.SerializeToString,
56
+ response_deserializer=api_dot_v1_dot_cluster__pb2.ClusterServiceOperateResponse.FromString,
57
+ _registered_method=True)
58
+
59
+
60
+ class ClusterServiceServicer(object):
61
+ """ClusterService serves kubernetes cluster related functions
62
+ """
63
+
64
+ def Create(self, request, context):
65
+ """Create a cluster
66
+ """
67
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
68
+ context.set_details('Method not implemented!')
69
+ raise NotImplementedError('Method not implemented!')
70
+
71
+ def Get(self, request, context):
72
+ """Get a cluster
73
+ """
74
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
75
+ context.set_details('Method not implemented!')
76
+ raise NotImplementedError('Method not implemented!')
77
+
78
+ def List(self, request, context):
79
+ """List clusters
80
+ """
81
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
82
+ context.set_details('Method not implemented!')
83
+ raise NotImplementedError('Method not implemented!')
84
+
85
+ def WatchStatus(self, request, context):
86
+ """WatchStatus of a cluster
87
+ """
88
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
89
+ context.set_details('Method not implemented!')
90
+ raise NotImplementedError('Method not implemented!')
91
+
92
+ def Delete(self, request, context):
93
+ """Delete a cluster
94
+ """
95
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
96
+ context.set_details('Method not implemented!')
97
+ raise NotImplementedError('Method not implemented!')
98
+
99
+ def Update(self, request, context):
100
+ """Update a cluster
101
+ """
102
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
103
+ context.set_details('Method not implemented!')
104
+ raise NotImplementedError('Method not implemented!')
105
+
106
+ def GetCredentials(self, request, context):
107
+ """GetCredentials of a cluster
108
+ """
109
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
110
+ context.set_details('Method not implemented!')
111
+ raise NotImplementedError('Method not implemented!')
112
+
113
+ def Operate(self, request, context):
114
+ """Operate on a cluster
115
+ """
116
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
117
+ context.set_details('Method not implemented!')
118
+ raise NotImplementedError('Method not implemented!')
119
+
120
+
121
+ def add_ClusterServiceServicer_to_server(servicer, server):
122
+ rpc_method_handlers = {
123
+ 'Create': grpc.unary_unary_rpc_method_handler(
124
+ servicer.Create,
125
+ request_deserializer=api_dot_v1_dot_cluster__pb2.ClusterServiceCreateRequest.FromString,
126
+ response_serializer=api_dot_v1_dot_cluster__pb2.ClusterServiceCreateResponse.SerializeToString,
127
+ ),
128
+ 'Get': grpc.unary_unary_rpc_method_handler(
129
+ servicer.Get,
130
+ request_deserializer=api_dot_v1_dot_cluster__pb2.ClusterServiceGetRequest.FromString,
131
+ response_serializer=api_dot_v1_dot_cluster__pb2.ClusterServiceGetResponse.SerializeToString,
132
+ ),
133
+ 'List': grpc.unary_unary_rpc_method_handler(
134
+ servicer.List,
135
+ request_deserializer=api_dot_v1_dot_cluster__pb2.ClusterServiceListRequest.FromString,
136
+ response_serializer=api_dot_v1_dot_cluster__pb2.ClusterServiceListResponse.SerializeToString,
137
+ ),
138
+ 'WatchStatus': grpc.unary_stream_rpc_method_handler(
139
+ servicer.WatchStatus,
140
+ request_deserializer=api_dot_v1_dot_cluster__pb2.ClusterServiceWatchStatusRequest.FromString,
141
+ response_serializer=api_dot_v1_dot_cluster__pb2.ClusterServiceWatchStatusResponse.SerializeToString,
142
+ ),
143
+ 'Delete': grpc.unary_unary_rpc_method_handler(
144
+ servicer.Delete,
145
+ request_deserializer=api_dot_v1_dot_cluster__pb2.ClusterServiceDeleteRequest.FromString,
146
+ response_serializer=api_dot_v1_dot_cluster__pb2.ClusterServiceDeleteResponse.SerializeToString,
147
+ ),
148
+ 'Update': grpc.unary_unary_rpc_method_handler(
149
+ servicer.Update,
150
+ request_deserializer=api_dot_v1_dot_cluster__pb2.ClusterServiceUpdateRequest.FromString,
151
+ response_serializer=api_dot_v1_dot_cluster__pb2.ClusterServiceUpdateResponse.SerializeToString,
152
+ ),
153
+ 'GetCredentials': grpc.unary_unary_rpc_method_handler(
154
+ servicer.GetCredentials,
155
+ request_deserializer=api_dot_v1_dot_cluster__pb2.ClusterServiceGetCredentialsRequest.FromString,
156
+ response_serializer=api_dot_v1_dot_cluster__pb2.ClusterServiceGetCredentialsResponse.SerializeToString,
157
+ ),
158
+ 'Operate': grpc.unary_unary_rpc_method_handler(
159
+ servicer.Operate,
160
+ request_deserializer=api_dot_v1_dot_cluster__pb2.ClusterServiceOperateRequest.FromString,
161
+ response_serializer=api_dot_v1_dot_cluster__pb2.ClusterServiceOperateResponse.SerializeToString,
162
+ ),
163
+ }
164
+ generic_handler = grpc.method_handlers_generic_handler(
165
+ 'api.v1.ClusterService', rpc_method_handlers)
166
+ server.add_generic_rpc_handlers((generic_handler,))
167
+ server.add_registered_method_handlers('api.v1.ClusterService', rpc_method_handlers)
168
+
169
+
170
+ # This class is part of an EXPERIMENTAL API.
171
+ class ClusterService(object):
172
+ """ClusterService serves kubernetes cluster related functions
173
+ """
174
+
175
+ @staticmethod
176
+ def Create(request,
177
+ target,
178
+ options=(),
179
+ channel_credentials=None,
180
+ call_credentials=None,
181
+ insecure=False,
182
+ compression=None,
183
+ wait_for_ready=None,
184
+ timeout=None,
185
+ metadata=None):
186
+ return grpc.experimental.unary_unary(
187
+ request,
188
+ target,
189
+ '/api.v1.ClusterService/Create',
190
+ api_dot_v1_dot_cluster__pb2.ClusterServiceCreateRequest.SerializeToString,
191
+ api_dot_v1_dot_cluster__pb2.ClusterServiceCreateResponse.FromString,
192
+ options,
193
+ channel_credentials,
194
+ insecure,
195
+ call_credentials,
196
+ compression,
197
+ wait_for_ready,
198
+ timeout,
199
+ metadata,
200
+ _registered_method=True)
201
+
202
+ @staticmethod
203
+ def Get(request,
204
+ target,
205
+ options=(),
206
+ channel_credentials=None,
207
+ call_credentials=None,
208
+ insecure=False,
209
+ compression=None,
210
+ wait_for_ready=None,
211
+ timeout=None,
212
+ metadata=None):
213
+ return grpc.experimental.unary_unary(
214
+ request,
215
+ target,
216
+ '/api.v1.ClusterService/Get',
217
+ api_dot_v1_dot_cluster__pb2.ClusterServiceGetRequest.SerializeToString,
218
+ api_dot_v1_dot_cluster__pb2.ClusterServiceGetResponse.FromString,
219
+ options,
220
+ channel_credentials,
221
+ insecure,
222
+ call_credentials,
223
+ compression,
224
+ wait_for_ready,
225
+ timeout,
226
+ metadata,
227
+ _registered_method=True)
228
+
229
+ @staticmethod
230
+ def List(request,
231
+ target,
232
+ options=(),
233
+ channel_credentials=None,
234
+ call_credentials=None,
235
+ insecure=False,
236
+ compression=None,
237
+ wait_for_ready=None,
238
+ timeout=None,
239
+ metadata=None):
240
+ return grpc.experimental.unary_unary(
241
+ request,
242
+ target,
243
+ '/api.v1.ClusterService/List',
244
+ api_dot_v1_dot_cluster__pb2.ClusterServiceListRequest.SerializeToString,
245
+ api_dot_v1_dot_cluster__pb2.ClusterServiceListResponse.FromString,
246
+ options,
247
+ channel_credentials,
248
+ insecure,
249
+ call_credentials,
250
+ compression,
251
+ wait_for_ready,
252
+ timeout,
253
+ metadata,
254
+ _registered_method=True)
255
+
256
+ @staticmethod
257
+ def WatchStatus(request,
258
+ target,
259
+ options=(),
260
+ channel_credentials=None,
261
+ call_credentials=None,
262
+ insecure=False,
263
+ compression=None,
264
+ wait_for_ready=None,
265
+ timeout=None,
266
+ metadata=None):
267
+ return grpc.experimental.unary_stream(
268
+ request,
269
+ target,
270
+ '/api.v1.ClusterService/WatchStatus',
271
+ api_dot_v1_dot_cluster__pb2.ClusterServiceWatchStatusRequest.SerializeToString,
272
+ api_dot_v1_dot_cluster__pb2.ClusterServiceWatchStatusResponse.FromString,
273
+ options,
274
+ channel_credentials,
275
+ insecure,
276
+ call_credentials,
277
+ compression,
278
+ wait_for_ready,
279
+ timeout,
280
+ metadata,
281
+ _registered_method=True)
282
+
283
+ @staticmethod
284
+ def Delete(request,
285
+ target,
286
+ options=(),
287
+ channel_credentials=None,
288
+ call_credentials=None,
289
+ insecure=False,
290
+ compression=None,
291
+ wait_for_ready=None,
292
+ timeout=None,
293
+ metadata=None):
294
+ return grpc.experimental.unary_unary(
295
+ request,
296
+ target,
297
+ '/api.v1.ClusterService/Delete',
298
+ api_dot_v1_dot_cluster__pb2.ClusterServiceDeleteRequest.SerializeToString,
299
+ api_dot_v1_dot_cluster__pb2.ClusterServiceDeleteResponse.FromString,
300
+ options,
301
+ channel_credentials,
302
+ insecure,
303
+ call_credentials,
304
+ compression,
305
+ wait_for_ready,
306
+ timeout,
307
+ metadata,
308
+ _registered_method=True)
309
+
310
+ @staticmethod
311
+ def Update(request,
312
+ target,
313
+ options=(),
314
+ channel_credentials=None,
315
+ call_credentials=None,
316
+ insecure=False,
317
+ compression=None,
318
+ wait_for_ready=None,
319
+ timeout=None,
320
+ metadata=None):
321
+ return grpc.experimental.unary_unary(
322
+ request,
323
+ target,
324
+ '/api.v1.ClusterService/Update',
325
+ api_dot_v1_dot_cluster__pb2.ClusterServiceUpdateRequest.SerializeToString,
326
+ api_dot_v1_dot_cluster__pb2.ClusterServiceUpdateResponse.FromString,
327
+ options,
328
+ channel_credentials,
329
+ insecure,
330
+ call_credentials,
331
+ compression,
332
+ wait_for_ready,
333
+ timeout,
334
+ metadata,
335
+ _registered_method=True)
336
+
337
+ @staticmethod
338
+ def GetCredentials(request,
339
+ target,
340
+ options=(),
341
+ channel_credentials=None,
342
+ call_credentials=None,
343
+ insecure=False,
344
+ compression=None,
345
+ wait_for_ready=None,
346
+ timeout=None,
347
+ metadata=None):
348
+ return grpc.experimental.unary_unary(
349
+ request,
350
+ target,
351
+ '/api.v1.ClusterService/GetCredentials',
352
+ api_dot_v1_dot_cluster__pb2.ClusterServiceGetCredentialsRequest.SerializeToString,
353
+ api_dot_v1_dot_cluster__pb2.ClusterServiceGetCredentialsResponse.FromString,
354
+ options,
355
+ channel_credentials,
356
+ insecure,
357
+ call_credentials,
358
+ compression,
359
+ wait_for_ready,
360
+ timeout,
361
+ metadata,
362
+ _registered_method=True)
363
+
364
+ @staticmethod
365
+ def Operate(request,
366
+ target,
367
+ options=(),
368
+ channel_credentials=None,
369
+ call_credentials=None,
370
+ insecure=False,
371
+ compression=None,
372
+ wait_for_ready=None,
373
+ timeout=None,
374
+ metadata=None):
375
+ return grpc.experimental.unary_unary(
376
+ request,
377
+ target,
378
+ '/api.v1.ClusterService/Operate',
379
+ api_dot_v1_dot_cluster__pb2.ClusterServiceOperateRequest.SerializeToString,
380
+ api_dot_v1_dot_cluster__pb2.ClusterServiceOperateResponse.FromString,
381
+ options,
382
+ channel_credentials,
383
+ insecure,
384
+ call_credentials,
385
+ compression,
386
+ wait_for_ready,
387
+ timeout,
388
+ metadata,
389
+ _registered_method=True)
@@ -0,0 +1,52 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: api/v1/common.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'api/v1/common.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
26
+
27
+
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13\x61pi/v1/common.proto\x12\x06\x61pi.v1\x1a google/protobuf/descriptor.proto\"O\n\x06Paging\x12\x17\n\x04page\x18\x01 \x01(\x04H\x00R\x04page\x88\x01\x01\x12\x19\n\x05\x63ount\x18\x02 \x01(\x04H\x01R\x05\x63ount\x88\x01\x01\x42\x07\n\x05_pageB\x08\n\x06_count*\x83\x01\n\rOAuthProvider\x12\x1f\n\x1bO_AUTH_PROVIDER_UNSPECIFIED\x10\x00\x12\x1a\n\x16O_AUTH_PROVIDER_GITHUB\x10\x01\x12\x19\n\x15O_AUTH_PROVIDER_AZURE\x10\x02\x12\x1a\n\x16O_AUTH_PROVIDER_GOOGLE\x10\x03*\x87\x01\n\nTenantRole\x12\x1b\n\x17TENANT_ROLE_UNSPECIFIED\x10\x00\x12\x15\n\x11TENANT_ROLE_OWNER\x10\x01\x12\x16\n\x12TENANT_ROLE_EDITOR\x10\x02\x12\x16\n\x12TENANT_ROLE_VIEWER\x10\x03\x12\x15\n\x11TENANT_ROLE_GUEST\x10\x04*u\n\x0bProjectRole\x12\x1c\n\x18PROJECT_ROLE_UNSPECIFIED\x10\x00\x12\x16\n\x12PROJECT_ROLE_OWNER\x10\x01\x12\x17\n\x13PROJECT_ROLE_EDITOR\x10\x02\x12\x17\n\x13PROJECT_ROLE_VIEWER\x10\x03*U\n\tAdminRole\x12\x1a\n\x16\x41\x44MIN_ROLE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41\x44MIN_ROLE_EDITOR\x10\x01\x12\x15\n\x11\x41\x44MIN_ROLE_VIEWER\x10\x02*T\n\nVisibility\x12\x1a\n\x16VISIBILITY_UNSPECIFIED\x10\x00\x12\x15\n\x11VISIBILITY_PUBLIC\x10\x01\x12\x13\n\x0fVISIBILITY_SELF\x10\x03*S\n\nChargeable\x12\x1a\n\x16\x43HARGEABLE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x43HARGEABLE_TRUE\x10\x01\x12\x14\n\x10\x43HARGEABLE_FALSE\x10\x02*R\n\x08\x41uditing\x12\x18\n\x14\x41UDITING_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41UDITING_INCLUDED\x10\x01\x12\x15\n\x11\x41UDITING_EXCLUDED\x10\x02:W\n\x0ctenant_roles\x12\x1e.google.protobuf.MethodOptions\x18\xb8\x8e\x03 \x03(\x0e\x32\x12.api.v1.TenantRoleR\x0btenantRoles:Z\n\rproject_roles\x12\x1e.google.protobuf.MethodOptions\x18\xb9\x8e\x03 \x03(\x0e\x32\x13.api.v1.ProjectRoleR\x0cprojectRoles:T\n\x0b\x61\x64min_roles\x12\x1e.google.protobuf.MethodOptions\x18\xba\x8e\x03 \x03(\x0e\x32\x11.api.v1.AdminRoleR\nadminRoles:T\n\nvisibility\x12\x1e.google.protobuf.MethodOptions\x18\xbb\x8e\x03 \x01(\x0e\x32\x12.api.v1.VisibilityR\nvisibility:T\n\nchargeable\x12\x1e.google.protobuf.MethodOptions\x18\xbc\x8e\x03 \x01(\x0e\x32\x12.api.v1.ChargeableR\nchargeable:N\n\x08\x61uditing\x12\x1e.google.protobuf.MethodOptions\x18\xbd\x8e\x03 \x01(\x0e\x32\x10.api.v1.AuditingR\x08\x61uditingB\x84\x01\n\ncom.api.v1B\x0b\x43ommonProtoP\x01Z0github.com/metal-stack-cloud/api/go/api/v1;apiv1\xa2\x02\x03\x41XX\xaa\x02\x06\x41pi.V1\xca\x02\x06\x41pi\\V1\xe2\x02\x12\x41pi\\V1\\GPBMetadata\xea\x02\x07\x41pi::V1b\x06proto3')
29
+
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'api.v1.common_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ _globals['DESCRIPTOR']._loaded_options = None
35
+ _globals['DESCRIPTOR']._serialized_options = b'\n\ncom.api.v1B\013CommonProtoP\001Z0github.com/metal-stack-cloud/api/go/api/v1;apiv1\242\002\003AXX\252\002\006Api.V1\312\002\006Api\\V1\342\002\022Api\\V1\\GPBMetadata\352\002\007Api::V1'
36
+ _globals['_OAUTHPROVIDER']._serialized_start=147
37
+ _globals['_OAUTHPROVIDER']._serialized_end=278
38
+ _globals['_TENANTROLE']._serialized_start=281
39
+ _globals['_TENANTROLE']._serialized_end=416
40
+ _globals['_PROJECTROLE']._serialized_start=418
41
+ _globals['_PROJECTROLE']._serialized_end=535
42
+ _globals['_ADMINROLE']._serialized_start=537
43
+ _globals['_ADMINROLE']._serialized_end=622
44
+ _globals['_VISIBILITY']._serialized_start=624
45
+ _globals['_VISIBILITY']._serialized_end=708
46
+ _globals['_CHARGEABLE']._serialized_start=710
47
+ _globals['_CHARGEABLE']._serialized_end=793
48
+ _globals['_AUDITING']._serialized_start=795
49
+ _globals['_AUDITING']._serialized_end=877
50
+ _globals['_PAGING']._serialized_start=65
51
+ _globals['_PAGING']._serialized_end=144
52
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,98 @@
1
+ from google.protobuf import descriptor_pb2 as _descriptor_pb2
2
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
3
+ from google.protobuf import descriptor as _descriptor
4
+ from google.protobuf import message as _message
5
+ from typing import ClassVar as _ClassVar, Optional as _Optional
6
+
7
+ DESCRIPTOR: _descriptor.FileDescriptor
8
+
9
+ class OAuthProvider(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
10
+ __slots__ = ()
11
+ O_AUTH_PROVIDER_UNSPECIFIED: _ClassVar[OAuthProvider]
12
+ O_AUTH_PROVIDER_GITHUB: _ClassVar[OAuthProvider]
13
+ O_AUTH_PROVIDER_AZURE: _ClassVar[OAuthProvider]
14
+ O_AUTH_PROVIDER_GOOGLE: _ClassVar[OAuthProvider]
15
+
16
+ class TenantRole(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
17
+ __slots__ = ()
18
+ TENANT_ROLE_UNSPECIFIED: _ClassVar[TenantRole]
19
+ TENANT_ROLE_OWNER: _ClassVar[TenantRole]
20
+ TENANT_ROLE_EDITOR: _ClassVar[TenantRole]
21
+ TENANT_ROLE_VIEWER: _ClassVar[TenantRole]
22
+ TENANT_ROLE_GUEST: _ClassVar[TenantRole]
23
+
24
+ class ProjectRole(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
25
+ __slots__ = ()
26
+ PROJECT_ROLE_UNSPECIFIED: _ClassVar[ProjectRole]
27
+ PROJECT_ROLE_OWNER: _ClassVar[ProjectRole]
28
+ PROJECT_ROLE_EDITOR: _ClassVar[ProjectRole]
29
+ PROJECT_ROLE_VIEWER: _ClassVar[ProjectRole]
30
+
31
+ class AdminRole(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
32
+ __slots__ = ()
33
+ ADMIN_ROLE_UNSPECIFIED: _ClassVar[AdminRole]
34
+ ADMIN_ROLE_EDITOR: _ClassVar[AdminRole]
35
+ ADMIN_ROLE_VIEWER: _ClassVar[AdminRole]
36
+
37
+ class Visibility(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
38
+ __slots__ = ()
39
+ VISIBILITY_UNSPECIFIED: _ClassVar[Visibility]
40
+ VISIBILITY_PUBLIC: _ClassVar[Visibility]
41
+ VISIBILITY_SELF: _ClassVar[Visibility]
42
+
43
+ class Chargeable(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
44
+ __slots__ = ()
45
+ CHARGEABLE_UNSPECIFIED: _ClassVar[Chargeable]
46
+ CHARGEABLE_TRUE: _ClassVar[Chargeable]
47
+ CHARGEABLE_FALSE: _ClassVar[Chargeable]
48
+
49
+ class Auditing(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
50
+ __slots__ = ()
51
+ AUDITING_UNSPECIFIED: _ClassVar[Auditing]
52
+ AUDITING_INCLUDED: _ClassVar[Auditing]
53
+ AUDITING_EXCLUDED: _ClassVar[Auditing]
54
+ O_AUTH_PROVIDER_UNSPECIFIED: OAuthProvider
55
+ O_AUTH_PROVIDER_GITHUB: OAuthProvider
56
+ O_AUTH_PROVIDER_AZURE: OAuthProvider
57
+ O_AUTH_PROVIDER_GOOGLE: OAuthProvider
58
+ TENANT_ROLE_UNSPECIFIED: TenantRole
59
+ TENANT_ROLE_OWNER: TenantRole
60
+ TENANT_ROLE_EDITOR: TenantRole
61
+ TENANT_ROLE_VIEWER: TenantRole
62
+ TENANT_ROLE_GUEST: TenantRole
63
+ PROJECT_ROLE_UNSPECIFIED: ProjectRole
64
+ PROJECT_ROLE_OWNER: ProjectRole
65
+ PROJECT_ROLE_EDITOR: ProjectRole
66
+ PROJECT_ROLE_VIEWER: ProjectRole
67
+ ADMIN_ROLE_UNSPECIFIED: AdminRole
68
+ ADMIN_ROLE_EDITOR: AdminRole
69
+ ADMIN_ROLE_VIEWER: AdminRole
70
+ VISIBILITY_UNSPECIFIED: Visibility
71
+ VISIBILITY_PUBLIC: Visibility
72
+ VISIBILITY_SELF: Visibility
73
+ CHARGEABLE_UNSPECIFIED: Chargeable
74
+ CHARGEABLE_TRUE: Chargeable
75
+ CHARGEABLE_FALSE: Chargeable
76
+ AUDITING_UNSPECIFIED: Auditing
77
+ AUDITING_INCLUDED: Auditing
78
+ AUDITING_EXCLUDED: Auditing
79
+ TENANT_ROLES_FIELD_NUMBER: _ClassVar[int]
80
+ tenant_roles: _descriptor.FieldDescriptor
81
+ PROJECT_ROLES_FIELD_NUMBER: _ClassVar[int]
82
+ project_roles: _descriptor.FieldDescriptor
83
+ ADMIN_ROLES_FIELD_NUMBER: _ClassVar[int]
84
+ admin_roles: _descriptor.FieldDescriptor
85
+ VISIBILITY_FIELD_NUMBER: _ClassVar[int]
86
+ visibility: _descriptor.FieldDescriptor
87
+ CHARGEABLE_FIELD_NUMBER: _ClassVar[int]
88
+ chargeable: _descriptor.FieldDescriptor
89
+ AUDITING_FIELD_NUMBER: _ClassVar[int]
90
+ auditing: _descriptor.FieldDescriptor
91
+
92
+ class Paging(_message.Message):
93
+ __slots__ = ("page", "count")
94
+ PAGE_FIELD_NUMBER: _ClassVar[int]
95
+ COUNT_FIELD_NUMBER: _ClassVar[int]
96
+ page: int
97
+ count: int
98
+ def __init__(self, page: _Optional[int] = ..., count: _Optional[int] = ...) -> None: ...
@@ -0,0 +1,4 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
@@ -0,0 +1,102 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by https://github.com/i2y/connecpy/protoc-gen-connecpy. DO NOT EDIT!
3
+ # source: api/v1/health.proto
4
+
5
+ from typing import Optional, Protocol, Union
6
+
7
+ import httpx
8
+
9
+ from connecpy.async_client import AsyncConnecpyClient
10
+ from connecpy.base import Endpoint
11
+ from connecpy.server import ConnecpyServer
12
+ from connecpy.client import ConnecpyClient
13
+ from connecpy.context import ClientContext, ServiceContext
14
+ import metalstackcloud.api.v1.health_pb2 as api_dot_v1_dot_health__pb2
15
+
16
+
17
+ class HealthService(Protocol):
18
+ async def Get(self, req: api_dot_v1_dot_health__pb2.HealthServiceGetRequest, ctx: ServiceContext) -> api_dot_v1_dot_health__pb2.HealthServiceGetResponse: ...
19
+
20
+
21
+ class HealthServiceServer(ConnecpyServer):
22
+ def __init__(self, *, service: HealthService, server_path_prefix=""):
23
+ super().__init__()
24
+ self._prefix = f"{server_path_prefix}/api.v1.HealthService"
25
+ self._endpoints = {
26
+ "Get": Endpoint[api_dot_v1_dot_health__pb2.HealthServiceGetRequest, api_dot_v1_dot_health__pb2.HealthServiceGetResponse](
27
+ service_name="HealthService",
28
+ name="Get",
29
+ function=getattr(service, "Get"),
30
+ input=api_dot_v1_dot_health__pb2.HealthServiceGetRequest,
31
+ output=api_dot_v1_dot_health__pb2.HealthServiceGetResponse,
32
+ allowed_methods=("POST",),
33
+ ),
34
+ }
35
+
36
+ def serviceName(self):
37
+ return "api.v1.HealthService"
38
+
39
+
40
+ class HealthServiceSync(Protocol):
41
+ def Get(self, req: api_dot_v1_dot_health__pb2.HealthServiceGetRequest, ctx: ServiceContext) -> api_dot_v1_dot_health__pb2.HealthServiceGetResponse: ...
42
+
43
+
44
+ class HealthServiceServerSync(ConnecpyServer):
45
+ def __init__(self, *, service: HealthServiceSync, server_path_prefix=""):
46
+ super().__init__()
47
+ self._prefix = f"{server_path_prefix}/api.v1.HealthService"
48
+ self._endpoints = {
49
+ "Get": Endpoint[api_dot_v1_dot_health__pb2.HealthServiceGetRequest, api_dot_v1_dot_health__pb2.HealthServiceGetResponse](
50
+ service_name="HealthService",
51
+ name="Get",
52
+ function=getattr(service, "Get"),
53
+ input=api_dot_v1_dot_health__pb2.HealthServiceGetRequest,
54
+ output=api_dot_v1_dot_health__pb2.HealthServiceGetResponse,
55
+ allowed_methods=("POST",),
56
+ ),
57
+ }
58
+
59
+ def serviceName(self):
60
+ return "api.v1.HealthService"
61
+
62
+
63
+ class HealthServiceClient(ConnecpyClient):
64
+ def Get(
65
+ self,
66
+ request: api_dot_v1_dot_health__pb2.HealthServiceGetRequest,
67
+ *,
68
+ ctx: Optional[ClientContext] = None,
69
+ server_path_prefix: str = "",
70
+ **kwargs,
71
+ ) -> api_dot_v1_dot_health__pb2.HealthServiceGetResponse:
72
+ method = "POST"
73
+ return self._make_request(
74
+ url=f"{server_path_prefix}/api.v1.HealthService/Get",
75
+ ctx=ctx,
76
+ request=request,
77
+ response_class=api_dot_v1_dot_health__pb2.HealthServiceGetResponse,
78
+ method=method,
79
+ **kwargs,
80
+ )
81
+
82
+
83
+ class AsyncHealthServiceClient(AsyncConnecpyClient):
84
+ async def Get(
85
+ self,
86
+ request: api_dot_v1_dot_health__pb2.HealthServiceGetRequest,
87
+ *,
88
+ ctx: Optional[ClientContext] = None,
89
+ server_path_prefix: str = "",
90
+ session: Union[httpx.AsyncClient, None] = None,
91
+ **kwargs,
92
+ ) -> api_dot_v1_dot_health__pb2.HealthServiceGetResponse:
93
+ method = "POST"
94
+ return await self._make_request(
95
+ url=f"{server_path_prefix}/api.v1.HealthService/Get",
96
+ ctx=ctx,
97
+ request=request,
98
+ response_class=api_dot_v1_dot_health__pb2.HealthServiceGetResponse,
99
+ method=method,
100
+ session=session,
101
+ **kwargs,
102
+ )