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.
- {verda-1.18.0 → verda-1.19.0}/PKG-INFO +1 -1
- {verda-1.18.0 → verda-1.19.0}/pyproject.toml +1 -1
- {verda-1.18.0 → verda-1.19.0}/verda/clusters/_clusters.py +22 -1
- {verda-1.18.0 → verda-1.19.0}/README.md +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/__init__.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/_verda.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/_version.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/authentication/__init__.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/authentication/_authentication.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/balance/__init__.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/balance/_balance.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/clusters/__init__.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/constants.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/containers/__init__.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/containers/_containers.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/exceptions.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/helpers.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/http_client/__init__.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/http_client/_http_client.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/images/__init__.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/images/_images.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/inference_client/__init__.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/inference_client/_inference_client.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/instance_types/__init__.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/instance_types/_instance_types.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/instances/__init__.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/instances/_instances.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/locations/__init__.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/locations/_locations.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/ssh_keys/__init__.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/ssh_keys/_ssh_keys.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/startup_scripts/__init__.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/startup_scripts/_startup_scripts.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/volume_types/__init__.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/volume_types/_volume_types.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/volumes/__init__.py +0 -0
- {verda-1.18.0 → verda-1.19.0}/verda/volumes/_volumes.py +0 -0
|
@@ -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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|