Class GenerateAccessTokenRequest (1.0.0)

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

Inheritance

System.Object > GenerateAccessTokenRequest

Implements

Google.Protobuf.IMessage < GenerateAccessTokenRequest >, System.IEquatable < GenerateAccessTokenRequest >, Google.Protobuf.IDeepCloneable < GenerateAccessTokenRequest >, Google.Protobuf.IBufferMessage , Google.Protobuf.IMessage

Namespace

Google.Cloud.Iam.Credentials.V1

Assembly

Google.Cloud.Iam.Credentials.V1.dll

Constructors

GenerateAccessTokenRequest()

 public GenerateAccessTokenRequest() 

GenerateAccessTokenRequest(GenerateAccessTokenRequest)

 public GenerateAccessTokenRequest(GenerateAccessTokenRequest other) 
Parameter
Name
Description

Properties

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
Google.Protobuf.Collections.RepeatedField < System.String >

Lifetime

 public Duration Lifetime { get; set; } 

The desired lifetime duration of the access token in seconds. Must be set to a value less than or equal to 3600 (1 hour). If a value is not specified, the token's lifetime will be set to a default value of one hour.

Property Value
Type
Description
Google.Protobuf.WellKnownTypes.Duration

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
System.String

Scope

 public RepeatedField<string> Scope { get; } 

Required. Code to identify the scopes to be included in the OAuth 2.0 access token. See https://developers.google.com/identity/protocols/googlescopes for more information. At least one value required.

Property Value
Type
Description
Google.Protobuf.Collections.RepeatedField < System.String >

ServiceAccountName

 public ServiceAccountName ServiceAccountName { get; set; } 

ServiceAccountName -typed view over the Name resource name property.

Property Value
Type
Description
Design a Mobile Site
View Site in Mobile | Classic
Share by: