config/scheme: add Profile.encryption and Profile.encryption_password
This commit is contained in:
parent
d6900172fe
commit
370510e09f
2 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,8 @@ PROFILE_DEFAULTS_DICT = {
|
||||||
'username': 'kupfer',
|
'username': 'kupfer',
|
||||||
'password': None,
|
'password': None,
|
||||||
'size_extra_mb': "0",
|
'size_extra_mb': "0",
|
||||||
|
'encryption': None,
|
||||||
|
'encryption_password': None,
|
||||||
}
|
}
|
||||||
PROFILE_DEFAULTS = Profile.fromDict(PROFILE_DEFAULTS_DICT)
|
PROFILE_DEFAULTS = Profile.fromDict(PROFILE_DEFAULTS_DICT)
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,8 @@ class SparseProfile(DictScheme):
|
||||||
username: Optional[str]
|
username: Optional[str]
|
||||||
password: Optional[str]
|
password: Optional[str]
|
||||||
size_extra_mb: Optional[Union[str, int]]
|
size_extra_mb: Optional[Union[str, int]]
|
||||||
|
encryption: Optional[bool]
|
||||||
|
encryption_password: Optional[str]
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return f'{type(self)}{dict.__repr__(self.toDict())}'
|
return f'{type(self)}{dict.__repr__(self.toDict())}'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue