cyberdesk 2.1.10__py3-none-any.whl → 2.1.11__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.
Potentially problematic release.
This version of cyberdesk might be problematic. Click here for more details.
- cyberdesk/__init__.py +1 -1
- cyberdesk/client.py +12 -2
- {cyberdesk-2.1.10.dist-info → cyberdesk-2.1.11.dist-info}/METADATA +1 -1
- {cyberdesk-2.1.10.dist-info → cyberdesk-2.1.11.dist-info}/RECORD +8 -8
- openapi_client/cyberdesk_cloud_client/models/machine_response.py +30 -0
- {cyberdesk-2.1.10.dist-info → cyberdesk-2.1.11.dist-info}/WHEEL +0 -0
- {cyberdesk-2.1.10.dist-info → cyberdesk-2.1.11.dist-info}/licenses/LICENSE +0 -0
- {cyberdesk-2.1.10.dist-info → cyberdesk-2.1.11.dist-info}/top_level.txt +0 -0
cyberdesk/__init__.py
CHANGED
cyberdesk/client.py
CHANGED
|
@@ -294,7 +294,12 @@ class MachinesAPI:
|
|
|
294
294
|
return ApiResponse(error=e)
|
|
295
295
|
|
|
296
296
|
async def update(self, machine_id: str, data: MachineUpdate) -> ApiResponse:
|
|
297
|
-
"""Update a machine.
|
|
297
|
+
"""Update a machine.
|
|
298
|
+
|
|
299
|
+
Note: linked_keepalive_machine_id is not writable; it is managed by
|
|
300
|
+
Cyberdriver link events and will be set/cleared automatically by the
|
|
301
|
+
platform.
|
|
302
|
+
"""
|
|
298
303
|
try:
|
|
299
304
|
response = await update_machine_v1_machines_machine_id_patch.asyncio(
|
|
300
305
|
client=self.client,
|
|
@@ -306,7 +311,12 @@ class MachinesAPI:
|
|
|
306
311
|
return ApiResponse(error=e)
|
|
307
312
|
|
|
308
313
|
def update_sync(self, machine_id: str, data: MachineUpdate) -> ApiResponse:
|
|
309
|
-
"""Update a machine (synchronous).
|
|
314
|
+
"""Update a machine (synchronous).
|
|
315
|
+
|
|
316
|
+
Note: linked_keepalive_machine_id is not writable; it is managed by
|
|
317
|
+
Cyberdriver link events and will be set/cleared automatically by the
|
|
318
|
+
platform.
|
|
319
|
+
"""
|
|
310
320
|
try:
|
|
311
321
|
response = update_machine_v1_machines_machine_id_patch.sync(
|
|
312
322
|
client=self.client,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
cyberdesk/__init__.py,sha256=
|
|
2
|
-
cyberdesk/client.py,sha256=
|
|
3
|
-
cyberdesk-2.1.
|
|
1
|
+
cyberdesk/__init__.py,sha256=IRuGwBM3R6AvT_clS3a6XwVrGAcW0Z-SJNsN-sdHE94,1158
|
|
2
|
+
cyberdesk/client.py,sha256=A-2h82f1AIpjv_oV65R-KvKd0rx_Zfq5UuNwunsVu08,66539
|
|
3
|
+
cyberdesk-2.1.11.dist-info/licenses/LICENSE,sha256=06Op63FCwGhuUOz__M8IZW5sxd29WxyGC4X5-Uih7IQ,1071
|
|
4
4
|
openapi_client/cyberdesk_cloud_client/__init__.py,sha256=r_uVkNUL-SOK8j7-KiGMIKdinES5X8K1Q250ySX2F-A,158
|
|
5
5
|
openapi_client/cyberdesk_cloud_client/client.py,sha256=o_mdLqyBCQstu5tS1WZFwqIEbGwkvWQ7eQjuCJw_5VY,12419
|
|
6
6
|
openapi_client/cyberdesk_cloud_client/errors.py,sha256=gO8GBmKqmSNgAg-E5oT-oOyxztvp7V_6XG7OUTT15q0,546
|
|
@@ -112,7 +112,7 @@ openapi_client/cyberdesk_cloud_client/models/keyboard_type_request.py,sha256=Jgz
|
|
|
112
112
|
openapi_client/cyberdesk_cloud_client/models/machine_create.py,sha256=WiSBX-7Sx73C0jVHc6dhl4E0pWQNE2RrJ9DZ3gljZQ4,4449
|
|
113
113
|
openapi_client/cyberdesk_cloud_client/models/machine_pool_assignment.py,sha256=oTctHGs4FQsdRvhc_evjC13vewhiQsaohsztMSWXJ9Q,2011
|
|
114
114
|
openapi_client/cyberdesk_cloud_client/models/machine_pool_update.py,sha256=K1ax3OmPZj2t-VlQ0CsRWYuTR667fBTXsT8hJkZXcWU,1935
|
|
115
|
-
openapi_client/cyberdesk_cloud_client/models/machine_response.py,sha256=
|
|
115
|
+
openapi_client/cyberdesk_cloud_client/models/machine_response.py,sha256=2fOAnhfZGJBPCa7wStNxP6SRdCJ13_X4xDYQGGVFXhY,11661
|
|
116
116
|
openapi_client/cyberdesk_cloud_client/models/machine_status.py,sha256=mqKyXgK1wcaA2fI6iTo_tS7AMeuVrRN4yE21d2Lsq1I,200
|
|
117
117
|
openapi_client/cyberdesk_cloud_client/models/machine_update.py,sha256=0rUF8QOMrKLfGc2t1tULmId33sXBr9uwNgJSUD7p6es,8344
|
|
118
118
|
openapi_client/cyberdesk_cloud_client/models/mouse_click_request.py,sha256=GSBn4fg2sNnL4KQQHKly2YIzyRqbfwVgrQXpaalOUxg,3423
|
|
@@ -180,7 +180,7 @@ openapi_client/cyberdesk_cloud_client/models/workflow_create.py,sha256=d0bfNbNBF
|
|
|
180
180
|
openapi_client/cyberdesk_cloud_client/models/workflow_response.py,sha256=k48mouJ6Dcisz2vyM7Rb_cbjU66JudGVPsq4UC7grHA,8977
|
|
181
181
|
openapi_client/cyberdesk_cloud_client/models/workflow_response_old_versions_type_0_item.py,sha256=W9AxxlBlN3rUwLDcoUx5H7MUiYA9UztfX9iEpNGlgAs,1340
|
|
182
182
|
openapi_client/cyberdesk_cloud_client/models/workflow_update.py,sha256=TG2jEitXixS2thtz7lTxTZaE0RBVSWd-apVxWxsvnrg,5333
|
|
183
|
-
cyberdesk-2.1.
|
|
184
|
-
cyberdesk-2.1.
|
|
185
|
-
cyberdesk-2.1.
|
|
186
|
-
cyberdesk-2.1.
|
|
183
|
+
cyberdesk-2.1.11.dist-info/METADATA,sha256=puGRa_rdWY9CT67GCkRGg7PwIDXUxnTchfAtJA9todk,6792
|
|
184
|
+
cyberdesk-2.1.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
185
|
+
cyberdesk-2.1.11.dist-info/top_level.txt,sha256=qTYHZHVHh3VClNPQsiFFA8p8tmJgFGhq9G1COd-pX_A,25
|
|
186
|
+
cyberdesk-2.1.11.dist-info/RECORD,,
|
|
@@ -36,6 +36,7 @@ class MachineResponse:
|
|
|
36
36
|
user_id (Union[None, UUID, Unset]):
|
|
37
37
|
organization_id (Union[None, Unset, str]):
|
|
38
38
|
reserved_session_id (Union[None, UUID, Unset]):
|
|
39
|
+
linked_keepalive_machine_id (Union[None, UUID, Unset]):
|
|
39
40
|
pools (Union[None, Unset, list['PoolResponse']]):
|
|
40
41
|
"""
|
|
41
42
|
|
|
@@ -53,6 +54,7 @@ class MachineResponse:
|
|
|
53
54
|
user_id: Union[None, UUID, Unset] = UNSET
|
|
54
55
|
organization_id: Union[None, Unset, str] = UNSET
|
|
55
56
|
reserved_session_id: Union[None, UUID, Unset] = UNSET
|
|
57
|
+
linked_keepalive_machine_id: Union[None, UUID, Unset] = UNSET
|
|
56
58
|
pools: Union[None, Unset, list["PoolResponse"]] = UNSET
|
|
57
59
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
58
60
|
|
|
@@ -117,6 +119,14 @@ class MachineResponse:
|
|
|
117
119
|
else:
|
|
118
120
|
reserved_session_id = self.reserved_session_id
|
|
119
121
|
|
|
122
|
+
linked_keepalive_machine_id: Union[None, Unset, str]
|
|
123
|
+
if isinstance(self.linked_keepalive_machine_id, Unset):
|
|
124
|
+
linked_keepalive_machine_id = UNSET
|
|
125
|
+
elif isinstance(self.linked_keepalive_machine_id, UUID):
|
|
126
|
+
linked_keepalive_machine_id = str(self.linked_keepalive_machine_id)
|
|
127
|
+
else:
|
|
128
|
+
linked_keepalive_machine_id = self.linked_keepalive_machine_id
|
|
129
|
+
|
|
120
130
|
pools: Union[None, Unset, list[dict[str, Any]]]
|
|
121
131
|
if isinstance(self.pools, Unset):
|
|
122
132
|
pools = UNSET
|
|
@@ -156,6 +166,8 @@ class MachineResponse:
|
|
|
156
166
|
field_dict["organization_id"] = organization_id
|
|
157
167
|
if reserved_session_id is not UNSET:
|
|
158
168
|
field_dict["reserved_session_id"] = reserved_session_id
|
|
169
|
+
if linked_keepalive_machine_id is not UNSET:
|
|
170
|
+
field_dict["linked_keepalive_machine_id"] = linked_keepalive_machine_id
|
|
159
171
|
if pools is not UNSET:
|
|
160
172
|
field_dict["pools"] = pools
|
|
161
173
|
|
|
@@ -259,6 +271,23 @@ class MachineResponse:
|
|
|
259
271
|
|
|
260
272
|
reserved_session_id = _parse_reserved_session_id(d.pop("reserved_session_id", UNSET))
|
|
261
273
|
|
|
274
|
+
def _parse_linked_keepalive_machine_id(data: object) -> Union[None, UUID, Unset]:
|
|
275
|
+
if data is None:
|
|
276
|
+
return data
|
|
277
|
+
if isinstance(data, Unset):
|
|
278
|
+
return data
|
|
279
|
+
try:
|
|
280
|
+
if not isinstance(data, str):
|
|
281
|
+
raise TypeError()
|
|
282
|
+
linked_keepalive_machine_id_type_0 = UUID(data)
|
|
283
|
+
|
|
284
|
+
return linked_keepalive_machine_id_type_0
|
|
285
|
+
except: # noqa: E722
|
|
286
|
+
pass
|
|
287
|
+
return cast(Union[None, UUID, Unset], data)
|
|
288
|
+
|
|
289
|
+
linked_keepalive_machine_id = _parse_linked_keepalive_machine_id(d.pop("linked_keepalive_machine_id", UNSET))
|
|
290
|
+
|
|
262
291
|
def _parse_pools(data: object) -> Union[None, Unset, list["PoolResponse"]]:
|
|
263
292
|
if data is None:
|
|
264
293
|
return data
|
|
@@ -296,6 +325,7 @@ class MachineResponse:
|
|
|
296
325
|
user_id=user_id,
|
|
297
326
|
organization_id=organization_id,
|
|
298
327
|
reserved_session_id=reserved_session_id,
|
|
328
|
+
linked_keepalive_machine_id=linked_keepalive_machine_id,
|
|
299
329
|
pools=pools,
|
|
300
330
|
)
|
|
301
331
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|