| 1 |
from globus_sdk.response import IterableResponse |
| 2 |
|
| 3 |
|
| 4 |
class IterableTransferResponse(IterableResponse): |
| 5 |
""" |
| 6 |
Response class for non-paged list oriented resources. Allows top level |
| 7 |
fields to be accessed normally via standard item access, and also |
| 8 |
provides a convenient way to iterate over the sub-item list in a specified |
| 9 |
key: |
| 10 |
|
| 11 |
>>> print("Path:", r["path"]) |
| 12 |
>>> # Equivalent to: for item in r["DATA"] |
| 13 |
>>> for item in r: |
| 14 |
>>> print(item["name"], item["type"]) |
| 15 |
""" |
| 16 |
|
| 17 |
default_iter_key = "DATA" |