<s> import six <EOL> from . . client import Client <EOL> from . model import Model <EOL> from . . resources . resource import Resource <EOL> from . . resources . script import Script <EOL> from . . enums . escope import EScope <EOL> from ... util import Util <EOL> import saklient <EOL> str = six . text_type <EOL> class Model_Script ( Model ) : <EOL> def _api_path ( self ) : <EOL> return "<STR_LIT>" <EOL> def _root_key ( self ) : <EOL> return "<STR_LIT>" <EOL> def _root_key_m ( self ) : <EOL> return "<STR_LIT>" <EOL> def _class_name ( self ) : <EOL> return "<STR_LIT>" <EOL> def _create_resource_impl ( self , obj , wrapped = False ) : <EOL> Util . validate_type ( wrapped , "<STR_LIT:bool>" ) <EOL> return Script ( self . _client , obj , wrapped ) <EOL> def offset ( self , offset ) : <EOL> Util . validate_type ( offset , "<STR_LIT:int>" ) <EOL> return self . _offset ( offset ) <EOL> def limit ( self , count ) : <EOL> Util . validate_type ( count , "<STR_LIT:int>" ) <EOL> return self . _limit ( count ) <EOL> def filter_by ( self , key , value , multiple = False ) : <EOL> Util . validate_type ( key , "<STR_LIT:str>" ) <EOL> Util . validate_type ( multiple , "<STR_LIT:bool>" ) <EOL> return self . _filter_by ( key , value , multiple ) <EOL> def reset ( self ) : <EOL> return self . _reset ( ) <EOL> def get_by_id ( self , id ) : <EOL> Util . validate_type ( id , "<STR_LIT:str>" ) <EOL> return self . _get_by_id ( id ) <EOL> def find ( self ) : <EOL> return self . _find ( ) <EOL> def with_name_like ( self , name ) : <EOL> Util . validate_type ( name , "<STR_LIT:str>" ) <EOL> return self . _with_name_like ( name ) <EOL> def with_tag ( self , tag ) : <EOL> Util . validate_type ( tag , "<STR_LIT:str>" ) <EOL> return self . _with_tag ( tag ) <EOL> def with_tags ( self , tags ) : <EOL> Util . validate_type ( tags , "<STR_LIT:list>" ) <EOL> return self . _with_tags ( tags ) <EOL> def with_tag_dnf ( self , dnf ) : <EOL> Util . validate_type ( dnf , "<STR_LIT:list>" ) <EOL> return self . _with_tag_dnf ( dnf ) <EOL> def sort_by_name ( self , reverse = False ) : <EOL> Util . validate_type ( reverse , "<STR_LIT:bool>" ) <EOL> return self . _sort_by_name ( reverse ) <EOL> def __init__ ( self , client ) : <EOL> super ( Model_Script , self ) . __init__ ( client ) <EOL> Util . validate_type ( client , "<STR_LIT>" ) <EOL> def with_shared_scope ( self ) : <EOL> self . _filter_by ( "<STR_LIT>" , [ EScope . shared ] ) <EOL> return self <EOL> def with_user_scope ( self ) : <EOL> self . _filter_by ( "<STR_LIT>" , [ EScope . user ] ) <EOL> return self </s>
