IAM Service Account Credentials v1 API - Class GenerateIdTokenRequest (2.4.0)

public sealed class GenerateIdTokenRequest : IMessage<GenerateIdTokenRequest>, IEquatable<GenerateIdTokenRequest>, IDeepCloneable<GenerateIdTokenRequest>, IBufferMessage, IMessage

Inheritance

object > GenerateIdTokenRequest

Namespace

Google.Cloud.Iam.Credentials.V1

Assembly

Google.Cloud.Iam.Credentials.V1.dll

Constructors

GenerateIdTokenRequest()

public GenerateIdTokenRequest()

GenerateIdTokenRequest(GenerateIdTokenRequest)

public GenerateIdTokenRequest(GenerateIdTokenRequest other)
Parameter
Name Description
other GenerateIdTokenRequest

Properties

Audience

public string Audience { get; set; }

Required. The audience for the token, such as the API or account that this token grants access to.

Property Value
Type Description
string

Delegates

public RepeatedField<string> Delegates { get; }

The sequence of service accounts in a delegation chain. Each service account must be granted the roles/iam.serviceAccountTokenCreator role on its next service account in the chain. The last service account in the chain must be granted the roles/iam.serviceAccountTokenCreator role on the service account that is specified in the name field of the request.

The delegates must have the following format: projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}. The - wildcard character is required; replacing it with a project ID is invalid.

Property Value
Type Description
RepeatedFieldstring

IncludeEmail

public bool IncludeEmail { get; set; }

Include the service account email in the token. If set to true, the token will contain email and email_verified claims.

Property Value
Type Description
bool

Name

public string Name { get; set; }

Required. The resource name of the service account for which the credentials are requested, in the following format: projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}. The - wildcard character is required; replacing it with a project ID is invalid.

Property Value
Type Description
string

ServiceAccountName

public ServiceAccountName ServiceAccountName { get; set; }

ServiceAccountName-typed view over the Name resource name property.

Property Value
Type Description
ServiceAccountName