Skip to content

Assets module

Reference to the cloud.assets.py module.

assets

RunAsset

Bases: BaseModel

Represents an asset associated with a Nextmv Cloud run.

You can import the RunAsset class from nextmv.cloud:

from nextmv.cloud import RunAsset

A run asset represents metadata about an asset associated with a Nextmv Cloud run.

PARAMETER DESCRIPTION

id

Unique identifier of the asset.

TYPE: str

run_id

Identifier of the run associated with the asset.

TYPE: str

name

Name of the asset.

TYPE: str

created_at

Timestamp of when the asset was created.

TYPE: str

size

Size of the asset content in bytes.

TYPE: int

content_type

Content type of the asset. Only json is allowed at the moment.

TYPE: str

visual

Visual schema of the asset, by default None.

TYPE: Visual | None

id instance-attribute

id: str

Unique identifier of the asset.

run_id instance-attribute

run_id: str

Identifier of the run associated with the asset.

name instance-attribute

name: str

Name of the asset.

created_at instance-attribute

created_at: str

Timestamp of when the asset was created.

size instance-attribute

size: int

Size of the asset content in bytes.

content_type instance-attribute

content_type: str

Content type of the asset. Only json is allowed at the moment.

visual class-attribute instance-attribute

visual: Visual | None = None

Visual schema of the asset.