Credential

data class Credential(val type: String = "", val projectId: String, val privateKeyId: Secret, val privateKey: Secret, val clientEmail: String, val clientId: String, val authUri: String, val tokenUri: String, val authProviderX509CertUrl: String, val clientX509CertUrl: String, val universeDomain: String)

A service account key, as in the JSON key file Google Cloud issues.

Constructors

Link copied to clipboard
constructor(type: String = "", projectId: String, privateKeyId: Secret, privateKey: Secret, clientEmail: String, clientId: String, authUri: String, tokenUri: String, authProviderX509CertUrl: String, clientX509CertUrl: String, universeDomain: String)

Types

Link copied to clipboard
class Builder

Fluent builder for Credential, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Where the provider's X.509 certificates are published.

Link copied to clipboard

The OAuth2 authorization endpoint.

Link copied to clipboard

The service account's email address.

Link copied to clipboard

The service account's numeric client ID.

Link copied to clipboard

Where the service account's X.509 certificate is published.

Link copied to clipboard

The private key, in PEM format.

Link copied to clipboard

The ID of the private key.

Link copied to clipboard

The project the service account belongs to.

Link copied to clipboard

The OAuth2 token endpoint.

Link copied to clipboard

The key type, service_account in a key file.

Link copied to clipboard

The Google Cloud universe domain, such as googleapis.com.

Functions

Link copied to clipboard

Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.