Adapter instance
AdapterInstance
¶
Bases: Object
Source code in aria/ops/adapter_instance.py
get_credential_type()
¶
Get the type (key) of credential. This is useful if an adapter supports multiple types of credentials.
Returns:
Type | Description |
---|---|
Optional[str]
|
the type of the credential used by this adapter instance, or None if the adapter instance does not have a credential. |
Source code in aria/ops/adapter_instance.py
get_credential_value(credential_key)
¶
Retrieve the value of a given credential
Parameters:
Name | Type | Description | Default |
---|---|---|---|
credential_key
|
str
|
Key of the credential field |
required |
Returns:
Type | Description |
---|---|
Optional[str]
|
value associated with the credential field, or None if a credential field with the given key does not exist. |