Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update rclone schema #520

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading