rpyc-pve-cloud 0.2.0rc3__py3-none-any.whl → 0.2.1__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/server.py +22 -11
- {rpyc_pve_cloud-0.2.0rc3.dist-info → rpyc_pve_cloud-0.2.1.dist-info}/METADATA +2 -2
- rpyc_pve_cloud-0.2.1.dist-info/RECORD +12 -0
- {rpyc_pve_cloud-0.2.0rc3.dist-info → rpyc_pve_cloud-0.2.1.dist-info}/WHEEL +1 -1
- rpyc_pve_cloud-0.2.0rc3.dist-info/RECORD +0 -12
- {rpyc_pve_cloud-0.2.0rc3.dist-info → rpyc_pve_cloud-0.2.1.dist-info}/entry_points.txt +0 -0
- {rpyc_pve_cloud-0.2.0rc3.dist-info → rpyc_pve_cloud-0.2.1.dist-info}/licenses/LICENSE.md +0 -0
- {rpyc_pve_cloud-0.2.0rc3.dist-info → rpyc_pve_cloud-0.2.1.dist-info}/top_level.txt +0 -0
pve_cloud_rpc/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.2.
|
|
1
|
+
__version__ = "0.2.1"
|
pve_cloud_rpc/server.py
CHANGED
|
@@ -115,12 +115,14 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
115
115
|
|
|
116
116
|
with Session(engine) as session:
|
|
117
117
|
try:
|
|
118
|
-
session.add(
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
118
|
+
session.add(
|
|
119
|
+
ProxmoxCloudSecrets(
|
|
120
|
+
cloud_domain=cloud_domain,
|
|
121
|
+
secret_name=secret_name,
|
|
122
|
+
secret_data=secret_data,
|
|
123
|
+
secret_type=secret_type,
|
|
124
|
+
)
|
|
125
|
+
)
|
|
124
126
|
session.commit()
|
|
125
127
|
|
|
126
128
|
except IntegrityError as e:
|
|
@@ -142,7 +144,7 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
142
144
|
with Session(engine) as session:
|
|
143
145
|
stmt = delete(ProxmoxCloudSecrets).where(
|
|
144
146
|
ProxmoxCloudSecrets.cloud_domain == cloud_domain,
|
|
145
|
-
ProxmoxCloudSecrets.secret_name == secret_name
|
|
147
|
+
ProxmoxCloudSecrets.secret_name == secret_name,
|
|
146
148
|
)
|
|
147
149
|
|
|
148
150
|
result = session.execute(stmt)
|
|
@@ -159,7 +161,10 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
159
161
|
engine = await get_engine(online_pve_host)
|
|
160
162
|
|
|
161
163
|
with Session(engine) as session:
|
|
162
|
-
stmt = select(ProxmoxCloudSecrets).where(
|
|
164
|
+
stmt = select(ProxmoxCloudSecrets).where(
|
|
165
|
+
ProxmoxCloudSecrets.cloud_domain == cloud_domain
|
|
166
|
+
and ProxmoxCloudSecrets.secret_name == secret_name
|
|
167
|
+
)
|
|
163
168
|
record = session.scalars(stmt).first()
|
|
164
169
|
|
|
165
170
|
return cloud_pb2.GetCloudSecretResponse(secret=json.dumps(record.secret_data))
|
|
@@ -174,7 +179,10 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
174
179
|
engine = await get_engine(online_pve_host)
|
|
175
180
|
|
|
176
181
|
with Session(engine) as session:
|
|
177
|
-
stmt = select(ProxmoxCloudSecrets).where(
|
|
182
|
+
stmt = select(ProxmoxCloudSecrets).where(
|
|
183
|
+
ProxmoxCloudSecrets.cloud_domain == cloud_domain,
|
|
184
|
+
ProxmoxCloudSecrets.secret_type == secret_type,
|
|
185
|
+
)
|
|
178
186
|
records = session.scalars(stmt).all()
|
|
179
187
|
|
|
180
188
|
return cloud_pb2.GetCloudSecretsResponse(
|
|
@@ -192,7 +200,10 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
192
200
|
engine = await get_engine(online_pve_host)
|
|
193
201
|
|
|
194
202
|
with Session(engine) as session:
|
|
195
|
-
stmt = select(VirtualMachineVars).where(
|
|
203
|
+
stmt = select(VirtualMachineVars).where(
|
|
204
|
+
VirtualMachineVars.blake_id.in_(blake_ids),
|
|
205
|
+
VirtualMachineVars.cloud_domain == cloud_domain,
|
|
206
|
+
)
|
|
196
207
|
records = session.scalars(stmt).all()
|
|
197
208
|
|
|
198
209
|
return cloud_pb2.GetVmVarsBlakeResponse(
|
|
@@ -315,7 +326,7 @@ class CloudServiceServicer(cloud_pb2_grpc.CloudServiceServicer):
|
|
|
315
326
|
async def GetCloudDomain(self, request, context):
|
|
316
327
|
target_pve = request.target_pve
|
|
317
328
|
|
|
318
|
-
cloud_domain = get_cloud_domain(target_pve)
|
|
329
|
+
cloud_domain = get_cloud_domain(target_pve)
|
|
319
330
|
return cloud_pb2.GetCloudDomainResponse(domain=cloud_domain)
|
|
320
331
|
|
|
321
332
|
async def GetPveInventory(self, request, context):
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rpyc-pve-cloud
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
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.16.0,>=0.15.4
|
|
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=HfjVOrpTnmZ-xVFCYSVmX50EXaBQeJteUHG-PD6iQs8,22
|
|
2
|
+
pve_cloud_rpc/server.py,sha256=TgdP7o_tUlL9eOOfLGrvvts80bzao6-5FmBvHkHbB6k,14096
|
|
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.1.dist-info/licenses/LICENSE.md,sha256=ADUqsZhl4juwq34PRTMiBqumpm11s_PMli_dZQjWPqQ,34260
|
|
8
|
+
rpyc_pve_cloud-0.2.1.dist-info/METADATA,sha256=8YH9xAWXHu3IjOEMBUMwK0odjgKNGZlw9cYzCEuWOvI,340
|
|
9
|
+
rpyc_pve_cloud-0.2.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
10
|
+
rpyc_pve_cloud-0.2.1.dist-info/entry_points.txt,sha256=h4ytTryc_8IlySP_ICyy6srHzF71qrQ0noUhqI-3aGw,52
|
|
11
|
+
rpyc_pve_cloud-0.2.1.dist-info/top_level.txt,sha256=CTGM4RRp33khtroUiv-RiYXI4h6W6AaQQGIvsbwAetM,14
|
|
12
|
+
rpyc_pve_cloud-0.2.1.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|