mixcoatl/admin/group.py
def all(cls, keys_only=False, endpoint=None, **kwargs):
        """Get all groups

        .. note::

            The keys used to make the request determine results visibility

        :param keys_only: Only return `group_id` instead of `Group` objects
        :type keys_only: bool.
        :param detail: The level of detail to return - `basic` or `extended`
        :type detail: str.
        :param account_id: Restrict results to `account_id`
        :type account_id: int.
        :returns: `list` - List of :class:`Group` or :attr:`group_id`
        :raises: :class:`GroupException`
        """
        r = Resource(cls.PATH, endpoint=endpoint)
        params = {}

        if 'detail' in kwargs:
            r.request_details = kwargs['detail']
        else:
            r.request_details = 'basic'

        if 'account_id' in kwargs:
            params = {'accountId': kwargs['account_id']}

        x = r.get(params=params)
        if r.last_error is None:
            if keys_only is True:
                return [i[camelize(cls.PRIMARY_KEY)]
                        for i in x[cls.COLLECTION_NAME]]
            else:
                return [type(cls.__name__, (object,), i)
                        for i in uncamel_keys(x)[cls.COLLECTION_NAME]]
        else:
            raise GroupException(r.last_error)
Get all groups

        .. note::

            The keys used to make the request determine results visibility

        :param keys_only: Only return `group_id` instead of `Group` objects
        :type keys_only: bool.
        :param detail: The level of detail to return - `basic` or `extended`
        :type detail: str.
        :param account_id: Restrict results to `account_id`
        :type account_id: int.
        :returns: `list` - List of :class:`Group` or :attr:`group_id`
        :raises: :class:`GroupException`
        
Get all groups
note:.

The keys used to make the request determine results visibility
Get all groups note : . The keys used to make the request determine results visibility
def all(cls, keys_only=False, endpoint=None, **kwargs):
        r = Resource(cls.PATH, endpoint=endpoint)
        params = {}
        if 'detail' in kwargs:
            r.request_details = kwargs['detail']
        else:
            r.request_details = 'basic'
        if 'account_id' in kwargs:
            params = {'accountId': kwargs['account_id']}
        x = r.get(params=params)
        if r.last_error is None:
            if keys_only is True:
                return [i[camelize(cls.PRIMARY_KEY)]
                        for i in x[cls.COLLECTION_NAME]]
            else:
                return [type(cls.__name__, (object,), i)
                        for i in uncamel_keys(x)[cls.COLLECTION_NAME]]
        else:
            raise GroupException(r.last_error)
def all ( cls , keys_only = False , endpoint = None , ** kwargs ) : r = Resource ( cls . PATH , endpoint = endpoint ) params = { } if 'detail' in kwargs : r . request_details = kwargs [ 'detail' ] else : r . request_details = 'basic' if 'account_id' in kwargs : params = { 'accountId' : kwargs [ 'account_id' ] } x = r . get ( params = params ) if r . last_error is None : if keys_only is True : return [ i [ camelize ( cls . PRIMARY_KEY ) ] for i in x [ cls . COLLECTION_NAME ] ] else : return [ type ( cls . __name__ , ( object , ) , i ) for i in uncamel_keys ( x ) [ cls . COLLECTION_NAME ] ] else : raise GroupException ( r . last_error )
Get all groups
.. note::
Get all groups .. note ::
"""Get all groups

        .. note::

            The keys used to make the request determine results visibility

        :param keys_only: Only return `group_id` instead of `Group` objects
        :type keys_only: bool.
        :param detail: The level of detail to return - `basic` or `extended`
        :type detail: str.
        :param account_id: Restrict results to `account_id`
        :type account_id: int.
        :returns: `list` - List of :class:`Group` or :attr:`group_id`
        :raises: :class:`GroupException`
        """
`list` - List of :class:`Group` or :attr:`group_id`
` list ` - List of : class : ` Group ` or : attr : ` group_id `
None
cls
keys_only
Only return `group_id` instead of `Group` objects
Only return ` group_id ` instead of ` Group ` objects
endpoint
detail
The level of detail to return - `basic` or `extended`
The level of detail to return - ` basic ` or ` extended `
account_id
Restrict results to `account_id`
Restrict results to ` account_id `