Class GenerateIdTokenRequest (1.1.0)

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

Inheritance

System.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
NameDescription
otherGenerateIdTokenRequest

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
TypeDescription
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
TypeDescription
RepeatedField<String>

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
TypeDescription
System.Boolean

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
TypeDescription
String

ServiceAccountName

public ServiceAccountName ServiceAccountName { get; set; }

ServiceAccountName-typed view over the Name resource name property.

Property Value
TypeDescription
ServiceAccountName