Class GeminiCachedContentListRequest
Requests metadata for all existing cached content. Return type is GeminiCachedContentListResponse.
public class GeminiCachedContentListRequest : IGeminiGetRequest, IGeminiRequest
- Inheritance
-
GeminiCachedContentListRequest
- Implements
- Extension Methods
Remarks
Only available in the beta API.
Constructors
GeminiCachedContentListRequest(bool)
Creates a new GeminiCachedContentListRequest.
public GeminiCachedContentListRequest(bool useBetaApi = true)
Parameters
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
MaxResponseContents
The maximum number of GeminiCachedContent objects to return (per page).
public int MaxResponseContents
Field Value
Remarks
This method returns at most 1000 GeminiCachedContent objects per page, even if you pass a larger MaxResponseContents.
PageToken
A page token from a previous GeminiCachedContentListRequest call.
public string PageToken
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.