syneto_api 0.3.83__tar.gz → 0.3.84__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.84}/PKG-INFO +1 -1
- {syneto_api-0.3.83 → syneto_api-0.3.84}/pyproject.toml +1 -1
- {syneto_api-0.3.83 → syneto_api-0.3.84}/src/syneto_api/node_api.py +13 -0
- {syneto_api-0.3.83 → syneto_api-0.3.84}/README.md +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.84}/src/syneto_api/__init__.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.84}/src/syneto_api/api_client.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.84}/src/syneto_api/apollo_api.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.84}/src/syneto_api/auth_api.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.84}/src/syneto_api/central_api.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.84}/src/syneto_api/jobs_api.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.84}/src/syneto_api/keyring.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.84}/src/syneto_api/protection_api.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.84}/src/syneto_api/settings.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.84}/src/syneto_api/storage_api.py +0 -0
- {syneto_api-0.3.83 → syneto_api-0.3.84}/src/syneto_api/virt_api.py +0 -0
|
@@ -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",
|
|
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
|
|
File without changes
|