rpyc-pve-cloud 0.0.21__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.
@@ -0,0 +1 @@
1
+ __version__ = "0.0.21"
@@ -0,0 +1,75 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: cloud.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
+ 'cloud.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0b\x63loud.proto\x12\x06protos\",\n\x16GetPveInventoryRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\"B\n\x17GetPveInventoryResponse\x12\x11\n\tinventory\x18\x01 \x01(\t\x12\x14\n\x0c\x63loud_domain\x18\x02 \x01(\t\"+\n\x15GetProxmoxHostRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\"*\n\x16GetProxmoxHostResponse\x12\x10\n\x08pve_host\x18\x01 \x01(\t\"\xa9\x01\n\x14GetProxmoxApiRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\x12\x10\n\x08\x61pi_path\x18\x02 \x01(\t\x12;\n\x08get_args\x18\x03 \x03(\x0b\x32).protos.GetProxmoxApiRequest.GetArgsEntry\x1a.\n\x0cGetArgsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"*\n\x15GetProxmoxApiResponse\x12\x11\n\tjson_resp\x18\x01 \x01(\t\"\x87\x01\n\x10GetSshKeyRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\x12\x32\n\x08key_type\x18\x02 \x01(\x0e\x32 .protos.GetSshKeyRequest.KeyType\"+\n\x07KeyType\x12\x0e\n\nAUTOMATION\x10\x00\x12\x10\n\x0cPVE_HOST_RSA\x10\x01\" \n\x11GetSshKeyResponse\x12\x0b\n\x03key\x18\x01 \x01(\t\"*\n\x14GetCephAccessRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\"A\n\x15GetCephAccessResponse\x12\x11\n\tceph_conf\x18\x01 \x01(\t\x12\x15\n\radmin_keyring\x18\x02 \x01(\t\">\n\x14GetKubeconfigRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\x12\x12\n\nstack_name\x18\x02 \x01(\t\"\'\n\x15GetKubeconfigResponse\x12\x0e\n\x06\x63onfig\x18\x01 \x01(\t\"+\n\x15GetClusterVarsRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\"&\n\x16GetClusterVarsResponse\x12\x0c\n\x04vars\x18\x01 \x01(\t\"@\n\x15GetCloudSecretRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\x12\x13\n\x0bsecret_name\x18\x02 \x01(\t\"(\n\x16GetCloudSecretResponse\x12\x0e\n\x06secret\x18\x01 \x01(\t2\x87\x05\n\x0c\x43loudService\x12R\n\x13GetMasterKubeconfig\x12\x1c.protos.GetKubeconfigRequest\x1a\x1d.protos.GetKubeconfigResponse\x12O\n\x0eGetClusterVars\x12\x1d.protos.GetClusterVarsRequest\x1a\x1e.protos.GetClusterVarsResponse\x12O\n\x0eGetCloudSecret\x12\x1d.protos.GetCloudSecretRequest\x1a\x1e.protos.GetCloudSecretResponse\x12L\n\rGetCephAccess\x12\x1c.protos.GetCephAccessRequest\x1a\x1d.protos.GetCephAccessResponse\x12@\n\tGetSshKey\x12\x18.protos.GetSshKeyRequest\x1a\x19.protos.GetSshKeyResponse\x12L\n\rGetProxmoxApi\x12\x1c.protos.GetProxmoxApiRequest\x1a\x1d.protos.GetProxmoxApiResponse\x12O\n\x0eGetProxmoxHost\x12\x1d.protos.GetProxmoxHostRequest\x1a\x1e.protos.GetProxmoxHostResponse\x12R\n\x0fGetPveInventory\x12\x1e.protos.GetPveInventoryRequest\x1a\x1f.protos.GetPveInventoryResponseB[ZYgithub.com/Proxmox-Cloud/terraform-provider-proxmox-cloud/internal/provider/protos;protosb\x06proto3')
28
+
29
+ _globals = globals()
30
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cloud_pb2', _globals)
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ _globals['DESCRIPTOR']._loaded_options = None
34
+ _globals['DESCRIPTOR']._serialized_options = b'ZYgithub.com/Proxmox-Cloud/terraform-provider-proxmox-cloud/internal/provider/protos;protos'
35
+ _globals['_GETPROXMOXAPIREQUEST_GETARGSENTRY']._loaded_options = None
36
+ _globals['_GETPROXMOXAPIREQUEST_GETARGSENTRY']._serialized_options = b'8\001'
37
+ _globals['_GETPVEINVENTORYREQUEST']._serialized_start=23
38
+ _globals['_GETPVEINVENTORYREQUEST']._serialized_end=67
39
+ _globals['_GETPVEINVENTORYRESPONSE']._serialized_start=69
40
+ _globals['_GETPVEINVENTORYRESPONSE']._serialized_end=135
41
+ _globals['_GETPROXMOXHOSTREQUEST']._serialized_start=137
42
+ _globals['_GETPROXMOXHOSTREQUEST']._serialized_end=180
43
+ _globals['_GETPROXMOXHOSTRESPONSE']._serialized_start=182
44
+ _globals['_GETPROXMOXHOSTRESPONSE']._serialized_end=224
45
+ _globals['_GETPROXMOXAPIREQUEST']._serialized_start=227
46
+ _globals['_GETPROXMOXAPIREQUEST']._serialized_end=396
47
+ _globals['_GETPROXMOXAPIREQUEST_GETARGSENTRY']._serialized_start=350
48
+ _globals['_GETPROXMOXAPIREQUEST_GETARGSENTRY']._serialized_end=396
49
+ _globals['_GETPROXMOXAPIRESPONSE']._serialized_start=398
50
+ _globals['_GETPROXMOXAPIRESPONSE']._serialized_end=440
51
+ _globals['_GETSSHKEYREQUEST']._serialized_start=443
52
+ _globals['_GETSSHKEYREQUEST']._serialized_end=578
53
+ _globals['_GETSSHKEYREQUEST_KEYTYPE']._serialized_start=535
54
+ _globals['_GETSSHKEYREQUEST_KEYTYPE']._serialized_end=578
55
+ _globals['_GETSSHKEYRESPONSE']._serialized_start=580
56
+ _globals['_GETSSHKEYRESPONSE']._serialized_end=612
57
+ _globals['_GETCEPHACCESSREQUEST']._serialized_start=614
58
+ _globals['_GETCEPHACCESSREQUEST']._serialized_end=656
59
+ _globals['_GETCEPHACCESSRESPONSE']._serialized_start=658
60
+ _globals['_GETCEPHACCESSRESPONSE']._serialized_end=723
61
+ _globals['_GETKUBECONFIGREQUEST']._serialized_start=725
62
+ _globals['_GETKUBECONFIGREQUEST']._serialized_end=787
63
+ _globals['_GETKUBECONFIGRESPONSE']._serialized_start=789
64
+ _globals['_GETKUBECONFIGRESPONSE']._serialized_end=828
65
+ _globals['_GETCLUSTERVARSREQUEST']._serialized_start=830
66
+ _globals['_GETCLUSTERVARSREQUEST']._serialized_end=873
67
+ _globals['_GETCLUSTERVARSRESPONSE']._serialized_start=875
68
+ _globals['_GETCLUSTERVARSRESPONSE']._serialized_end=913
69
+ _globals['_GETCLOUDSECRETREQUEST']._serialized_start=915
70
+ _globals['_GETCLOUDSECRETREQUEST']._serialized_end=979
71
+ _globals['_GETCLOUDSECRETRESPONSE']._serialized_start=981
72
+ _globals['_GETCLOUDSECRETRESPONSE']._serialized_end=1021
73
+ _globals['_CLOUDSERVICE']._serialized_start=1024
74
+ _globals['_CLOUDSERVICE']._serialized_end=1671
75
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,398 @@
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
+ import warnings
5
+
6
+ import pve_cloud_rpc.protos.cloud_pb2 as cloud__pb2
7
+
8
+ GRPC_GENERATED_VERSION = '1.76.0'
9
+ GRPC_VERSION = grpc.__version__
10
+ _version_not_supported = False
11
+
12
+ try:
13
+ from grpc._utilities import first_version_is_lower
14
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
+ except ImportError:
16
+ _version_not_supported = True
17
+
18
+ if _version_not_supported:
19
+ raise RuntimeError(
20
+ f'The grpc package installed is at version {GRPC_VERSION},'
21
+ + ' but the generated code in cloud_pb2_grpc.py depends on'
22
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
+ )
26
+
27
+
28
+ class CloudServiceStub(object):
29
+ """Missing associated documentation comment in .proto file."""
30
+
31
+ def __init__(self, channel):
32
+ """Constructor.
33
+
34
+ Args:
35
+ channel: A grpc.Channel.
36
+ """
37
+ self.GetMasterKubeconfig = channel.unary_unary(
38
+ '/protos.CloudService/GetMasterKubeconfig',
39
+ request_serializer=cloud__pb2.GetKubeconfigRequest.SerializeToString,
40
+ response_deserializer=cloud__pb2.GetKubeconfigResponse.FromString,
41
+ _registered_method=True)
42
+ self.GetClusterVars = channel.unary_unary(
43
+ '/protos.CloudService/GetClusterVars',
44
+ request_serializer=cloud__pb2.GetClusterVarsRequest.SerializeToString,
45
+ response_deserializer=cloud__pb2.GetClusterVarsResponse.FromString,
46
+ _registered_method=True)
47
+ self.GetCloudSecret = channel.unary_unary(
48
+ '/protos.CloudService/GetCloudSecret',
49
+ request_serializer=cloud__pb2.GetCloudSecretRequest.SerializeToString,
50
+ response_deserializer=cloud__pb2.GetCloudSecretResponse.FromString,
51
+ _registered_method=True)
52
+ self.GetCephAccess = channel.unary_unary(
53
+ '/protos.CloudService/GetCephAccess',
54
+ request_serializer=cloud__pb2.GetCephAccessRequest.SerializeToString,
55
+ response_deserializer=cloud__pb2.GetCephAccessResponse.FromString,
56
+ _registered_method=True)
57
+ self.GetSshKey = channel.unary_unary(
58
+ '/protos.CloudService/GetSshKey',
59
+ request_serializer=cloud__pb2.GetSshKeyRequest.SerializeToString,
60
+ response_deserializer=cloud__pb2.GetSshKeyResponse.FromString,
61
+ _registered_method=True)
62
+ self.GetProxmoxApi = channel.unary_unary(
63
+ '/protos.CloudService/GetProxmoxApi',
64
+ request_serializer=cloud__pb2.GetProxmoxApiRequest.SerializeToString,
65
+ response_deserializer=cloud__pb2.GetProxmoxApiResponse.FromString,
66
+ _registered_method=True)
67
+ self.GetProxmoxHost = channel.unary_unary(
68
+ '/protos.CloudService/GetProxmoxHost',
69
+ request_serializer=cloud__pb2.GetProxmoxHostRequest.SerializeToString,
70
+ response_deserializer=cloud__pb2.GetProxmoxHostResponse.FromString,
71
+ _registered_method=True)
72
+ self.GetPveInventory = channel.unary_unary(
73
+ '/protos.CloudService/GetPveInventory',
74
+ request_serializer=cloud__pb2.GetPveInventoryRequest.SerializeToString,
75
+ response_deserializer=cloud__pb2.GetPveInventoryResponse.FromString,
76
+ _registered_method=True)
77
+
78
+
79
+ class CloudServiceServicer(object):
80
+ """Missing associated documentation comment in .proto file."""
81
+
82
+ def GetMasterKubeconfig(self, request, context):
83
+ """Missing associated documentation comment in .proto file."""
84
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
85
+ context.set_details('Method not implemented!')
86
+ raise NotImplementedError('Method not implemented!')
87
+
88
+ def GetClusterVars(self, request, context):
89
+ """Missing associated documentation comment in .proto file."""
90
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
91
+ context.set_details('Method not implemented!')
92
+ raise NotImplementedError('Method not implemented!')
93
+
94
+ def GetCloudSecret(self, request, context):
95
+ """Missing associated documentation comment in .proto file."""
96
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
97
+ context.set_details('Method not implemented!')
98
+ raise NotImplementedError('Method not implemented!')
99
+
100
+ def GetCephAccess(self, request, context):
101
+ """Missing associated documentation comment in .proto file."""
102
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
103
+ context.set_details('Method not implemented!')
104
+ raise NotImplementedError('Method not implemented!')
105
+
106
+ def GetSshKey(self, request, context):
107
+ """Missing associated documentation comment in .proto file."""
108
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
109
+ context.set_details('Method not implemented!')
110
+ raise NotImplementedError('Method not implemented!')
111
+
112
+ def GetProxmoxApi(self, request, context):
113
+ """Missing associated documentation comment in .proto file."""
114
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
115
+ context.set_details('Method not implemented!')
116
+ raise NotImplementedError('Method not implemented!')
117
+
118
+ def GetProxmoxHost(self, request, context):
119
+ """Missing associated documentation comment in .proto file."""
120
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
121
+ context.set_details('Method not implemented!')
122
+ raise NotImplementedError('Method not implemented!')
123
+
124
+ def GetPveInventory(self, request, context):
125
+ """Missing associated documentation comment in .proto file."""
126
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
127
+ context.set_details('Method not implemented!')
128
+ raise NotImplementedError('Method not implemented!')
129
+
130
+
131
+ def add_CloudServiceServicer_to_server(servicer, server):
132
+ rpc_method_handlers = {
133
+ 'GetMasterKubeconfig': grpc.unary_unary_rpc_method_handler(
134
+ servicer.GetMasterKubeconfig,
135
+ request_deserializer=cloud__pb2.GetKubeconfigRequest.FromString,
136
+ response_serializer=cloud__pb2.GetKubeconfigResponse.SerializeToString,
137
+ ),
138
+ 'GetClusterVars': grpc.unary_unary_rpc_method_handler(
139
+ servicer.GetClusterVars,
140
+ request_deserializer=cloud__pb2.GetClusterVarsRequest.FromString,
141
+ response_serializer=cloud__pb2.GetClusterVarsResponse.SerializeToString,
142
+ ),
143
+ 'GetCloudSecret': grpc.unary_unary_rpc_method_handler(
144
+ servicer.GetCloudSecret,
145
+ request_deserializer=cloud__pb2.GetCloudSecretRequest.FromString,
146
+ response_serializer=cloud__pb2.GetCloudSecretResponse.SerializeToString,
147
+ ),
148
+ 'GetCephAccess': grpc.unary_unary_rpc_method_handler(
149
+ servicer.GetCephAccess,
150
+ request_deserializer=cloud__pb2.GetCephAccessRequest.FromString,
151
+ response_serializer=cloud__pb2.GetCephAccessResponse.SerializeToString,
152
+ ),
153
+ 'GetSshKey': grpc.unary_unary_rpc_method_handler(
154
+ servicer.GetSshKey,
155
+ request_deserializer=cloud__pb2.GetSshKeyRequest.FromString,
156
+ response_serializer=cloud__pb2.GetSshKeyResponse.SerializeToString,
157
+ ),
158
+ 'GetProxmoxApi': grpc.unary_unary_rpc_method_handler(
159
+ servicer.GetProxmoxApi,
160
+ request_deserializer=cloud__pb2.GetProxmoxApiRequest.FromString,
161
+ response_serializer=cloud__pb2.GetProxmoxApiResponse.SerializeToString,
162
+ ),
163
+ 'GetProxmoxHost': grpc.unary_unary_rpc_method_handler(
164
+ servicer.GetProxmoxHost,
165
+ request_deserializer=cloud__pb2.GetProxmoxHostRequest.FromString,
166
+ response_serializer=cloud__pb2.GetProxmoxHostResponse.SerializeToString,
167
+ ),
168
+ 'GetPveInventory': grpc.unary_unary_rpc_method_handler(
169
+ servicer.GetPveInventory,
170
+ request_deserializer=cloud__pb2.GetPveInventoryRequest.FromString,
171
+ response_serializer=cloud__pb2.GetPveInventoryResponse.SerializeToString,
172
+ ),
173
+ }
174
+ generic_handler = grpc.method_handlers_generic_handler(
175
+ 'protos.CloudService', rpc_method_handlers)
176
+ server.add_generic_rpc_handlers((generic_handler,))
177
+ server.add_registered_method_handlers('protos.CloudService', rpc_method_handlers)
178
+
179
+
180
+ # This class is part of an EXPERIMENTAL API.
181
+ class CloudService(object):
182
+ """Missing associated documentation comment in .proto file."""
183
+
184
+ @staticmethod
185
+ def GetMasterKubeconfig(request,
186
+ target,
187
+ options=(),
188
+ channel_credentials=None,
189
+ call_credentials=None,
190
+ insecure=False,
191
+ compression=None,
192
+ wait_for_ready=None,
193
+ timeout=None,
194
+ metadata=None):
195
+ return grpc.experimental.unary_unary(
196
+ request,
197
+ target,
198
+ '/protos.CloudService/GetMasterKubeconfig',
199
+ cloud__pb2.GetKubeconfigRequest.SerializeToString,
200
+ cloud__pb2.GetKubeconfigResponse.FromString,
201
+ options,
202
+ channel_credentials,
203
+ insecure,
204
+ call_credentials,
205
+ compression,
206
+ wait_for_ready,
207
+ timeout,
208
+ metadata,
209
+ _registered_method=True)
210
+
211
+ @staticmethod
212
+ def GetClusterVars(request,
213
+ target,
214
+ options=(),
215
+ channel_credentials=None,
216
+ call_credentials=None,
217
+ insecure=False,
218
+ compression=None,
219
+ wait_for_ready=None,
220
+ timeout=None,
221
+ metadata=None):
222
+ return grpc.experimental.unary_unary(
223
+ request,
224
+ target,
225
+ '/protos.CloudService/GetClusterVars',
226
+ cloud__pb2.GetClusterVarsRequest.SerializeToString,
227
+ cloud__pb2.GetClusterVarsResponse.FromString,
228
+ options,
229
+ channel_credentials,
230
+ insecure,
231
+ call_credentials,
232
+ compression,
233
+ wait_for_ready,
234
+ timeout,
235
+ metadata,
236
+ _registered_method=True)
237
+
238
+ @staticmethod
239
+ def GetCloudSecret(request,
240
+ target,
241
+ options=(),
242
+ channel_credentials=None,
243
+ call_credentials=None,
244
+ insecure=False,
245
+ compression=None,
246
+ wait_for_ready=None,
247
+ timeout=None,
248
+ metadata=None):
249
+ return grpc.experimental.unary_unary(
250
+ request,
251
+ target,
252
+ '/protos.CloudService/GetCloudSecret',
253
+ cloud__pb2.GetCloudSecretRequest.SerializeToString,
254
+ cloud__pb2.GetCloudSecretResponse.FromString,
255
+ options,
256
+ channel_credentials,
257
+ insecure,
258
+ call_credentials,
259
+ compression,
260
+ wait_for_ready,
261
+ timeout,
262
+ metadata,
263
+ _registered_method=True)
264
+
265
+ @staticmethod
266
+ def GetCephAccess(request,
267
+ target,
268
+ options=(),
269
+ channel_credentials=None,
270
+ call_credentials=None,
271
+ insecure=False,
272
+ compression=None,
273
+ wait_for_ready=None,
274
+ timeout=None,
275
+ metadata=None):
276
+ return grpc.experimental.unary_unary(
277
+ request,
278
+ target,
279
+ '/protos.CloudService/GetCephAccess',
280
+ cloud__pb2.GetCephAccessRequest.SerializeToString,
281
+ cloud__pb2.GetCephAccessResponse.FromString,
282
+ options,
283
+ channel_credentials,
284
+ insecure,
285
+ call_credentials,
286
+ compression,
287
+ wait_for_ready,
288
+ timeout,
289
+ metadata,
290
+ _registered_method=True)
291
+
292
+ @staticmethod
293
+ def GetSshKey(request,
294
+ target,
295
+ options=(),
296
+ channel_credentials=None,
297
+ call_credentials=None,
298
+ insecure=False,
299
+ compression=None,
300
+ wait_for_ready=None,
301
+ timeout=None,
302
+ metadata=None):
303
+ return grpc.experimental.unary_unary(
304
+ request,
305
+ target,
306
+ '/protos.CloudService/GetSshKey',
307
+ cloud__pb2.GetSshKeyRequest.SerializeToString,
308
+ cloud__pb2.GetSshKeyResponse.FromString,
309
+ options,
310
+ channel_credentials,
311
+ insecure,
312
+ call_credentials,
313
+ compression,
314
+ wait_for_ready,
315
+ timeout,
316
+ metadata,
317
+ _registered_method=True)
318
+
319
+ @staticmethod
320
+ def GetProxmoxApi(request,
321
+ target,
322
+ options=(),
323
+ channel_credentials=None,
324
+ call_credentials=None,
325
+ insecure=False,
326
+ compression=None,
327
+ wait_for_ready=None,
328
+ timeout=None,
329
+ metadata=None):
330
+ return grpc.experimental.unary_unary(
331
+ request,
332
+ target,
333
+ '/protos.CloudService/GetProxmoxApi',
334
+ cloud__pb2.GetProxmoxApiRequest.SerializeToString,
335
+ cloud__pb2.GetProxmoxApiResponse.FromString,
336
+ options,
337
+ channel_credentials,
338
+ insecure,
339
+ call_credentials,
340
+ compression,
341
+ wait_for_ready,
342
+ timeout,
343
+ metadata,
344
+ _registered_method=True)
345
+
346
+ @staticmethod
347
+ def GetProxmoxHost(request,
348
+ target,
349
+ options=(),
350
+ channel_credentials=None,
351
+ call_credentials=None,
352
+ insecure=False,
353
+ compression=None,
354
+ wait_for_ready=None,
355
+ timeout=None,
356
+ metadata=None):
357
+ return grpc.experimental.unary_unary(
358
+ request,
359
+ target,
360
+ '/protos.CloudService/GetProxmoxHost',
361
+ cloud__pb2.GetProxmoxHostRequest.SerializeToString,
362
+ cloud__pb2.GetProxmoxHostResponse.FromString,
363
+ options,
364
+ channel_credentials,
365
+ insecure,
366
+ call_credentials,
367
+ compression,
368
+ wait_for_ready,
369
+ timeout,
370
+ metadata,
371
+ _registered_method=True)
372
+
373
+ @staticmethod
374
+ def GetPveInventory(request,
375
+ target,
376
+ options=(),
377
+ channel_credentials=None,
378
+ call_credentials=None,
379
+ insecure=False,
380
+ compression=None,
381
+ wait_for_ready=None,
382
+ timeout=None,
383
+ metadata=None):
384
+ return grpc.experimental.unary_unary(
385
+ request,
386
+ target,
387
+ '/protos.CloudService/GetPveInventory',
388
+ cloud__pb2.GetPveInventoryRequest.SerializeToString,
389
+ cloud__pb2.GetPveInventoryResponse.FromString,
390
+ options,
391
+ channel_credentials,
392
+ insecure,
393
+ call_credentials,
394
+ compression,
395
+ wait_for_ready,
396
+ timeout,
397
+ metadata,
398
+ _registered_method=True)
@@ -0,0 +1,43 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: health.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
+ 'health.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0chealth.proto\x12\x06protos\"%\n\x12HealthCheckRequest\x12\x0f\n\x07service\x18\x01 \x01(\t\"\xa1\x01\n\x13HealthCheckResponse\x12\x39\n\x06status\x18\x01 \x01(\x0e\x32).protos.HealthCheckResponse.ServingStatus\"O\n\rServingStatus\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07SERVING\x10\x01\x12\x0f\n\x0bNOT_SERVING\x10\x02\x12\x13\n\x0fSERVICE_UNKNOWN\x10\x03\x32J\n\x06Health\x12@\n\x05\x43heck\x12\x1a.protos.HealthCheckRequest\x1a\x1b.protos.HealthCheckResponseB[ZYgithub.com/Proxmox-Cloud/terraform-provider-proxmox-cloud/internal/provider/protos;protosb\x06proto3')
28
+
29
+ _globals = globals()
30
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'health_pb2', _globals)
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ _globals['DESCRIPTOR']._loaded_options = None
34
+ _globals['DESCRIPTOR']._serialized_options = b'ZYgithub.com/Proxmox-Cloud/terraform-provider-proxmox-cloud/internal/provider/protos;protos'
35
+ _globals['_HEALTHCHECKREQUEST']._serialized_start=24
36
+ _globals['_HEALTHCHECKREQUEST']._serialized_end=61
37
+ _globals['_HEALTHCHECKRESPONSE']._serialized_start=64
38
+ _globals['_HEALTHCHECKRESPONSE']._serialized_end=225
39
+ _globals['_HEALTHCHECKRESPONSE_SERVINGSTATUS']._serialized_start=146
40
+ _globals['_HEALTHCHECKRESPONSE_SERVINGSTATUS']._serialized_end=225
41
+ _globals['_HEALTH']._serialized_start=227
42
+ _globals['_HEALTH']._serialized_end=301
43
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,97 @@
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
+ import warnings
5
+
6
+ import pve_cloud_rpc.protos.health_pb2 as health__pb2
7
+
8
+ GRPC_GENERATED_VERSION = '1.76.0'
9
+ GRPC_VERSION = grpc.__version__
10
+ _version_not_supported = False
11
+
12
+ try:
13
+ from grpc._utilities import first_version_is_lower
14
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
+ except ImportError:
16
+ _version_not_supported = True
17
+
18
+ if _version_not_supported:
19
+ raise RuntimeError(
20
+ f'The grpc package installed is at version {GRPC_VERSION},'
21
+ + ' but the generated code in health_pb2_grpc.py depends on'
22
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
+ )
26
+
27
+
28
+ class HealthStub(object):
29
+ """Missing associated documentation comment in .proto file."""
30
+
31
+ def __init__(self, channel):
32
+ """Constructor.
33
+
34
+ Args:
35
+ channel: A grpc.Channel.
36
+ """
37
+ self.Check = channel.unary_unary(
38
+ '/protos.Health/Check',
39
+ request_serializer=health__pb2.HealthCheckRequest.SerializeToString,
40
+ response_deserializer=health__pb2.HealthCheckResponse.FromString,
41
+ _registered_method=True)
42
+
43
+
44
+ class HealthServicer(object):
45
+ """Missing associated documentation comment in .proto file."""
46
+
47
+ def Check(self, request, context):
48
+ """Missing associated documentation comment in .proto file."""
49
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
50
+ context.set_details('Method not implemented!')
51
+ raise NotImplementedError('Method not implemented!')
52
+
53
+
54
+ def add_HealthServicer_to_server(servicer, server):
55
+ rpc_method_handlers = {
56
+ 'Check': grpc.unary_unary_rpc_method_handler(
57
+ servicer.Check,
58
+ request_deserializer=health__pb2.HealthCheckRequest.FromString,
59
+ response_serializer=health__pb2.HealthCheckResponse.SerializeToString,
60
+ ),
61
+ }
62
+ generic_handler = grpc.method_handlers_generic_handler(
63
+ 'protos.Health', rpc_method_handlers)
64
+ server.add_generic_rpc_handlers((generic_handler,))
65
+ server.add_registered_method_handlers('protos.Health', rpc_method_handlers)
66
+
67
+
68
+ # This class is part of an EXPERIMENTAL API.
69
+ class Health(object):
70
+ """Missing associated documentation comment in .proto file."""
71
+
72
+ @staticmethod
73
+ def Check(request,
74
+ target,
75
+ options=(),
76
+ channel_credentials=None,
77
+ call_credentials=None,
78
+ insecure=False,
79
+ compression=None,
80
+ wait_for_ready=None,
81
+ timeout=None,
82
+ metadata=None):
83
+ return grpc.experimental.unary_unary(
84
+ request,
85
+ target,
86
+ '/protos.Health/Check',
87
+ health__pb2.HealthCheckRequest.SerializeToString,
88
+ health__pb2.HealthCheckResponse.FromString,
89
+ options,
90
+ channel_credentials,
91
+ insecure,
92
+ call_credentials,
93
+ compression,
94
+ wait_for_ready,
95
+ timeout,
96
+ metadata,
97
+ _registered_method=True)