Table of Contents

Class GeminiFileListRequest

Requests metadata for all existing files. Return type is GeminiFileListResponse.

public class GeminiFileListRequest : IGeminiGetRequest, IGeminiRequest
Inheritance
GeminiFileListRequest
Implements
Extension Methods

Remarks

Only available in the beta API.

Constructors

GeminiFileListRequest(bool)

Creates a new GeminiFileListRequest.

public GeminiFileListRequest(bool useBetaApi = true)

Parameters

useBetaApi bool

Should 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

MaxResponseFiles

Maximum number of Files to return per page. If unspecified, defaults to 10. Maximum pageSize is 100.

public int MaxResponseFiles

Field Value

int

PageToken

A page token from a previous GeminiFileListRequest call.

public string PageToken

Field Value

string

Properties

AuthMethod

The preferred authentication method.

public GeminiAuthMethod AuthMethod { get; set; }

Property Value

GeminiAuthMethod

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

metadata GeminiRequestMetadata

The metadata of the request to be carried out on the URI.

Returns

string

The URI.