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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: syneto_api
3
- Version: 0.3.83
3
+ Version: 0.3.84
4
4
  Summary: Syneto Client API library
5
5
  Home-page: https://github.com/SynetoNet/syneto-api
6
6
  License: Proprietary
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "syneto_api"
3
- version = "0.3.83"
3
+ version = "0.3.84"
4
4
  description = "Syneto Client API library"
5
5
  authors = ["Syneto <developers@syneto.eu>"]
6
6
  license = "Proprietary"
@@ -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