# Class OAuthCredentials (0.13.1)

0.13.1 (latest) 0.13.0 0.12.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    OAuthCredentials(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents OAuth credentials.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `secret` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-geminidataanalytics/latest/google.cloud.geminidataanalytics_v1.types.OAuthCredentials.SecretBased` Secret-based OAuth credentials. This field is a member of `oneof`_ `kind`. |
| `token` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-geminidataanalytics/latest/google.cloud.geminidataanalytics_v1.types.OAuthCredentials.TokenBased` Token-based OAuth credentials. This field is a member of `oneof`_ `kind`. |

## Classes

### SecretBased

    SecretBased(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The name of the secret containing the access token.
Represents secret-based OAuth credentials.

### TokenBased

    TokenBased(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Read more about Looker access tokens here:

<https://developers.looker.com/api/advanced-usage/looker-api-oauth>