<s> from . utils import NamespacedClient , query_params , _make_path , SKIP_IN_PATH <EOL> class SnapshotClient ( NamespacedClient ) : <EOL> @ query_params ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def create ( self , repository , snapshot , body = None , params = None ) : <EOL> """<STR_LIT>""" <EOL> for param in ( repository , snapshot ) : <EOL> if param in SKIP_IN_PATH : <EOL> raise ValueError ( "<STR_LIT>" ) <EOL> return self . transport . perform_request ( '<STR_LIT>' , _make_path ( '<STR_LIT>' , <EOL> repository , snapshot ) , params = params , body = body ) <EOL> @ query_params ( '<STR_LIT>' ) <EOL> def delete ( self , repository , snapshot , params = None ) : <EOL> """<STR_LIT>""" <EOL> for param in ( repository , snapshot ) : <EOL> if param in SKIP_IN_PATH : <EOL> raise ValueError ( "<STR_LIT>" ) <EOL> return self . transport . perform_request ( '<STR_LIT>' , <EOL> _make_path ( '<STR_LIT>' , repository , snapshot ) , params = params ) <EOL> @ query_params ( '<STR_LIT>' ) <EOL> def get ( self , repository , snapshot , params = None ) : <EOL> """<STR_LIT>""" <EOL> for param in ( repository , snapshot ) : <EOL> if param in SKIP_IN_PATH : <EOL> raise ValueError ( "<STR_LIT>" ) <EOL> return self . transport . perform_request ( '<STR_LIT:GET>' , _make_path ( '<STR_LIT>' , <EOL> repository , snapshot ) , params = params ) <EOL> @ query_params ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def delete_repository ( self , repository , params = None ) : <EOL> """<STR_LIT>""" <EOL> if repository in SKIP_IN_PATH : <EOL> raise ValueError ( "<STR_LIT>" ) <EOL> return self . transport . perform_request ( '<STR_LIT>' , <EOL> _make_path ( '<STR_LIT>' , repository ) , params = params ) <EOL> @ query_params ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def get_repository ( self , repository = None , params = None ) : <EOL> """<STR_LIT>""" <EOL> return self . transport . perform_request ( '<STR_LIT:GET>' , _make_path ( '<STR_LIT>' , <EOL> repository ) , params = params ) <EOL> @ query_params ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> def create_repository ( self , repository , body , params = None ) : <EOL> """<STR_LIT>""" <EOL> for param in ( repository , body ) : <EOL> if param in SKIP_IN_PATH : <EOL> raise ValueError ( "<STR_LIT>" ) <EOL> return self . transport . perform_request ( '<STR_LIT>' , _make_path ( '<STR_LIT>' , <EOL> repository ) , params = params , body = body ) <EOL> @ query_params ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def restore ( self , repository , snapshot , body = None , params = None ) : <EOL> """<STR_LIT>""" <EOL> for param in ( repository , snapshot ) : <EOL> if param in SKIP_IN_PATH : <EOL> raise ValueError ( "<STR_LIT>" ) <EOL> return self . transport . perform_request ( '<STR_LIT:POST>' , _make_path ( '<STR_LIT>' , <EOL> repository , snapshot , '<STR_LIT>' ) , params = params , body = body ) <EOL> @ query_params ( '<STR_LIT>' ) <EOL> def status ( self , repository = None , snapshot = None , params = None ) : <EOL> """<STR_LIT>""" <EOL> return self . transport . perform_request ( '<STR_LIT:GET>' , _make_path ( '<STR_LIT>' , <EOL> repository , snapshot , '<STR_LIT>' ) , params = params ) <EOL> @ query_params ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def verify_repository ( self , repository , params = None ) : <EOL> """<STR_LIT>""" <EOL> if repository in SKIP_IN_PATH : <EOL> raise ValueError ( "<STR_LIT>" ) <EOL> return self . transport . perform_request ( '<STR_LIT:POST>' , _make_path ( '<STR_LIT>' , <EOL> repository , '<STR_LIT>' ) , params = params ) </s>
