Release v1.6.0 (#324)
* Update version and changelog for v1.6.0
* Update docs
diff --git a/docs/dyn/drive_v3.files.html b/docs/dyn/drive_v3.files.html
index 84dc17c..16cb74e 100644
--- a/docs/dyn/drive_v3.files.html
+++ b/docs/dyn/drive_v3.files.html
@@ -78,7 +78,7 @@
<code><a href="#copy">copy(fileId, body, keepRevisionForever=None, ignoreDefaultVisibility=None, ocrLanguage=None)</a></code></p>
<p class="firstline">Creates a copy of a file and applies any requested updates with patch semantics.</p>
<p class="toc_element">
- <code><a href="#create">create(body=None, media_body=None, keepRevisionForever=None, useContentAsIndexableText=None, ignoreDefaultVisibility=None, ocrLanguage=None)</a></code></p>
+ <code><a href="#create">create(body=None, media_body=None, keepRevisionForever=None, media_mime_type=None, useContentAsIndexableText=None, ignoreDefaultVisibility=None, ocrLanguage=None)</a></code></p>
<p class="firstline">Creates a new file.</p>
<p class="toc_element">
<code><a href="#delete">delete(fileId)</a></code></p>
@@ -108,7 +108,7 @@
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
- <code><a href="#update">update(fileId, body=None, media_body=None, addParents=None, removeParents=None, useContentAsIndexableText=None, keepRevisionForever=None, ocrLanguage=None)</a></code></p>
+ <code><a href="#update">update(fileId, body=None, media_body=None, addParents=None, removeParents=None, media_mime_type=None, useContentAsIndexableText=None, keepRevisionForever=None, ocrLanguage=None)</a></code></p>
<p class="firstline">Updates a file's metadata and/or content with patch semantics.</p>
<p class="toc_element">
<code><a href="#watch">watch(fileId, body, acknowledgeAbuse=None)</a></code></p>
@@ -127,11 +127,13 @@
The object takes the form of:
{ # The metadata for a file.
+ "hasThumbnail": True or False, # Whether this file has a thumbnail.
"mimeType": "A String", # The MIME type of the file.
# 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.
"modifiedByMeTime": "A String", # The last time the file was modified by the user (RFC 3339 date-time).
- "thumbnailLink": "A String", # A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours.
+ "thumbnailLink": "A String", # 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.
+ "thumbnailVersion": "A String", # The thumbnail version for use in client-contructable thumbnail URLs or thumbnail cache invalidation.
"explicitlyTrashed": True or False, # Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
"isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
"writersCanShare": True or False, # Whether users with only writer permission can modify the file's permissions.
@@ -211,6 +213,7 @@
"modifiedTime": "A String", # The last time the file was modified by anyone (RFC 3339 date-time).
# Note that setting modifiedTime will also update modifiedByMeTime for the user.
"viewedByMe": True or False, # Whether the file has been viewed by this user.
+ "modifiedByMe": True or False, # Whether the file has been modified by this user.
"owners": [ # The owners of the file. Currently, only certain legacy files may have more than one owner.
{ # Information about a Drive user.
"me": True or False, # Whether this user is the requesting user.
@@ -283,11 +286,13 @@
An object of the form:
{ # The metadata for a file.
+ "hasThumbnail": True or False, # Whether this file has a thumbnail.
"mimeType": "A String", # The MIME type of the file.
# 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.
"modifiedByMeTime": "A String", # The last time the file was modified by the user (RFC 3339 date-time).
- "thumbnailLink": "A String", # A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours.
+ "thumbnailLink": "A String", # 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.
+ "thumbnailVersion": "A String", # The thumbnail version for use in client-contructable thumbnail URLs or thumbnail cache invalidation.
"explicitlyTrashed": True or False, # Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
"isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
"writersCanShare": True or False, # Whether users with only writer permission can modify the file's permissions.
@@ -367,6 +372,7 @@
"modifiedTime": "A String", # The last time the file was modified by anyone (RFC 3339 date-time).
# Note that setting modifiedTime will also update modifiedByMeTime for the user.
"viewedByMe": True or False, # Whether the file has been viewed by this user.
+ "modifiedByMe": True or False, # Whether the file has been modified by this user.
"owners": [ # The owners of the file. Currently, only certain legacy files may have more than one owner.
{ # Information about a Drive user.
"me": True or False, # Whether this user is the requesting user.
@@ -433,7 +439,7 @@
</div>
<div class="method">
- <code class="details" id="create">create(body=None, media_body=None, keepRevisionForever=None, useContentAsIndexableText=None, ignoreDefaultVisibility=None, ocrLanguage=None)</code>
+ <code class="details" id="create">create(body=None, media_body=None, keepRevisionForever=None, media_mime_type=None, useContentAsIndexableText=None, ignoreDefaultVisibility=None, ocrLanguage=None)</code>
<pre>Creates a new file.
Args:
@@ -441,11 +447,13 @@
The object takes the form of:
{ # The metadata for a file.
+ "hasThumbnail": True or False, # Whether this file has a thumbnail.
"mimeType": "A String", # The MIME type of the file.
# 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.
"modifiedByMeTime": "A String", # The last time the file was modified by the user (RFC 3339 date-time).
- "thumbnailLink": "A String", # A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours.
+ "thumbnailLink": "A String", # 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.
+ "thumbnailVersion": "A String", # The thumbnail version for use in client-contructable thumbnail URLs or thumbnail cache invalidation.
"explicitlyTrashed": True or False, # Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
"isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
"writersCanShare": True or False, # Whether users with only writer permission can modify the file's permissions.
@@ -525,6 +533,7 @@
"modifiedTime": "A String", # The last time the file was modified by anyone (RFC 3339 date-time).
# Note that setting modifiedTime will also update modifiedByMeTime for the user.
"viewedByMe": True or False, # Whether the file has been viewed by this user.
+ "modifiedByMe": True or False, # Whether the file has been modified by this user.
"owners": [ # The owners of the file. Currently, only certain legacy files may have more than one owner.
{ # Information about a Drive user.
"me": True or False, # Whether this user is the requesting user.
@@ -591,6 +600,7 @@
media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
keepRevisionForever: boolean, Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Drive.
+ media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object.
useContentAsIndexableText: boolean, Whether to use the uploaded content as indexable text.
ignoreDefaultVisibility: boolean, 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.
ocrLanguage: string, A language hint for OCR processing during image import (ISO 639-1 code).
@@ -599,11 +609,13 @@
An object of the form:
{ # The metadata for a file.
+ "hasThumbnail": True or False, # Whether this file has a thumbnail.
"mimeType": "A String", # The MIME type of the file.
# 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.
"modifiedByMeTime": "A String", # The last time the file was modified by the user (RFC 3339 date-time).
- "thumbnailLink": "A String", # A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours.
+ "thumbnailLink": "A String", # 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.
+ "thumbnailVersion": "A String", # The thumbnail version for use in client-contructable thumbnail URLs or thumbnail cache invalidation.
"explicitlyTrashed": True or False, # Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
"isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
"writersCanShare": True or False, # Whether users with only writer permission can modify the file's permissions.
@@ -683,6 +695,7 @@
"modifiedTime": "A String", # The last time the file was modified by anyone (RFC 3339 date-time).
# Note that setting modifiedTime will also update modifiedByMeTime for the user.
"viewedByMe": True or False, # Whether the file has been viewed by this user.
+ "modifiedByMe": True or False, # Whether the file has been modified by this user.
"owners": [ # The owners of the file. Currently, only certain legacy files may have more than one owner.
{ # Information about a Drive user.
"me": True or False, # Whether this user is the requesting user.
@@ -817,11 +830,13 @@
An object of the form:
{ # The metadata for a file.
+ "hasThumbnail": True or False, # Whether this file has a thumbnail.
"mimeType": "A String", # The MIME type of the file.
# 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.
"modifiedByMeTime": "A String", # The last time the file was modified by the user (RFC 3339 date-time).
- "thumbnailLink": "A String", # A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours.
+ "thumbnailLink": "A String", # 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.
+ "thumbnailVersion": "A String", # The thumbnail version for use in client-contructable thumbnail URLs or thumbnail cache invalidation.
"explicitlyTrashed": True or False, # Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
"isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
"writersCanShare": True or False, # Whether users with only writer permission can modify the file's permissions.
@@ -901,6 +916,7 @@
"modifiedTime": "A String", # The last time the file was modified by anyone (RFC 3339 date-time).
# Note that setting modifiedTime will also update modifiedByMeTime for the user.
"viewedByMe": True or False, # Whether the file has been viewed by this user.
+ "modifiedByMe": True or False, # Whether the file has been modified by this user.
"owners": [ # The owners of the file. Currently, only certain legacy files may have more than one owner.
{ # Information about a Drive user.
"me": True or False, # Whether this user is the requesting user.
@@ -1001,11 +1017,13 @@
{ # A list of files.
"files": [ # The page of files.
{ # The metadata for a file.
+ "hasThumbnail": True or False, # Whether this file has a thumbnail.
"mimeType": "A String", # The MIME type of the file.
# 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.
"modifiedByMeTime": "A String", # The last time the file was modified by the user (RFC 3339 date-time).
- "thumbnailLink": "A String", # A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours.
+ "thumbnailLink": "A String", # 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.
+ "thumbnailVersion": "A String", # The thumbnail version for use in client-contructable thumbnail URLs or thumbnail cache invalidation.
"explicitlyTrashed": True or False, # Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
"isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
"writersCanShare": True or False, # Whether users with only writer permission can modify the file's permissions.
@@ -1085,6 +1103,7 @@
"modifiedTime": "A String", # The last time the file was modified by anyone (RFC 3339 date-time).
# Note that setting modifiedTime will also update modifiedByMeTime for the user.
"viewedByMe": True or False, # Whether the file has been viewed by this user.
+ "modifiedByMe": True or False, # Whether the file has been modified by this user.
"owners": [ # The owners of the file. Currently, only certain legacy files may have more than one owner.
{ # Information about a Drive user.
"me": True or False, # Whether this user is the requesting user.
@@ -1169,7 +1188,7 @@
</div>
<div class="method">
- <code class="details" id="update">update(fileId, body=None, media_body=None, addParents=None, removeParents=None, useContentAsIndexableText=None, keepRevisionForever=None, ocrLanguage=None)</code>
+ <code class="details" id="update">update(fileId, body=None, media_body=None, addParents=None, removeParents=None, media_mime_type=None, useContentAsIndexableText=None, keepRevisionForever=None, ocrLanguage=None)</code>
<pre>Updates a file's metadata and/or content with patch semantics.
Args:
@@ -1178,11 +1197,13 @@
The object takes the form of:
{ # The metadata for a file.
+ "hasThumbnail": True or False, # Whether this file has a thumbnail.
"mimeType": "A String", # The MIME type of the file.
# 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.
"modifiedByMeTime": "A String", # The last time the file was modified by the user (RFC 3339 date-time).
- "thumbnailLink": "A String", # A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours.
+ "thumbnailLink": "A String", # 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.
+ "thumbnailVersion": "A String", # The thumbnail version for use in client-contructable thumbnail URLs or thumbnail cache invalidation.
"explicitlyTrashed": True or False, # Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
"isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
"writersCanShare": True or False, # Whether users with only writer permission can modify the file's permissions.
@@ -1262,6 +1283,7 @@
"modifiedTime": "A String", # The last time the file was modified by anyone (RFC 3339 date-time).
# Note that setting modifiedTime will also update modifiedByMeTime for the user.
"viewedByMe": True or False, # Whether the file has been viewed by this user.
+ "modifiedByMe": True or False, # Whether the file has been modified by this user.
"owners": [ # The owners of the file. Currently, only certain legacy files may have more than one owner.
{ # Information about a Drive user.
"me": True or False, # Whether this user is the requesting user.
@@ -1329,6 +1351,7 @@
media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
addParents: string, A comma-separated list of parent IDs to add.
removeParents: string, A comma-separated list of parent IDs to remove.
+ media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object.
useContentAsIndexableText: boolean, Whether to use the uploaded content as indexable text.
keepRevisionForever: boolean, Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Drive.
ocrLanguage: string, A language hint for OCR processing during image import (ISO 639-1 code).
@@ -1337,11 +1360,13 @@
An object of the form:
{ # The metadata for a file.
+ "hasThumbnail": True or False, # Whether this file has a thumbnail.
"mimeType": "A String", # The MIME type of the file.
# 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.
"modifiedByMeTime": "A String", # The last time the file was modified by the user (RFC 3339 date-time).
- "thumbnailLink": "A String", # A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours.
+ "thumbnailLink": "A String", # 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.
+ "thumbnailVersion": "A String", # The thumbnail version for use in client-contructable thumbnail URLs or thumbnail cache invalidation.
"explicitlyTrashed": True or False, # Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
"isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
"writersCanShare": True or False, # Whether users with only writer permission can modify the file's permissions.
@@ -1421,6 +1446,7 @@
"modifiedTime": "A String", # The last time the file was modified by anyone (RFC 3339 date-time).
# Note that setting modifiedTime will also update modifiedByMeTime for the user.
"viewedByMe": True or False, # Whether the file has been viewed by this user.
+ "modifiedByMe": True or False, # Whether the file has been modified by this user.
"owners": [ # The owners of the file. Currently, only certain legacy files may have more than one owner.
{ # Information about a Drive user.
"me": True or False, # Whether this user is the requesting user.