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

Requests the deletion of a file. More...

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

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

Public Attributes

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

Detailed Description

Requests the deletion of a file.

Only available in the beta API.

Constructor & Destructor Documentation

◆ GeminiFileDeleteRequest()

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

Creates a new GeminiFileDeleteRequest.

Only available in the beta API.

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

Member Function Documentation

◆ GetEndpointUri()

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