Class OAuthToken
Represents an OAuth 2.0 access token and its associated metadata.
Implements
Inherited Members
Namespace: Google.Apis.CloudWorkstations.v1beta.Data
Assembly: Google.Apis.CloudWorkstations.v1beta.dll
Syntax
public class OAuthToken : IDirectResponseSchema
Properties
AccessToken
Required. The OAuth 2.0 access token value.
Declaration
[JsonProperty("accessToken")]
public virtual string AccessToken { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Optional. The email address associated with the OAuth 2.0 access token.
Declaration
[JsonProperty("email")]
public virtual string Email { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ExpireTime
object representation of ExpireTimeRaw.
Declaration
[JsonIgnore]
[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
DateTimeOffset representation of ExpireTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? ExpireTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
ExpireTimeRaw
Optional. The time the OAuth access token will expire. This should be the time the access token was
generated plus the expires_in offset returned from the Access Token Response. Only one of expire_time or
expires_in should be specified.
Declaration
[JsonProperty("expireTime")]
public virtual string ExpireTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ExpiresIn
Optional. The lifetime duration of the access token. Only one of expire_time or expires_in should be
specified.
Declaration
[JsonProperty("expiresIn")]
public virtual object ExpiresIn { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Scopes
Optional. The scopes associated with the OAuth 2.0 access token. See https://developers.google.com/identity/protocols/oauth2/scopes for more information.
Declaration
[JsonProperty("scopes")]
public virtual string Scopes { get; set; }
Property Value
| Type | Description |
|---|---|
| string |