dlt.common.configuration.specs.gcp_credentials
GcpCredentials Objects
@configspec
class GcpCredentials(CredentialsConfiguration, WithObjectStoreRsCredentials)
to_native_credentials
def to_native_credentials() -> Any
Returns respective native credentials for service account or oauth2 that can be passed to google clients
to_gcs_credentials
def to_gcs_credentials() -> Dict[str, Any]
Dict of keyword arguments that can be passed to gcsfs. Delegates default GCS credential handling to gcsfs.
to_object_store_rs_credentials
def to_object_store_rs_credentials() -> Dict[str, str]
Dict of keyword arguments that can be passed to object_store Rust crate.
Delegates default GCS credential handling to object_store Rust crate.
GcpServiceAccountCredentialsWithoutDefaults Objects
@configspec
class GcpServiceAccountCredentialsWithoutDefaults(GcpCredentials,
                                                  WithPyicebergConfig)
parse_native_representation
def parse_native_representation(native_value: Any) -> None
Accepts ServiceAccountCredentials as native value. In other case reverts to serialized services.json
to_native_credentials
def to_native_credentials() -> Any
Returns google.oauth2.service_account.Credentials