public class GoogleAICredentials : ICredentials
GoogleAICredentials | Represents the credentials required to authenticate with Google AI Generative APIs. Manages the API Key and optional Access Token necessary for making API requests. |
ApiKey | Gets the API Key used to authenticate requests to Google AI Generative APIs. The API Key provides an easy way to access public resources or perform authorized operations without requiring OAuth2 tokens. |
AuthToken | Gets the Access Token for authenticating with Google AI APIs. This token is used for OAuth2-based authentication and is typically required when an API Key alone is insufficient for certain protected resources. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
ToString | Returns a string that represents the current object. (Inherited from Object) |
ValidateCredentials | Validates the API credentials for the GoogleAICredentials instance. Ensures that either an API Key or an Access Token is provided. Throws an exception if both are null or empty. |