Class GeminiCachedContentGetRequest
Requests metadata cached content. Return type is GeminiCachedContent.
public class GeminiCachedContentGetRequest : IGeminiGetRequest, IGeminiRequest
- Inheritance
-
GeminiCachedContentGetRequest
- Implements
- Extension Methods
Remarks
Only available in the beta API.
Constructors
GeminiCachedContentGetRequest(string, bool)
Creates a new GeminiCachedContentGetRequest.
public GeminiCachedContentGetRequest(string cachedContentIdOrName, bool useBetaApi = true)
Parameters
cachedContentIdOrName
stringThe ID or name (format cachedContents/{contentId}) of the cached content to get.
useBetaApi
boolShould the request use the Beta API?
Remarks
Only available in the beta API.
Fields
ApiVersion
The API version to use.
public string ApiVersion
Field Value
ContentId
The ID of the cached content.
public string ContentId
Field Value
Properties
AuthMethod
The preferred authentication method.
public GeminiAuthMethod AuthMethod { get; set; }
Property Value
OAuthAccessToken
The OAuth access token to authenticate the request, if using OAuthAccessToken as AuthMethod.
public string OAuthAccessToken { get; set; }
Property Value
Methods
GetEndpointUri(GeminiRequestMetadata)
Gets the URI to the API endpoint.
public string GetEndpointUri(GeminiRequestMetadata metadata)
Parameters
metadata
GeminiRequestMetadataThe metadata of the request to be carried out on the URI.
Returns
- string
The URI.