Update docs.
diff --git a/docs/dyn/drive_v2.files.html b/docs/dyn/drive_v2.files.html
index 01b5f78..b0e19f6 100644
--- a/docs/dyn/drive_v2.files.html
+++ b/docs/dyn/drive_v2.files.html
@@ -81,19 +81,22 @@
<code><a href="#delete">delete(fileId)</a></code></p>
<p class="firstline">Permanently deletes a file by ID. Skips the trash.</p>
<p class="toc_element">
+ <code><a href="#emptyTrash">emptyTrash()</a></code></p>
+<p class="firstline">Permanently deletes all of the user's trashed files.</p>
+<p class="toc_element">
<code><a href="#get">get(fileId, projection=None, updateViewedDate=None)</a></code></p>
<p class="firstline">Gets a file's metadata by ID.</p>
<p class="toc_element">
<code><a href="#insert">insert(body=None, media_body=None, convert=None, useContentAsIndexableText=None, visibility=None, ocrLanguage=None, ocr=None, timedTextLanguage=None, timedTextTrackName=None, pinned=None)</a></code></p>
<p class="firstline">Insert a new file.</p>
<p class="toc_element">
- <code><a href="#list">list(q=None, projection=None, pageToken=None, maxResults=None)</a></code></p>
+ <code><a href="#list">list(q=None, projection=None, pageToken=None, maxResults=None, corpus=None)</a></code></p>
<p class="firstline">Lists the user's files.</p>
<p class="toc_element">
<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="#patch">patch(fileId, body, newRevision=None, pinned=None, ocrLanguage=None, ocr=None, updateViewedDate=None, timedTextTrackName=None, convert=None, useContentAsIndexableText=None, setModifiedDate=None, timedTextLanguage=None)</a></code></p>
+ <code><a href="#patch">patch(fileId, body, newRevision=None, pinned=None, ocrLanguage=None, ocr=None, addParents=None, removeParents=None, updateViewedDate=None, timedTextTrackName=None, convert=None, useContentAsIndexableText=None, setModifiedDate=None, timedTextLanguage=None)</a></code></p>
<p class="firstline">Updates file metadata and/or content. This method supports patch semantics.</p>
<p class="toc_element">
<code><a href="#touch">touch(fileId)</a></code></p>
@@ -105,7 +108,7 @@
<code><a href="#untrash">untrash(fileId)</a></code></p>
<p class="firstline">Restores a file from the trash.</p>
<p class="toc_element">
- <code><a href="#update">update(fileId, body=None, newRevision=None, media_body=None, ocrLanguage=None, ocr=None, pinned=None, updateViewedDate=None, timedTextTrackName=None, convert=None, useContentAsIndexableText=None, setModifiedDate=None, timedTextLanguage=None)</a></code></p>
+ <code><a href="#update">update(fileId, body=None, newRevision=None, media_body=None, ocrLanguage=None, ocr=None, pinned=None, addParents=None, removeParents=None, updateViewedDate=None, timedTextTrackName=None, convert=None, useContentAsIndexableText=None, setModifiedDate=None, timedTextLanguage=None)</a></code></p>
<p class="firstline">Updates file metadata and/or content.</p>
<p class="toc_element">
<code><a href="#watch">watch(fileId, body, projection=None, updateViewedDate=None)</a></code></p>
@@ -123,7 +126,8 @@
{ # The metadata for a file.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
+ "version": "A String", # 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 requesting user.
+ "appDataContents": True or False, # Whether this file is in the Application Data folder.
"thumbnailLink": "A String", # A link to the file's thumbnail.
"labels": { # A group of labels for the file.
"restricted": True or False, # Whether viewers are prevented from downloading this file.
@@ -144,20 +148,32 @@
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
],
"id": "A String", # The ID of the file.
+ "sharingUser": { # The JSON template for a user. # User that shared the item with the current user, if available.
+ "picture": { # The user's profile picture.
+ "url": "A String", # A URL that points to a profile picture of this user.
+ },
+ "kind": "drive#user", # This is always drive#user.
+ "displayName": "A String", # A plain text displayable name for this user.
+ "permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
+ },
"lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
"picture": { # The user's profile picture.
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
"copyable": True or False, # Whether the file can be copied by the current user.
"ownerNames": [ # Name(s) of the owner(s) of this file.
@@ -180,6 +196,33 @@
"a_key": "A String", # A mapping from export format to URL
},
"shared": True or False, # Whether the file has been shared.
+ "permissions": [ # The list of permissions for users with access to this file.
+ { # A permission for a file.
+ "withLink": True or False, # Whether the link is required for this permission.
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
+ "name": "A String", # The name for this permission.
+ "kind": "drive#permission", # This is always drive#permission.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "authKey": "A String", # The authkey parameter required for this permission.
+ "etag": "A String", # The ETag of the permission.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
+ "photoLink": "A String", # A link to the profile photo, if available.
+ "role": "A String", # The primary role for this user. Allowed values are:
+ # - owner
+ # - reader
+ # - writer
+ "type": "A String", # The account type. Allowed values are:
+ # - user
+ # - group
+ # - domain
+ # - anyone
+ "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
+ "A String",
+ ],
+ "selfLink": "A String", # A link back to this permission.
+ },
+ ],
"thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
"mimeType": "A String", # The MIME type of the thumbnail.
"image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
@@ -218,6 +261,7 @@
"webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
"editable": True or False, # Whether the file can be edited by the current user.
"kind": "drive#file", # The type of file. This is always drive#file.
+ "markedViewedByMeDate": "A String", # Time this file was explicitly marked viewed by the user (formatted RFC 3339 timestamp).
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
"createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
@@ -241,14 +285,14 @@
"downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
"userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
"withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
"kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
- "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
"authKey": "A String", # The authkey parameter required for this permission.
"etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
"photoLink": "A String", # A link to the profile photo, if available.
"role": "A String", # The primary role for this user. Allowed values are:
# - owner
@@ -288,7 +332,8 @@
{ # The metadata for a file.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
+ "version": "A String", # 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 requesting user.
+ "appDataContents": True or False, # Whether this file is in the Application Data folder.
"thumbnailLink": "A String", # A link to the file's thumbnail.
"labels": { # A group of labels for the file.
"restricted": True or False, # Whether viewers are prevented from downloading this file.
@@ -309,20 +354,32 @@
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
],
"id": "A String", # The ID of the file.
+ "sharingUser": { # The JSON template for a user. # User that shared the item with the current user, if available.
+ "picture": { # The user's profile picture.
+ "url": "A String", # A URL that points to a profile picture of this user.
+ },
+ "kind": "drive#user", # This is always drive#user.
+ "displayName": "A String", # A plain text displayable name for this user.
+ "permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
+ },
"lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
"picture": { # The user's profile picture.
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
"copyable": True or False, # Whether the file can be copied by the current user.
"ownerNames": [ # Name(s) of the owner(s) of this file.
@@ -345,6 +402,33 @@
"a_key": "A String", # A mapping from export format to URL
},
"shared": True or False, # Whether the file has been shared.
+ "permissions": [ # The list of permissions for users with access to this file.
+ { # A permission for a file.
+ "withLink": True or False, # Whether the link is required for this permission.
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
+ "name": "A String", # The name for this permission.
+ "kind": "drive#permission", # This is always drive#permission.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "authKey": "A String", # The authkey parameter required for this permission.
+ "etag": "A String", # The ETag of the permission.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
+ "photoLink": "A String", # A link to the profile photo, if available.
+ "role": "A String", # The primary role for this user. Allowed values are:
+ # - owner
+ # - reader
+ # - writer
+ "type": "A String", # The account type. Allowed values are:
+ # - user
+ # - group
+ # - domain
+ # - anyone
+ "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
+ "A String",
+ ],
+ "selfLink": "A String", # A link back to this permission.
+ },
+ ],
"thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
"mimeType": "A String", # The MIME type of the thumbnail.
"image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
@@ -383,6 +467,7 @@
"webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
"editable": True or False, # Whether the file can be edited by the current user.
"kind": "drive#file", # The type of file. This is always drive#file.
+ "markedViewedByMeDate": "A String", # Time this file was explicitly marked viewed by the user (formatted RFC 3339 timestamp).
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
"createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
@@ -406,14 +491,14 @@
"downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
"userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
"withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
"kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
- "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
"authKey": "A String", # The authkey parameter required for this permission.
"etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
"photoLink": "A String", # A link to the profile photo, if available.
"role": "A String", # The primary role for this user. Allowed values are:
# - owner
@@ -447,6 +532,14 @@
</div>
<div class="method">
+ <code class="details" id="emptyTrash">emptyTrash()</code>
+ <pre>Permanently deletes all of the user's trashed files.
+
+Args:
+</pre>
+</div>
+
+<div class="method">
<code class="details" id="get">get(fileId, projection=None, updateViewedDate=None)</code>
<pre>Gets a file's metadata by ID.
@@ -464,7 +557,8 @@
{ # The metadata for a file.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
+ "version": "A String", # 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 requesting user.
+ "appDataContents": True or False, # Whether this file is in the Application Data folder.
"thumbnailLink": "A String", # A link to the file's thumbnail.
"labels": { # A group of labels for the file.
"restricted": True or False, # Whether viewers are prevented from downloading this file.
@@ -485,20 +579,32 @@
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
],
"id": "A String", # The ID of the file.
+ "sharingUser": { # The JSON template for a user. # User that shared the item with the current user, if available.
+ "picture": { # The user's profile picture.
+ "url": "A String", # A URL that points to a profile picture of this user.
+ },
+ "kind": "drive#user", # This is always drive#user.
+ "displayName": "A String", # A plain text displayable name for this user.
+ "permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
+ },
"lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
"picture": { # The user's profile picture.
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
"copyable": True or False, # Whether the file can be copied by the current user.
"ownerNames": [ # Name(s) of the owner(s) of this file.
@@ -521,6 +627,33 @@
"a_key": "A String", # A mapping from export format to URL
},
"shared": True or False, # Whether the file has been shared.
+ "permissions": [ # The list of permissions for users with access to this file.
+ { # A permission for a file.
+ "withLink": True or False, # Whether the link is required for this permission.
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
+ "name": "A String", # The name for this permission.
+ "kind": "drive#permission", # This is always drive#permission.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "authKey": "A String", # The authkey parameter required for this permission.
+ "etag": "A String", # The ETag of the permission.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
+ "photoLink": "A String", # A link to the profile photo, if available.
+ "role": "A String", # The primary role for this user. Allowed values are:
+ # - owner
+ # - reader
+ # - writer
+ "type": "A String", # The account type. Allowed values are:
+ # - user
+ # - group
+ # - domain
+ # - anyone
+ "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
+ "A String",
+ ],
+ "selfLink": "A String", # A link back to this permission.
+ },
+ ],
"thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
"mimeType": "A String", # The MIME type of the thumbnail.
"image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
@@ -559,6 +692,7 @@
"webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
"editable": True or False, # Whether the file can be edited by the current user.
"kind": "drive#file", # The type of file. This is always drive#file.
+ "markedViewedByMeDate": "A String", # Time this file was explicitly marked viewed by the user (formatted RFC 3339 timestamp).
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
"createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
@@ -582,14 +716,14 @@
"downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
"userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
"withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
"kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
- "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
"authKey": "A String", # The authkey parameter required for this permission.
"etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
"photoLink": "A String", # A link to the profile photo, if available.
"role": "A String", # The primary role for this user. Allowed values are:
# - owner
@@ -624,7 +758,8 @@
{ # The metadata for a file.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
+ "version": "A String", # 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 requesting user.
+ "appDataContents": True or False, # Whether this file is in the Application Data folder.
"thumbnailLink": "A String", # A link to the file's thumbnail.
"labels": { # A group of labels for the file.
"restricted": True or False, # Whether viewers are prevented from downloading this file.
@@ -645,20 +780,32 @@
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
],
"id": "A String", # The ID of the file.
+ "sharingUser": { # The JSON template for a user. # User that shared the item with the current user, if available.
+ "picture": { # The user's profile picture.
+ "url": "A String", # A URL that points to a profile picture of this user.
+ },
+ "kind": "drive#user", # This is always drive#user.
+ "displayName": "A String", # A plain text displayable name for this user.
+ "permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
+ },
"lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
"picture": { # The user's profile picture.
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
"copyable": True or False, # Whether the file can be copied by the current user.
"ownerNames": [ # Name(s) of the owner(s) of this file.
@@ -681,6 +828,33 @@
"a_key": "A String", # A mapping from export format to URL
},
"shared": True or False, # Whether the file has been shared.
+ "permissions": [ # The list of permissions for users with access to this file.
+ { # A permission for a file.
+ "withLink": True or False, # Whether the link is required for this permission.
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
+ "name": "A String", # The name for this permission.
+ "kind": "drive#permission", # This is always drive#permission.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "authKey": "A String", # The authkey parameter required for this permission.
+ "etag": "A String", # The ETag of the permission.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
+ "photoLink": "A String", # A link to the profile photo, if available.
+ "role": "A String", # The primary role for this user. Allowed values are:
+ # - owner
+ # - reader
+ # - writer
+ "type": "A String", # The account type. Allowed values are:
+ # - user
+ # - group
+ # - domain
+ # - anyone
+ "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
+ "A String",
+ ],
+ "selfLink": "A String", # A link back to this permission.
+ },
+ ],
"thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
"mimeType": "A String", # The MIME type of the thumbnail.
"image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
@@ -719,6 +893,7 @@
"webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
"editable": True or False, # Whether the file can be edited by the current user.
"kind": "drive#file", # The type of file. This is always drive#file.
+ "markedViewedByMeDate": "A String", # Time this file was explicitly marked viewed by the user (formatted RFC 3339 timestamp).
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
"createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
@@ -742,14 +917,14 @@
"downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
"userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
"withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
"kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
- "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
"authKey": "A String", # The authkey parameter required for this permission.
"etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
"photoLink": "A String", # A link to the profile photo, if available.
"role": "A String", # The primary role for this user. Allowed values are:
# - owner
@@ -791,7 +966,8 @@
{ # The metadata for a file.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
+ "version": "A String", # 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 requesting user.
+ "appDataContents": True or False, # Whether this file is in the Application Data folder.
"thumbnailLink": "A String", # A link to the file's thumbnail.
"labels": { # A group of labels for the file.
"restricted": True or False, # Whether viewers are prevented from downloading this file.
@@ -812,20 +988,32 @@
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
],
"id": "A String", # The ID of the file.
+ "sharingUser": { # The JSON template for a user. # User that shared the item with the current user, if available.
+ "picture": { # The user's profile picture.
+ "url": "A String", # A URL that points to a profile picture of this user.
+ },
+ "kind": "drive#user", # This is always drive#user.
+ "displayName": "A String", # A plain text displayable name for this user.
+ "permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
+ },
"lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
"picture": { # The user's profile picture.
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
"copyable": True or False, # Whether the file can be copied by the current user.
"ownerNames": [ # Name(s) of the owner(s) of this file.
@@ -848,6 +1036,33 @@
"a_key": "A String", # A mapping from export format to URL
},
"shared": True or False, # Whether the file has been shared.
+ "permissions": [ # The list of permissions for users with access to this file.
+ { # A permission for a file.
+ "withLink": True or False, # Whether the link is required for this permission.
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
+ "name": "A String", # The name for this permission.
+ "kind": "drive#permission", # This is always drive#permission.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "authKey": "A String", # The authkey parameter required for this permission.
+ "etag": "A String", # The ETag of the permission.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
+ "photoLink": "A String", # A link to the profile photo, if available.
+ "role": "A String", # The primary role for this user. Allowed values are:
+ # - owner
+ # - reader
+ # - writer
+ "type": "A String", # The account type. Allowed values are:
+ # - user
+ # - group
+ # - domain
+ # - anyone
+ "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
+ "A String",
+ ],
+ "selfLink": "A String", # A link back to this permission.
+ },
+ ],
"thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
"mimeType": "A String", # The MIME type of the thumbnail.
"image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
@@ -886,6 +1101,7 @@
"webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
"editable": True or False, # Whether the file can be edited by the current user.
"kind": "drive#file", # The type of file. This is always drive#file.
+ "markedViewedByMeDate": "A String", # Time this file was explicitly marked viewed by the user (formatted RFC 3339 timestamp).
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
"createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
@@ -909,14 +1125,14 @@
"downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
"userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
"withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
"kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
- "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
"authKey": "A String", # The authkey parameter required for this permission.
"etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
"photoLink": "A String", # A link to the profile photo, if available.
"role": "A String", # The primary role for this user. Allowed values are:
# - owner
@@ -941,7 +1157,7 @@
</div>
<div class="method">
- <code class="details" id="list">list(q=None, projection=None, pageToken=None, maxResults=None)</code>
+ <code class="details" id="list">list(q=None, projection=None, pageToken=None, maxResults=None, corpus=None)</code>
<pre>Lists the user's files.
Args:
@@ -952,6 +1168,10 @@
FULL - Deprecated
pageToken: string, Page token for files.
maxResults: integer, Maximum number of files to return.
+ corpus: string, The body of items (files/documents) to which the query applies.
+ Allowed values
+ DEFAULT - The items that the user has accessed.
+ DOMAIN - Items shared to the user's domain.
Returns:
An object of the form:
@@ -963,7 +1183,8 @@
{ # The metadata for a file.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
+ "version": "A String", # 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 requesting user.
+ "appDataContents": True or False, # Whether this file is in the Application Data folder.
"thumbnailLink": "A String", # A link to the file's thumbnail.
"labels": { # A group of labels for the file.
"restricted": True or False, # Whether viewers are prevented from downloading this file.
@@ -984,20 +1205,32 @@
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
],
"id": "A String", # The ID of the file.
+ "sharingUser": { # The JSON template for a user. # User that shared the item with the current user, if available.
+ "picture": { # The user's profile picture.
+ "url": "A String", # A URL that points to a profile picture of this user.
+ },
+ "kind": "drive#user", # This is always drive#user.
+ "displayName": "A String", # A plain text displayable name for this user.
+ "permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
+ },
"lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
"picture": { # The user's profile picture.
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
"copyable": True or False, # Whether the file can be copied by the current user.
"ownerNames": [ # Name(s) of the owner(s) of this file.
@@ -1020,6 +1253,33 @@
"a_key": "A String", # A mapping from export format to URL
},
"shared": True or False, # Whether the file has been shared.
+ "permissions": [ # The list of permissions for users with access to this file.
+ { # A permission for a file.
+ "withLink": True or False, # Whether the link is required for this permission.
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
+ "name": "A String", # The name for this permission.
+ "kind": "drive#permission", # This is always drive#permission.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "authKey": "A String", # The authkey parameter required for this permission.
+ "etag": "A String", # The ETag of the permission.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
+ "photoLink": "A String", # A link to the profile photo, if available.
+ "role": "A String", # The primary role for this user. Allowed values are:
+ # - owner
+ # - reader
+ # - writer
+ "type": "A String", # The account type. Allowed values are:
+ # - user
+ # - group
+ # - domain
+ # - anyone
+ "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
+ "A String",
+ ],
+ "selfLink": "A String", # A link back to this permission.
+ },
+ ],
"thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
"mimeType": "A String", # The MIME type of the thumbnail.
"image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
@@ -1058,6 +1318,7 @@
"webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
"editable": True or False, # Whether the file can be edited by the current user.
"kind": "drive#file", # The type of file. This is always drive#file.
+ "markedViewedByMeDate": "A String", # Time this file was explicitly marked viewed by the user (formatted RFC 3339 timestamp).
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
"createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
@@ -1081,14 +1342,14 @@
"downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
"userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
"withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
"kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
- "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
"authKey": "A String", # The authkey parameter required for this permission.
"etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
"photoLink": "A String", # A link to the profile photo, if available.
"role": "A String", # The primary role for this user. Allowed values are:
# - owner
@@ -1132,7 +1393,7 @@
</div>
<div class="method">
- <code class="details" id="patch">patch(fileId, body, newRevision=None, pinned=None, ocrLanguage=None, ocr=None, updateViewedDate=None, timedTextTrackName=None, convert=None, useContentAsIndexableText=None, setModifiedDate=None, timedTextLanguage=None)</code>
+ <code class="details" id="patch">patch(fileId, body, newRevision=None, pinned=None, ocrLanguage=None, ocr=None, addParents=None, removeParents=None, updateViewedDate=None, timedTextTrackName=None, convert=None, useContentAsIndexableText=None, setModifiedDate=None, timedTextLanguage=None)</code>
<pre>Updates file metadata and/or content. This method supports patch semantics.
Args:
@@ -1143,7 +1404,8 @@
{ # The metadata for a file.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
+ "version": "A String", # 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 requesting user.
+ "appDataContents": True or False, # Whether this file is in the Application Data folder.
"thumbnailLink": "A String", # A link to the file's thumbnail.
"labels": { # A group of labels for the file.
"restricted": True or False, # Whether viewers are prevented from downloading this file.
@@ -1164,20 +1426,32 @@
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
],
"id": "A String", # The ID of the file.
+ "sharingUser": { # The JSON template for a user. # User that shared the item with the current user, if available.
+ "picture": { # The user's profile picture.
+ "url": "A String", # A URL that points to a profile picture of this user.
+ },
+ "kind": "drive#user", # This is always drive#user.
+ "displayName": "A String", # A plain text displayable name for this user.
+ "permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
+ },
"lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
"picture": { # The user's profile picture.
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
"copyable": True or False, # Whether the file can be copied by the current user.
"ownerNames": [ # Name(s) of the owner(s) of this file.
@@ -1200,6 +1474,33 @@
"a_key": "A String", # A mapping from export format to URL
},
"shared": True or False, # Whether the file has been shared.
+ "permissions": [ # The list of permissions for users with access to this file.
+ { # A permission for a file.
+ "withLink": True or False, # Whether the link is required for this permission.
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
+ "name": "A String", # The name for this permission.
+ "kind": "drive#permission", # This is always drive#permission.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "authKey": "A String", # The authkey parameter required for this permission.
+ "etag": "A String", # The ETag of the permission.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
+ "photoLink": "A String", # A link to the profile photo, if available.
+ "role": "A String", # The primary role for this user. Allowed values are:
+ # - owner
+ # - reader
+ # - writer
+ "type": "A String", # The account type. Allowed values are:
+ # - user
+ # - group
+ # - domain
+ # - anyone
+ "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
+ "A String",
+ ],
+ "selfLink": "A String", # A link back to this permission.
+ },
+ ],
"thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
"mimeType": "A String", # The MIME type of the thumbnail.
"image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
@@ -1238,6 +1539,7 @@
"webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
"editable": True or False, # Whether the file can be edited by the current user.
"kind": "drive#file", # The type of file. This is always drive#file.
+ "markedViewedByMeDate": "A String", # Time this file was explicitly marked viewed by the user (formatted RFC 3339 timestamp).
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
"createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
@@ -1261,14 +1563,14 @@
"downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
"userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
"withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
"kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
- "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
"authKey": "A String", # The authkey parameter required for this permission.
"etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
"photoLink": "A String", # A link to the profile photo, if available.
"role": "A String", # The primary role for this user. Allowed values are:
# - owner
@@ -1295,6 +1597,8 @@
pinned: boolean, Whether to pin the new revision.
ocrLanguage: string, If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
ocr: boolean, Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
+ addParents: string, Comma-separated list of parent IDs to add.
+ removeParents: string, Comma-separated list of parent IDs to remove.
updateViewedDate: boolean, Whether to update the view date after successfully updating the file.
timedTextTrackName: string, The timed text track name.
convert: boolean, Whether to convert this file to the corresponding Google Docs format.
@@ -1308,7 +1612,8 @@
{ # The metadata for a file.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
+ "version": "A String", # 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 requesting user.
+ "appDataContents": True or False, # Whether this file is in the Application Data folder.
"thumbnailLink": "A String", # A link to the file's thumbnail.
"labels": { # A group of labels for the file.
"restricted": True or False, # Whether viewers are prevented from downloading this file.
@@ -1329,20 +1634,32 @@
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
],
"id": "A String", # The ID of the file.
+ "sharingUser": { # The JSON template for a user. # User that shared the item with the current user, if available.
+ "picture": { # The user's profile picture.
+ "url": "A String", # A URL that points to a profile picture of this user.
+ },
+ "kind": "drive#user", # This is always drive#user.
+ "displayName": "A String", # A plain text displayable name for this user.
+ "permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
+ },
"lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
"picture": { # The user's profile picture.
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
"copyable": True or False, # Whether the file can be copied by the current user.
"ownerNames": [ # Name(s) of the owner(s) of this file.
@@ -1365,6 +1682,33 @@
"a_key": "A String", # A mapping from export format to URL
},
"shared": True or False, # Whether the file has been shared.
+ "permissions": [ # The list of permissions for users with access to this file.
+ { # A permission for a file.
+ "withLink": True or False, # Whether the link is required for this permission.
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
+ "name": "A String", # The name for this permission.
+ "kind": "drive#permission", # This is always drive#permission.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "authKey": "A String", # The authkey parameter required for this permission.
+ "etag": "A String", # The ETag of the permission.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
+ "photoLink": "A String", # A link to the profile photo, if available.
+ "role": "A String", # The primary role for this user. Allowed values are:
+ # - owner
+ # - reader
+ # - writer
+ "type": "A String", # The account type. Allowed values are:
+ # - user
+ # - group
+ # - domain
+ # - anyone
+ "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
+ "A String",
+ ],
+ "selfLink": "A String", # A link back to this permission.
+ },
+ ],
"thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
"mimeType": "A String", # The MIME type of the thumbnail.
"image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
@@ -1403,6 +1747,7 @@
"webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
"editable": True or False, # Whether the file can be edited by the current user.
"kind": "drive#file", # The type of file. This is always drive#file.
+ "markedViewedByMeDate": "A String", # Time this file was explicitly marked viewed by the user (formatted RFC 3339 timestamp).
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
"createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
@@ -1426,14 +1771,14 @@
"downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
"userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
"withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
"kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
- "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
"authKey": "A String", # The authkey parameter required for this permission.
"etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
"photoLink": "A String", # A link to the profile photo, if available.
"role": "A String", # The primary role for this user. Allowed values are:
# - owner
@@ -1470,7 +1815,8 @@
{ # The metadata for a file.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
+ "version": "A String", # 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 requesting user.
+ "appDataContents": True or False, # Whether this file is in the Application Data folder.
"thumbnailLink": "A String", # A link to the file's thumbnail.
"labels": { # A group of labels for the file.
"restricted": True or False, # Whether viewers are prevented from downloading this file.
@@ -1491,20 +1837,32 @@
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
],
"id": "A String", # The ID of the file.
+ "sharingUser": { # The JSON template for a user. # User that shared the item with the current user, if available.
+ "picture": { # The user's profile picture.
+ "url": "A String", # A URL that points to a profile picture of this user.
+ },
+ "kind": "drive#user", # This is always drive#user.
+ "displayName": "A String", # A plain text displayable name for this user.
+ "permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
+ },
"lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
"picture": { # The user's profile picture.
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
"copyable": True or False, # Whether the file can be copied by the current user.
"ownerNames": [ # Name(s) of the owner(s) of this file.
@@ -1527,6 +1885,33 @@
"a_key": "A String", # A mapping from export format to URL
},
"shared": True or False, # Whether the file has been shared.
+ "permissions": [ # The list of permissions for users with access to this file.
+ { # A permission for a file.
+ "withLink": True or False, # Whether the link is required for this permission.
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
+ "name": "A String", # The name for this permission.
+ "kind": "drive#permission", # This is always drive#permission.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "authKey": "A String", # The authkey parameter required for this permission.
+ "etag": "A String", # The ETag of the permission.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
+ "photoLink": "A String", # A link to the profile photo, if available.
+ "role": "A String", # The primary role for this user. Allowed values are:
+ # - owner
+ # - reader
+ # - writer
+ "type": "A String", # The account type. Allowed values are:
+ # - user
+ # - group
+ # - domain
+ # - anyone
+ "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
+ "A String",
+ ],
+ "selfLink": "A String", # A link back to this permission.
+ },
+ ],
"thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
"mimeType": "A String", # The MIME type of the thumbnail.
"image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
@@ -1565,6 +1950,7 @@
"webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
"editable": True or False, # Whether the file can be edited by the current user.
"kind": "drive#file", # The type of file. This is always drive#file.
+ "markedViewedByMeDate": "A String", # Time this file was explicitly marked viewed by the user (formatted RFC 3339 timestamp).
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
"createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
@@ -1588,14 +1974,14 @@
"downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
"userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
"withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
"kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
- "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
"authKey": "A String", # The authkey parameter required for this permission.
"etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
"photoLink": "A String", # A link to the profile photo, if available.
"role": "A String", # The primary role for this user. Allowed values are:
# - owner
@@ -1632,7 +2018,8 @@
{ # The metadata for a file.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
+ "version": "A String", # 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 requesting user.
+ "appDataContents": True or False, # Whether this file is in the Application Data folder.
"thumbnailLink": "A String", # A link to the file's thumbnail.
"labels": { # A group of labels for the file.
"restricted": True or False, # Whether viewers are prevented from downloading this file.
@@ -1653,20 +2040,32 @@
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
],
"id": "A String", # The ID of the file.
+ "sharingUser": { # The JSON template for a user. # User that shared the item with the current user, if available.
+ "picture": { # The user's profile picture.
+ "url": "A String", # A URL that points to a profile picture of this user.
+ },
+ "kind": "drive#user", # This is always drive#user.
+ "displayName": "A String", # A plain text displayable name for this user.
+ "permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
+ },
"lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
"picture": { # The user's profile picture.
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
"copyable": True or False, # Whether the file can be copied by the current user.
"ownerNames": [ # Name(s) of the owner(s) of this file.
@@ -1689,6 +2088,33 @@
"a_key": "A String", # A mapping from export format to URL
},
"shared": True or False, # Whether the file has been shared.
+ "permissions": [ # The list of permissions for users with access to this file.
+ { # A permission for a file.
+ "withLink": True or False, # Whether the link is required for this permission.
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
+ "name": "A String", # The name for this permission.
+ "kind": "drive#permission", # This is always drive#permission.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "authKey": "A String", # The authkey parameter required for this permission.
+ "etag": "A String", # The ETag of the permission.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
+ "photoLink": "A String", # A link to the profile photo, if available.
+ "role": "A String", # The primary role for this user. Allowed values are:
+ # - owner
+ # - reader
+ # - writer
+ "type": "A String", # The account type. Allowed values are:
+ # - user
+ # - group
+ # - domain
+ # - anyone
+ "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
+ "A String",
+ ],
+ "selfLink": "A String", # A link back to this permission.
+ },
+ ],
"thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
"mimeType": "A String", # The MIME type of the thumbnail.
"image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
@@ -1727,6 +2153,7 @@
"webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
"editable": True or False, # Whether the file can be edited by the current user.
"kind": "drive#file", # The type of file. This is always drive#file.
+ "markedViewedByMeDate": "A String", # Time this file was explicitly marked viewed by the user (formatted RFC 3339 timestamp).
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
"createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
@@ -1750,14 +2177,14 @@
"downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
"userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
"withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
"kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
- "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
"authKey": "A String", # The authkey parameter required for this permission.
"etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
"photoLink": "A String", # A link to the profile photo, if available.
"role": "A String", # The primary role for this user. Allowed values are:
# - owner
@@ -1794,7 +2221,8 @@
{ # The metadata for a file.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
+ "version": "A String", # 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 requesting user.
+ "appDataContents": True or False, # Whether this file is in the Application Data folder.
"thumbnailLink": "A String", # A link to the file's thumbnail.
"labels": { # A group of labels for the file.
"restricted": True or False, # Whether viewers are prevented from downloading this file.
@@ -1815,20 +2243,32 @@
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
],
"id": "A String", # The ID of the file.
+ "sharingUser": { # The JSON template for a user. # User that shared the item with the current user, if available.
+ "picture": { # The user's profile picture.
+ "url": "A String", # A URL that points to a profile picture of this user.
+ },
+ "kind": "drive#user", # This is always drive#user.
+ "displayName": "A String", # A plain text displayable name for this user.
+ "permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
+ },
"lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
"picture": { # The user's profile picture.
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
"copyable": True or False, # Whether the file can be copied by the current user.
"ownerNames": [ # Name(s) of the owner(s) of this file.
@@ -1851,6 +2291,33 @@
"a_key": "A String", # A mapping from export format to URL
},
"shared": True or False, # Whether the file has been shared.
+ "permissions": [ # The list of permissions for users with access to this file.
+ { # A permission for a file.
+ "withLink": True or False, # Whether the link is required for this permission.
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
+ "name": "A String", # The name for this permission.
+ "kind": "drive#permission", # This is always drive#permission.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "authKey": "A String", # The authkey parameter required for this permission.
+ "etag": "A String", # The ETag of the permission.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
+ "photoLink": "A String", # A link to the profile photo, if available.
+ "role": "A String", # The primary role for this user. Allowed values are:
+ # - owner
+ # - reader
+ # - writer
+ "type": "A String", # The account type. Allowed values are:
+ # - user
+ # - group
+ # - domain
+ # - anyone
+ "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
+ "A String",
+ ],
+ "selfLink": "A String", # A link back to this permission.
+ },
+ ],
"thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
"mimeType": "A String", # The MIME type of the thumbnail.
"image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
@@ -1889,6 +2356,7 @@
"webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
"editable": True or False, # Whether the file can be edited by the current user.
"kind": "drive#file", # The type of file. This is always drive#file.
+ "markedViewedByMeDate": "A String", # Time this file was explicitly marked viewed by the user (formatted RFC 3339 timestamp).
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
"createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
@@ -1912,14 +2380,14 @@
"downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
"userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
"withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
"kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
- "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
"authKey": "A String", # The authkey parameter required for this permission.
"etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
"photoLink": "A String", # A link to the profile photo, if available.
"role": "A String", # The primary role for this user. Allowed values are:
# - owner
@@ -1944,7 +2412,7 @@
</div>
<div class="method">
- <code class="details" id="update">update(fileId, body=None, newRevision=None, media_body=None, ocrLanguage=None, ocr=None, pinned=None, updateViewedDate=None, timedTextTrackName=None, convert=None, useContentAsIndexableText=None, setModifiedDate=None, timedTextLanguage=None)</code>
+ <code class="details" id="update">update(fileId, body=None, newRevision=None, media_body=None, ocrLanguage=None, ocr=None, pinned=None, addParents=None, removeParents=None, updateViewedDate=None, timedTextTrackName=None, convert=None, useContentAsIndexableText=None, setModifiedDate=None, timedTextLanguage=None)</code>
<pre>Updates file metadata and/or content.
Args:
@@ -1955,7 +2423,8 @@
{ # The metadata for a file.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
+ "version": "A String", # 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 requesting user.
+ "appDataContents": True or False, # Whether this file is in the Application Data folder.
"thumbnailLink": "A String", # A link to the file's thumbnail.
"labels": { # A group of labels for the file.
"restricted": True or False, # Whether viewers are prevented from downloading this file.
@@ -1976,20 +2445,32 @@
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
],
"id": "A String", # The ID of the file.
+ "sharingUser": { # The JSON template for a user. # User that shared the item with the current user, if available.
+ "picture": { # The user's profile picture.
+ "url": "A String", # A URL that points to a profile picture of this user.
+ },
+ "kind": "drive#user", # This is always drive#user.
+ "displayName": "A String", # A plain text displayable name for this user.
+ "permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
+ },
"lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
"picture": { # The user's profile picture.
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
"copyable": True or False, # Whether the file can be copied by the current user.
"ownerNames": [ # Name(s) of the owner(s) of this file.
@@ -2012,6 +2493,33 @@
"a_key": "A String", # A mapping from export format to URL
},
"shared": True or False, # Whether the file has been shared.
+ "permissions": [ # The list of permissions for users with access to this file.
+ { # A permission for a file.
+ "withLink": True or False, # Whether the link is required for this permission.
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
+ "name": "A String", # The name for this permission.
+ "kind": "drive#permission", # This is always drive#permission.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "authKey": "A String", # The authkey parameter required for this permission.
+ "etag": "A String", # The ETag of the permission.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
+ "photoLink": "A String", # A link to the profile photo, if available.
+ "role": "A String", # The primary role for this user. Allowed values are:
+ # - owner
+ # - reader
+ # - writer
+ "type": "A String", # The account type. Allowed values are:
+ # - user
+ # - group
+ # - domain
+ # - anyone
+ "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
+ "A String",
+ ],
+ "selfLink": "A String", # A link back to this permission.
+ },
+ ],
"thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
"mimeType": "A String", # The MIME type of the thumbnail.
"image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
@@ -2050,6 +2558,7 @@
"webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
"editable": True or False, # Whether the file can be edited by the current user.
"kind": "drive#file", # The type of file. This is always drive#file.
+ "markedViewedByMeDate": "A String", # Time this file was explicitly marked viewed by the user (formatted RFC 3339 timestamp).
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
"createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
@@ -2073,14 +2582,14 @@
"downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
"userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
"withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
"kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
- "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
"authKey": "A String", # The authkey parameter required for this permission.
"etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
"photoLink": "A String", # A link to the profile photo, if available.
"role": "A String", # The primary role for this user. Allowed values are:
# - owner
@@ -2108,6 +2617,8 @@
ocrLanguage: string, If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
ocr: boolean, Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
pinned: boolean, Whether to pin the new revision.
+ addParents: string, Comma-separated list of parent IDs to add.
+ removeParents: string, Comma-separated list of parent IDs to remove.
updateViewedDate: boolean, Whether to update the view date after successfully updating the file.
timedTextTrackName: string, The timed text track name.
convert: boolean, Whether to convert this file to the corresponding Google Docs format.
@@ -2121,7 +2632,8 @@
{ # The metadata for a file.
"mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
+ "version": "A String", # 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 requesting user.
+ "appDataContents": True or False, # Whether this file is in the Application Data folder.
"thumbnailLink": "A String", # A link to the file's thumbnail.
"labels": { # A group of labels for the file.
"restricted": True or False, # Whether viewers are prevented from downloading this file.
@@ -2142,20 +2654,32 @@
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
],
"id": "A String", # The ID of the file.
+ "sharingUser": { # The JSON template for a user. # User that shared the item with the current user, if available.
+ "picture": { # The user's profile picture.
+ "url": "A String", # A URL that points to a profile picture of this user.
+ },
+ "kind": "drive#user", # This is always drive#user.
+ "displayName": "A String", # A plain text displayable name for this user.
+ "permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
+ },
"lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
"picture": { # The user's profile picture.
"url": "A String", # A URL that points to a profile picture of this user.
},
"kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"displayName": "A String", # A plain text displayable name for this user.
"permissionId": "A String", # The user's ID as visible in the permissions collection.
+ "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
+ "emailAddress": "A String", # The email address of the user.
},
"copyable": True or False, # Whether the file can be copied by the current user.
"ownerNames": [ # Name(s) of the owner(s) of this file.
@@ -2178,6 +2702,33 @@
"a_key": "A String", # A mapping from export format to URL
},
"shared": True or False, # Whether the file has been shared.
+ "permissions": [ # The list of permissions for users with access to this file.
+ { # A permission for a file.
+ "withLink": True or False, # Whether the link is required for this permission.
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
+ "name": "A String", # The name for this permission.
+ "kind": "drive#permission", # This is always drive#permission.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "authKey": "A String", # The authkey parameter required for this permission.
+ "etag": "A String", # The ETag of the permission.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
+ "photoLink": "A String", # A link to the profile photo, if available.
+ "role": "A String", # The primary role for this user. Allowed values are:
+ # - owner
+ # - reader
+ # - writer
+ "type": "A String", # The account type. Allowed values are:
+ # - user
+ # - group
+ # - domain
+ # - anyone
+ "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
+ "A String",
+ ],
+ "selfLink": "A String", # A link back to this permission.
+ },
+ ],
"thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
"mimeType": "A String", # The MIME type of the thumbnail.
"image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
@@ -2216,6 +2767,7 @@
"webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
"editable": True or False, # Whether the file can be edited by the current user.
"kind": "drive#file", # The type of file. This is always drive#file.
+ "markedViewedByMeDate": "A String", # Time this file was explicitly marked viewed by the user (formatted RFC 3339 timestamp).
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
"createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
@@ -2239,14 +2791,14 @@
"downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
"userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
"withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
+ "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
"kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
- "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of 'id' or 'value' fields must be specified.
+ "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
+ "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified.
"authKey": "A String", # The authkey parameter required for this permission.
"etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
+ "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is present when the permission type is user and the given user's Google+ profile privacy settings allow exposing their email address.
"photoLink": "A String", # A link to the profile photo, if available.
"role": "A String", # The primary role for this user. Allowed values are:
# - owner