# Data Analytics API with Gemini V1BETA API - Class Google::Cloud::GeminiDataAnalytics::V1beta::OAuthCredentials (v0.11.0)

0.11.0 (latest) 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Data Analytics API with Gemini V1BETA API class Google::Cloud::GeminiDataAnalytics::V1beta::OAuthCredentials.

Represents OAuth credentials.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #secret

    def secret() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::OAuthCredentials::SecretBased

**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1beta::OAuthCredentials::SecretBased](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-OAuthCredentials-SecretBased)) --- Secret-based OAuth credentials.


  Note: The following fields are mutually exclusive: `secret`, `token`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #secret=

    def secret=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::OAuthCredentials::SecretBased

**Parameter**

- **value** ([::Google::Cloud::GeminiDataAnalytics::V1beta::OAuthCredentials::SecretBased](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-OAuthCredentials-SecretBased)) --- Secret-based OAuth credentials.


  Note: The following fields are mutually exclusive: `secret`, `token`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1beta::OAuthCredentials::SecretBased](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-OAuthCredentials-SecretBased)) --- Secret-based OAuth credentials.


  Note: The following fields are mutually exclusive: `secret`, `token`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #token

    def token() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::OAuthCredentials::TokenBased

**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1beta::OAuthCredentials::TokenBased](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-OAuthCredentials-TokenBased)) --- Token-based OAuth credentials.


  Note: The following fields are mutually exclusive: `token`, `secret`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #token=

    def token=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::OAuthCredentials::TokenBased

**Parameter**

- **value** ([::Google::Cloud::GeminiDataAnalytics::V1beta::OAuthCredentials::TokenBased](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-OAuthCredentials-TokenBased)) --- Token-based OAuth credentials.


  Note: The following fields are mutually exclusive: `token`, `secret`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1beta::OAuthCredentials::TokenBased](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-OAuthCredentials-TokenBased)) --- Token-based OAuth credentials.


  Note: The following fields are mutually exclusive: `token`, `secret`. If a field in that set is populated, all other fields in the set will automatically be cleared.