| 1 |
from __future__ import annotations |
| 2 |
|
| 3 |
from globus_sdk.authorizers import GlobusAuthorizer |
| 4 |
|
| 5 |
from .retry_config import RetryConfig |
| 6 |
|
| 7 |
|
| 8 |
class RequestCallerInfo: |
| 9 |
""" |
| 10 |
Data object that holds contextual information about the caller of a request. |
| 11 |
|
| 12 |
:param retry_config: The configuration of retry checks for the call |
| 13 |
:param resource_server: The resource server the request is being made to. |
| 14 |
:param authorizer: The authorizer object from the client making the request |
| 15 |
""" |
| 16 |
|
| 17 |
def __init__( |
| 18 |
self, |
| 19 |
*, |
| 20 |
retry_config: RetryConfig, |
| 21 |
resource_server: str | None = None, |
| 22 |
authorizer: GlobusAuthorizer | None = None, |
| 23 |
) -> None: |
| 24 |
self.resource_server = resource_server |
| 25 |
self.retry_config = retry_config |
| 26 |
self.authorizer = authorizer |