UGemini 2.0.1
A C# wrapper for the Google Gemini API.
|
Patches a GeminiCachedContent resource. Response type is GeminiCachedContent. More...
Public Member Functions | |||
string | GetEndpointUri (GeminiRequestMetadata metadata) | ||
Gets the URI to the API endpoint.
| |||
GeminiCachedContentPatchRequest (GeminiCachedContentPatchData patch, string cachedContentIdOrName, bool useBetaApi=true) | |||
Creates a new GeminiCachedContentPatchRequest. | |||
string | GetUtf8EncodedData () | ||
Converts the request object to a UTF-8 encoded string.
| |||
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 |
Patches a GeminiCachedContent resource. Response type is GeminiCachedContent.
Only available in the beta API.
Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchRequest.GeminiCachedContentPatchRequest | ( | GeminiCachedContentPatchData | patch, |
string | cachedContentIdOrName, | ||
bool | useBetaApi = true ) |
Creates a new GeminiCachedContentPatchRequest.
Only available in the beta API.
patch | The patch data. |
cachedContentIdOrName | The ID or name (format cachedContents/{contentId}) of the cached content to patch. |
useBetaApi | Should the request use the Beta API? |
string Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchRequest.GetEndpointUri | ( | GeminiRequestMetadata | metadata | ) |
Gets the URI to the API endpoint.
metadata | The metadata of the request to be carried out on the URI. |
Implements Uralstech.UGemini.IGeminiRequest.
string Uralstech.UGemini.Models.Caching.GeminiCachedContentPatchRequest.GetUtf8EncodedData | ( | ) |
Converts the request object to a UTF-8 encoded string.
Implements Uralstech.UGemini.IGeminiPatchRequest.
|
get |
The MIME type of the request content.
Implements Uralstech.UGemini.IGeminiPatchRequest.