UGemini 2.0.1
A C# wrapper for the Google Gemini API.
Loading...
Searching...
No Matches
Uralstech.UGemini.FileAPI.GeminiFileGetRequest Class Reference

Requests metadata for an existing file. Return type is GeminiFile. More...

Inheritance diagram for Uralstech.UGemini.FileAPI.GeminiFileGetRequest:
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.

 
 GeminiFileGetRequest (string fileNameOrId, bool useBetaApi=true)
 Creates a new GeminiFileGetRequest.
 

Public Attributes

string ApiVersion
 The API version to use.
 
string FileId
 The ID of the file to get.
 

Detailed Description

Requests metadata for an existing file. Return type is GeminiFile.

Only available in the beta API.

Constructor & Destructor Documentation

◆ GeminiFileGetRequest()

Uralstech.UGemini.FileAPI.GeminiFileGetRequest.GeminiFileGetRequest ( string fileNameOrId,
bool useBetaApi = true )

Creates a new GeminiFileGetRequest.

Only available in the beta API.

Parameters
fileNameOrIdThe name (format 'files/{fileId}') or ID of the file to get.
useBetaApiShould the request use the Beta API?

Member Function Documentation

◆ GetEndpointUri()

string Uralstech.UGemini.FileAPI.GeminiFileGetRequest.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.


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