UGemini 2.0.1
A C# wrapper for the Google Gemini API.
Loading...
Searching...
No Matches
Uralstech.UGemini.Models.Caching.GeminiCachedContentListRequest Class Reference

Requests metadata for all existing cached content. Return type is GeminiCachedContentListResponse. More...

Inheritance diagram for Uralstech.UGemini.Models.Caching.GeminiCachedContentListRequest:
Uralstech.UGemini.IGeminiGetRequest Uralstech.UGemini.IGeminiRequest

Public Member Functions

string GetEndpointUri (GeminiRequestMetadata metadata)
 Gets the URI to the API endpoint.
Parameters
metadataThe metadata of the request to be carried out on the URI.
Returns
The URI.

 
 GeminiCachedContentListRequest (bool useBetaApi=true)
 Creates a new GeminiCachedContentListRequest.
 

Public Attributes

string ApiVersion
 The API version to use.
 
int MaxResponseContents = 50
 The maximum number of GeminiCachedContent objects to return (per page).
 
string PageToken = string.Empty
 A page token from a previous GeminiCachedContentListRequest call.
 

Detailed Description

Requests metadata for all existing cached content. Return type is GeminiCachedContentListResponse.

Only available in the beta API.

Constructor & Destructor Documentation

◆ GeminiCachedContentListRequest()

Uralstech.UGemini.Models.Caching.GeminiCachedContentListRequest.GeminiCachedContentListRequest ( bool useBetaApi = true)

Creates a new GeminiCachedContentListRequest.

Only available in the beta API.

Parameters
useBetaApiShould the request use the Beta API?

Member Function Documentation

◆ GetEndpointUri()

string Uralstech.UGemini.Models.Caching.GeminiCachedContentListRequest.GetEndpointUri ( GeminiRequestMetadata metadata)

Gets the URI to the API endpoint.

Parameters
metadataThe metadata of the request to be carried out on the URI.
Returns
The URI.

Implements Uralstech.UGemini.IGeminiRequest.

Member Data Documentation

◆ MaxResponseContents

int Uralstech.UGemini.Models.Caching.GeminiCachedContentListRequest.MaxResponseContents = 50

The maximum number of GeminiCachedContent objects to return (per page).

This method returns at most 1000 GeminiCachedContent objects per page, even if you pass a larger MaxResponseContents.


The documentation for this class was generated from the following file: