Class GeminiFileDeleteRequest
Requests the deletion of a file.
public class GeminiFileDeleteRequest : IGeminiDeleteRequest, IGeminiRequest
- Inheritance
-
objectGeminiFileDeleteRequest
- Implements
- Extension Methods
Remarks
Only available in the beta API.
Constructors
GeminiFileDeleteRequest(string, bool)
Creates a new GeminiFileDeleteRequest.
public GeminiFileDeleteRequest(string fileNameOrId, bool useBetaApi = true)
Parameters
fileNameOrIdstringThe name (format 'files/{fileId}') or ID of the file to delete.
useBetaApiboolShould the request use the Beta API?
Remarks
Only available in the beta API.
Fields
ApiVersion
The API version to use.
public string ApiVersion
Field Value
- string
FileId
The ID of the file to delete.
public string FileId
Field Value
- string
Properties
AuthMethod
The preferred authentication method.
public GeminiAuthMethod AuthMethod { get; set; }
Property Value
OAuthAccessToken
The OAuth access token to authenticate the request, if using OAuthAccessToken as AuthMethod.
public string OAuthAccessToken { get; set; }
Property Value
- string
Methods
GetEndpointUri(GeminiRequestMetadata)
Gets the URI to the API endpoint.
public string GetEndpointUri(GeminiRequestMetadata metadata)
Parameters
metadataGeminiRequestMetadataThe metadata of the request to be carried out on the URI.
Returns
- string
The URI.