Class JsonCredentialParameters
Holder for credential parameters read from JSON credential file. Fields are union of parameters for all supported credential types.
Inheritance
Inherited Members
Namespace: Google.Apis.Auth.OAuth2
Assembly: Google.Apis.Auth.dll
Syntax
public class JsonCredentialParameters
Fields
AuthorizedUserCredentialType
UserCredential is created by the GCloud SDK tool when the user runs GCloud Auth Login.
Declaration
public const string AuthorizedUserCredentialType = "authorized_user"
Field Value
Type | Description |
---|---|
System.String |
ServiceAccountCredentialType
ServiceAccountCredential is downloaded by the user from Google Developers Console.
Declaration
public const string ServiceAccountCredentialType = "service_account"
Field Value
Type | Description |
---|---|
System.String |
Properties
ClientEmail
Client Email associated with ServiceAccountCredential obtained from Google Developers Console
Declaration
[JsonProperty("client_email")]
public string ClientEmail { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ClientId
Client Id associated with UserCredential created by GCloud Auth Login.
Declaration
[JsonProperty("client_id")]
public string ClientId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ClientSecret
Client Secret associated with UserCredential created by GCloud Auth Login.
Declaration
[JsonProperty("client_secret")]
public string ClientSecret { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PrivateKey
Private Key associated with ServiceAccountCredential obtained from Google Developers Console.
Declaration
[JsonProperty("private_key")]
public string PrivateKey { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ProjectId
Project ID associated with this credential.
Declaration
[JsonProperty("project_id")]
public string ProjectId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
QuotaProject
Project ID associated with this credential for the purposes of quota calculations and billing.
Declaration
[JsonProperty("quota_project_id")]
public string QuotaProject { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RefreshToken
Refresh Token associated with UserCredential created by GCloud Auth Login.
Declaration
[JsonProperty("refresh_token")]
public string RefreshToken { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Type
Type of the credential.
Declaration
[JsonProperty("type")]
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String |