Module GdataDocumentsV3Service.QueryParameters

Query parameters used by the services.

type t = {
author : string;

Entry author. The service returns entries where the author name and/or email address match your query string.

category : string;

Category query filter. To do an OR between terms, use a pipe character (|), URL-encoded as %7C. For example: http://www.example.com/feeds?category=Fritz%7CLaurie returns entries that match either category. To do an AND between terms, use a comma character (,). For example: http://www.example.com/feeds?category=Fritz,Laurie returns entries that match both categories.

max_results : int;

Maximum number of results to be retrieved.

prettyprint : bool;

Returns an XML response with identations and line breaks. If prettyprint=true, the XML returned by the server will be human readable (pretty printed). Default: prettyprint=false.

published_min : GapiDate.t;

Lower bounds on the entry publication date. The bound is inclusive.

published_max : GapiDate.t;

Upper bounds on the entry publication date. The bound is exclusive.

q : string;

Full-text query string. When creating a query, list search terms separated by spaces, in the form q=term1 term2 term3. The service returns all entries that match all of the search terms (like using AND between terms). Like Google's web search, a service searches on complete words (and related words with the same stem), not substrings. To search for an exact phrase, enclose the phrase in quotation marks: q="exact phrase". To exclude entries that match a given term, use the form q=-term. The search is case-insensitive. Example: to search for all entries that contain the exact phrase "Elizabeth Bennet" and the word "Darcy" but don't contain the word "Austen", use the following query: q="Elizabeth Bennet" Darcy -Austen.

start_index : int;

1-based index of the first result to be retrieved. Note that this isn't a general cursoring mechanism. If you first send a query with start-index=1 and max-results=10 and then send another query with start-index=11 and max-results=10, the service cannot guarantee that the results are equivalent to start-index=1 and max-results=20, because insertions and deletions could have taken place in between the two queries.

strict : bool;

Strict query parameter checking. Set strict=true to verify that each of your query parameters are recognized by the service. An error will be returned if a parameter is not recognized. Default: strict=false.

updated_min : GapiDate.t;

Lower bounds on the entry update date. The bound is inclusive.

updated_max : GapiDate.t;

Upper bounds on the entry update date. The bound is exclusive.

title : string;

Specifies the search terms for the title of a document. This parameter used without title-exact will only submit partial queries, not exact queries.

title_exact : bool;

Specifies whether the title query should be taken as an exact string. Meaningless without title. Possible values are true and false. Note: Matches are case-insensitive. Default is false.

opened_min : GapiDate.t;

Lower bound on the last time a document was opened by the current user.

opened_max : GapiDate.t;

Upper bound on the last time a document was opened by the current user.

edited_min : GapiDate.t;

Lower bound on the last time a document was edited by the current user. This value corresponds to the <app:edited> value in the Atom entry, which represents changes to the document's content or metadata.

edited_max : GapiDate.t;

Upper bound on the last time a document was edited by the user. This value corresponds to the <app:edited> value in the Atom entry, which represents changes to the document's content or metadata.

owner : string;

Searches for documents with a specific owner. Use the email address of the owner. For example: owner="user\@gmail.com".

writer : string;

Searches for documents which can be written to by specific users. Use a single email address or a comma separated list of email addresses. For example: writer="user1\@gmail.com,user2\@example.com".

reader : string;

Searches for documents which can be read by specific users. Use a single email address or a comma separated list of email addresses. For example: reader="user1\@gmail.com,user2\@example.com".

showfolders : bool;

Specifies whether the query should return folders as well as documents. Default is false.

showdeleted : bool;

Specifies whether the query should return documents which are in the trash as well as other documents. Default is false.

showroot : bool;

Specifies whether the root collection should be shown as a parent of relevant resources. The showroot parameter does not cause the root collection to show up as a separate entry in feeds of collections.

ocr : bool;

Specifies whether to attempt OCR on a .jpg, .png, of .gif upload. Default is false.

ocr_language : string;

Hint at which language to use when performing OCR. Even while providing this parameter, if there is overwhelming evidence that a character or paragraph is of a certain language, the hint will not be applied in that case.

targetLanguage : string;

Specifies the language to translate a document into.

sourceLanguage : string;

Specifies the source language of the original document. Optional when using the translation service. If not provided, Google will attempt to auto-detect the source language.

delete : bool;

Specifies whether or to permanently delete a document when trashing it. Default is false, meaning a document is moved to the trash.

convert : bool;

Specifies whether or not a document-type arbitrary file upload should be converted into a native Google Doc. Optional when uploading a file. Default is true. This parameter has no effect on PDFs or arbitrary file uploads.

remaining_changestamps_first : int;

Providing the remaining-changestamps-first parameter causes the metadata feed to return the number of changestamps since the given changestamp, including the given changestamp. Thus, to get the number of changestamps since a given changestamp, clients must provide the last synced changestamp, plus one.

remaining_changestamps_limit : int;

This parameter gives an upper bound to the number of changes returned by the metadata feed.

expand_acl : bool;

Expands the ACL of each resource returned in the feed if set to true.

format : string;

By default, documents are exported as HTML. Use the format parameter to download documents in alternate formats.

exportFormat : string;

Old-style export format.

gid : string;

When requesting a CSV, TSV, PDF, or HTML file you may specify an additional (optional) parameter called gid which indicates which worksheet you wish to export (the index is 0 based, so gid=1 actually refers to the second worksheet on a given spreadsheet). If left unspecified, the first worksheet is exported for these formats. In the case of a PDF, the whole document is exported.

new_revision : bool;

Specifies whether to force a new revision to be created when updating a resource.

send_notification_emails : bool;

Specifies whether notify relevant users via email, when creating an ACL entry that shares a document or collection. Default is true.

include_profile_info : bool;

Specifies whether to add public profile information for the users if it is available. If available, the API adds a link to the primary public photo of the relevant user's Google account. This is requested by setting include-profile-info=true to any request that may return user information, including the changes feed, resources feed, ACL feed, etc. Default is false.

}
val author : (t, string) GapiLens.t
val category : (t, string) GapiLens.t
val max_results : (t, int) GapiLens.t
val prettyprint : (t, bool) GapiLens.t
val published_min : (tGapiDate.t) GapiLens.t
val published_max : (tGapiDate.t) GapiLens.t
val q : (t, string) GapiLens.t
val start_index : (t, int) GapiLens.t
val strict : (t, bool) GapiLens.t
val updated_min : (tGapiDate.t) GapiLens.t
val updated_max : (tGapiDate.t) GapiLens.t
val title : (t, string) GapiLens.t
val title_exact : (t, bool) GapiLens.t
val opened_min : (tGapiDate.t) GapiLens.t
val opened_max : (tGapiDate.t) GapiLens.t
val edited_min : (tGapiDate.t) GapiLens.t
val edited_max : (tGapiDate.t) GapiLens.t
val owner : (t, string) GapiLens.t
val writer : (t, string) GapiLens.t
val reader : (t, string) GapiLens.t
val showfolders : (t, bool) GapiLens.t
val showdeleted : (t, bool) GapiLens.t
val showroot : (t, bool) GapiLens.t
val ocr : (t, bool) GapiLens.t
val ocr_language : (t, string) GapiLens.t
val targetLanguage : (t, string) GapiLens.t
val sourceLanguage : (t, string) GapiLens.t
val delete : (t, bool) GapiLens.t
val convert : (t, bool) GapiLens.t
val remaining_changestamps_first : (t, int) GapiLens.t
val remaining_changestamps_limit : (t, int) GapiLens.t
val expand_acl : (t, bool) GapiLens.t
val format : (t, string) GapiLens.t
val exportFormat : (t, string) GapiLens.t
val gid : (t, string) GapiLens.t
val new_revision : (t, bool) GapiLens.t
val send_notification_emails : (t, bool) GapiLens.t
val include_profile_info : (t, bool) GapiLens.t
val default : t
val to_key_value_list : t -> (string * string) list
val to_query_parameters : t option -> (string * string) list option
val merge_parameters : ?⁠author:string -> ?⁠category:string -> ?⁠max_results:int -> ?⁠prettyprint:bool -> ?⁠published_min:GapiDate.t -> ?⁠published_max:GapiDate.t -> ?⁠q:string -> ?⁠start_index:int -> ?⁠strict:bool -> ?⁠updated_min:GapiDate.t -> ?⁠updated_max:GapiDate.t -> ?⁠title:string -> ?⁠title_exact:bool -> ?⁠opened_min:GapiDate.t -> ?⁠opened_max:GapiDate.t -> ?⁠edited_min:GapiDate.t -> ?⁠edited_max:GapiDate.t -> ?⁠owner:string -> ?⁠writer:string -> ?⁠reader:string -> ?⁠showfolders:bool -> ?⁠showdeleted:bool -> ?⁠showroot:bool -> ?⁠ocr:bool -> ?⁠ocr_language:string -> ?⁠targetLanguage:string -> ?⁠sourceLanguage:string -> ?⁠delete:bool -> ?⁠convert:bool -> ?⁠remaining_changestamps_first:int -> ?⁠remaining_changestamps_limit:int -> ?⁠expand_acl:bool -> ?⁠format:string -> ?⁠exportFormat:string -> ?⁠gid:string -> ?⁠new_revision:bool -> ?⁠send_notification_emails:bool -> ?⁠include_profile_info:bool -> unit -> t option