public sealed class GenerateAccessTokenRequest : IMessage<GenerateAccessTokenRequest>, IEquatable<GenerateAccessTokenRequest>, IDeepCloneable<GenerateAccessTokenRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Workstations v1 API class GenerateAccessTokenRequest.
Request message for GenerateAccessToken.
Implements
IMessageGenerateAccessTokenRequest, IEquatableGenerateAccessTokenRequest, IDeepCloneableGenerateAccessTokenRequest, IBufferMessage, IMessageNamespace
Google.Cloud.Workstations.V1Assembly
Google.Cloud.Workstations.V1.dll
Constructors
GenerateAccessTokenRequest()
public GenerateAccessTokenRequest()
GenerateAccessTokenRequest(GenerateAccessTokenRequest)
public GenerateAccessTokenRequest(GenerateAccessTokenRequest other)
Parameter | |
---|---|
Name | Description |
other |
GenerateAccessTokenRequest |
Properties
ExpirationCase
public GenerateAccessTokenRequest.ExpirationOneofCase ExpirationCase { get; }
Property Value | |
---|---|
Type | Description |
GenerateAccessTokenRequestExpirationOneofCase |
ExpireTime
public Timestamp ExpireTime { get; set; }
Desired expiration time of the access token. This value must be at most 24 hours in the future. If a value is not specified, the token's expiration time will be set to a default value of 1 hour in the future.
Property Value | |
---|---|
Type | Description |
Timestamp |
Ttl
public Duration Ttl { get; set; }
Desired lifetime duration of the access token. This value must be at most 24 hours. If a value is not specified, the token's lifetime will be set to a default value of 1 hour.
Property Value | |
---|---|
Type | Description |
Duration |
Workstation
public string Workstation { get; set; }
Required. Name of the workstation for which the access token should be generated.
Property Value | |
---|---|
Type | Description |
string |
WorkstationAsWorkstationName
public WorkstationName WorkstationAsWorkstationName { get; set; }
WorkstationName-typed view over the Workstation resource name property.
Property Value | |
---|---|
Type | Description |
WorkstationName |