rpyc-pve-cloud 0.2.0__tar.gz → 0.2.0rc1__tar.gz
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.
- {rpyc_pve_cloud-0.2.0/src/rpyc_pve_cloud.egg-info → rpyc_pve_cloud-0.2.0rc1}/PKG-INFO +2 -2
- {rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1}/requirements.txt +1 -1
- rpyc_pve_cloud-0.2.0rc1/src/pve_cloud_rpc/_version.py +1 -0
- {rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1}/src/pve_cloud_rpc/protos/cloud_pb2.py +25 -29
- {rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1}/src/pve_cloud_rpc/protos/cloud_pb2_grpc.py +0 -43
- {rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1}/src/pve_cloud_rpc/server.py +5 -17
- {rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1/src/rpyc_pve_cloud.egg-info}/PKG-INFO +2 -2
- {rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1}/src/rpyc_pve_cloud.egg-info/requires.txt +1 -1
- rpyc_pve_cloud-0.2.0/src/pve_cloud_rpc/_version.py +0 -1
- {rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1}/LICENSE.md +0 -0
- {rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1}/README.md +0 -0
- {rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1}/pyproject.toml +0 -0
- {rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1}/setup.cfg +0 -0
- {rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1}/src/pve_cloud_rpc/protos/health_pb2.py +0 -0
- {rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1}/src/pve_cloud_rpc/protos/health_pb2_grpc.py +0 -0
- {rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1}/src/rpyc_pve_cloud.egg-info/SOURCES.txt +0 -0
- {rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1}/src/rpyc_pve_cloud.egg-info/dependency_links.txt +0 -0
- {rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1}/src/rpyc_pve_cloud.egg-info/entry_points.txt +0 -0
- {rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1}/src/rpyc_pve_cloud.egg-info/top_level.txt +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rpyc-pve-cloud
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.0rc1
|
|
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
|
|
7
|
+
Requires-Dist: py-pve-cloud==0.15.0rc1
|
|
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 @@
|
|
|
1
|
+
__version__ = "0.2.0-rc1"
|
|
@@ -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\"m\n\x18\x43reateCloudSecretRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\x12\x13\n\x0bsecret_name\x18\x02 \x01(\t\x12\x13\n\x0bsecret_data\x18\x03 \x01(\t\x12\x13\n\x0bsecret_type\x18\x04 \x01(\t\"A\n\x19\x43reateCloudSecretResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x13\n\x0b\x65rr_message\x18\x02 \x01(\t\"C\n\x18\x44\x65leteCloudSecretRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\x12\x13\n\x0bsecret_name\x18\x02 \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\"@\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(\t\"A\n\x16GetCloudSecretsRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\x12\x13\n\x0bsecret_type\x18\x02 \x01(\t\"*\n\x17GetCloudSecretsResponse\x12\x0f\n\x07secrets\x18\x01 \x01(\t\">\n\x15GetVmVarsBlakeRequest\x12\x12\n\ntarget_pve\x18\x01 \x01(\t\x12\x11\n\tblake_ids\x18\x02 \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\x32\xeb\t\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\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,32 +84,28 @@ 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['
|
|
111
|
-
_globals['_GETCLOUDDOMAINRESPONSE']._serialized_start=2335
|
|
112
|
-
_globals['_GETCLOUDDOMAINRESPONSE']._serialized_end=2375
|
|
113
|
-
_globals['_CLOUDSERVICE']._serialized_start=2378
|
|
114
|
-
_globals['_CLOUDSERVICE']._serialized_end=3718
|
|
87
|
+
_globals['_CREATECLOUDSECRETREQUEST']._serialized_start=1431
|
|
88
|
+
_globals['_CREATECLOUDSECRETREQUEST']._serialized_end=1540
|
|
89
|
+
_globals['_CREATECLOUDSECRETRESPONSE']._serialized_start=1542
|
|
90
|
+
_globals['_CREATECLOUDSECRETRESPONSE']._serialized_end=1607
|
|
91
|
+
_globals['_DELETECLOUDSECRETREQUEST']._serialized_start=1609
|
|
92
|
+
_globals['_DELETECLOUDSECRETREQUEST']._serialized_end=1676
|
|
93
|
+
_globals['_DELETECLOUDSECRETRESPONSE']._serialized_start=1678
|
|
94
|
+
_globals['_DELETECLOUDSECRETRESPONSE']._serialized_end=1743
|
|
95
|
+
_globals['_GETCLOUDSECRETREQUEST']._serialized_start=1745
|
|
96
|
+
_globals['_GETCLOUDSECRETREQUEST']._serialized_end=1809
|
|
97
|
+
_globals['_GETCLOUDSECRETRESPONSE']._serialized_start=1811
|
|
98
|
+
_globals['_GETCLOUDSECRETRESPONSE']._serialized_end=1851
|
|
99
|
+
_globals['_GETCLOUDSECRETSREQUEST']._serialized_start=1853
|
|
100
|
+
_globals['_GETCLOUDSECRETSREQUEST']._serialized_end=1918
|
|
101
|
+
_globals['_GETCLOUDSECRETSRESPONSE']._serialized_start=1920
|
|
102
|
+
_globals['_GETCLOUDSECRETSRESPONSE']._serialized_end=1962
|
|
103
|
+
_globals['_GETVMVARSBLAKEREQUEST']._serialized_start=1964
|
|
104
|
+
_globals['_GETVMVARSBLAKEREQUEST']._serialized_end=2026
|
|
105
|
+
_globals['_GETVMVARSBLAKERESPONSE']._serialized_start=2029
|
|
106
|
+
_globals['_GETVMVARSBLAKERESPONSE']._serialized_end=2177
|
|
107
|
+
_globals['_GETVMVARSBLAKERESPONSE_BLAKEIDVARSENTRY']._serialized_start=2127
|
|
108
|
+
_globals['_GETVMVARSBLAKERESPONSE_BLAKEIDVARSENTRY']._serialized_end=2177
|
|
109
|
+
_globals['_CLOUDSERVICE']._serialized_start=2180
|
|
110
|
+
_globals['_CLOUDSERVICE']._serialized_end=3439
|
|
115
111
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -104,11 +104,6 @@ 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)
|
|
112
107
|
self.GetVmVarsBlake = channel.unary_unary(
|
|
113
108
|
'/protos.CloudService/GetVmVarsBlake',
|
|
114
109
|
request_serializer=cloud__pb2.GetVmVarsBlakeRequest.SerializeToString,
|
|
@@ -203,12 +198,6 @@ class CloudServiceServicer(object):
|
|
|
203
198
|
context.set_details('Method not implemented!')
|
|
204
199
|
raise NotImplementedError('Method not implemented!')
|
|
205
200
|
|
|
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
|
-
|
|
212
201
|
def GetVmVarsBlake(self, request, context):
|
|
213
202
|
"""Missing associated documentation comment in .proto file."""
|
|
214
203
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
@@ -288,11 +277,6 @@ def add_CloudServiceServicer_to_server(servicer, server):
|
|
|
288
277
|
request_deserializer=cloud__pb2.GetPveInventoryRequest.FromString,
|
|
289
278
|
response_serializer=cloud__pb2.GetPveInventoryResponse.SerializeToString,
|
|
290
279
|
),
|
|
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
|
-
),
|
|
296
280
|
'GetVmVarsBlake': grpc.unary_unary_rpc_method_handler(
|
|
297
281
|
servicer.GetVmVarsBlake,
|
|
298
282
|
request_deserializer=cloud__pb2.GetVmVarsBlakeRequest.FromString,
|
|
@@ -687,33 +671,6 @@ class CloudService(object):
|
|
|
687
671
|
metadata,
|
|
688
672
|
_registered_method=True)
|
|
689
673
|
|
|
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
|
-
|
|
717
674
|
@staticmethod
|
|
718
675
|
def GetVmVarsBlake(request,
|
|
719
676
|
target,
|
|
@@ -105,7 +105,6 @@ 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
|
|
109
108
|
secret_name = request.secret_name
|
|
110
109
|
secret_data = json.loads(request.secret_data)
|
|
111
110
|
secret_type = request.secret_type
|
|
@@ -117,7 +116,7 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
117
116
|
try:
|
|
118
117
|
session.add(
|
|
119
118
|
ProxmoxCloudSecrets(
|
|
120
|
-
|
|
119
|
+
target_pve=target_pve,
|
|
121
120
|
secret_name=secret_name,
|
|
122
121
|
secret_data=secret_data,
|
|
123
122
|
secret_type=secret_type,
|
|
@@ -136,14 +135,13 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
136
135
|
async def DeleteCloudSecret(self, request, context):
|
|
137
136
|
target_pve = request.target_pve
|
|
138
137
|
secret_name = request.secret_name
|
|
139
|
-
cloud_domain = request.cloud_domain
|
|
140
138
|
|
|
141
139
|
online_pve_host = get_online_pve_host(target_pve, skip_py_cloud_check=True)
|
|
142
140
|
engine = await get_engine(online_pve_host)
|
|
143
141
|
|
|
144
142
|
with Session(engine) as session:
|
|
145
143
|
stmt = delete(ProxmoxCloudSecrets).where(
|
|
146
|
-
ProxmoxCloudSecrets.
|
|
144
|
+
ProxmoxCloudSecrets.target_pve == target_pve,
|
|
147
145
|
ProxmoxCloudSecrets.secret_name == secret_name,
|
|
148
146
|
)
|
|
149
147
|
|
|
@@ -155,14 +153,13 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
155
153
|
async def GetCloudSecret(self, request, context):
|
|
156
154
|
target_pve = request.target_pve
|
|
157
155
|
secret_name = request.secret_name
|
|
158
|
-
cloud_domain = request.cloud_domain
|
|
159
156
|
|
|
160
157
|
online_pve_host = get_online_pve_host(target_pve, skip_py_cloud_check=True)
|
|
161
158
|
engine = await get_engine(online_pve_host)
|
|
162
159
|
|
|
163
160
|
with Session(engine) as session:
|
|
164
161
|
stmt = select(ProxmoxCloudSecrets).where(
|
|
165
|
-
ProxmoxCloudSecrets.
|
|
162
|
+
ProxmoxCloudSecrets.target_pve == target_pve
|
|
166
163
|
and ProxmoxCloudSecrets.secret_name == secret_name
|
|
167
164
|
)
|
|
168
165
|
record = session.scalars(stmt).first()
|
|
@@ -173,14 +170,13 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
173
170
|
async def GetCloudSecrets(self, request, context):
|
|
174
171
|
target_pve = request.target_pve
|
|
175
172
|
secret_type = request.secret_type
|
|
176
|
-
cloud_domain = request.cloud_domain
|
|
177
173
|
|
|
178
174
|
online_pve_host = get_online_pve_host(target_pve, skip_py_cloud_check=True)
|
|
179
175
|
engine = await get_engine(online_pve_host)
|
|
180
176
|
|
|
181
177
|
with Session(engine) as session:
|
|
182
178
|
stmt = select(ProxmoxCloudSecrets).where(
|
|
183
|
-
ProxmoxCloudSecrets.
|
|
179
|
+
ProxmoxCloudSecrets.target_pve == target_pve,
|
|
184
180
|
ProxmoxCloudSecrets.secret_type == secret_type,
|
|
185
181
|
)
|
|
186
182
|
records = session.scalars(stmt).all()
|
|
@@ -194,15 +190,13 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
194
190
|
async def GetVmVarsBlake(self, request, context):
|
|
195
191
|
blake_ids = request.blake_ids
|
|
196
192
|
target_pve = request.target_pve
|
|
197
|
-
cloud_domain = request.cloud_domain
|
|
198
193
|
|
|
199
194
|
online_pve_host = get_online_pve_host(target_pve, skip_py_cloud_check=True)
|
|
200
195
|
engine = await get_engine(online_pve_host)
|
|
201
196
|
|
|
202
197
|
with Session(engine) as session:
|
|
203
198
|
stmt = select(VirtualMachineVars).where(
|
|
204
|
-
VirtualMachineVars.blake_id.in_(blake_ids)
|
|
205
|
-
VirtualMachineVars.cloud_domain == cloud_domain,
|
|
199
|
+
VirtualMachineVars.blake_id.in_(blake_ids)
|
|
206
200
|
)
|
|
207
201
|
records = session.scalars(stmt).all()
|
|
208
202
|
|
|
@@ -323,12 +317,6 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
323
317
|
|
|
324
318
|
return cloud_pb2.GetProxmoxHostResponse(pve_host=online_pve_host)
|
|
325
319
|
|
|
326
|
-
async def GetCloudDomain(self, request, context):
|
|
327
|
-
target_pve = request.target_pve
|
|
328
|
-
|
|
329
|
-
cloud_domain = get_cloud_domain(target_pve)
|
|
330
|
-
return cloud_pb2.GetCloudDomainResponse(domain=cloud_domain)
|
|
331
|
-
|
|
332
320
|
async def GetPveInventory(self, request, context):
|
|
333
321
|
target_pve = request.target_pve
|
|
334
322
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rpyc-pve-cloud
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.0rc1
|
|
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
|
|
7
|
+
Requires-Dist: py-pve-cloud==0.15.0rc1
|
|
8
8
|
Requires-Dist: grpcio==1.76.0
|
|
9
9
|
Requires-Dist: asyncssh==2.22.0
|
|
10
10
|
Requires-Dist: protobuf==6.33.4
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1}/src/pve_cloud_rpc/protos/health_pb2_grpc.py
RENAMED
|
File without changes
|
|
File without changes
|
{rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1}/src/rpyc_pve_cloud.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{rpyc_pve_cloud-0.2.0 → rpyc_pve_cloud-0.2.0rc1}/src/rpyc_pve_cloud.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|