3.6.0 (latest) 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.3.0 2.2.0

    public sealed class OAuthToken : IMessage<OAuthToken>, IEquatable<OAuthToken>, IDeepCloneable<OAuthToken>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Scheduler v1 API class OAuthToken.

Contains information needed for generating an
[OAuth token](https://developers.google.com/identity/protocols/OAuth2).
This type of authorization should generally only be used when calling Google
APIs hosted on \*.googleapis.com.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> OAuthToken

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[OAuthToken](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.OAuthToken.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[OAuthToken](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.OAuthToken.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[OAuthToken](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.OAuthToken.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Scheduler.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Scheduler.V1/latest/Google.Cloud.Scheduler.V1.md.txt)

## Assembly

Google.Cloud.Scheduler.V1.dll

## Constructors

### OAuthToken()

    public OAuthToken()

### OAuthToken(OAuthToken)

    public OAuthToken(OAuthToken other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `OAuthToken` |

## Properties

### Scope

    public string Scope { get; set; }

OAuth scope to be used for generating OAuth access token.
If not specified, "<https://www.googleapis.com/auth/cloud-platform>"
will be used.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ServiceAccountEmail

    public string ServiceAccountEmail { get; set; }

[Service account email](https://cloud.google.com/iam/docs/service-accounts)
to be used for generating OAuth token.
The service account must be within the same project as the job. The caller
must have iam.serviceAccounts.actAs permission for the service account.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |