Class UsersResource.EnvironmentsResource.GenerateAccessTokenRequest
Generates an access token for the user's environment.
Inheritance
UsersResource.EnvironmentsResource.GenerateAccessTokenRequest
Inherited Members
Namespace: Google.Apis.CloudShell.v1
Assembly: Google.Apis.CloudShell.v1.dll
Syntax
public class UsersResource.EnvironmentsResource.GenerateAccessTokenRequest : CloudShellBaseServiceRequest<GenerateAccessTokenResponse>, IClientServiceRequest<GenerateAccessTokenResponse>, IClientServiceRequest
Constructors
GenerateAccessTokenRequest(IClientService, string)
Constructs a new GenerateAccessToken request.
Declaration
public GenerateAccessTokenRequest(IClientService service, string environment)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| string | environment |
Properties
Environment
Required. The environment to generate the access token for.
Declaration
[RequestParameter("environment", RequestParameterType.Path)]
public virtual string Environment { get; }
Property Value
| Type | Description |
|---|---|
| string |
ExpireTime
object representation of ExpireTimeRaw.
Declaration
[Obsolete("This property is obsolete and may behave unexpectedly; please use ExpireTimeDateTimeOffset instead.")]
public virtual object ExpireTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
ExpireTimeDateTimeOffset
Declaration
public virtual DateTimeOffset? ExpireTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
ExpireTimeRaw
String representation of ExpireTimeDateTimeOffset, formatted for inclusion in the HTTP request.
Declaration
[RequestParameter("expireTime", RequestParameterType.Query)]
public virtual string ExpireTimeRaw { get; }
Property Value
| Type | Description |
|---|---|
| string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Ttl
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.
Declaration
[RequestParameter("ttl", RequestParameterType.Query)]
public virtual object Ttl { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Methods
InitParameters()
Initializes GenerateAccessToken parameter list.
Declaration
protected override void InitParameters()