[#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
297e107b10
52 changed files with 1380 additions and 74 deletions
19
frostfs_sdk/models/dto/version.py
Normal file
19
frostfs_sdk/models/dto/version.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
from dataclasses import dataclass
|
||||
|
||||
DEFAULT_MAJOR_VERSION = 2
|
||||
DEFAULT_MINOR_VERSION = 13
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class Version:
|
||||
major: int = DEFAULT_MAJOR_VERSION
|
||||
minor: int = DEFAULT_MINOR_VERSION
|
||||
|
||||
def __str__(self) -> str:
|
||||
return f"v{self.major}.{self.minor}"
|
||||
|
||||
def is_supported(self, other):
|
||||
if not isinstance(other, Version):
|
||||
return False
|
||||
return self.major == other.major
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue