Added create container grpc method
Signed-off-by: Ilyas Niyazov <i.niyazov@yadro.com>
This commit is contained in:
parent
9a1b5d778b
commit
f8465e5b99
34 changed files with 532 additions and 53 deletions
19
frostfs_sdk/client/models/client_settings.py
Normal file
19
frostfs_sdk/client/models/client_settings.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
class ClientSettings:
|
||||
def __init__(self, wif: str = None, address: str = None):
|
||||
"""
|
||||
Initializes client settings with validation.
|
||||
|
||||
Args:
|
||||
wif: Wallet import format string
|
||||
address: FrostFS node host address
|
||||
"""
|
||||
self.wif = wif
|
||||
self.address = address
|
||||
|
||||
# Perform validation after initialization
|
||||
self.validate()
|
||||
|
||||
def validate(self):
|
||||
"""Performs runtime validation of the settings"""
|
||||
if not (self.address and self.wif):
|
||||
raise ValueError("The value must be specified ADDRESS and WIF")
|
Loading…
Add table
Add a link
Reference in a new issue