data_dispatcher/api.py
def list_projects(self, owner=None, state=None, not_state=None, attributes=None, with_files=True, with_replicas=False):
        """Lists existing projects
        
        Keyword Arguments:
            owner (str): Include only projects owned by the specified user. Default: all users
            state (str): Include only projects in specified state. Default: all states
            not_state (str): Exclude projects in the specified state. Default: do not exclude
            attributes (dict): Include only projects with specified attribute values. Default: do not filter by attributes
            with_files (boolean): Include information about files. Default: True
            with_replicas (boolean): Include information about file replics. Default: False
    
        Returns:
            list of dictionaries with information about projects selected
        """
        
        suffix = "projects"
        args = []
        if owner: args.append(f"owner={owner}")
        if state: args.append(f"state={state}")
        if not_state: args.append(f"not_state={not_state}")
        args.append("with_handles=" + ("yes" if with_files else "no"))
        args.append("with_replicas=" + ("yes" if with_replicas else "no"))
        if attributes: args.append("attributes="+urllib.parse.quote(json.dumps(attributes)))
        args = "?" + "&".join(args) if args else ""
        return self.get(f"projects{args}")
Lists existing projects
        
        Keyword Arguments:
            owner (str): Include only projects owned by the specified user. Default: all users
            state (str): Include only projects in specified state. Default: all states
            not_state (str): Exclude projects in the specified state. Default: do not exclude
            attributes (dict): Include only projects with specified attribute values. Default: do not filter by attributes
            with_files (boolean): Include information about files. Default: True
            with_replicas (boolean): Include information about file replics. Default: False
    
        Returns:
            list of dictionaries with information about projects selected
        
Lists existing projects
Keyword Arguments:
owner (str): Include only projects owned by the specified user. Default: all users
state (str): Include only projects in specified state. Default: all states
not_state (str): Exclude projects in the specified state. Default: do not exclude
attributes (dict): Include only projects with specified attribute values. Default: do not filter by attributes
with_files (boolean): Include information about files. Default: True
with_replicas (boolean): Include information about file replics. Default: False
Lists existing projects Keyword Arguments : owner ( str ) : Include only projects owned by the specified user . Default : all users state ( str ) : Include only projects in specified state . Default : all states not_state ( str ) : Exclude projects in the specified state . Default : do not exclude attributes ( dict ) : Include only projects with specified attribute values . Default : do not filter by attributes with_files ( boolean ) : Include information about files . Default : True with_replicas ( boolean ) : Include information about file replics . Default : False
def list_projects(self, owner=None, state=None, not_state=None, attributes=None, with_files=True, with_replicas=False):
        suffix = "projects"
        args = []
        if owner: args.append(f"owner={owner}")
        if state: args.append(f"state={state}")
        if not_state: args.append(f"not_state={not_state}")
        args.append("with_handles=" + ("yes" if with_files else "no"))
        args.append("with_replicas=" + ("yes" if with_replicas else "no"))
        if attributes: args.append("attributes="+urllib.parse.quote(json.dumps(attributes)))
        args = "?" + "&".join(args) if args else ""
        return self.get(f"projects{args}")
def list_projects ( self , owner = None , state = None , not_state = None , attributes = None , with_files = True , with_replicas = False ) : suffix = "projects" args = [ ] if owner : args . append ( f"owner={owner}" ) if state : args . append ( f"state={state}" ) if not_state : args . append ( f"not_state={not_state}" ) args . append ( "with_handles=" + ( "yes" if with_files else "no" ) ) args . append ( "with_replicas=" + ( "yes" if with_replicas else "no" ) ) if attributes : args . append ( "attributes=" + urllib . parse . quote ( json . dumps ( attributes ) ) ) args = "?" + "&" . join ( args ) if args else "" return self . get ( f"projects{args}" )
Lists existing projects
Keyword Arguments:
owner (str): Include only projects owned by the specified user.
Lists existing projects Keyword Arguments : owner ( str ) : Include only projects owned by the specified user .
"""Lists existing projects
        
        Keyword Arguments:
            owner (str): Include only projects owned by the specified user. Default: all users
            state (str): Include only projects in specified state. Default: all states
            not_state (str): Exclude projects in the specified state. Default: do not exclude
            attributes (dict): Include only projects with specified attribute values. Default: do not filter by attributes
            with_files (boolean): Include information about files. Default: True
            with_replicas (boolean): Include information about file replics. Default: False
    
        Returns:
            list of dictionaries with information about projects selected
        """
list of dictionaries with information about projects selected
list of dictionaries with information about projects selected
self
owner
state
not_state
attributes
with_files
with_replicas