Cloud Workstations v1 API - Class GenerateAccessTokenRequest (1.5.0)

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.

Inheritance

object > GenerateAccessTokenRequest

Namespace

Google.Cloud.Workstations.V1

Assembly

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

Port

public int Port { get; set; }

Optional. Port for which the access token should be generated. If specified, the generated access token grants access only to the specified port of the workstation. If specified, values must be within the range [1 - 65535]. If not specified, the generated access token grants access to all ports of the workstation.

Property Value
Type Description
int

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