Skip to content

Commit

Permalink
chore: update documentation (#390)
Browse files Browse the repository at this point in the history
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
  • Loading branch information
ThibaultFy authored Sep 22, 2023
1 parent 5d39a4c commit 0d060c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
1 change: 0 additions & 1 deletion bin/generate_sdk_schemas_documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
models.Permissions,
models.InModel,
models.OutModel,
models._File,
]


Expand Down
10 changes: 1 addition & 9 deletions references/sdk_models.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
- [Permissions](#Permissions)
- [InModel](#InModel)
- [OutModel](#OutModel)
- [_File](#_File)


# Models
Expand Down Expand Up @@ -48,7 +47,7 @@ Asset creation specification base class.
- function: <class 'substra.sdk.models.Function'>
- owner: <class 'str'>
- compute_plan_key: <class 'str'>
- metadata: typing.Union[typing.Dict[str, str], typing.Dict[str, int]]
- metadata: typing.Dict[str, str]
- status: <enum 'Status'>
- worker: <class 'str'>
- rank: typing.Optional[int]
Expand Down Expand Up @@ -150,10 +149,3 @@ Out model of a task
- creation_date: <class 'datetime.datetime'>
```

## _File
File as stored in the models
```text
- checksum: <class 'str'>
- storage_address: typing.Union[typing.Annotated[pathlib.Path, PathType(path_type='file')], pydantic_core._pydantic_core.Url, str]
```

4 changes: 2 additions & 2 deletions references/sdk_schemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Asset creation specification base class.
- key: <class 'str'>
- tag: typing.Optional[str]
- compute_plan_key: typing.Optional[str]
- metadata: typing.Union[typing.Dict[str, str], typing.Dict[str, int], NoneType]
- metadata: typing.Optional[typing.Dict[str, str]]
- function_key: <class 'str'>
- worker: <class 'str'>
- rank: typing.Optional[int]
Expand Down Expand Up @@ -141,7 +141,7 @@ note : metadata field does not accept strings containing '__' as dict key
- function_key: <class 'str'>
- worker: <class 'str'>
- tag: typing.Optional[str]
- metadata: typing.Union[typing.Dict[str, str], typing.Dict[str, int], NoneType]
- metadata: typing.Optional[typing.Dict[str, str]]
- inputs: typing.Optional[typing.List[substra.sdk.schemas.InputRef]]
- outputs: typing.Optional[typing.Dict[str, substra.sdk.schemas.ComputeTaskOutputSpec]]
```
Expand Down

0 comments on commit 0d060c4

Please sign in to comment.