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
OsamClient
¶
Bases: RsClient
OsamClient class implementation.
Attributes: see class:
RsClient
Source code in docs/rs-client-libraries/rs_client/osam_client.py
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
get_credentials(timeout=TIMEOUT)
async
¶
Get user credentials from cloud provider.