mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-25 12:44:07 +01:00
1333 lines
45 KiB
HTML
1333 lines
45 KiB
HTML
<!DOCTYPE html>
|
|
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
|
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Create - drive v3.0.0+20220225</title>
|
|
|
|
|
|
|
|
<link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
|
|
|
|
<link rel="stylesheet" href="../css/theme.css" type="text/css" />
|
|
<link rel="stylesheet" href="../css/theme_extra.css" type="text/css" />
|
|
<link rel="stylesheet" href="../css/highlight.css">
|
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
|
|
<script type="text/javascript" src="../js/highlight.pack.js"></script>
|
|
<script src="../js/theme.js"></script>
|
|
|
|
<style>
|
|
body {font-size: 90%;}
|
|
pre, code {font-size: 100%;}
|
|
h3, h4, h5, h6 {color: #2980b9; font-weight: 300}
|
|
</style>
|
|
</head>
|
|
|
|
<body class="wy-body-for-nav" role="document">
|
|
|
|
<div class="wy-grid-for-nav">
|
|
|
|
|
|
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
|
|
<div class="wy-side-nav-search">
|
|
<a href=".." class="icon icon-home"> drive v3.0.0+20220225</a>
|
|
|
|
</div>
|
|
|
|
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
|
<ul class="current">
|
|
|
|
|
|
<span>About</span>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../about_get">Get</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<span>Changes</span>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../changes_get-start-page-token">Get Start Page Token</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../changes_list">List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../changes_watch">Watch</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<span>Channels</span>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../channels_stop">Stop</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<span>Comments</span>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../comments_create">Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../comments_delete">Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../comments_get">Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../comments_list">List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../comments_update">Update</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<span>Drives</span>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../drives_create">Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../drives_delete">Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../drives_get">Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../drives_hide">Hide</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../drives_list">List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../drives_unhide">Unhide</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../drives_update">Update</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<span>Files</span>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../files_copy">Copy</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 current">
|
|
<a class="current" href=".">Create</a>
|
|
|
|
<ul>
|
|
|
|
<li class="toctree-l2"><a href="#scopes">Scopes</a></li>
|
|
|
|
|
|
<li class="toctree-l2"><a href="#required-request-value">Required Request Value</a></li>
|
|
|
|
<li><a class="toctree-l3" href="#about-cursors">About Cursors</a></li>
|
|
|
|
|
|
<li class="toctree-l2"><a href="#required-upload-flags">Required Upload Flags</a></li>
|
|
|
|
|
|
<li class="toctree-l2"><a href="#optional-output-flags">Optional Output Flags</a></li>
|
|
|
|
|
|
<li class="toctree-l2"><a href="#optional-method-properties">Optional Method Properties</a></li>
|
|
|
|
|
|
<li class="toctree-l2"><a href="#optional-general-properties">Optional General Properties</a></li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../files_delete">Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../files_empty-trash">Empty Trash</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../files_export">Export</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../files_generate-ids">Generate Ids</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../files_get">Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../files_list">List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../files_update">Update</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../files_watch">Watch</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<span>Permissions</span>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../permissions_create">Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../permissions_delete">Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../permissions_get">Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../permissions_list">List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../permissions_update">Update</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<span>Replies</span>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../replies_create">Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../replies_delete">Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../replies_get">Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../replies_list">List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../replies_update">Update</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<span>Revisions</span>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../revisions_delete">Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../revisions_get">Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../revisions_list">List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../revisions_update">Update</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<span>Teamdrives</span>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../teamdrives_create">Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../teamdrives_delete">Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../teamdrives_get">Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../teamdrives_list">List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../teamdrives_update">Update</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
|
|
|
|
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
|
<i data-toggle="wy-nav-top" class="icon icon-reorder"></i>
|
|
<a href=".."></a>
|
|
</nav>
|
|
|
|
|
|
<div class="wy-nav-content">
|
|
<div class="rst-content">
|
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
|
<ul class="wy-breadcrumbs">
|
|
<li><a href="..">Docs</a> »</li>
|
|
<li>Create</li>
|
|
<li class="wy-breadcrumbs-aside">
|
|
|
|
|
|
<a href="https://github.com/Byron/google-apis-rs/tree/main/gen/drive3-cli" class="icon icon-github"> Edit on GitHub</a>
|
|
|
|
|
|
</li>
|
|
</ul>
|
|
<hr/>
|
|
</div>
|
|
<div role="main">
|
|
<div class="section">
|
|
<p>Creates a new file.</p>
|
|
<h1 id="scopes">Scopes</h1>
|
|
<p>You will need authorization for at least one of the following scopes to make a valid call:</p>
|
|
<ul>
|
|
<li><em>https://www.googleapis.com/auth/drive</em></li>
|
|
<li><em>https://www.googleapis.com/auth/drive.appdata</em></li>
|
|
<li><em>https://www.googleapis.com/auth/drive.file</em></li>
|
|
</ul>
|
|
<p>If unset, the scope for this method defaults to <em>https://www.googleapis.com/auth/drive</em>.
|
|
You can set the scope for this method like this: <code>drive3 --scope <scope> files create ...</code></p>
|
|
<h1 id="required-request-value">Required Request Value</h1>
|
|
<p>The request value is a data-structure with various fields. Each field may be a simple scalar or another data-structure.
|
|
In the latter case it is advised to set the field-cursor to the data-structure's field to specify values more concisely.</p>
|
|
<p>For example, a structure like this:</p>
|
|
<pre><code>File:
|
|
app-properties: { string: string }
|
|
capabilities:
|
|
can-accept-ownership: boolean
|
|
can-add-children: boolean
|
|
can-add-folder-from-another-drive: boolean
|
|
can-add-my-drive-parent: boolean
|
|
can-change-copy-requires-writer-permission: boolean
|
|
can-change-security-update-enabled: boolean
|
|
can-change-viewers-can-copy-content: boolean
|
|
can-comment: boolean
|
|
can-copy: boolean
|
|
can-delete: boolean
|
|
can-delete-children: boolean
|
|
can-download: boolean
|
|
can-edit: boolean
|
|
can-list-children: boolean
|
|
can-modify-content: boolean
|
|
can-modify-content-restriction: boolean
|
|
can-move-children-out-of-drive: boolean
|
|
can-move-children-out-of-team-drive: boolean
|
|
can-move-children-within-drive: boolean
|
|
can-move-children-within-team-drive: boolean
|
|
can-move-item-into-team-drive: boolean
|
|
can-move-item-out-of-drive: boolean
|
|
can-move-item-out-of-team-drive: boolean
|
|
can-move-item-within-drive: boolean
|
|
can-move-item-within-team-drive: boolean
|
|
can-move-team-drive-item: boolean
|
|
can-read-drive: boolean
|
|
can-read-revisions: boolean
|
|
can-read-team-drive: boolean
|
|
can-remove-children: boolean
|
|
can-remove-my-drive-parent: boolean
|
|
can-rename: boolean
|
|
can-share: boolean
|
|
can-trash: boolean
|
|
can-trash-children: boolean
|
|
can-untrash: boolean
|
|
content-hints:
|
|
indexable-text: string
|
|
thumbnail:
|
|
image: string
|
|
mime-type: string
|
|
copy-requires-writer-permission: boolean
|
|
created-time: string
|
|
description: string
|
|
drive-id: string
|
|
explicitly-trashed: boolean
|
|
export-links: { string: string }
|
|
file-extension: string
|
|
folder-color-rgb: string
|
|
full-file-extension: string
|
|
has-augmented-permissions: boolean
|
|
has-thumbnail: boolean
|
|
head-revision-id: string
|
|
icon-link: string
|
|
id: string
|
|
image-media-metadata:
|
|
aperture: number
|
|
camera-make: string
|
|
camera-model: string
|
|
color-space: string
|
|
exposure-bias: number
|
|
exposure-mode: string
|
|
exposure-time: number
|
|
flash-used: boolean
|
|
focal-length: number
|
|
height: integer
|
|
iso-speed: integer
|
|
lens: string
|
|
location:
|
|
altitude: number
|
|
latitude: number
|
|
longitude: number
|
|
max-aperture-value: number
|
|
metering-mode: string
|
|
rotation: integer
|
|
sensor: string
|
|
subject-distance: integer
|
|
time: string
|
|
white-balance: string
|
|
width: integer
|
|
is-app-authorized: boolean
|
|
kind: string
|
|
last-modifying-user:
|
|
display-name: string
|
|
email-address: string
|
|
kind: string
|
|
me: boolean
|
|
permission-id: string
|
|
photo-link: string
|
|
link-share-metadata:
|
|
security-update-eligible: boolean
|
|
security-update-enabled: boolean
|
|
md5-checksum: string
|
|
mime-type: string
|
|
modified-by-me: boolean
|
|
modified-by-me-time: string
|
|
modified-time: string
|
|
name: string
|
|
original-filename: string
|
|
owned-by-me: boolean
|
|
parents: [string]
|
|
permission-ids: [string]
|
|
properties: { string: string }
|
|
quota-bytes-used: string
|
|
resource-key: string
|
|
shared: boolean
|
|
shared-with-me-time: string
|
|
sharing-user:
|
|
display-name: string
|
|
email-address: string
|
|
kind: string
|
|
me: boolean
|
|
permission-id: string
|
|
photo-link: string
|
|
shortcut-details:
|
|
target-id: string
|
|
target-mime-type: string
|
|
target-resource-key: string
|
|
size: string
|
|
spaces: [string]
|
|
starred: boolean
|
|
team-drive-id: string
|
|
thumbnail-link: string
|
|
thumbnail-version: string
|
|
trashed: boolean
|
|
trashed-time: string
|
|
trashing-user:
|
|
display-name: string
|
|
email-address: string
|
|
kind: string
|
|
me: boolean
|
|
permission-id: string
|
|
photo-link: string
|
|
version: string
|
|
video-media-metadata:
|
|
duration-millis: string
|
|
height: integer
|
|
width: integer
|
|
viewed-by-me: boolean
|
|
viewed-by-me-time: string
|
|
viewers-can-copy-content: boolean
|
|
web-content-link: string
|
|
web-view-link: string
|
|
writers-can-share: boolean
|
|
|
|
</code></pre>
|
|
|
|
<p>can be set completely with the following arguments which are assumed to be executed in the given order. Note how the cursor position is adjusted to the respective structures, allowing simple field names to be used most of the time.</p>
|
|
<ul>
|
|
<li><code>-r . app-properties=key=aliquyam</code><ul>
|
|
<li>A collection of arbitrary key-value pairs which are private to the requesting app.
|
|
Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.</li>
|
|
<li>the value will be associated with the given <code>key</code></li>
|
|
</ul>
|
|
</li>
|
|
<li><code>capabilities can-accept-ownership=false</code><ul>
|
|
<li>Whether the current user is the pending owner of the file. Not populated for shared drive files.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-add-children=true</code><ul>
|
|
<li>Whether the current user can add children to this folder. This is always false when the item is not a folder.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-add-folder-from-another-drive=true</code><ul>
|
|
<li>Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-add-my-drive-parent=true</code><ul>
|
|
<li>Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-change-copy-requires-writer-permission=true</code><ul>
|
|
<li>Whether the current user can change the copyRequiresWriterPermission restriction of this file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-change-security-update-enabled=false</code><ul>
|
|
<li>Whether the current user can change the securityUpdateEnabled field on link share metadata.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-change-viewers-can-copy-content=true</code><ul>
|
|
<li>Deprecated</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-comment=false</code><ul>
|
|
<li>Whether the current user can comment on this file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-copy=false</code><ul>
|
|
<li>Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-delete=false</code><ul>
|
|
<li>Whether the current user can delete this file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-delete-children=false</code><ul>
|
|
<li>Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-download=true</code><ul>
|
|
<li>Whether the current user can download this file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-edit=true</code><ul>
|
|
<li>Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-list-children=true</code><ul>
|
|
<li>Whether the current user can list the children of this folder. This is always false when the item is not a folder.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-modify-content=true</code><ul>
|
|
<li>Whether the current user can modify the content of this file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-modify-content-restriction=true</code><ul>
|
|
<li>Whether the current user can modify restrictions on content of this file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-move-children-out-of-drive=false</code><ul>
|
|
<li>Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-move-children-out-of-team-drive=false</code><ul>
|
|
<li>Deprecated - use canMoveChildrenOutOfDrive instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-move-children-within-drive=true</code><ul>
|
|
<li>Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail depending on the current user's access to the child and to the destination folder.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-move-children-within-team-drive=false</code><ul>
|
|
<li>Deprecated - use canMoveChildrenWithinDrive instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-move-item-into-team-drive=false</code><ul>
|
|
<li>Deprecated - use canMoveItemOutOfDrive instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-move-item-out-of-drive=false</code><ul>
|
|
<li>Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-move-item-out-of-team-drive=true</code><ul>
|
|
<li>Deprecated - use canMoveItemOutOfDrive instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-move-item-within-drive=false</code><ul>
|
|
<li>Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added and the parent that is being removed.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-move-item-within-team-drive=false</code><ul>
|
|
<li>Deprecated - use canMoveItemWithinDrive instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-move-team-drive-item=false</code><ul>
|
|
<li>Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-read-drive=true</code><ul>
|
|
<li>Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-read-revisions=false</code><ul>
|
|
<li>Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-read-team-drive=false</code><ul>
|
|
<li>Deprecated - use canReadDrive instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-remove-children=false</code><ul>
|
|
<li>Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-remove-my-drive-parent=false</code><ul>
|
|
<li>Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-rename=true</code><ul>
|
|
<li>Whether the current user can rename this file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-share=false</code><ul>
|
|
<li>Whether the current user can modify the sharing settings for this file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-trash=true</code><ul>
|
|
<li>Whether the current user can move this file to trash.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-trash-children=true</code><ul>
|
|
<li>Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>can-untrash=false</code></p>
|
|
<ul>
|
|
<li>Whether the current user can restore this file from trash.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..content-hints indexable-text=sea</code></p>
|
|
<ul>
|
|
<li>Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>thumbnail image=duo</code><ul>
|
|
<li>The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>mime-type=sea</code></p>
|
|
<ul>
|
|
<li>The MIME type of the thumbnail.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>... copy-requires-writer-permission=true</code></p>
|
|
<ul>
|
|
<li>Whether the options to copy, print, or download this file, should be disabled for readers and commenters.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>created-time=sadipscing</code><ul>
|
|
<li>The time at which the file was created (RFC 3339 date-time).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>description=no</code><ul>
|
|
<li>A short description of the file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>drive-id=tempor</code><ul>
|
|
<li>ID of the shared drive the file resides in. Only populated for items in shared drives.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>explicitly-trashed=true</code><ul>
|
|
<li>Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>export-links=key=sea</code><ul>
|
|
<li>Links for exporting Docs Editors files to specific formats.</li>
|
|
<li>the value will be associated with the given <code>key</code></li>
|
|
</ul>
|
|
</li>
|
|
<li><code>file-extension=sit</code><ul>
|
|
<li>The final component of fullFileExtension. This is only available for files with binary content in Google Drive.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>folder-color-rgb=amet.</code><ul>
|
|
<li>The color for a folder or shortcut to a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource.
|
|
If an unsupported color is specified, the closest color in the palette will be used instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>full-file-extension=ipsum</code><ul>
|
|
<li>The full file extension extracted from the name field. May contain multiple concatenated extensions, such as "tar.gz". This is only available for files with binary content in Google Drive.
|
|
This is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>has-augmented-permissions=true</code><ul>
|
|
<li>Whether there are permissions directly on this file. This field is only populated for items in shared drives.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>has-thumbnail=false</code><ul>
|
|
<li>Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>head-revision-id=invidunt</code><ul>
|
|
<li>The ID of the file's head revision. This is currently only available for files with binary content in Google Drive.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>icon-link=magna</code><ul>
|
|
<li>A static, unauthenticated link to the file's icon.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>id=sit</code><ul>
|
|
<li>The ID of the file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>image-media-metadata aperture=0.6968026380973047</code><ul>
|
|
<li>The aperture used to create the photo (f-number).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>camera-make=elitr</code><ul>
|
|
<li>The make of the camera used to create the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>camera-model=ipsum</code><ul>
|
|
<li>The model of the camera used to create the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>color-space=kasd</code><ul>
|
|
<li>The color space of the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>exposure-bias=0.5286189868919839</code><ul>
|
|
<li>The exposure bias of the photo (APEX value).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>exposure-mode=amet</code><ul>
|
|
<li>The exposure mode used to create the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>exposure-time=0.8008723884745739</code><ul>
|
|
<li>The length of the exposure, in seconds.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>flash-used=false</code><ul>
|
|
<li>Whether a flash was used to create the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>focal-length=0.9802970412672563</code><ul>
|
|
<li>The focal length used to create the photo, in millimeters.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>height=5</code><ul>
|
|
<li>The height of the image in pixels.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>iso-speed=86</code><ul>
|
|
<li>The ISO speed used to create the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>lens=accusam</code><ul>
|
|
<li>The lens used to create the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>location altitude=0.969930868104311</code><ul>
|
|
<li>The altitude stored in the image.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>latitude=0.7209825773274942</code><ul>
|
|
<li>The latitude stored in the image.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>longitude=0.08239402616053437</code></p>
|
|
<ul>
|
|
<li>The longitude stored in the image.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. max-aperture-value=0.3213733553672683</code></p>
|
|
<ul>
|
|
<li>The smallest f-number of the lens at the focal length used to create the photo (APEX value).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>metering-mode=dolore</code><ul>
|
|
<li>The metering mode used to create the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>rotation=78</code><ul>
|
|
<li>The number of clockwise 90 degree rotations applied from the image's original orientation.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>sensor=elitr</code><ul>
|
|
<li>The type of sensor used to create the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>subject-distance=71</code><ul>
|
|
<li>The distance to the subject of the photo, in meters.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>time=labore</code><ul>
|
|
<li>The date and time the photo was taken (EXIF DateTime).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>white-balance=et</code><ul>
|
|
<li>The white balance mode used to create the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>width=11</code></p>
|
|
<ul>
|
|
<li>The width of the image in pixels.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. is-app-authorized=true</code></p>
|
|
<ul>
|
|
<li>Whether the file was created or opened by the requesting app.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>kind=at</code><ul>
|
|
<li>Identifies what kind of resource this is. Value: the fixed string "drive#file".</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>last-modifying-user display-name=stet</code><ul>
|
|
<li>A plain text displayable name for this user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>email-address=sit</code><ul>
|
|
<li>The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>kind=ipsum</code><ul>
|
|
<li>Identifies what kind of resource this is. Value: the fixed string "drive#user".</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>me=true</code><ul>
|
|
<li>Whether this user is the requesting user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>permission-id=amet</code><ul>
|
|
<li>The user's ID as visible in Permission resources.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>photo-link=magna</code></p>
|
|
<ul>
|
|
<li>A link to the user's profile photo, if available.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..link-share-metadata security-update-eligible=false</code></p>
|
|
<ul>
|
|
<li>Whether the file is eligible for security update.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>security-update-enabled=false</code></p>
|
|
<ul>
|
|
<li>Whether the security update is enabled for this file.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. md5-checksum=et</code></p>
|
|
<ul>
|
|
<li>The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>mime-type=et</code><ul>
|
|
<li>The MIME type of the file.
|
|
Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
|
|
If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>modified-by-me=true</code><ul>
|
|
<li>Whether the file has been modified by this user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>modified-by-me-time=erat</code><ul>
|
|
<li>The last time the file was modified by the user (RFC 3339 date-time).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>modified-time=dolore</code><ul>
|
|
<li>The last time the file was modified by anyone (RFC 3339 date-time).
|
|
Note that setting modifiedTime will also update modifiedByMeTime for the user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>name=vero</code><ul>
|
|
<li>The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the name is constant.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>original-filename=ea</code><ul>
|
|
<li>The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Google Drive.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>owned-by-me=true</code><ul>
|
|
<li>Whether the user owns the file. Not populated for items in shared drives.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>parents=amet.</code><ul>
|
|
<li>The IDs of the parent folders which contain the file.
|
|
If not specified as part of a create request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.</li>
|
|
<li>Each invocation of this argument appends the given value to the array.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>permission-ids=eirmod</code><ul>
|
|
<li>List of permission IDs for users with access to this file.</li>
|
|
<li>Each invocation of this argument appends the given value to the array.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>properties=key=sanctus</code><ul>
|
|
<li>A collection of arbitrary key-value pairs which are visible to all apps.
|
|
Entries with null values are cleared in update and copy requests.</li>
|
|
<li>the value will be associated with the given <code>key</code></li>
|
|
</ul>
|
|
</li>
|
|
<li><code>quota-bytes-used=sed</code><ul>
|
|
<li>The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>resource-key=dolor</code><ul>
|
|
<li>A key needed to access the item via a shared link.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>shared=false</code><ul>
|
|
<li>Whether the file has been shared. Not populated for items in shared drives.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>shared-with-me-time=erat</code><ul>
|
|
<li>The time at which the file was shared with the user, if applicable (RFC 3339 date-time).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>sharing-user display-name=eos</code><ul>
|
|
<li>A plain text displayable name for this user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>email-address=nonumy</code><ul>
|
|
<li>The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>kind=ea</code><ul>
|
|
<li>Identifies what kind of resource this is. Value: the fixed string "drive#user".</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>me=false</code><ul>
|
|
<li>Whether this user is the requesting user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>permission-id=stet</code><ul>
|
|
<li>The user's ID as visible in Permission resources.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>photo-link=rebum.</code></p>
|
|
<ul>
|
|
<li>A link to the user's profile photo, if available.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..shortcut-details target-id=eirmod</code></p>
|
|
<ul>
|
|
<li>The ID of the file that this shortcut points to.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>target-mime-type=dolores</code><ul>
|
|
<li>The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>target-resource-key=aliquyam</code></p>
|
|
<ul>
|
|
<li>The ResourceKey for the target file.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. size=sanctus</code></p>
|
|
<ul>
|
|
<li>The size of the file's content in bytes. This is applicable to binary files in Google Drive and Google Docs files.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>spaces=invidunt</code><ul>
|
|
<li>The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.</li>
|
|
<li>Each invocation of this argument appends the given value to the array.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>starred=false</code><ul>
|
|
<li>Whether the user has starred the file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>team-drive-id=magna</code><ul>
|
|
<li>Deprecated - use driveId instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>thumbnail-link=no</code><ul>
|
|
<li>A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content. If the file isn't shared publicly, the URL returned in Files.thumbnailLink must be fetched using a credentialed request.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>thumbnail-version=gubergren</code><ul>
|
|
<li>The thumbnail version for use in thumbnail cache invalidation.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>trashed=false</code><ul>
|
|
<li>Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>trashed-time=aliquyam</code><ul>
|
|
<li>The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>trashing-user display-name=consetetur</code><ul>
|
|
<li>A plain text displayable name for this user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>email-address=ea</code><ul>
|
|
<li>The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>kind=lorem</code><ul>
|
|
<li>Identifies what kind of resource this is. Value: the fixed string "drive#user".</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>me=false</code><ul>
|
|
<li>Whether this user is the requesting user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>permission-id=justo</code><ul>
|
|
<li>The user's ID as visible in Permission resources.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>photo-link=lorem</code></p>
|
|
<ul>
|
|
<li>A link to the user's profile photo, if available.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. version=labore</code></p>
|
|
<ul>
|
|
<li>A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>video-media-metadata duration-millis=gubergren</code><ul>
|
|
<li>The duration of the video in milliseconds.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>height=25</code><ul>
|
|
<li>The height of the video in pixels.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>width=84</code></p>
|
|
<ul>
|
|
<li>The width of the video in pixels.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. viewed-by-me=false</code></p>
|
|
<ul>
|
|
<li>Whether the file has been viewed by this user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>viewed-by-me-time=sanctus</code><ul>
|
|
<li>The last time the file was viewed by the user (RFC 3339 date-time).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>viewers-can-copy-content=true</code><ul>
|
|
<li>Deprecated - use copyRequiresWriterPermission instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>web-content-link=et</code><ul>
|
|
<li>A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>web-view-link=dolore</code><ul>
|
|
<li>A link for opening the file in a relevant Google editor or viewer in a browser.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>writers-can-share=true</code><ul>
|
|
<li>Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives.</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h3 id="about-cursors">About Cursors</h3>
|
|
<p>The cursor position is key to comfortably set complex nested structures. The following rules apply:</p>
|
|
<ul>
|
|
<li>The cursor position is always set relative to the current one, unless the field name starts with the <code>.</code> character. Fields can be nested such as in <code>-r f.s.o</code> .</li>
|
|
<li>The cursor position is set relative to the top-level structure if it starts with <code>.</code>, e.g. <code>-r .s.s</code></li>
|
|
<li>You can also set nested fields without setting the cursor explicitly. For example, to set a value relative to the current cursor position, you would specify <code>-r struct.sub_struct=bar</code>.</li>
|
|
<li>You can move the cursor one level up by using <code>..</code>. Each additional <code>.</code> moves it up one additional level. E.g. <code>...</code> would go three levels up.</li>
|
|
</ul>
|
|
<h1 id="required-upload-flags">Required Upload Flags</h1>
|
|
<p>This method supports the upload of data, which <em>requires</em> all of the following flags to be set:</p>
|
|
<ul>
|
|
<li><strong>-u simple</strong><ul>
|
|
<li><strong>simple</strong> - Upload media all at once.</li>
|
|
</ul>
|
|
</li>
|
|
<li><strong>-f file</strong><ul>
|
|
<li>Path to file to upload. It must be seekable.</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<p>The following flag <em>may</em> be set: </p>
|
|
<ul>
|
|
<li><strong>-m mime</strong><ul>
|
|
<li>the mime type, like 'application/octet-stream', which is the default</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h1 id="optional-output-flags">Optional Output Flags</h1>
|
|
<p>The method's return value a JSON encoded structure, which will be written to standard output by default.</p>
|
|
<ul>
|
|
<li><strong>-o out</strong><ul>
|
|
<li><em>out</em> specifies the <em>destination</em> to which to write the server's result to.
|
|
It will be a JSON-encoded structure.
|
|
The <em>destination</em> may be <code>-</code> to indicate standard output, or a filepath that is to contain the received bytes.
|
|
If unset, it defaults to standard output.</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h1 id="optional-method-properties">Optional Method Properties</h1>
|
|
<p>You may set the following properties to further configure the call. Please note that <code>-p</code> is followed by one
|
|
or more key-value-pairs, and is called like this <code>-p k1=v1 k2=v2</code> even though the listing below repeats the
|
|
<code>-p</code> for completeness.</p>
|
|
<ul>
|
|
<li>
|
|
<p><strong>-p enforce-single-parent=boolean</strong></p>
|
|
<ul>
|
|
<li>Deprecated. Creating files in multiple folders is no longer supported.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p ignore-default-visibility=boolean</strong></p>
|
|
<ul>
|
|
<li>Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p include-permissions-for-view=string</strong></p>
|
|
<ul>
|
|
<li>Specifies which additional view's permissions to include in the response. Only 'published' is supported.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p keep-revision-forever=boolean</strong></p>
|
|
<ul>
|
|
<li>Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p ocr-language=string</strong></p>
|
|
<ul>
|
|
<li>A language hint for OCR processing during image import (ISO 639-1 code).</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p supports-all-drives=boolean</strong></p>
|
|
<ul>
|
|
<li>Whether the requesting application supports both My Drives and shared drives.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p supports-team-drives=boolean</strong></p>
|
|
<ul>
|
|
<li>Deprecated use supportsAllDrives instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p use-content-as-indexable-text=boolean</strong></p>
|
|
<ul>
|
|
<li>Whether to use the uploaded content as indexable text.</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h1 id="optional-general-properties">Optional General Properties</h1>
|
|
<p>The following properties can configure any call, and are not specific to this method.</p>
|
|
<ul>
|
|
<li>
|
|
<p><strong>-p alt=string</strong></p>
|
|
<ul>
|
|
<li>Data format for the response.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p fields=string</strong></p>
|
|
<ul>
|
|
<li>Selector specifying which fields to include in a partial response.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p key=string</strong></p>
|
|
<ul>
|
|
<li>API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p oauth-token=string</strong></p>
|
|
<ul>
|
|
<li>OAuth 2.0 token for the current user.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p pretty-print=boolean</strong></p>
|
|
<ul>
|
|
<li>Returns response with indentations and line breaks.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p quota-user=string</strong></p>
|
|
<ul>
|
|
<li>An opaque string that represents a user for quota purposes. Must not exceed 40 characters.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p user-ip=string</strong></p>
|
|
<ul>
|
|
<li>Deprecated. Please use quotaUser instead.</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
<footer>
|
|
|
|
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
|
|
|
<a href="../files_delete" class="btn btn-neutral float-right" title="Delete"/>Next <span class="icon icon-circle-arrow-right"></span></a>
|
|
|
|
|
|
<a href="../files_copy" class="btn btn-neutral" title="Copy"><span class="icon icon-circle-arrow-left"></span> Previous</a>
|
|
|
|
</div>
|
|
|
|
|
|
<hr/>
|
|
|
|
<div role="contentinfo">
|
|
<p>
|
|
<!-- Copyright etc -->
|
|
</p>
|
|
</div>
|
|
|
|
Built with <a href="http://www.mkdocs.org">MkDocs</a>, using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
|
|
</footer>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<div class="rst-versions" role="note" style="cursor: pointer">
|
|
<span class="rst-current-version" data-toggle="rst-current-version">
|
|
|
|
<a class="icon icon-github" style="float: left; color: #fcfcfc"> GitHub</a>
|
|
|
|
<span><a href="../files_copy" style="color: #fcfcfc;">« Previous</a></span>
|
|
<span style="margin-left: 15px"><a href="../files_delete" style="color: #fcfcfc">Next »</a></span>
|
|
</span>
|
|
</div>
|
|
</body>
|
|
</html> |