[#3] Added generate proto script create container method
Signed-off-by: Ilyas Niyazov <i.niyazov@yadro.com>
This commit is contained in:
parent
19282f13cc
commit
3afa14db95
52 changed files with 1381 additions and 74 deletions
14
frostfs_sdk/models/enums/selector_clause.py
Normal file
14
frostfs_sdk/models/enums/selector_clause.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from enum import Enum, unique
|
||||
|
||||
@unique
|
||||
class SelectorClause(Enum):
|
||||
CLAUSE_UNSPECIFIED = 0
|
||||
SAME = 1
|
||||
DISTINCT = 2
|
||||
|
||||
@classmethod
|
||||
def get(cls, value: int):
|
||||
try:
|
||||
return cls(value)
|
||||
except ValueError:
|
||||
raise KeyError(f"Unknown enum value: {value}")
|
Loading…
Add table
Add a link
Reference in a new issue