verda 1.18.0__tar.gz → 1.19.0__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.
Files changed (37) hide show
  1. {verda-1.18.0 → verda-1.19.0}/PKG-INFO +1 -1
  2. {verda-1.18.0 → verda-1.19.0}/pyproject.toml +1 -1
  3. {verda-1.18.0 → verda-1.19.0}/verda/clusters/_clusters.py +22 -1
  4. {verda-1.18.0 → verda-1.19.0}/README.md +0 -0
  5. {verda-1.18.0 → verda-1.19.0}/verda/__init__.py +0 -0
  6. {verda-1.18.0 → verda-1.19.0}/verda/_verda.py +0 -0
  7. {verda-1.18.0 → verda-1.19.0}/verda/_version.py +0 -0
  8. {verda-1.18.0 → verda-1.19.0}/verda/authentication/__init__.py +0 -0
  9. {verda-1.18.0 → verda-1.19.0}/verda/authentication/_authentication.py +0 -0
  10. {verda-1.18.0 → verda-1.19.0}/verda/balance/__init__.py +0 -0
  11. {verda-1.18.0 → verda-1.19.0}/verda/balance/_balance.py +0 -0
  12. {verda-1.18.0 → verda-1.19.0}/verda/clusters/__init__.py +0 -0
  13. {verda-1.18.0 → verda-1.19.0}/verda/constants.py +0 -0
  14. {verda-1.18.0 → verda-1.19.0}/verda/containers/__init__.py +0 -0
  15. {verda-1.18.0 → verda-1.19.0}/verda/containers/_containers.py +0 -0
  16. {verda-1.18.0 → verda-1.19.0}/verda/exceptions.py +0 -0
  17. {verda-1.18.0 → verda-1.19.0}/verda/helpers.py +0 -0
  18. {verda-1.18.0 → verda-1.19.0}/verda/http_client/__init__.py +0 -0
  19. {verda-1.18.0 → verda-1.19.0}/verda/http_client/_http_client.py +0 -0
  20. {verda-1.18.0 → verda-1.19.0}/verda/images/__init__.py +0 -0
  21. {verda-1.18.0 → verda-1.19.0}/verda/images/_images.py +0 -0
  22. {verda-1.18.0 → verda-1.19.0}/verda/inference_client/__init__.py +0 -0
  23. {verda-1.18.0 → verda-1.19.0}/verda/inference_client/_inference_client.py +0 -0
  24. {verda-1.18.0 → verda-1.19.0}/verda/instance_types/__init__.py +0 -0
  25. {verda-1.18.0 → verda-1.19.0}/verda/instance_types/_instance_types.py +0 -0
  26. {verda-1.18.0 → verda-1.19.0}/verda/instances/__init__.py +0 -0
  27. {verda-1.18.0 → verda-1.19.0}/verda/instances/_instances.py +0 -0
  28. {verda-1.18.0 → verda-1.19.0}/verda/locations/__init__.py +0 -0
  29. {verda-1.18.0 → verda-1.19.0}/verda/locations/_locations.py +0 -0
  30. {verda-1.18.0 → verda-1.19.0}/verda/ssh_keys/__init__.py +0 -0
  31. {verda-1.18.0 → verda-1.19.0}/verda/ssh_keys/_ssh_keys.py +0 -0
  32. {verda-1.18.0 → verda-1.19.0}/verda/startup_scripts/__init__.py +0 -0
  33. {verda-1.18.0 → verda-1.19.0}/verda/startup_scripts/_startup_scripts.py +0 -0
  34. {verda-1.18.0 → verda-1.19.0}/verda/volume_types/__init__.py +0 -0
  35. {verda-1.18.0 → verda-1.19.0}/verda/volume_types/_volume_types.py +0 -0
  36. {verda-1.18.0 → verda-1.19.0}/verda/volumes/__init__.py +0 -0
  37. {verda-1.18.0 → verda-1.19.0}/verda/volumes/_volumes.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: verda
3
- Version: 1.18.0
3
+ Version: 1.19.0
4
4
  Summary: Official Python SDK for Verda (formerly DataCrunch) Public API
5
5
  Author: Verda Cloud Oy
6
6
  Author-email: Verda Cloud Oy <info@verda.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "verda"
3
- version = "1.18.0"
3
+ version = "1.19.0"
4
4
  description = "Official Python SDK for Verda (formerly DataCrunch) Public API"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -6,6 +6,7 @@ from dataclasses_json import dataclass_json
6
6
 
7
7
  from verda.constants import Actions, ClusterStatus, ErrorCodes, Locations
8
8
  from verda.exceptions import APIException
9
+ from verda.http_client import HTTPClient
9
10
 
10
11
  CLUSTERS_ENDPOINT = '/clusters'
11
12
 
@@ -31,6 +32,24 @@ class ClusterWorkerNode:
31
32
  private_ip: str
32
33
 
33
34
 
35
+ @dataclass_json
36
+ @dataclass
37
+ class SharedVolume:
38
+ """Represents a shared volume in a cluster.
39
+
40
+ Attributes:
41
+ id: Unique identifier for the volume.
42
+ name: Name of the volume.
43
+ size_in_gigabytes: Size of the volume in gigabytes.
44
+ mount_point: Mount point of the volume.
45
+ """
46
+
47
+ id: str
48
+ name: str
49
+ size_in_gigabytes: int
50
+ mount_point: str | None = None
51
+
52
+
34
53
  @dataclass_json
35
54
  @dataclass
36
55
  class Cluster:
@@ -59,7 +78,9 @@ class Cluster:
59
78
  location: str
60
79
  cluster_type: str
61
80
  worker_nodes: list[ClusterWorkerNode]
81
+ shared_volumes: list[SharedVolume]
62
82
  ssh_key_ids: list[str]
83
+
63
84
  image: str | None = None
64
85
  startup_script_id: str | None = None
65
86
  ip: str | None = None
@@ -71,7 +92,7 @@ class ClustersService:
71
92
  This service provides methods to create, retrieve, and manage compute clusters.
72
93
  """
73
94
 
74
- def __init__(self, http_client) -> None:
95
+ def __init__(self, http_client: HTTPClient) -> None:
75
96
  """Initializes the ClustersService with an HTTP client.
76
97
 
77
98
  Args:
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
File without changes