Schemas

DataSampleSpec

Specification to create one or many data samples To create one data sample, use the ‘path’ field, otherwise use the ‘paths’ field.

- path: Optional[Path]
- paths: Optional[List[Path]]
- data_manager_keys: List[str]

DatasetSpec

Specification for creating a dataset

note : metadata field does not accept strings containing ‘__’ as dict key

- name: str
- data_opener: Path
- type: str
- description: Path
- permissions: Permissions
- metadata: Optional[Mapping[str, str]]
- logs_permission: Permissions

UpdateDatasetSpec

Specification for updating a dataset

- name: str

FunctionSpec

Specification for creating an function

note : metadata field does not accept strings containing ‘__’ as dict key

- name: str
- description: Path
- file: Path
- permissions: Permissions
- metadata: Optional[Mapping[str, str]]
- inputs: Optional[List[FunctionInputSpec]]
- outputs: Optional[List[FunctionOutputSpec]]

FunctionInputSpec

Asset creation specification base class.

- identifier: str
- multiple: bool
- optional: bool
- kind: AssetKind

FunctionOutputSpec

Asset creation specification base class.

- identifier: str
- kind: AssetKind
- multiple: bool

TaskSpec

Asset creation specification base class.

- key: str
- tag: Optional[str]
- compute_plan_key: Optional[str]
- metadata: Optional[Mapping[str, str]]
- function_key: str
- worker: str
- rank: Optional[int]
- inputs: Optional[List[InputRef]]
- outputs: Optional[Mapping[str, ComputeTaskOutputSpec]]

UpdateFunctionSpec

Specification for updating an function

- name: str

ComputePlanSpec

Specification for creating a compute plan

note : metadata field does not accept strings containing ‘__’ as dict key

- key: str
- tasks: Optional[List[ComputePlanTaskSpec]]
- tag: Optional[str]
- name: str
- metadata: Optional[Mapping[str, str]]

UpdateComputePlanSpec

Specification for updating a compute plan

- name: str

UpdateComputePlanTasksSpec

Specification for updating a compute plan’s tasks

- key: str
- tasks: Optional[List[ComputePlanTaskSpec]]

ComputePlanTaskSpec

Specification of a compute task inside a compute plan specification

note : metadata field does not accept strings containing ‘__’ as dict key

- task_id: str
- function_key: str
- worker: str
- tag: Optional[str]
- metadata: Optional[Mapping[str, str]]
- inputs: Optional[List[InputRef]]
- outputs: Optional[Mapping[str, ComputeTaskOutputSpec]]

Permissions

Specification for permissions. If public is False, give the list of authorized ids.

- public: bool
- authorized_ids: List[str]

PrivatePermissions

Specification for private permissions. Only the organizations whose ids are in authorized_ids can access the asset.

- authorized_ids: List[str]