11# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22
3- from typing import Optional
3+ from typing import Dict , List , Optional
44from typing_extensions import Literal
55
66from ...._models import BaseModel
77
8- __all__ = ["Volume" , "Content" ]
8+ __all__ = ["Volume" , "Content" , "ContentFile" , "VersionHistory" , "VersionHistoryContent" ]
9+
10+
11+ class ContentFile (BaseModel ):
12+ last_modified : Optional [str ] = None
13+ """LastModified is the timestamp when the file was last modified"""
14+
15+ name : Optional [str ] = None
16+ """Name is the filename including extension (e.g., "model_weights.bin")"""
17+
18+ size : Optional [int ] = None
19+ """Size is the file size in bytes"""
920
1021
1122class Content (BaseModel ):
12- """Content specifies the content that will be preloaded to this volume"""
23+ files : Optional [List [ContentFile ]] = None
24+ """
25+ Files is the list of files that will be preloaded into the volume, if the volume
26+ content type is "files"
27+ """
28+
29+ source_prefix : Optional [str ] = None
30+ """
31+ SourcePrefix is the file path prefix for the content to be preloaded into the
32+ volume
33+ """
34+
35+ type : Optional [Literal ["files" ]] = None
36+ """
37+ Type is the content type (currently only "files" is supported which allows
38+ preloading files uploaded via Files API into the volume)
39+ """
40+
41+
42+ class VersionHistoryContent (BaseModel ):
43+ """Content specifies the new content that will be preloaded to this volume"""
1344
1445 source_prefix : Optional [str ] = None
1546 """
@@ -24,24 +55,46 @@ class Content(BaseModel):
2455 """
2556
2657
58+ class VersionHistory (BaseModel ):
59+ content : Optional [VersionHistoryContent ] = None
60+ """Content specifies the new content that will be preloaded to this volume"""
61+
62+ mounted_by : Optional [List [str ]] = None
63+
64+ version : Optional [int ] = None
65+
66+
2767class Volume (BaseModel ):
2868 id : Optional [str ] = None
2969 """ID is the unique identifier for this volume"""
3070
3171 content : Optional [Content ] = None
32- """Content specifies the content that will be preloaded to this volume"""
3372
3473 created_at : Optional [str ] = None
3574 """CreatedAt is the ISO8601 timestamp when this volume was created"""
3675
76+ current_version : Optional [int ] = None
77+ """CurrentVersion is the current version number of this volume"""
78+
79+ mounted_by : Optional [List [str ]] = None
80+ """
81+ MountedBy is the list of deployment IDs currently mounting current volume
82+ version
83+ """
84+
3785 name : Optional [str ] = None
3886 """Name is the name of the volume"""
3987
40- object : Optional [Literal [ "volume" ] ] = None
41- """The object type, which is always ` volume`. """
88+ object : Optional [str ] = None
89+ """Object is the type identifier for this response ( always " volume") """
4290
4391 type : Optional [Literal ["readOnly" ]] = None
44- """Type is the volume type (e.g., "readOnly")"""
4592
4693 updated_at : Optional [str ] = None
4794 """UpdatedAt is the ISO8601 timestamp when this volume was last updated"""
95+
96+ version_history : Optional [Dict [str , VersionHistory ]] = None
97+ """
98+ VersionHistory contains previous versions of this volume, keyed by version
99+ number
100+ """
0 commit comments