airflow.providers.yandex.utils.credentials¶
Attributes¶
Classes¶
Credentials dict description. |
Functions¶
|
Return credentials JSON for Yandex Cloud SDK based on credentials. |
|
Return Yandex Cloud Service Account key loaded from JSON string or file. |
|
Return Yandex Cloud Service Account ID loaded from JSON string or file. |
Module Contents¶
- class airflow.providers.yandex.utils.credentials.CredentialsType[source]¶
Bases:
TypedDict
Credentials dict description.
- airflow.providers.yandex.utils.credentials.get_credentials(oauth_token=None, service_account_json=None, service_account_json_path=None)[source]¶
Return credentials JSON for Yandex Cloud SDK based on credentials.
Credentials will be used with this priority:
OAuth Token
Service Account JSON file
Service Account JSON
Metadata Service
- Parameters:
- Returns:
Credentials JSON
- Return type:
- airflow.providers.yandex.utils.credentials.get_service_account_key(service_account_json=None, service_account_json_path=None)[source]¶
Return Yandex Cloud Service Account key loaded from JSON string or file.