pub struct ServiceAccountCredential {
pub type: String,
pub project_id: String,
pub private_key_id: String,
pub private_key: String,
pub client_email: String,
pub client_id: String,
pub auth_uri: String,
pub token_uri: String,
pub auth_provider_x509_cert_url: String,
pub client_x509_cert_url: String,
pub universe_domain: String,
}Expand description
Represents Google Service Account configuration. @example config = { type: “service_account”, projectId: “your_project_id”, privateKeyId: “your_private_key_id”, privateKey: “—–BEGIN PRIVATE KEY—–…”, clientEmail: “…@….iam.gserviceaccount.com”, clientId: “your_client_id”, authUri: “https://accounts.google.com/o/oauth2/auth”, tokenUri: “https://oauth2.googleapis.com/token”, authProviderX509CertUrl: “https://www.googleapis.com/oauth2/v1/certs”, clientX509CertUrl: “https://www.googleapis.com/robot/v1/metadata/x509/…”, universeDomain: “googleapis.com”, }
Fields§
§type: StringThe type should be ‘service_account’.
project_id: StringThe project ID of the Google Cloud project.
private_key_id: StringThe ID of the private key.
private_key: StringThe private key value.
client_email: StringThe client email.
client_id: StringThe client ID.
auth_uri: StringThe authorization URI.
token_uri: StringThe token URI.
auth_provider_x509_cert_url: StringURL for auth provider’s X.509 cert.
client_x509_cert_url: StringURL for the client’s X.509 cert.
universe_domain: StringThe universe domain.
Trait Implementations§
Source§impl Clone for ServiceAccountCredential
impl Clone for ServiceAccountCredential
Source§fn clone(&self) -> ServiceAccountCredential
fn clone(&self) -> ServiceAccountCredential
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more