rpyc-pve-cloud 0.2.0rc2__py3-none-any.whl → 0.2.0rc3__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.
- pve_cloud_rpc/_version.py +1 -1
- pve_cloud_rpc/protos/cloud_pb2.py +29 -25
- pve_cloud_rpc/protos/cloud_pb2_grpc.py +43 -0
- pve_cloud_rpc/server.py +22 -21
- {rpyc_pve_cloud-0.2.0rc2.dist-info → rpyc_pve_cloud-0.2.0rc3.dist-info}/METADATA +2 -2
- rpyc_pve_cloud-0.2.0rc3.dist-info/RECORD +12 -0
- rpyc_pve_cloud-0.2.0rc2.dist-info/RECORD +0 -12
- {rpyc_pve_cloud-0.2.0rc2.dist-info → rpyc_pve_cloud-0.2.0rc3.dist-info}/WHEEL +0 -0
- {rpyc_pve_cloud-0.2.0rc2.dist-info → rpyc_pve_cloud-0.2.0rc3.dist-info}/entry_points.txt +0 -0
- {rpyc_pve_cloud-0.2.0rc2.dist-info → rpyc_pve_cloud-0.2.0rc3.dist-info}/licenses/LICENSE.md +0 -0
- {rpyc_pve_cloud-0.2.0rc2.dist-info → rpyc_pve_cloud-0.2.0rc3.dist-info}/top_level.txt +0 -0
pve_cloud_rpc/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.2.0-
|
|
1
|
+
__version__ = "0.2.0-rc3"
|
|
@@ -24,7 +24,7 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
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\"\xb8\x01\n\x17\x43reateProxmoxApiRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\x12\x10\n\x08\x61pi_path\x18\x02 \x01(\t\x12\x44\n\x0b\x63reate_args\x18\x03 \x03(\x0b\x32/.protos.CreateProxmoxApiRequest.CreateArgsEntry\x1a\x31\n\x0f\x43reateArgsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"@\n\x18\x43reateProxmoxApiResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x13\n\x0b\x65rr_message\x18\x02 \x01(\t\"?\n\x17\x44\x65leteProxmoxApiRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\x12\x10\n\x08\x61pi_path\x18\x02 \x01(\t\"@\n\x18\x44\x65leteProxmoxApiResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x13\n\x0b\x65rr_message\x18\x02 \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\"T\n\x19GetCloudFileSecretRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\x12\x13\n\x0bsecret_name\x18\x02 \x01(\t\x12\x0e\n\x06rstrip\x18\x03 \x01(\x08\",\n\x1aGetCloudFileSecretResponse\x12\x0e\n\x06secret\x18\x01 \x01(\t\"
|
|
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\"\xb8\x01\n\x17\x43reateProxmoxApiRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\x12\x10\n\x08\x61pi_path\x18\x02 \x01(\t\x12\x44\n\x0b\x63reate_args\x18\x03 \x03(\x0b\x32/.protos.CreateProxmoxApiRequest.CreateArgsEntry\x1a\x31\n\x0f\x43reateArgsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"@\n\x18\x43reateProxmoxApiResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x13\n\x0b\x65rr_message\x18\x02 \x01(\t\"?\n\x17\x44\x65leteProxmoxApiRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\x12\x10\n\x08\x61pi_path\x18\x02 \x01(\t\"@\n\x18\x44\x65leteProxmoxApiResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x13\n\x0b\x65rr_message\x18\x02 \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\"T\n\x19GetCloudFileSecretRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\x12\x13\n\x0bsecret_name\x18\x02 \x01(\t\x12\x0e\n\x06rstrip\x18\x03 \x01(\x08\",\n\x1aGetCloudFileSecretResponse\x12\x0e\n\x06secret\x18\x01 \x01(\t\"\x83\x01\n\x18\x43reateCloudSecretRequest\x12\x14\n\x0c\x63loud_domain\x18\x01 \x01(\t\x12\x12\n\ntarget_pve\x18\x02 \x01(\t\x12\x13\n\x0bsecret_name\x18\x03 \x01(\t\x12\x13\n\x0bsecret_data\x18\x04 \x01(\t\x12\x13\n\x0bsecret_type\x18\x05 \x01(\t\"A\n\x19\x43reateCloudSecretResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x13\n\x0b\x65rr_message\x18\x02 \x01(\t\"Y\n\x18\x44\x65leteCloudSecretRequest\x12\x14\n\x0c\x63loud_domain\x18\x01 \x01(\t\x12\x12\n\ntarget_pve\x18\x02 \x01(\t\x12\x13\n\x0bsecret_name\x18\x03 \x01(\t\"A\n\x19\x44\x65leteCloudSecretResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x13\n\x0b\x65rr_message\x18\x02 \x01(\t\"V\n\x15GetCloudSecretRequest\x12\x14\n\x0c\x63loud_domain\x18\x01 \x01(\t\x12\x12\n\ntarget_pve\x18\x02 \x01(\t\x12\x13\n\x0bsecret_name\x18\x03 \x01(\t\"(\n\x16GetCloudSecretResponse\x12\x0e\n\x06secret\x18\x01 \x01(\t\"W\n\x16GetCloudSecretsRequest\x12\x14\n\x0c\x63loud_domain\x18\x01 \x01(\t\x12\x12\n\ntarget_pve\x18\x02 \x01(\t\x12\x13\n\x0bsecret_type\x18\x03 \x01(\t\"*\n\x17GetCloudSecretsResponse\x12\x0f\n\x07secrets\x18\x01 \x01(\t\"T\n\x15GetVmVarsBlakeRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\x12\x14\n\x0c\x63loud_domain\x18\x02 \x01(\t\x12\x11\n\tblake_ids\x18\x03 \x03(\t\"\x94\x01\n\x16GetVmVarsBlakeResponse\x12\x46\n\rblake_id_vars\x18\x01 \x03(\x0b\x32/.protos.GetVmVarsBlakeResponse.BlakeIdVarsEntry\x1a\x32\n\x10\x42lakeIdVarsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"+\n\x15GetCloudDomainRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\"(\n\x16GetCloudDomainResponse\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t2\xbc\n\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\x12[\n\x12GetCloudFileSecret\x12!.protos.GetCloudFileSecretRequest\x1a\".protos.GetCloudFileSecretResponse\x12X\n\x11\x43reateCloudSecret\x12 .protos.CreateCloudSecretRequest\x1a!.protos.CreateCloudSecretResponse\x12X\n\x11\x44\x65leteCloudSecret\x12 .protos.DeleteCloudSecretRequest\x1a!.protos.DeleteCloudSecretResponse\x12O\n\x0eGetCloudSecret\x12\x1d.protos.GetCloudSecretRequest\x1a\x1e.protos.GetCloudSecretResponse\x12R\n\x0fGetCloudSecrets\x12\x1e.protos.GetCloudSecretsRequest\x1a\x1f.protos.GetCloudSecretsResponse\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\x12U\n\x10\x43reateProxmoxApi\x12\x1f.protos.CreateProxmoxApiRequest\x1a .protos.CreateProxmoxApiResponse\x12U\n\x10\x44\x65leteProxmoxApi\x12\x1f.protos.DeleteProxmoxApiRequest\x1a .protos.DeleteProxmoxApiResponse\x12O\n\x0eGetProxmoxHost\x12\x1d.protos.GetProxmoxHostRequest\x1a\x1e.protos.GetProxmoxHostResponse\x12R\n\x0fGetPveInventory\x12\x1e.protos.GetPveInventoryRequest\x1a\x1f.protos.GetPveInventoryResponse\x12O\n\x0eGetCloudDomain\x12\x1d.protos.GetCloudDomainRequest\x1a\x1e.protos.GetCloudDomainResponse\x12O\n\x0eGetVmVarsBlake\x12\x1d.protos.GetVmVarsBlakeRequest\x1a\x1e.protos.GetVmVarsBlakeResponseBQZOgithub.com/Proxmox-Cloud/terraform-provider-pxc/internal/provider/protos;protosb\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -84,28 +84,32 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
84
84
|
_globals['_GETCLOUDFILESECRETREQUEST']._serialized_end=1383
|
|
85
85
|
_globals['_GETCLOUDFILESECRETRESPONSE']._serialized_start=1385
|
|
86
86
|
_globals['_GETCLOUDFILESECRETRESPONSE']._serialized_end=1429
|
|
87
|
-
_globals['_CREATECLOUDSECRETREQUEST']._serialized_start=
|
|
88
|
-
_globals['_CREATECLOUDSECRETREQUEST']._serialized_end=
|
|
89
|
-
_globals['_CREATECLOUDSECRETRESPONSE']._serialized_start=
|
|
90
|
-
_globals['_CREATECLOUDSECRETRESPONSE']._serialized_end=
|
|
91
|
-
_globals['_DELETECLOUDSECRETREQUEST']._serialized_start=
|
|
92
|
-
_globals['_DELETECLOUDSECRETREQUEST']._serialized_end=
|
|
93
|
-
_globals['_DELETECLOUDSECRETRESPONSE']._serialized_start=
|
|
94
|
-
_globals['_DELETECLOUDSECRETRESPONSE']._serialized_end=
|
|
95
|
-
_globals['_GETCLOUDSECRETREQUEST']._serialized_start=
|
|
96
|
-
_globals['_GETCLOUDSECRETREQUEST']._serialized_end=
|
|
97
|
-
_globals['_GETCLOUDSECRETRESPONSE']._serialized_start=
|
|
98
|
-
_globals['_GETCLOUDSECRETRESPONSE']._serialized_end=
|
|
99
|
-
_globals['_GETCLOUDSECRETSREQUEST']._serialized_start=
|
|
100
|
-
_globals['_GETCLOUDSECRETSREQUEST']._serialized_end=
|
|
101
|
-
_globals['_GETCLOUDSECRETSRESPONSE']._serialized_start=
|
|
102
|
-
_globals['_GETCLOUDSECRETSRESPONSE']._serialized_end=
|
|
103
|
-
_globals['_GETVMVARSBLAKEREQUEST']._serialized_start=
|
|
104
|
-
_globals['_GETVMVARSBLAKEREQUEST']._serialized_end=
|
|
105
|
-
_globals['_GETVMVARSBLAKERESPONSE']._serialized_start=
|
|
106
|
-
_globals['_GETVMVARSBLAKERESPONSE']._serialized_end=
|
|
107
|
-
_globals['_GETVMVARSBLAKERESPONSE_BLAKEIDVARSENTRY']._serialized_start=
|
|
108
|
-
_globals['_GETVMVARSBLAKERESPONSE_BLAKEIDVARSENTRY']._serialized_end=
|
|
109
|
-
_globals['
|
|
110
|
-
_globals['
|
|
87
|
+
_globals['_CREATECLOUDSECRETREQUEST']._serialized_start=1432
|
|
88
|
+
_globals['_CREATECLOUDSECRETREQUEST']._serialized_end=1563
|
|
89
|
+
_globals['_CREATECLOUDSECRETRESPONSE']._serialized_start=1565
|
|
90
|
+
_globals['_CREATECLOUDSECRETRESPONSE']._serialized_end=1630
|
|
91
|
+
_globals['_DELETECLOUDSECRETREQUEST']._serialized_start=1632
|
|
92
|
+
_globals['_DELETECLOUDSECRETREQUEST']._serialized_end=1721
|
|
93
|
+
_globals['_DELETECLOUDSECRETRESPONSE']._serialized_start=1723
|
|
94
|
+
_globals['_DELETECLOUDSECRETRESPONSE']._serialized_end=1788
|
|
95
|
+
_globals['_GETCLOUDSECRETREQUEST']._serialized_start=1790
|
|
96
|
+
_globals['_GETCLOUDSECRETREQUEST']._serialized_end=1876
|
|
97
|
+
_globals['_GETCLOUDSECRETRESPONSE']._serialized_start=1878
|
|
98
|
+
_globals['_GETCLOUDSECRETRESPONSE']._serialized_end=1918
|
|
99
|
+
_globals['_GETCLOUDSECRETSREQUEST']._serialized_start=1920
|
|
100
|
+
_globals['_GETCLOUDSECRETSREQUEST']._serialized_end=2007
|
|
101
|
+
_globals['_GETCLOUDSECRETSRESPONSE']._serialized_start=2009
|
|
102
|
+
_globals['_GETCLOUDSECRETSRESPONSE']._serialized_end=2051
|
|
103
|
+
_globals['_GETVMVARSBLAKEREQUEST']._serialized_start=2053
|
|
104
|
+
_globals['_GETVMVARSBLAKEREQUEST']._serialized_end=2137
|
|
105
|
+
_globals['_GETVMVARSBLAKERESPONSE']._serialized_start=2140
|
|
106
|
+
_globals['_GETVMVARSBLAKERESPONSE']._serialized_end=2288
|
|
107
|
+
_globals['_GETVMVARSBLAKERESPONSE_BLAKEIDVARSENTRY']._serialized_start=2238
|
|
108
|
+
_globals['_GETVMVARSBLAKERESPONSE_BLAKEIDVARSENTRY']._serialized_end=2288
|
|
109
|
+
_globals['_GETCLOUDDOMAINREQUEST']._serialized_start=2290
|
|
110
|
+
_globals['_GETCLOUDDOMAINREQUEST']._serialized_end=2333
|
|
111
|
+
_globals['_GETCLOUDDOMAINRESPONSE']._serialized_start=2335
|
|
112
|
+
_globals['_GETCLOUDDOMAINRESPONSE']._serialized_end=2375
|
|
113
|
+
_globals['_CLOUDSERVICE']._serialized_start=2378
|
|
114
|
+
_globals['_CLOUDSERVICE']._serialized_end=3718
|
|
111
115
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -104,6 +104,11 @@ class CloudServiceStub(object):
|
|
|
104
104
|
request_serializer=cloud__pb2.GetPveInventoryRequest.SerializeToString,
|
|
105
105
|
response_deserializer=cloud__pb2.GetPveInventoryResponse.FromString,
|
|
106
106
|
_registered_method=True)
|
|
107
|
+
self.GetCloudDomain = channel.unary_unary(
|
|
108
|
+
'/protos.CloudService/GetCloudDomain',
|
|
109
|
+
request_serializer=cloud__pb2.GetCloudDomainRequest.SerializeToString,
|
|
110
|
+
response_deserializer=cloud__pb2.GetCloudDomainResponse.FromString,
|
|
111
|
+
_registered_method=True)
|
|
107
112
|
self.GetVmVarsBlake = channel.unary_unary(
|
|
108
113
|
'/protos.CloudService/GetVmVarsBlake',
|
|
109
114
|
request_serializer=cloud__pb2.GetVmVarsBlakeRequest.SerializeToString,
|
|
@@ -198,6 +203,12 @@ class CloudServiceServicer(object):
|
|
|
198
203
|
context.set_details('Method not implemented!')
|
|
199
204
|
raise NotImplementedError('Method not implemented!')
|
|
200
205
|
|
|
206
|
+
def GetCloudDomain(self, request, context):
|
|
207
|
+
"""Missing associated documentation comment in .proto file."""
|
|
208
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
209
|
+
context.set_details('Method not implemented!')
|
|
210
|
+
raise NotImplementedError('Method not implemented!')
|
|
211
|
+
|
|
201
212
|
def GetVmVarsBlake(self, request, context):
|
|
202
213
|
"""Missing associated documentation comment in .proto file."""
|
|
203
214
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
@@ -277,6 +288,11 @@ def add_CloudServiceServicer_to_server(servicer, server):
|
|
|
277
288
|
request_deserializer=cloud__pb2.GetPveInventoryRequest.FromString,
|
|
278
289
|
response_serializer=cloud__pb2.GetPveInventoryResponse.SerializeToString,
|
|
279
290
|
),
|
|
291
|
+
'GetCloudDomain': grpc.unary_unary_rpc_method_handler(
|
|
292
|
+
servicer.GetCloudDomain,
|
|
293
|
+
request_deserializer=cloud__pb2.GetCloudDomainRequest.FromString,
|
|
294
|
+
response_serializer=cloud__pb2.GetCloudDomainResponse.SerializeToString,
|
|
295
|
+
),
|
|
280
296
|
'GetVmVarsBlake': grpc.unary_unary_rpc_method_handler(
|
|
281
297
|
servicer.GetVmVarsBlake,
|
|
282
298
|
request_deserializer=cloud__pb2.GetVmVarsBlakeRequest.FromString,
|
|
@@ -671,6 +687,33 @@ class CloudService(object):
|
|
|
671
687
|
metadata,
|
|
672
688
|
_registered_method=True)
|
|
673
689
|
|
|
690
|
+
@staticmethod
|
|
691
|
+
def GetCloudDomain(request,
|
|
692
|
+
target,
|
|
693
|
+
options=(),
|
|
694
|
+
channel_credentials=None,
|
|
695
|
+
call_credentials=None,
|
|
696
|
+
insecure=False,
|
|
697
|
+
compression=None,
|
|
698
|
+
wait_for_ready=None,
|
|
699
|
+
timeout=None,
|
|
700
|
+
metadata=None):
|
|
701
|
+
return grpc.experimental.unary_unary(
|
|
702
|
+
request,
|
|
703
|
+
target,
|
|
704
|
+
'/protos.CloudService/GetCloudDomain',
|
|
705
|
+
cloud__pb2.GetCloudDomainRequest.SerializeToString,
|
|
706
|
+
cloud__pb2.GetCloudDomainResponse.FromString,
|
|
707
|
+
options,
|
|
708
|
+
channel_credentials,
|
|
709
|
+
insecure,
|
|
710
|
+
call_credentials,
|
|
711
|
+
compression,
|
|
712
|
+
wait_for_ready,
|
|
713
|
+
timeout,
|
|
714
|
+
metadata,
|
|
715
|
+
_registered_method=True)
|
|
716
|
+
|
|
674
717
|
@staticmethod
|
|
675
718
|
def GetVmVarsBlake(request,
|
|
676
719
|
target,
|
pve_cloud_rpc/server.py
CHANGED
|
@@ -105,6 +105,7 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
105
105
|
# non file proxmox cloud secrets are stored in the patroni database
|
|
106
106
|
async def CreateCloudSecret(self, request, context):
|
|
107
107
|
target_pve = request.target_pve
|
|
108
|
+
cloud_domain = request.cloud_domain
|
|
108
109
|
secret_name = request.secret_name
|
|
109
110
|
secret_data = json.loads(request.secret_data)
|
|
110
111
|
secret_type = request.secret_type
|
|
@@ -114,14 +115,12 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
114
115
|
|
|
115
116
|
with Session(engine) as session:
|
|
116
117
|
try:
|
|
117
|
-
session.add(
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
)
|
|
124
|
-
)
|
|
118
|
+
session.add(ProxmoxCloudSecrets(
|
|
119
|
+
cloud_domain=cloud_domain,
|
|
120
|
+
secret_name=secret_name,
|
|
121
|
+
secret_data=secret_data,
|
|
122
|
+
secret_type=secret_type
|
|
123
|
+
))
|
|
125
124
|
session.commit()
|
|
126
125
|
|
|
127
126
|
except IntegrityError as e:
|
|
@@ -135,14 +134,15 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
135
134
|
async def DeleteCloudSecret(self, request, context):
|
|
136
135
|
target_pve = request.target_pve
|
|
137
136
|
secret_name = request.secret_name
|
|
137
|
+
cloud_domain = request.cloud_domain
|
|
138
138
|
|
|
139
139
|
online_pve_host = get_online_pve_host(target_pve, skip_py_cloud_check=True)
|
|
140
140
|
engine = await get_engine(online_pve_host)
|
|
141
141
|
|
|
142
142
|
with Session(engine) as session:
|
|
143
143
|
stmt = delete(ProxmoxCloudSecrets).where(
|
|
144
|
-
ProxmoxCloudSecrets.
|
|
145
|
-
ProxmoxCloudSecrets.secret_name == secret_name
|
|
144
|
+
ProxmoxCloudSecrets.cloud_domain == cloud_domain,
|
|
145
|
+
ProxmoxCloudSecrets.secret_name == secret_name
|
|
146
146
|
)
|
|
147
147
|
|
|
148
148
|
result = session.execute(stmt)
|
|
@@ -153,15 +153,13 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
153
153
|
async def GetCloudSecret(self, request, context):
|
|
154
154
|
target_pve = request.target_pve
|
|
155
155
|
secret_name = request.secret_name
|
|
156
|
+
cloud_domain = request.cloud_domain
|
|
156
157
|
|
|
157
158
|
online_pve_host = get_online_pve_host(target_pve, skip_py_cloud_check=True)
|
|
158
159
|
engine = await get_engine(online_pve_host)
|
|
159
160
|
|
|
160
161
|
with Session(engine) as session:
|
|
161
|
-
stmt = select(ProxmoxCloudSecrets).where(
|
|
162
|
-
ProxmoxCloudSecrets.target_pve == target_pve
|
|
163
|
-
and ProxmoxCloudSecrets.secret_name == secret_name
|
|
164
|
-
)
|
|
162
|
+
stmt = select(ProxmoxCloudSecrets).where(ProxmoxCloudSecrets.cloud_domain == cloud_domain and ProxmoxCloudSecrets.secret_name == secret_name)
|
|
165
163
|
record = session.scalars(stmt).first()
|
|
166
164
|
|
|
167
165
|
return cloud_pb2.GetCloudSecretResponse(secret=json.dumps(record.secret_data))
|
|
@@ -170,15 +168,13 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
170
168
|
async def GetCloudSecrets(self, request, context):
|
|
171
169
|
target_pve = request.target_pve
|
|
172
170
|
secret_type = request.secret_type
|
|
171
|
+
cloud_domain = request.cloud_domain
|
|
173
172
|
|
|
174
173
|
online_pve_host = get_online_pve_host(target_pve, skip_py_cloud_check=True)
|
|
175
174
|
engine = await get_engine(online_pve_host)
|
|
176
175
|
|
|
177
176
|
with Session(engine) as session:
|
|
178
|
-
stmt = select(ProxmoxCloudSecrets).where(
|
|
179
|
-
ProxmoxCloudSecrets.target_pve == target_pve,
|
|
180
|
-
ProxmoxCloudSecrets.secret_type == secret_type,
|
|
181
|
-
)
|
|
177
|
+
stmt = select(ProxmoxCloudSecrets).where(ProxmoxCloudSecrets.cloud_domain == cloud_domain, ProxmoxCloudSecrets.secret_type == secret_type)
|
|
182
178
|
records = session.scalars(stmt).all()
|
|
183
179
|
|
|
184
180
|
return cloud_pb2.GetCloudSecretsResponse(
|
|
@@ -190,14 +186,13 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
190
186
|
async def GetVmVarsBlake(self, request, context):
|
|
191
187
|
blake_ids = request.blake_ids
|
|
192
188
|
target_pve = request.target_pve
|
|
189
|
+
cloud_domain = request.cloud_domain
|
|
193
190
|
|
|
194
191
|
online_pve_host = get_online_pve_host(target_pve, skip_py_cloud_check=True)
|
|
195
192
|
engine = await get_engine(online_pve_host)
|
|
196
193
|
|
|
197
194
|
with Session(engine) as session:
|
|
198
|
-
stmt = select(VirtualMachineVars).where(
|
|
199
|
-
VirtualMachineVars.blake_id.in_(blake_ids)
|
|
200
|
-
)
|
|
195
|
+
stmt = select(VirtualMachineVars).where(VirtualMachineVars.blake_id.in_(blake_ids), VirtualMachineVars.cloud_domain == cloud_domain)
|
|
201
196
|
records = session.scalars(stmt).all()
|
|
202
197
|
|
|
203
198
|
return cloud_pb2.GetVmVarsBlakeResponse(
|
|
@@ -317,6 +312,12 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
317
312
|
|
|
318
313
|
return cloud_pb2.GetProxmoxHostResponse(pve_host=online_pve_host)
|
|
319
314
|
|
|
315
|
+
async def GetCloudDomain(self, request, context):
|
|
316
|
+
target_pve = request.target_pve
|
|
317
|
+
|
|
318
|
+
cloud_domain = get_cloud_domain(target_pve)
|
|
319
|
+
return cloud_pb2.GetCloudDomainResponse(domain=cloud_domain)
|
|
320
|
+
|
|
320
321
|
async def GetPveInventory(self, request, context):
|
|
321
322
|
target_pve = request.target_pve
|
|
322
323
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rpyc-pve-cloud
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.0rc3
|
|
4
4
|
Author-email: Tobias Huebner <tobias.huebner@vmzberlin.com>
|
|
5
5
|
License-Expression: GPL-3.0-or-later
|
|
6
6
|
License-File: LICENSE.md
|
|
7
|
-
Requires-Dist: py-pve-cloud==0.15.
|
|
7
|
+
Requires-Dist: py-pve-cloud==0.15.0rc4
|
|
8
8
|
Requires-Dist: grpcio==1.76.0
|
|
9
9
|
Requires-Dist: asyncssh==2.22.0
|
|
10
10
|
Requires-Dist: protobuf==6.33.4
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
pve_cloud_rpc/_version.py,sha256=FvnDmpFDuyasWidEoKsYzkTj6kLkEkcEqcggYYieOMA,26
|
|
2
|
+
pve_cloud_rpc/server.py,sha256=FeT42fZ545zEKWqFZQxybk7n1xBH0K19vYaY3ehKKJg,13897
|
|
3
|
+
pve_cloud_rpc/protos/cloud_pb2.py,sha256=ecbX9iJTH5fY7kqC1G5GGnGv9L_-EsvazO_iyH6_6eY,11942
|
|
4
|
+
pve_cloud_rpc/protos/cloud_pb2_grpc.py,sha256=wiLUdbVjdikJw9w0YVlazK92iJICxWOeSNe-wDaTumg,29554
|
|
5
|
+
pve_cloud_rpc/protos/health_pb2.py,sha256=532OgHM0bPu6uyJNyYETlRJp9BzcCZ53fnrRtEu7bnA,2188
|
|
6
|
+
pve_cloud_rpc/protos/health_pb2_grpc.py,sha256=XXT8lsH8YgKLqn07YfigSQ6TNW6s-P4V6S-X69fLfh0,3368
|
|
7
|
+
rpyc_pve_cloud-0.2.0rc3.dist-info/licenses/LICENSE.md,sha256=ADUqsZhl4juwq34PRTMiBqumpm11s_PMli_dZQjWPqQ,34260
|
|
8
|
+
rpyc_pve_cloud-0.2.0rc3.dist-info/METADATA,sha256=mv-aShnz6w_QB54JV8WRq8kuQWMRDpolKfSKzXESiwg,338
|
|
9
|
+
rpyc_pve_cloud-0.2.0rc3.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
10
|
+
rpyc_pve_cloud-0.2.0rc3.dist-info/entry_points.txt,sha256=h4ytTryc_8IlySP_ICyy6srHzF71qrQ0noUhqI-3aGw,52
|
|
11
|
+
rpyc_pve_cloud-0.2.0rc3.dist-info/top_level.txt,sha256=CTGM4RRp33khtroUiv-RiYXI4h6W6AaQQGIvsbwAetM,14
|
|
12
|
+
rpyc_pve_cloud-0.2.0rc3.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
pve_cloud_rpc/_version.py,sha256=7Vw_5ey9PHxLSRjGByoGmPu-khvl6cIcfhODJvQ9jfY,26
|
|
2
|
-
pve_cloud_rpc/server.py,sha256=L7gJouzFHOd22yJeBtFoaN1zUkxKfe9Qe00CmMOrPuk,13577
|
|
3
|
-
pve_cloud_rpc/protos/cloud_pb2.py,sha256=2FFa9SSpkdSD1ie_NiAGFGjz92yx028DhEALJazCIdE,11237
|
|
4
|
-
pve_cloud_rpc/protos/cloud_pb2_grpc.py,sha256=V-q4n-dI0nstsuHZLbNyaxk4-3jU8aTWqbeFR8p5SDk,27826
|
|
5
|
-
pve_cloud_rpc/protos/health_pb2.py,sha256=532OgHM0bPu6uyJNyYETlRJp9BzcCZ53fnrRtEu7bnA,2188
|
|
6
|
-
pve_cloud_rpc/protos/health_pb2_grpc.py,sha256=XXT8lsH8YgKLqn07YfigSQ6TNW6s-P4V6S-X69fLfh0,3368
|
|
7
|
-
rpyc_pve_cloud-0.2.0rc2.dist-info/licenses/LICENSE.md,sha256=ADUqsZhl4juwq34PRTMiBqumpm11s_PMli_dZQjWPqQ,34260
|
|
8
|
-
rpyc_pve_cloud-0.2.0rc2.dist-info/METADATA,sha256=F7wulX6DkUmL1q1Ea2dZmzzDNVej22qXIhDjM05y7Qc,338
|
|
9
|
-
rpyc_pve_cloud-0.2.0rc2.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
10
|
-
rpyc_pve_cloud-0.2.0rc2.dist-info/entry_points.txt,sha256=h4ytTryc_8IlySP_ICyy6srHzF71qrQ0noUhqI-3aGw,52
|
|
11
|
-
rpyc_pve_cloud-0.2.0rc2.dist-info/top_level.txt,sha256=CTGM4RRp33khtroUiv-RiYXI4h6W6AaQQGIvsbwAetM,14
|
|
12
|
-
rpyc_pve_cloud-0.2.0rc2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|