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

Creates a GeminiCachedContent resource. Response type is GeminiCachedContent. More...

Inheritance diagram for Uralstech.UGemini.Models.Caching.GeminiCachedContentCreateRequest:
Uralstech.UGemini.IGeminiPostRequest 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.

 
 GeminiCachedContentCreateRequest (GeminiCachedContentCreationData content, bool useBetaApi=true)
 Creates a new GeminiCachedContentCreateRequest.
 
string GetUtf8EncodedData ()
 Converts the request object to a UTF-8 encoded string.
Returns
The string data.

 

Public Attributes

GeminiCachedContentCreationData Content
 The content to be cached.
 
string ApiVersion
 The API version to use.
 

Properties

string ContentType [get]
 The MIME type of the request content.
 
- Properties inherited from Uralstech.UGemini.IGeminiPostRequest

Detailed Description

Creates a GeminiCachedContent resource. Response type is GeminiCachedContent.

Only available in the beta API.

Constructor & Destructor Documentation

◆ GeminiCachedContentCreateRequest()

Uralstech.UGemini.Models.Caching.GeminiCachedContentCreateRequest.GeminiCachedContentCreateRequest ( GeminiCachedContentCreationData content,
bool useBetaApi = true )

Creates a new GeminiCachedContentCreateRequest.

Only available in the beta API.

Parameters
contentThe content to cache.
useBetaApiShould the request use the Beta API?

Member Function Documentation

◆ GetEndpointUri()

string Uralstech.UGemini.Models.Caching.GeminiCachedContentCreateRequest.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.

◆ GetUtf8EncodedData()

string Uralstech.UGemini.Models.Caching.GeminiCachedContentCreateRequest.GetUtf8EncodedData ( )

Converts the request object to a UTF-8 encoded string.

Returns
The string data.

Implements Uralstech.UGemini.IGeminiPostRequest.

Property Documentation

◆ ContentType

string Uralstech.UGemini.Models.Caching.GeminiCachedContentCreateRequest.ContentType
get

The MIME type of the request content.

Implements Uralstech.UGemini.IGeminiPostRequest.


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