Skip to content

Commit 85e99b5

Browse files
authored
Merge pull request #492 from bernt-matthias/quota_source_label
Add ``quota_source_label`` parameter to ``QuotaClient.create_quota()``
2 parents 0bf1d42 + 66408c7 commit 85e99b5

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
* Added ``offset`` parameter to ``InvocationClient.get_invocations()`` and
66
BioBlend.objects ``ObjInvocationClient.list()`` methods.
77

8+
* Added ``quota_source_label`` parameter to ``QuotaClient.create_quota()``
9+
(thanks to [Matthias Bernt](https://github.com/bernt-matthias)).
10+
811
* Added ``style`` parameter to ``WorkflowClient.export_workflow_dict()`` method
912
(thanks to [Marius van den Beek](https://github.com/mvdbeek)).
1013

bioblend/galaxy/quotas/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def create_quota(
8282
default: Optional[DefaultQuotaValues] = "no",
8383
in_users: Optional[list[str]] = None,
8484
in_groups: Optional[list[str]] = None,
85+
quota_source_label: Optional[str] = None,
8586
) -> dict[str, Any]:
8687
"""
8788
Create a new quota
@@ -109,6 +110,10 @@ def create_quota(
109110
:type in_groups: list of str
110111
:param in_groups: A list of group IDs or names.
111112
113+
:type quota_source_label: str
114+
:param quota_source_label: If set, quota source label to apply this
115+
quota operation to. Otherwise, the default quota is used.
116+
112117
:rtype: dict
113118
:return: A description of quota.
114119
For example::
@@ -125,6 +130,7 @@ def create_quota(
125130
"amount": amount,
126131
"operation": operation,
127132
"default": default,
133+
"quota_source_label": quota_source_label,
128134
}
129135
if in_users:
130136
payload["in_users"] = in_users

0 commit comments

Comments
 (0)