rs_client/osam_client.md
OsamClient class implementation.
BucketCredentials
Bases: BaseModel
Bucket credentials, with the same field names as those returned by the osam service.
Source code in docs/rs-client-libraries/rs_client/osam_client.py
26 27 28 29 30 31 32 | |
OsamClient
Bases: RsClient
OsamClient class implementation.
Attributes: see :py:class:RsClient
Source code in docs/rs-client-libraries/rs_client/osam_client.py
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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | |
href_service
property
Return the RS-Server OSAM URL hostname. This URL can be overwritten using the RSPY_HOST_OSAM env variable (used e.g. for local mode). Otherwise it should just be the RS-Server URL.
__init__(rs_server_href, rs_server_api_key, logger=None)
Initializes an OsamClient instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rs_server_href
|
str | None
|
The URL of the RS-Server. Pass None for local mode. |
required |
rs_server_api_key
|
str | None
|
API key for authentication. |
required |
logger
|
Logger | None
|
Logger instance (default: None). |
None
|
Source code in docs/rs-client-libraries/rs_client/osam_client.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |
get_credentials(timeout=TIMEOUT)
async
Get user credentials from cloud provider.
Source code in docs/rs-client-libraries/rs_client/osam_client.py
72 73 74 75 76 77 78 79 80 | |