mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-25 12:44:07 +01:00
1217 lines
50 KiB
HTML
1217 lines
50 KiB
HTML
<!DOCTYPE html>
|
|
<html class="writer-html5" lang="en" >
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><link rel="canonical" href="http://byron.github.io/google-apis-rs/google-drive3-cli/files_create/" />
|
|
<link rel="shortcut icon" href="../img/favicon.ico" />
|
|
<title>Create - drive v5.0.4+20240227</title>
|
|
<link rel="stylesheet" href="../css/theme.css" />
|
|
<link rel="stylesheet" href="../css/theme_extra.css" />
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/github.min.css" />
|
|
|
|
<script>
|
|
// Current page data
|
|
var mkdocs_page_name = "Create";
|
|
var mkdocs_page_input_path = "files_create.md";
|
|
var mkdocs_page_url = "/google-apis-rs/google-drive3-cli/files_create/";
|
|
</script>
|
|
|
|
<script src="../js/jquery-3.6.0.min.js" defer></script>
|
|
<!--[if lt IE 9]>
|
|
<script src="../js/html5shiv.min.js"></script>
|
|
<![endif]-->
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/highlight.min.js"></script>
|
|
<script>hljs.initHighlightingOnLoad();</script>
|
|
</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-scroll">
|
|
<div class="wy-side-nav-search">
|
|
<a href=".." class="icon icon-home"> drive v5.0.4+20240227
|
|
</a><div role="search">
|
|
<form id ="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
|
<input type="text" name="q" placeholder="Search docs" title="Type search term here" />
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="..">Home</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">About</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="../about_get/">Get</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Apps</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="../apps_get/">Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../apps_list/">List</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Changes</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="../changes_get-start-page-token/">Get Start Page Token</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../changes_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../changes_watch/">Watch</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Channels</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="../channels_stop/">Stop</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Comments</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="../comments_create/">Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../comments_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../comments_get/">Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../comments_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../comments_update/">Update</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Drives</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="../drives_create/">Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../drives_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../drives_get/">Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../drives_hide/">Hide</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../drives_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../drives_unhide/">Unhide</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../drives_update/">Update</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Files</span></p>
|
|
<ul class="current">
|
|
<li class="toctree-l1"><a class="reference internal" href="../files_copy/">Copy</a>
|
|
</li>
|
|
<li class="toctree-l1 current"><a class="reference internal current" href="./">Create</a>
|
|
<ul class="current">
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../files_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../files_empty-trash/">Empty Trash</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../files_export/">Export</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../files_generate-ids/">Generate Ids</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../files_get/">Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../files_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../files_list-labels/">List Labels</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../files_modify-labels/">Modify Labels</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../files_update/">Update</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../files_watch/">Watch</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Permissions</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="../permissions_create/">Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../permissions_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../permissions_get/">Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../permissions_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../permissions_update/">Update</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Replies</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="../replies_create/">Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../replies_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../replies_get/">Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../replies_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../replies_update/">Update</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Revisions</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="../revisions_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../revisions_get/">Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../revisions_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../revisions_update/">Update</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Teamdrives</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="../teamdrives_create/">Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../teamdrives_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../teamdrives_get/">Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../teamdrives_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../teamdrives_update/">Update</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
|
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
|
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
|
<a href="..">drive v5.0.4+20240227</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=".." class="icon icon-home" alt="Docs"></a> »</li>
|
|
<li>Files »</li>
|
|
<li>Create</li>
|
|
<li class="wy-breadcrumbs-aside">
|
|
<a href="https://github.com/Byron/google-apis-rs/tree/main/gen/drive3-cli/edit/master/docs/files_create.md"
|
|
class="icon icon-github"> Edit on GitHub</a>
|
|
</li>
|
|
</ul>
|
|
<hr/>
|
|
</div>
|
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
|
<div class="section" itemprop="articleBody">
|
|
|
|
<p>Creates a new file. This method supports an <em>/upload</em> URI and accepts uploaded media with the following characteristics: - <em>Maximum file size:</em> 5,120 GB - <em>Accepted Media MIME types:</em><code>*/*</code> Note: Specify a valid MIME type, rather than the literal <code>*/*</code> value. The literal <code>*/*</code> is only used to indicate that any valid MIME type can be uploaded. For more information on uploading files, see <a href="/drive/api/guides/manage-uploads">Upload file data</a>. Apps creating shortcuts with <code>files.create</code> must specify the MIME type <code>application/vnd.google-apps.shortcut</code>. Apps should specify a file extension in the <code>name</code> property when inserting files with the API. For example, an operation to insert a JPEG file should specify something like <code>&#34;name&#34;: &#34;cat.jpg&#34;</code> in the metadata. Subsequent <code>GET</code> requests include the read-only <code>fileExtension</code> property populated with the extension originally specified in the <code>title</code> property. When a Google Drive user requests to download a file, or when the file is downloaded through the sync client, Drive builds a full filename (with extension) based on the title. In cases where the extension is missing, Drive attempts to determine the extension based on the file's MIME type.</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-modify-editor-content-restriction: boolean
|
|
can-modify-labels: boolean
|
|
can-modify-owner-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-labels: boolean
|
|
can-read-revisions: boolean
|
|
can-read-team-drive: boolean
|
|
can-remove-children: boolean
|
|
can-remove-content-restriction: 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
|
|
sha1-checksum: string
|
|
sha256-checksum: 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=ipsum</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=true</code><ul>
|
|
<li>Output only. 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=false</code><ul>
|
|
<li>Output only. 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=false</code><ul>
|
|
<li>Output only. 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=false</code><ul>
|
|
<li>Output only. 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>Output only. Whether the current user can change the <code>copyRequiresWriterPermission</code> restriction of this file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-change-security-update-enabled=false</code><ul>
|
|
<li>Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-change-viewers-can-copy-content=false</code><ul>
|
|
<li>Deprecated: Output only.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-comment=false</code><ul>
|
|
<li>Output only. Whether the current user can comment on this file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-copy=true</code><ul>
|
|
<li>Output only. 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>Output only. Whether the current user can delete this file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-delete-children=false</code><ul>
|
|
<li>Output only. 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=false</code><ul>
|
|
<li>Output only. Whether the current user can download this file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-edit=false</code><ul>
|
|
<li>Output only. 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 <code>canChangeCopyRequiresWriterPermission</code> or <code>canModifyContent</code>.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-list-children=true</code><ul>
|
|
<li>Output only. 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=false</code><ul>
|
|
<li>Output only. Whether the current user can modify the content of this file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-modify-content-restriction=true</code><ul>
|
|
<li>Deprecated: Output only. Use one of <code>canModifyEditorContentRestriction</code>, <code>canModifyOwnerContentRestriction</code> or <code>canRemoveContentRestriction</code>.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-modify-editor-content-restriction=true</code><ul>
|
|
<li>Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-modify-labels=false</code><ul>
|
|
<li>Output only. Whether the current user can modify the labels on the file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-modify-owner-content-restriction=true</code><ul>
|
|
<li>Output only. Whether the current user can add or modify content restrictions which are owner restricted.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-move-children-out-of-drive=true</code><ul>
|
|
<li>Output only. 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: Output only. Use <code>canMoveChildrenOutOfDrive</code> instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-move-children-within-drive=true</code><ul>
|
|
<li>Output only. 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=true</code><ul>
|
|
<li>Deprecated: Output only. Use <code>canMoveChildrenWithinDrive</code> instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-move-item-into-team-drive=true</code><ul>
|
|
<li>Deprecated: Output only. Use <code>canMoveItemOutOfDrive</code> instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-move-item-out-of-drive=false</code><ul>
|
|
<li>Output only. 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: Output only. Use <code>canMoveItemOutOfDrive</code> instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-move-item-within-drive=true</code><ul>
|
|
<li>Output only. 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: Output only. Use <code>canMoveItemWithinDrive</code> instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-move-team-drive-item=false</code><ul>
|
|
<li>Deprecated: Output only. Use <code>canMoveItemWithinDrive</code> or <code>canMoveItemOutOfDrive</code> instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-read-drive=false</code><ul>
|
|
<li>Output only. 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-labels=false</code><ul>
|
|
<li>Output only. Whether the current user can read the labels on the file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-read-revisions=true</code><ul>
|
|
<li>Output only. 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=true</code><ul>
|
|
<li>Deprecated: Output only. Use <code>canReadDrive</code> instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-remove-children=false</code><ul>
|
|
<li>Output only. 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 <code>canDeleteChildren</code> or <code>canTrashChildren</code> instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-remove-content-restriction=true</code><ul>
|
|
<li>Output only. Whether there is a content restriction on the file that can be removed by the current user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-remove-my-drive-parent=false</code><ul>
|
|
<li>Output only. 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=false</code><ul>
|
|
<li>Output only. Whether the current user can rename this file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-share=true</code><ul>
|
|
<li>Output only. Whether the current user can modify the sharing settings for this file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-trash=true</code><ul>
|
|
<li>Output only. Whether the current user can move this file to trash.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>can-trash-children=false</code><ul>
|
|
<li>Output only. 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=true</code></p>
|
|
<ul>
|
|
<li>Output only. Whether the current user can restore this file from trash.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..content-hints indexable-text=eos</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=dolore</code><ul>
|
|
<li>The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>mime-type=accusam</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=sed</code><ul>
|
|
<li>The time at which the file was created (RFC 3339 date-time).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>description=labore</code><ul>
|
|
<li>A short description of the file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>drive-id=et</code><ul>
|
|
<li>Output only. ID of the shared drive the file resides in. Only populated for items in shared drives.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>explicitly-trashed=false</code><ul>
|
|
<li>Output only. Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>export-links=key=sed</code><ul>
|
|
<li>Output only. 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=at</code><ul>
|
|
<li>Output only. The final component of <code>fullFileExtension</code>. This is only available for files with binary content in Google Drive.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>folder-color-rgb=stet</code><ul>
|
|
<li>The color for a folder or a shortcut to a folder as an RGB hex string. The supported colors are published in the <code>folderColorPalette</code> field of the About resource. If an unsupported color is specified, the closest color in the palette is used instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>full-file-extension=sit</code><ul>
|
|
<li>Output only. The full file extension extracted from the <code>name</code> 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 <code>name</code> 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>Output only. 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=true</code><ul>
|
|
<li>Output only. 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=amet</code><ul>
|
|
<li>Output only. 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>Output only. A static, unauthenticated link to the file's icon.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>id=magna</code><ul>
|
|
<li>The ID of the file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>image-media-metadata aperture=0.1076976450388556</code><ul>
|
|
<li>Output only. The aperture used to create the photo (f-number).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>camera-make=et</code><ul>
|
|
<li>Output only. The make of the camera used to create the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>camera-model=dolor</code><ul>
|
|
<li>Output only. The model of the camera used to create the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>color-space=erat</code><ul>
|
|
<li>Output only. The color space of the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>exposure-bias=0.13583098501970858</code><ul>
|
|
<li>Output only. The exposure bias of the photo (APEX value).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>exposure-mode=ea</code><ul>
|
|
<li>Output only. The exposure mode used to create the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>exposure-time=0.8228831907011258</code><ul>
|
|
<li>Output only. The length of the exposure, in seconds.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>flash-used=true</code><ul>
|
|
<li>Output only. Whether a flash was used to create the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>focal-length=0.4842987830849398</code><ul>
|
|
<li>Output only. The focal length used to create the photo, in millimeters.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>height=8</code><ul>
|
|
<li>Output only. The height of the image in pixels.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>iso-speed=47</code><ul>
|
|
<li>Output only. The ISO speed used to create the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>lens=et</code><ul>
|
|
<li>Output only. The lens used to create the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>location altitude=0.2158536848686471</code><ul>
|
|
<li>Output only. The altitude stored in the image.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>latitude=0.8242930367595328</code><ul>
|
|
<li>Output only. The latitude stored in the image.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>longitude=0.8778904115580979</code></p>
|
|
<ul>
|
|
<li>Output only. The longitude stored in the image.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. max-aperture-value=0.26872582587862837</code></p>
|
|
<ul>
|
|
<li>Output only. 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=aliquyam</code><ul>
|
|
<li>Output only. The metering mode used to create the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>rotation=10</code><ul>
|
|
<li>Output only. The number of clockwise 90 degree rotations applied from the image's original orientation.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>sensor=stet</code><ul>
|
|
<li>Output only. The type of sensor used to create the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>subject-distance=35</code><ul>
|
|
<li>Output only. The distance to the subject of the photo, in meters.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>time=eirmod</code><ul>
|
|
<li>Output only. The date and time the photo was taken (EXIF DateTime).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>white-balance=dolores</code><ul>
|
|
<li>Output only. The white balance mode used to create the photo.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>width=19</code></p>
|
|
<ul>
|
|
<li>Output only. The width of the image in pixels.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. is-app-authorized=false</code></p>
|
|
<ul>
|
|
<li>Output only. Whether the file was created or opened by the requesting app.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>kind=dolor</code><ul>
|
|
<li>Output only. Identifies what kind of resource this is. Value: the fixed string <code>&#34;drive#file&#34;</code>.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>last-modifying-user display-name=eos</code><ul>
|
|
<li>Output only. A plain text displayable name for this user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>email-address=magna</code><ul>
|
|
<li>Output only. 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=no</code><ul>
|
|
<li>Output only. Identifies what kind of resource this is. Value: the fixed string <code>&#34;drive#user&#34;</code>.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>me=false</code><ul>
|
|
<li>Output only. Whether this user is the requesting user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>permission-id=aliquyam</code><ul>
|
|
<li>Output only. The user's ID as visible in Permission resources.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>photo-link=consetetur</code></p>
|
|
<ul>
|
|
<li>Output only. 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>Output only. Whether the file is eligible for security update.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>security-update-enabled=false</code></p>
|
|
<ul>
|
|
<li>Output only. Whether the security update is enabled for this file.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. md5-checksum=justo</code></p>
|
|
<ul>
|
|
<li>Output only. 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=lorem</code><ul>
|
|
<li>The MIME type of the file. Google Drive attempts 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 is imported, if possible. The supported import formats are published in the About resource.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>modified-by-me=false</code><ul>
|
|
<li>Output only. Whether the file has been modified by this user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>modified-by-me-time=gubergren</code><ul>
|
|
<li>The last time the file was modified by the user (RFC 3339 date-time).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>modified-time=vero</code><ul>
|
|
<li>he 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=ea</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=sed</code><ul>
|
|
<li>The original filename of the uploaded content if available, or else the original value of the <code>name</code> 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>Output only. Whether the user owns the file. Not populated for items in shared drives.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>parents=et</code><ul>
|
|
<li>The IDs of the parent folders which contain the file. If not specified as part of a create request, the file is placed directly in the user's My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parents of the source file. Update requests must use the <code>addParents</code> and <code>removeParents</code> 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=dolore</code><ul>
|
|
<li>Output only. 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=voluptua.</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=sit</code><ul>
|
|
<li>Output only. The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with <code>keepForever</code> enabled.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>resource-key=sanctus</code><ul>
|
|
<li>Output only. A key needed to access the item via a shared link.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>sha1-checksum=ipsum</code><ul>
|
|
<li>Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>sha256-checksum=eirmod</code><ul>
|
|
<li>Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>shared=false</code><ul>
|
|
<li>Output only. Whether the file has been shared. Not populated for items in shared drives.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>shared-with-me-time=voluptua.</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=sea</code><ul>
|
|
<li>Output only. A plain text displayable name for this user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>email-address=ipsum</code><ul>
|
|
<li>Output only. 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=sea</code><ul>
|
|
<li>Output only. Identifies what kind of resource this is. Value: the fixed string <code>&#34;drive#user&#34;</code>.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>me=false</code><ul>
|
|
<li>Output only. Whether this user is the requesting user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>permission-id=gubergren</code><ul>
|
|
<li>Output only. The user's ID as visible in Permission resources.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>photo-link=dolore</code></p>
|
|
<ul>
|
|
<li>Output only. A link to the user's profile photo, if available.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..shortcut-details target-id=ea</code></p>
|
|
<ul>
|
|
<li>The ID of the file that this shortcut points to.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>target-mime-type=elitr</code><ul>
|
|
<li>Output only. 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=takimata</code></p>
|
|
<ul>
|
|
<li>Output only. The ResourceKey for the target file.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. size=duo</code></p>
|
|
<ul>
|
|
<li>Output only. Size in bytes of blobs and first party editor files. Won't be populated for files that have no size, like shortcuts and folders.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>spaces=tempor</code><ul>
|
|
<li>Output only. 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=true</code><ul>
|
|
<li>Whether the user has starred the file.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>team-drive-id=sed</code><ul>
|
|
<li>Deprecated: Output only. Use <code>driveId</code> instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>thumbnail-link=no</code><ul>
|
|
<li>Output only. 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 <code>Files.thumbnailLink</code> must be fetched using a credentialed request.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>thumbnail-version=stet</code><ul>
|
|
<li>Output only. The thumbnail version for use in thumbnail cache invalidation.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>trashed=true</code><ul>
|
|
<li>Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, and other users cannot see files in the owner's trash.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>trashed-time=clita</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>Output only. A plain text displayable name for this user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>email-address=dolores</code><ul>
|
|
<li>Output only. 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=sit</code><ul>
|
|
<li>Output only. Identifies what kind of resource this is. Value: the fixed string <code>&#34;drive#user&#34;</code>.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>me=true</code><ul>
|
|
<li>Output only. Whether this user is the requesting user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>permission-id=sanctus</code><ul>
|
|
<li>Output only. The user's ID as visible in Permission resources.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>photo-link=kasd</code></p>
|
|
<ul>
|
|
<li>Output only. A link to the user's profile photo, if available.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. version=eirmod</code></p>
|
|
<ul>
|
|
<li>Output only. 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=dolores</code><ul>
|
|
<li>Output only. The duration of the video in milliseconds.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>height=69</code><ul>
|
|
<li>Output only. The height of the video in pixels.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>width=97</code></p>
|
|
<ul>
|
|
<li>Output only. The width of the video in pixels.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. viewed-by-me=true</code></p>
|
|
<ul>
|
|
<li>Output only. Whether the file has been viewed by this user.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>viewed-by-me-time=magna</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 <code>copyRequiresWriterPermission</code> instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>web-content-link=amet</code><ul>
|
|
<li>Output only. 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=sea</code><ul>
|
|
<li>Output only. A link for opening the file in a relevant Google editor or viewer in a browser.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>writers-can-share=false</code><ul>
|
|
<li>Whether users with only <code>writer</code> 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-labels=string</strong></p>
|
|
<ul>
|
|
<li>A comma-separated list of IDs of labels to include in the <code>labelInfo</code> part of the response.</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 <code>supportsAllDrives</code> 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 $-xgafv=string</strong></p>
|
|
<ul>
|
|
<li>V1 error format.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p access-token=string</strong></p>
|
|
<ul>
|
|
<li>OAuth access token.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p alt=string</strong></p>
|
|
<ul>
|
|
<li>Data format for response.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p callback=string</strong></p>
|
|
<ul>
|
|
<li>JSONP</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>Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p upload-type=string</strong></p>
|
|
<ul>
|
|
<li>Legacy upload protocol for media (e.g. "media", "multipart").</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p upload-protocol=string</strong></p>
|
|
<ul>
|
|
<li>Upload protocol for media (e.g. "raw", "multipart").</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
</div>
|
|
</div><footer>
|
|
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
|
|
<a href="../files_copy/" class="btn btn-neutral float-left" title="Copy"><span class="icon icon-circle-arrow-left"></span> Previous</a>
|
|
<a href="../files_delete/" class="btn btn-neutral float-right" title="Delete">Next <span class="icon icon-circle-arrow-right"></span></a>
|
|
</div>
|
|
|
|
<hr/>
|
|
|
|
<div role="contentinfo">
|
|
<!-- Copyright etc -->
|
|
<p>Copyright © 2015-2020, `Sebastian Thiel`</p>
|
|
</div>
|
|
|
|
Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/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" aria-label="Versions">
|
|
<span class="rst-current-version" data-toggle="rst-current-version">
|
|
|
|
<span>
|
|
<a href="https://github.com/Byron/google-apis-rs/tree/main/gen/drive3-cli" class="fa fa-github" style="color: #fcfcfc"> GitHub</a>
|
|
</span>
|
|
|
|
|
|
<span><a href="../files_copy/" style="color: #fcfcfc">« Previous</a></span>
|
|
|
|
|
|
<span><a href="../files_delete/" style="color: #fcfcfc">Next »</a></span>
|
|
|
|
</span>
|
|
</div>
|
|
<script>var base_url = '..';</script>
|
|
<script src="../js/theme_extra.js" defer></script>
|
|
<script src="../js/theme.js" defer></script>
|
|
<script src="../search/main.js" defer></script>
|
|
<script defer>
|
|
window.onload = function () {
|
|
SphinxRtdTheme.Navigation.enable(true);
|
|
};
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|