remotelogin/devices/managers/base.py
def add_all(self, default_name=None, default_tunnel=None, **items):
        """ adds one or more users given by the list users.

        Args:
            interfaces (dict): list of users to add given as a dictionary with the keys being the username
                          if username not provided on the values
            default_name (str): username to set as the default from the ones given in users, if there is no
        """
        for instance in items.values():
            if not (isinstance(instance, collections.MutableMapping) or isinstance(instance, self.ItemCls)):
                raise TypeError('You can only provide a dict like type or a {cls} type but you provided an item as '
                                'a type: {type}'.format(cls=self.ItemCls, type=str(type(instance))))

        self._add_multiple(self.ItemTypeName, self._add_instance_method, default_name=default_name,
                           default_tunnel=default_tunnel, **items)
        return self
 adds one or more users given by the list users.

        Args:
            interfaces (dict): list of users to add given as a dictionary with the keys being the username
                          if username not provided on the values
            default_name (str): username to set as the default from the ones given in users, if there is no
        
adds one or more users given by the list users.
adds one or more users given by the list users .
def add_all(self, default_name=None, default_tunnel=None, **items):
        for instance in items.values():
            if not (isinstance(instance, collections.MutableMapping) or isinstance(instance, self.ItemCls)):
                raise TypeError('You can only provide a dict like type or a {cls} type but you provided an item as '
                                'a type: {type}'.format(cls=self.ItemCls, type=str(type(instance))))
        self._add_multiple(self.ItemTypeName, self._add_instance_method, default_name=default_name,
                           default_tunnel=default_tunnel, **items)
        return self
def add_all ( self , default_name = None , default_tunnel = None , ** items ) : for instance in items . values ( ) : if not ( isinstance ( instance , collections . MutableMapping ) or isinstance ( instance , self . ItemCls ) ) : raise TypeError ( 'You can only provide a dict like type or a {cls} type but you provided an item as ' 'a type: {type}' . format ( cls = self . ItemCls , type = str ( type ( instance ) ) ) ) self . _add_multiple ( self . ItemTypeName , self . _add_instance_method , default_name = default_name , default_tunnel = default_tunnel , ** items ) return self
adds one or more users given by the list users.
adds one or more users given by the list users .
""" adds one or more users given by the list users.

        Args:
            interfaces (dict): list of users to add given as a dictionary with the keys being the username
                          if username not provided on the values
            default_name (str): username to set as the default from the ones given in users, if there is no
        """
self
default_name
username to set as the default from the ones given in users, if there is no
username to set as the default from the ones given in users if there is no
default_tunnel
interfaces
list of users to add given as a dictionary with the keys being the username
if username not provided on the values
list of users to add given as a dictionary with the keys being the username if username not provided on the values