Table of Contents

Class FilesResource.ListRequest

Namespace
Google.Apis.Drive.v3
Assembly
Google.Apis.Drive.v3.dll

Lists or searches files.

public class FilesResource.ListRequest : DriveBaseServiceRequest<FileList>
Inheritance
FilesResource.ListRequest
Inherited Members

Constructors

ListRequest(IClientService)

Constructs a new List request.

public ListRequest(IClientService service)

Parameters

service IClientService

Properties

Corpora

Bodies of items (files/documents) to which the query applies. Supported bodies are 'user', 'domain', 'drive' and 'allDrives'. Prefer 'user' or 'drive' to 'allDrives' for efficiency.

public virtual string Corpora { get; set; }

Property Value

string

Corpus

The source of files to list. Deprecated: use 'corpora' instead.

public virtual FilesResource.ListRequest.CorpusEnum? Corpus { get; set; }

Property Value

FilesResource.ListRequest.CorpusEnum?

DriveId

ID of the shared drive to search.

public virtual string DriveId { get; set; }

Property Value

string

HttpMethod

Gets the HTTP method.

public override string HttpMethod { get; }

Property Value

string

IncludeItemsFromAllDrives

Deprecated - Whether both My Drive and shared drive items should be included in results. This parameter will only be effective until June 1, 2020. Afterwards shared drive items will be included in the results.

public virtual bool? IncludeItemsFromAllDrives { get; set; }

Property Value

bool?

IncludeTeamDriveItems

Deprecated use includeItemsFromAllDrives instead.

public virtual bool? IncludeTeamDriveItems { get; set; }

Property Value

bool?

MethodName

Gets the method name.

public override string MethodName { get; }

Property Value

string

OrderBy

A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored.

public virtual string OrderBy { get; set; }

Property Value

string

PageSize

The maximum number of files to return per page. Partial or empty result pages are possible even before the end of the files list has been reached.

public virtual int? PageSize { get; set; }

Property Value

int?

PageToken

The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.

public virtual string PageToken { get; set; }

Property Value

string

Q

A query for filtering the file results. See the "Search for Files" guide for supported syntax.

public virtual string Q { get; set; }

Property Value

string

RestPath

Gets the REST path.

public override string RestPath { get; }

Property Value

string

Spaces

A comma-separated list of spaces to query within the corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.

public virtual string Spaces { get; set; }

Property Value

string

SupportsAllDrives

Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.

public virtual bool? SupportsAllDrives { get; set; }

Property Value

bool?

SupportsTeamDrives

Deprecated use supportsAllDrives instead.

public virtual bool? SupportsTeamDrives { get; set; }

Property Value

bool?

TeamDriveId

Deprecated use driveId instead.

public virtual string TeamDriveId { get; set; }

Property Value

string

Methods

InitParameters()

Initializes List parameter list.

protected override void InitParameters()