Skip to content

Commit e35014d

Browse files
authored
Merge pull request #215 from togethercomputer/volume-version
feat: update deployments schemas to include volume versions
2 parents f404fd0 + e0e5274 commit e35014d

1 file changed

Lines changed: 80 additions & 15 deletions

File tree

openapi.yaml

Lines changed: 80 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12311,7 +12311,7 @@ components:
1231112311
properties:
1231212312
content:
1231312313
allOf:
12314-
- $ref: "#/components/schemas/VolumeContent"
12314+
- $ref: "#/components/schemas/VolumeContentRequest"
1231512315
description: Content specifies the content configuration for this volume
1231612316
name:
1231712317
description: Name is the unique identifier for the volume within the project
@@ -12717,7 +12717,7 @@ components:
1271712717
properties:
1271812718
content:
1271912719
allOf:
12720-
- $ref: "#/components/schemas/VolumeContent"
12720+
- $ref: "#/components/schemas/VolumeContentRequest"
1272112721
description: Content specifies the new content that will be preloaded to this
1272212722
volume
1272312723
name:
@@ -12731,45 +12731,98 @@ components:
1273112731
VolumeMount:
1273212732
properties:
1273312733
mount_path:
12734-
description: MountPath is the path in the container where the volume will be
12735-
mounted (e.g., "/data")
12734+
description: MountPath is the path in the container where the volume will
12735+
be mounted (e.g., "/data")
1273612736
type: string
1273712737
name:
12738-
description: Name is the name of the volume to mount. Must reference an existing
12739-
volume by name or ID
12738+
description: Name is the name of the volume to mount. Must reference an
12739+
existing volume by name or ID
1274012740
type: string
12741+
version:
12742+
description: Version is the volume version to mount. On create, defaults
12743+
to the latest version. On update, defaults to the currently mounted version.
12744+
type: integer
1274112745
required:
1274212746
- mount_path
1274312747
- name
1274412748
type: object
1274512749
VolumeResponseItem:
1274612750
properties:
1274712751
content:
12748-
allOf:
12749-
- $ref: "#/components/schemas/VolumeContent"
12750-
description: Content specifies the content that will be preloaded to this volume
12752+
$ref: '#/components/schemas/VolumeContent'
1275112753
created_at:
1275212754
description: CreatedAt is the ISO8601 timestamp when this volume was created
1275312755
type: string
12756+
current_version:
12757+
description: CurrentVersion is the current version number of this volume
12758+
type: integer
1275412759
id:
1275512760
description: ID is the unique identifier for this volume
1275612761
type: string
12762+
mounted_by:
12763+
description: MountedBy is the list of deployment IDs currently mounting
12764+
current volume version
12765+
items:
12766+
type: string
12767+
type: array
12768+
uniqueItems: false
1275712769
name:
1275812770
description: Name is the name of the volume
1275912771
type: string
1276012772
object:
12761-
description: The object type, which is always `volume`.
12762-
const: volume
12773+
description: Object is the type identifier for this response (always "volume")
12774+
type: string
1276312775
type:
12764-
allOf:
12765-
- $ref: "#/components/schemas/VolumeType"
12766-
description: Type is the volume type (e.g., "readOnly")
12776+
$ref: '#/components/schemas/VolumeType'
1276712777
updated_at:
12768-
description: UpdatedAt is the ISO8601 timestamp when this volume was last updated
12778+
description: UpdatedAt is the ISO8601 timestamp when this volume was last
12779+
updated
12780+
type: string
12781+
version_history:
12782+
additionalProperties:
12783+
$ref: '#/components/schemas/VersionHistoryItem'
12784+
description: VersionHistory contains previous versions of this volume, keyed
12785+
by version number
12786+
type: object
12787+
type: object
12788+
VersionHistoryItem:
12789+
properties:
12790+
content:
12791+
$ref: '#/components/schemas/VolumeContentRequest'
12792+
mounted_by:
12793+
items:
12794+
type: string
12795+
type: array
12796+
uniqueItems: false
12797+
version:
12798+
type: integer
12799+
type: object
12800+
VolumeContentRequest:
12801+
description: Content specifies the new content that will be preloaded to this
12802+
volume
12803+
properties:
12804+
source_prefix:
12805+
description: SourcePrefix is the file path prefix for the content to be
12806+
preloaded into the volume
12807+
example: models/
12808+
type: string
12809+
type:
12810+
description: Type is the content type (currently only "files" is supported
12811+
which allows preloading files uploaded via Files API into the volume)
12812+
enum:
12813+
- files
12814+
example: files
1276912815
type: string
1277012816
type: object
1277112817
VolumeContent:
1277212818
properties:
12819+
files:
12820+
description: Files is the list of files that will be preloaded into the
12821+
volume, if the volume content type is "files"
12822+
items:
12823+
$ref: '#/components/schemas/FileInfo'
12824+
type: array
12825+
uniqueItems: false
1277312826
source_prefix:
1277412827
description: SourcePrefix is the file path prefix for the content to be
1277512828
preloaded into the volume
@@ -12783,6 +12836,18 @@ components:
1278312836
example: files
1278412837
type: string
1278512838
type: object
12839+
FileInfo:
12840+
properties:
12841+
last_modified:
12842+
description: LastModified is the timestamp when the file was last modified
12843+
type: string
12844+
name:
12845+
description: Name is the filename including extension (e.g., "model_weights.bin")
12846+
type: string
12847+
size:
12848+
description: Size is the file size in bytes
12849+
type: integer
12850+
type: object
1278612851
VolumeType:
1278712852
enum:
1278812853
- readOnly

0 commit comments

Comments
 (0)