verda 1.18.0__py3-none-any.whl → 1.19.0__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.
@@ -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:
@@ -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>
@@ -6,7 +6,7 @@ verda/authentication/_authentication.py,sha256=ImlqbNBM4BDCCxB3clW9edO64WElnWtEe
6
6
  verda/balance/__init__.py,sha256=zhuyhgU-nKvqsOQ00FB5WZQq7ycO3navQfR3xxSlD9Y,46
7
7
  verda/balance/_balance.py,sha256=tMuulgL7U4pSPG2hIts1UkB9KShdqLcrjnR3uhYj7KM,1221
8
8
  verda/clusters/__init__.py,sha256=JSeYgLkXqY9rA23VpvYfVRkdk16V5VvnUA6fm9byFEU,199
9
- verda/clusters/_clusters.py,sha256=AvjNx_FjJxelQAukET1eErEq6J-1lkYinSHFhkQy64g,9975
9
+ verda/clusters/_clusters.py,sha256=fHFHCNVb3Q0vLkj3VlsO4rsuc_aCctomx51BE9tkzcA,10467
10
10
  verda/constants.py,sha256=rI3BOghQpX1iMb_OhoMqABN0Gvs-3p-uuhY64PzFhgc,3015
11
11
  verda/containers/__init__.py,sha256=r6_-9ctfdLUyufSW03Y1L1VFTHklkVLYbpUHit4QwpM,745
12
12
  verda/containers/_containers.py,sha256=tmtUwsWh2_9Qf1WAynRdPEB9CWOwrmwALgl3zj-Ze9w,35655
@@ -32,6 +32,6 @@ verda/volume_types/__init__.py,sha256=RbM_-0ByeAUASjYRBfqt7AupzaZyVTLc3qK6a3vGJv
32
32
  verda/volume_types/_volume_types.py,sha256=unvFrhWONbOPcsFzf2Oo29IZ8cC5czNRxuAO0dNiVko,1833
33
33
  verda/volumes/__init__.py,sha256=kSXsg5Hj4urV06rCPJKpEGGcOTjeLJFL_J_IaN4Qqo8,45
34
34
  verda/volumes/_volumes.py,sha256=V_W51f25HkLrr_PTJwfH4Z532xEZlHaG3MxOpNAoy7Q,11536
35
- verda-1.18.0.dist-info/WHEEL,sha256=YUH1mBqsx8Dh2cQG2rlcuRYUhJddG9iClegy4IgnHik,79
36
- verda-1.18.0.dist-info/METADATA,sha256=CRYhgPY3zEvcKvQIm-O-qQrf5cp2iVamDEFHb47ri1U,5512
37
- verda-1.18.0.dist-info/RECORD,,
35
+ verda-1.19.0.dist-info/WHEEL,sha256=YUH1mBqsx8Dh2cQG2rlcuRYUhJddG9iClegy4IgnHik,79
36
+ verda-1.19.0.dist-info/METADATA,sha256=3Vb1W8lzGtJ_XtbnpwB-MuBFk7CdxV7kXstejazq2m8,5512
37
+ verda-1.19.0.dist-info/RECORD,,
File without changes