syneto_api 0.3.83__tar.gz → 0.3.85__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.
- {syneto_api-0.3.83 → syneto_api-0.3.85}/PKG-INFO +4 -3
- {syneto_api-0.3.83 → syneto_api-0.3.85}/pyproject.toml +1 -1
- {syneto_api-0.3.83 → syneto_api-0.3.85}/src/syneto_api/node_api.py +13 -0
- {syneto_api-0.3.83 → syneto_api-0.3.85}/src/syneto_api/virt_api.py +9 -9
- {syneto_api-0.3.83 → syneto_api-0.3.85}/README.md +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.85}/src/syneto_api/__init__.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.85}/src/syneto_api/api_client.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.85}/src/syneto_api/apollo_api.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.85}/src/syneto_api/auth_api.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.85}/src/syneto_api/central_api.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.85}/src/syneto_api/jobs_api.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.85}/src/syneto_api/keyring.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.85}/src/syneto_api/protection_api.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.85}/src/syneto_api/settings.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.85}/src/syneto_api/storage_api.py +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: syneto_api
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.85
|
|
4
4
|
Summary: Syneto Client API library
|
|
5
|
-
Home-page: https://github.com/SynetoNet/syneto-api
|
|
6
5
|
License: Proprietary
|
|
7
6
|
Author: Syneto
|
|
8
7
|
Author-email: developers@syneto.eu
|
|
@@ -15,6 +14,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
18
18
|
Requires-Dist: aiodns (>=3,<4)
|
|
19
19
|
Requires-Dist: aiohttp (>=3.8,<4.0)
|
|
20
20
|
Requires-Dist: inflection (>=0.5,<0.6)
|
|
@@ -22,6 +22,7 @@ Requires-Dist: python-dotenv (>=0.16,<0.17)
|
|
|
22
22
|
Requires-Dist: requests[secure] (>=2.25,<3.0)
|
|
23
23
|
Requires-Dist: tenacity (>=8.0.1,<9.0.0,!=8.4.0)
|
|
24
24
|
Requires-Dist: typing_extensions (>=4.12,<5.0)
|
|
25
|
+
Project-URL: Homepage, https://github.com/SynetoNet/syneto-api
|
|
25
26
|
Project-URL: Repository, https://github.com/SynetoNet/syneto-api
|
|
26
27
|
Description-Content-Type: text/markdown
|
|
27
28
|
|
|
@@ -153,6 +153,19 @@ class Node(APIClientBase):
|
|
|
153
153
|
def put_hypervisor_autostart_config(self, content: dict):
|
|
154
154
|
return self.put_request("/hypervisor/autostart", body={"content": content})
|
|
155
155
|
|
|
156
|
+
def get_hypervisor_autostart_license(self) -> Optional[dict]:
|
|
157
|
+
"""Read which autostart entries the node's license lets start at boot; None when the node's diana has no
|
|
158
|
+
such route."""
|
|
159
|
+
try:
|
|
160
|
+
return self.get_request("/hypervisor/autostartLicense")
|
|
161
|
+
except APIException as e:
|
|
162
|
+
if _is_route_not_found(e):
|
|
163
|
+
return None
|
|
164
|
+
raise
|
|
165
|
+
|
|
166
|
+
def patch_hypervisor_autostart_license(self, body: dict):
|
|
167
|
+
return self.patch_request("/hypervisor/autostartLicense", body=body)
|
|
168
|
+
|
|
156
169
|
def get_vnc_token(self, virtual_machine_port: int):
|
|
157
170
|
return self.get_request(
|
|
158
171
|
"/hypervisor/vncTokens",
|
|
@@ -195,22 +195,22 @@ class V1Virtualization(Virtualization):
|
|
|
195
195
|
def register_from_snapshot(
|
|
196
196
|
self,
|
|
197
197
|
name: str,
|
|
198
|
-
compute_host_id: str,
|
|
198
|
+
compute_host_id: Optional[str],
|
|
199
199
|
volume_id: str,
|
|
200
200
|
snapshot_name: str,
|
|
201
201
|
keep_original_volume: bool = False,
|
|
202
|
-
folder_id: str = "",
|
|
202
|
+
folder_id: Optional[str] = "",
|
|
203
203
|
as_template: bool = False,
|
|
204
204
|
keep_mac_address: bool = False,
|
|
205
205
|
power_on: bool = False,
|
|
206
|
-
connect_networks: bool = True,
|
|
206
|
+
connect_networks: Optional[bool] = True,
|
|
207
207
|
clear_location_uuids: bool = False,
|
|
208
|
-
policy_id: str = None,
|
|
209
|
-
snapshot_consistency: str = None,
|
|
210
|
-
storage_network: IPv4Address = None,
|
|
211
|
-
replica_targets: list[dict] = None,
|
|
212
|
-
migration_type: str = None,
|
|
213
|
-
virtual_machine_id: str = None,
|
|
208
|
+
policy_id: Optional[str] = None,
|
|
209
|
+
snapshot_consistency: Optional[str] = None,
|
|
210
|
+
storage_network: Optional[IPv4Address] = None,
|
|
211
|
+
replica_targets: Optional[list[dict]] = None,
|
|
212
|
+
migration_type: Optional[str] = None,
|
|
213
|
+
virtual_machine_id: Optional[str] = None,
|
|
214
214
|
):
|
|
215
215
|
if self._use_asyncio:
|
|
216
216
|
raise InvalidInputException("Async client does not support this function at this time")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|