Skip to main content

Methods

Get a data directory by its ID.

Parameters

str
required

Returns

GetDataDirectoryResponse
🔗 GetDataDirectoryResponseThe data directory data

Usage

Delete a data directory, optionally including its contents.

Parameters

str
required
typing.Optional[bool]

Returns

EmptyResponse
🔗 EmptyResponseEmpty response indicating successful deletion

Usage

List data directories with optional filtering by FQN, ML Repo, or name.

Parameters

typing.Optional[str]
Fully qualified name to filter data directories by
typing.Optional[str]
ID of the ML Repo to filter data directories by
typing.Optional[str]
Name of the data directory to filter by
typing.Optional[int]
Maximum number of data directories to return
typing.Optional[int]
Number of data directories to skip for pagination

Returns

SyncPager[DataDirectory, ListDataDirectoriesResponse]
🔗 ListDataDirectoriesResponseList of data directories matching the query with pagination information

Usage

Create or update a data directory.

Parameters

DataDirectoryManifest
required
🔗 DataDirectoryManifestManifest containing metadata for the data directory to apply

Returns

GetDataDirectoryResponse
🔗 GetDataDirectoryResponseThe created or updated data directory

Usage

List files and directories in a data directory.

Parameters

str
required
ID of the artifact version to list files from
typing.Optional[str]
Relative path within the artifact version to list files from (defaults to root)
typing.Optional[int]
Maximum number of files/directories to return
typing.Optional[str]
Token to retrieve the next page of results

Returns

SyncPager[FileInfo, ListFilesResponse]
🔗 ListFilesResponseList of files and directories with pagination information

Usage

Delete files from a data directory.

Parameters

str
required
ID of the artifact version to delete files from
typing.Sequence[str]
required
List of relative file paths within the artifact version to delete

Returns

EmptyResponse
🔗 EmptyResponseEmpty response indicating successful deletion

Usage

Get pre-signed URLs for reading or writing files in a data directory.

Parameters

str
required
ID of the artifact version to get signed URLs for
typing.Sequence[str]
required
List of relative file paths within the artifact version to get signed URLs for
Operation
required
🔗 OperationOperation type for the signed URL (e.g., ‘READ’ or ‘WRITE’)

Returns

GetSignedUrLsResponse
🔗 GetSignedUrLsResponseList of signed URLs for the requested file paths

Usage

Create a multipart upload for large files in a data directory.

Parameters

str
required
ID of the artifact version to upload files to
str
required
Relative path within the artifact version where the file should be uploaded
int
required
Number of parts to split the upload into for multipart upload

Returns

MultiPartUploadResponse
🔗 MultiPartUploadResponseMultipart upload information including signed URLs for each part

Usage

Get Data Directory by FQN.

Parameters

str
required
FQN of the data directory

Returns

GetDataDirectoryResponse
🔗 GetDataDirectoryResponseData directory details

Usage