# Class ApiAuthentication (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0

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

Authentication information required for API calls.

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** |
| `api_key_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1.types.ApiKeyConfig` Optional. Config for API key auth. This field is a member of `oneof`_ `auth_config`. |
| `oauth_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1.types.OAuthConfig` Optional. Config for OAuth. This field is a member of `oneof`_ `auth_config`. |
| `service_agent_id_token_auth_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1.types.ServiceAgentIdTokenAuthConfig` Optional. Config for ID token auth generated from CES service agent. This field is a member of `oneof`_ `auth_config`. |
| `service_account_auth_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1.types.ServiceAccountAuthConfig` Optional. Config for service account authentication. This field is a member of `oneof`_ `auth_config`. |
| `bearer_token_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1.types.BearerTokenConfig` Optional. Config for bearer token auth. This field is a member of `oneof`_ `auth_config`. |