[#3] Added generate proto script create container method
Signed-off-by: Ilyas Niyazov <i.niyazov@yadro.com>
This commit is contained in:
parent
fba6eaaa9c
commit
d2e0c80f7c
16 changed files with 348 additions and 51 deletions
14
frostfs_sdk/client/parameters/create_session_param.py
Normal file
14
frostfs_sdk/client/parameters/create_session_param.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from dataclasses import dataclass, field
|
||||
from typing import Dict, Optional
|
||||
|
||||
@dataclass
|
||||
class CreateSessionParam:
|
||||
"""
|
||||
Represents parameters for creating a session.
|
||||
"""
|
||||
expiration: int # -1 indicates maximum expiration
|
||||
x_headers: Optional[Dict[str, str]] = field(default_factory=dict)
|
||||
|
||||
def __init__(self, expiration: int, x_headers: Optional[Dict[str, str]] = None):
|
||||
self.expiration = expiration
|
||||
self.x_headers = x_headers if x_headers is not None else {}
|
Loading…
Add table
Add a link
Reference in a new issue