Class FilesResource.ListRequest
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
Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency.
public virtual string Corpora { get; set; }
Property Value
Corpus
The source of files to list. Deprecated: use 'corpora' instead.
public virtual FilesResource.ListRequest.CorpusEnum? Corpus { get; set; }
Property Value
DriveId
ID of the shared drive to search.
public virtual string DriveId { get; set; }
Property Value
HttpMethod
Gets the HTTP method.
public override string HttpMethod { get; }
Property Value
IncludeItemsFromAllDrives
Whether both My Drive and shared drive items should be included in results.
public virtual bool? IncludeItemsFromAllDrives { get; set; }
Property Value
- bool?
IncludePermissionsForView
Specifies which additional view's permissions to include in the response. Only 'published' is supported.
public virtual string IncludePermissionsForView { get; set; }
Property Value
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
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
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
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
RestPath
Gets the REST path.
public override string RestPath { get; }
Property Value
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
SupportsAllDrives
Whether the requesting application supports both My Drives and 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
Methods
InitParameters()
Initializes List parameter list.
protected override void InitParameters()