Skip to content

Instantly share code, notes, and snippets.

@charlesreid1
Last active October 22, 2019 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charlesreid1/99bccd59a5ecc841c22495ad1dfb8007 to your computer and use it in GitHub Desktop.
Save charlesreid1/99bccd59a5ecc841c22495ad1dfb8007 to your computer and use it in GitHub Desktop.
output from DSSClient.get_bundles_all()
import json
from hca.dss import DSSClient
dss = DSSClient()
print(dss.get_all_bundles(replica="gcp"))
print(dss.get_all_bundles(replica="aws"))
(Pdb) dss.get_bundles_all
<bound method DSSClient.get_bundles_all of <class 'hca.util.SwaggerClient'>>
(Pdb) help(dss.get_bundles_all)
*** No help for '(dss.get_bundles_all)'
(Pdb) dss.get_bundles_all()
*** hca.util.exceptions.SwaggerAPIException: illegal_arguments: Missing query parameter 'replica' (HTTP 400). Details:
Traceback (most recent call last):
File "/var/task/chalicelib/dss/__init__.py", line 111, in wrapper
return origwrapper(request)
File "/opt/python/lib/python3.6/site-packages/connexion/decorators/validation.py", line 313, in wrapper
error = self.validate_query_parameter(param, request)
File "/opt/python/lib/python3.6/site-packages/connexion/decorators/validation.py", line 277, in validate_query_parameter
return self.validate_parameter('query', val, param)
File "/var/task/chalicelib/dss/__init__.py", line 102, in validate_parameter
raise DSSBindingException(result)
dss.error.DSSBindingException
(Pdb) dss.get_bundles_all(replica='gcp')
{'bundles': [], 'dss_api': 'https://dss.dev.data.humancellatlas.org', 'event_timestamp': '2019-10-22T161618.171337Z', 'has_more': False, 'object': 'list', 'page_count': 0, 'per_page': 100, 'search_prefix': 'bundles/'}
(Pdb) dss.get_bundles_all(replica='aws')
{'bundles': [], 'dss_api': 'https://dss.dev.data.humancellatlas.org', 'event_timestamp': '2019-10-22T161627.775006Z', 'has_more': False, 'object': 'list', 'page_count': 0, 'per_page': 100, 'search_prefix': 'bundles/'}
(Pdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment