11# generated by datamodel-codegen:
22# filename: api.spec.yaml
3- # timestamp: 2025-04-04T08:05:02 +00:00
3+ # timestamp: 2025-04-17T09:44:12 +00:00
44
55from __future__ import annotations
66
1313
1414
1515class Example (BaseAPISpec ):
16- value : Optional [str ] = Field (
17- None , description = "a potential value for the option (think enum)"
18- )
19- help : Optional [str ] = Field (None , description = "help text for the value" )
16+ value : str = Field (..., description = "a potential value for the option (think enum)" )
17+ help : str = Field (..., description = "help text for the value" )
2018 provider : Optional [str ] = Field (
2119 None ,
2220 description = "The provider this value is applicable for. Empty if valid for all providers." ,
@@ -34,45 +32,45 @@ class Type(Enum):
3432 SpaceSepList = "SpaceSepList"
3533 CommaSepList = "CommaSepList"
3634 Tristate = "Tristate"
35+ Encoding = "Encoding"
36+ Bits = "Bits"
3737
3838
3939class RCloneOption (BaseAPISpec ):
40- name : Optional [ str ] = Field (None , description = "name of the option" )
41- help : Optional [ str ] = Field (None , description = "help text for the option" )
40+ name : str = Field (... , description = "name of the option" )
41+ help : str = Field (... , description = "help text for the option" )
4242 provider : Optional [str ] = Field (
4343 None ,
4444 description = "The cloud provider the option is for (See 'provider' RCloneOption in the schema for potential values)" ,
4545 examples = ["AWS" ],
4646 )
47- default : Optional [ Union [float , str , bool , Dict [str , Any ], List ] ] = Field (
48- None , description = "default value for the option"
47+ default : Union [float , str , bool , Dict [str , Any ], List ] = Field (
48+ ... , description = "default value for the option"
4949 )
50- default_str : Optional [ str ] = Field (
51- None , description = "string representation of the default value"
50+ default_str : str = Field (
51+ ... , description = "string representation of the default value"
5252 )
5353 examples : Optional [List [Example ]] = Field (
5454 None ,
5555 description = "These list potential values for this option, like an enum. With `exclusive: true`, only a value from the list is allowed." ,
5656 )
57- required : Optional [bool ] = Field (
58- None , description = "whether the option is required or not"
59- )
60- ispassword : Optional [bool ] = Field (
61- None , description = "whether the field is a password (use **** for display)"
57+ required : bool = Field (..., description = "whether the option is required or not" )
58+ ispassword : bool = Field (
59+ ..., description = "whether the field is a password (use **** for display)"
6260 )
63- sensitive : Optional [ bool ] = Field (
64- None ,
61+ sensitive : bool = Field (
62+ ... ,
6563 description = "whether the value is sensitive (not stored in the service). Do not send this in requests to the service." ,
6664 )
67- advanced : Optional [ bool ] = Field (
68- None ,
65+ advanced : bool = Field (
66+ ... ,
6967 description = "whether this is an advanced config option (probably don't show these to users)" ,
7068 )
71- exclusive : Optional [ bool ] = Field (
72- None , description = "if true, only values from 'examples' can be used"
69+ exclusive : bool = Field (
70+ ... , description = "if true, only values from 'examples' can be used"
7371 )
74- type : Optional [ Type ] = Field (
75- None ,
72+ type : Type = Field (
73+ ... ,
7674 description = "data type of option value. RClone has more options but they map to the ones listed here." ,
7775 )
7876
@@ -207,7 +205,7 @@ class CloudStorageCorePatch(BaseAPISpec):
207205 examples = ["my/project/folder" ],
208206 )
209207 readonly : Optional [bool ] = Field (
210- None , description = "Whether this storage should be mounted readonly or not"
208+ True , description = "Whether this storage should be mounted readonly or not"
211209 )
212210
213211
0 commit comments