/usr/lib/python2.7/dist-packages/bioblend/galaxy/quotas/__init__.py is in python-bioblend 0.7.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | """
Contains possible interactions with the Galaxy Quota
"""
from bioblend.galaxy.client import Client
class QuotaClient(Client):
def __init__(self, galaxy_instance):
self.module = 'quotas'
super(QuotaClient, self).__init__(galaxy_instance)
def get_quotas(self, deleted=False):
"""
Get a list of quotas
:type deleted: bool
:param deleted: Only return quota(s) that have been deleted
:rtype: list
:return: A list of dicts with details on individual quotas.
For example::
[{ u'id': u'0604c8a56abe9a50',
u'model_class': u'Quota',
u'name': u'test ',
u'url': u'/api/quotas/0604c8a56abe9a50'},
{ u'id': u'1ee267091d0190af',
u'model_class': u'Quota',
u'name': u'workshop',
u'url': u'/api/quotas/1ee267091d0190af'}]
"""
return Client._get(self, deleted=deleted)
def show_quota(self, quota_id, deleted=False):
"""
Display information on a quota
:type quota_id: str
:param quota_id: Encoded quota ID
:type deleted: bool
:param deleted: Search for quota in list of ones already marked as deleted
:rtype: dict
:return: A description of quota
For example::
{ u'bytes': 107374182400,
u'default': [],
u'description': u'just testing',
u'display_amount': u'100.0 GB',
u'groups': [],
u'id': u'0604c8a56abe9a50',
u'model_class': u'Quota',
u'name': u'test ',
u'operation': u'=',
u'users': []}
"""
return Client._get(self, id=quota_id, deleted=deleted)
|