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

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

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

 
 GeminiCachedContentPatchRequest (GeminiCachedContentPatchData patch, string cachedContentIdOrName, bool useBetaApi=true)
 Creates a new GeminiCachedContentPatchRequest.
 
string GetUtf8EncodedData ()
 Converts the request object to a UTF-8 encoded string.
Returns
The string data.

 

Public Attributes

GeminiCachedContentPatchData Patch
 The patch data.
 
string ContentId
 The ID of the cached content.
 
string ApiVersion
 The API version to use.
 

Properties

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

Detailed Description

Patches a GeminiCachedContent resource. Response type is GeminiCachedContent.

Only available in the beta API.

Constructor & Destructor Documentation

◆ GeminiCachedContentPatchRequest()

Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchRequest.GeminiCachedContentPatchRequest ( GeminiCachedContentPatchData patch,
string cachedContentIdOrName,
bool useBetaApi = true )

Creates a new GeminiCachedContentPatchRequest.

Only available in the beta API.

Parameters
patchThe patch data.
cachedContentIdOrNameThe ID or name (format cachedContents/{contentId}) of the cached content to patch.
useBetaApiShould the request use the Beta API?

Member Function Documentation

◆ GetEndpointUri()

string Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchRequest.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.GeminiCachedContentPatchRequest.GetUtf8EncodedData ( )

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

Returns
The string data.

Implements Uralstech.UGemini.IGeminiPatchRequest.

Property Documentation

◆ ContentType

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

The MIME type of the request content.

Implements Uralstech.UGemini.IGeminiPatchRequest.


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