Skip to content

Commit

Permalink
chore: update rclone schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Panaetius committed Nov 8, 2024
1 parent 92fbdcd commit 2539129
Show file tree
Hide file tree
Showing 3 changed files with 8,722 additions and 6,668 deletions.
2 changes: 1 addition & 1 deletion components/renku_data_services/storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Contains APIspec generated schemas for cloud storage functionality.


To create the RClone schema, run `rclone config providers > rclone_schema.autogenerated.json`.
To create the RClone schema, run `rclone config providers|jq -r "sort_by(.Name)" --indent 4 > rclone_schema.autogenerated.json`.
6 changes: 3 additions & 3 deletions components/renku_data_services/storage/rclone.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,19 +262,19 @@ class RCloneExample(BaseModel):

value: str = Field(alias="Value")
help: str = Field(alias="Help")
provider: str = Field(alias="Provider")
provider: str | None = Field(alias="Provider", default=None)


class RCloneOption(BaseModel):
"""Option for an RClone provider."""

name: str = Field(alias="Name")
help: str = Field(alias="Help")
provider: str = Field(alias="Provider")
provider: str | None = Field(alias="Provider", default=None)
default: str | int | bool | list[str] | RCloneTriState | None = Field(alias="Default")
value: str | int | bool | RCloneTriState | None = Field(alias="Value")
examples: list[RCloneExample] | None = Field(default=None, alias="Examples")
short_opt: str = Field(alias="ShortOpt")
short_opt: str | None = Field(alias="ShortOpt", default=None)
hide: int = Field(alias="Hide")
required: bool = Field(alias="Required")
is_password: bool = Field(alias="IsPassword")
Expand Down
Loading

0 comments on commit 2539129

Please sign in to comment.