John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="drive_v2.html">Drive API</a> . <a href="drive_v2.about.html">about</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 78 | <code><a href="#close">close()</a></code></p> |
| 79 | <p class="firstline">Close httplib2 connections.</p> |
| 80 | <p class="toc_element"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 81 | <code><a href="#get">get(includeSubscribed=None, maxChangeIdCount=None, startChangeId=None)</a></code></p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 82 | <p class="firstline">Gets the information about the current user along with Drive API settings</p> |
| 83 | <h3>Method Details</h3> |
| 84 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 85 | <code class="details" id="close">close()</code> |
| 86 | <pre>Close httplib2 connections.</pre> |
| 87 | </div> |
| 88 | |
| 89 | <div class="method"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 90 | <code class="details" id="get">get(includeSubscribed=None, maxChangeIdCount=None, startChangeId=None)</code> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 91 | <pre>Gets the information about the current user along with Drive API settings |
| 92 | |
| 93 | Args: |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 94 | includeSubscribed: boolean, Whether to count changes outside the My Drive hierarchy. When set to false, changes to files such as those in the Application Data folder or shared files which have not been added to My Drive will be omitted from the maxChangeIdCount. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 95 | maxChangeIdCount: string, Maximum number of remaining change IDs to count |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 96 | startChangeId: string, Change ID to start counting from when calculating number of remaining change IDs |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 97 | |
| 98 | Returns: |
| 99 | An object of the form: |
| 100 | |
| 101 | { # An item with user information and settings. |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 102 | "additionalRoleInfo": [ # Information about supported additional roles per file type. The most specific type takes precedence. |
| 103 | { |
| 104 | "roleSets": [ # The supported additional roles per primary role. |
| 105 | { |
| 106 | "additionalRoles": [ # The supported additional roles with the primary role. |
| 107 | "A String", |
| 108 | ], |
| 109 | "primaryRole": "A String", # A primary permission role. |
| 110 | }, |
| 111 | ], |
| 112 | "type": "A String", # The content type that this additional role info applies to. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 113 | }, |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 114 | ], |
| 115 | "canCreateDrives": True or False, # Whether the user can create shared drives. |
| 116 | "canCreateTeamDrives": True or False, # Deprecated - use canCreateDrives instead. |
| 117 | "domainSharingPolicy": "A String", # The domain sharing policy for the current user. Possible values are: |
| 118 | # - allowed |
| 119 | # - allowedWithWarning |
| 120 | # - incomingOnly |
| 121 | # - disallowed |
| 122 | "driveThemes": [ # A list of themes that are supported for shared drives. |
| 123 | { |
| 124 | "backgroundImageLink": "A String", # A link to this theme's background image. |
| 125 | "colorRgb": "A String", # The color of this theme as an RGB hex string. |
| 126 | "id": "A String", # The ID of the theme. |
| 127 | }, |
| 128 | ], |
| 129 | "etag": "A String", # The ETag of the item. |
| 130 | "exportFormats": [ # The allowable export formats. |
| 131 | { |
| 132 | "source": "A String", # The content type to convert from. |
| 133 | "targets": [ # The possible content types to convert to. |
| 134 | "A String", |
| 135 | ], |
| 136 | }, |
| 137 | ], |
| 138 | "features": [ # List of additional features enabled on this account. |
| 139 | { |
| 140 | "featureName": "A String", # The name of the feature. |
| 141 | "featureRate": 3.14, # The request limit rate for this feature, in queries per second. |
| 142 | }, |
| 143 | ], |
| 144 | "folderColorPalette": [ # The palette of allowable folder colors as RGB hex strings. |
| 145 | "A String", |
| 146 | ], |
| 147 | "importFormats": [ # The allowable import formats. |
| 148 | { |
| 149 | "source": "A String", # The imported file's content type to convert from. |
| 150 | "targets": [ # The possible content types to convert to. |
| 151 | "A String", |
| 152 | ], |
| 153 | }, |
| 154 | ], |
| 155 | "isCurrentAppInstalled": True or False, # A boolean indicating whether the authenticated app is installed by the authenticated user. |
| 156 | "kind": "drive#about", # This is always drive#about. |
| 157 | "languageCode": "A String", # The user's language or locale code, as defined by BCP 47, with some extensions from Unicode's LDML format (http://www.unicode.org/reports/tr35/). |
| 158 | "largestChangeId": "A String", # The largest change id. |
| 159 | "maxUploadSizes": [ # List of max upload sizes for each file type. The most specific type takes precedence. |
| 160 | { |
| 161 | "size": "A String", # The max upload size for this type. |
| 162 | "type": "A String", # The file type. |
| 163 | }, |
| 164 | ], |
| 165 | "name": "A String", # The name of the current user. |
| 166 | "permissionId": "A String", # The current user's ID as visible in the permissions collection. |
| 167 | "quotaBytesByService": [ # The amount of storage quota used by different Google services. |
| 168 | { |
| 169 | "bytesUsed": "A String", # The storage quota bytes used by the service. |
| 170 | "serviceName": "A String", # The service's name, e.g. DRIVE, GMAIL, or PHOTOS. |
| 171 | }, |
| 172 | ], |
| 173 | "quotaBytesTotal": "A String", # The total number of quota bytes. This is only relevant when quotaType is LIMITED. |
| 174 | "quotaBytesUsed": "A String", # The number of quota bytes used by Google Drive. |
| 175 | "quotaBytesUsedAggregate": "A String", # The number of quota bytes used by all Google apps (Drive, Picasa, etc.). |
| 176 | "quotaBytesUsedInTrash": "A String", # The number of quota bytes used by trashed items. |
| 177 | "quotaType": "A String", # The type of the user's storage quota. Possible values are: |
| 178 | # - LIMITED |
| 179 | # - UNLIMITED |
| 180 | "remainingChangeIds": "A String", # The number of remaining change ids, limited to no more than 2500. |
| 181 | "rootFolderId": "A String", # The id of the root folder. |
| 182 | "selfLink": "A String", # A link back to this item. |
| 183 | "teamDriveThemes": [ # Deprecated - use driveThemes instead. |
| 184 | { |
| 185 | "backgroundImageLink": "A String", # Deprecated - use driveThemes/backgroundImageLink instead. |
| 186 | "colorRgb": "A String", # Deprecated - use driveThemes/colorRgb instead. |
| 187 | "id": "A String", # Deprecated - use driveThemes/id instead. |
| 188 | }, |
| 189 | ], |
| 190 | "user": { # Information about a Drive user. # The authenticated user. |
| 191 | "displayName": "A String", # A plain text displayable name for this user. |
| 192 | "emailAddress": "A String", # The email address of the user. |
| 193 | "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made. |
| 194 | "kind": "drive#user", # This is always drive#user. |
| 195 | "permissionId": "A String", # The user's ID as visible in the permissions collection. |
| 196 | "picture": { # The user's profile picture. |
| 197 | "url": "A String", # A URL that points to a profile picture of this user. |
| 198 | }, |
| 199 | }, |
| 200 | }</pre> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 201 | </div> |
| 202 | |
| 203 | </body></html> |