Class OauthClient
Represents an oauth client. Used to access Google Cloud resources on behave of a user by using OAuth2 Protocol to obtain an access token from Google Cloud Platform.
Implements
Inherited Members
Namespace: Google.Apis.Iam.v1.Data
Assembly: Google.Apis.Iam.v1.dll
Syntax
public class OauthClient : IDirectResponseSchema
Properties
AllowedGrantTypes
Required. The list of OAuth grant type is allowed for the oauth client.
Declaration
[JsonProperty("allowedGrantTypes")]
public virtual IList<string> AllowedGrantTypes { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
AllowedRedirectUris
Required. The list of redirect uris that is allowed to redirect back when authorization process is completed.
Declaration
[JsonProperty("allowedRedirectUris")]
public virtual IList<string> AllowedRedirectUris { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
AllowedScopes
Required. The list of scopes that the oauth client is allowed to request during OAuth flows. The following
scopes are supported: * https://www.googleapis.com/auth/cloud-platform
: See, edit, configure, and delete
your Google Cloud data and see the email address for your Google Account. * openid
: Associate you with
your personal info on Google Cloud. * email
: See your Google Cloud Account email address.
Declaration
[JsonProperty("allowedScopes")]
public virtual IList<string> AllowedScopes { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
ClientId
Output only. The system-generated oauth client id.
Declaration
[JsonProperty("clientId")]
public virtual string ClientId { get; set; }
Property Value
Type | Description |
---|---|
string |
ClientType
Immutable. The type of oauth client. either public or private.
Declaration
[JsonProperty("clientType")]
public virtual string ClientType { get; set; }
Property Value
Type | Description |
---|---|
string |
Description
Optional. A user-specified description of the oauth client. Cannot exceed 256 characters.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
Disabled
Optional. Whether the oauth client is disabled. You cannot use a disabled oauth client for login.
Declaration
[JsonProperty("disabled")]
public virtual bool? Disabled { get; set; }
Property Value
Type | Description |
---|---|
bool? |
DisplayName
Optional. A user-specified display name of the oauth client. Cannot exceed 32 characters.
Declaration
[JsonProperty("displayName")]
public virtual string DisplayName { 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 |
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
Output only. Time after which the oauth client will be permanently purged and cannot be recovered.
Declaration
[JsonProperty("expireTime")]
public virtual string ExpireTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Immutable. The resource name of the oauth client.
Format:projects/{project}/locations/{location}/oauthClients/{oauth_client}
.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
State
Output only. The state of the oauth client.
Declaration
[JsonProperty("state")]
public virtual string State { get; set; }
Property Value
Type | Description |
---|---|
string |