blob: 612d09a15a83349548a2618787b688d12cd23072 [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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">
Bu Sun Kim65020912020-05-20 12:08:20 -070078 <code><a href="#get">get(includeSubscribed=None, maxChangeIdCount=None, startChangeId=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040079<p class="firstline">Gets the information about the current user along with Drive API settings</p>
80<h3>Method Details</h3>
81<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -070082 <code class="details" id="get">get(includeSubscribed=None, maxChangeIdCount=None, startChangeId=None)</code>
John Asmuth614db982014-04-24 15:46:26 -040083 <pre>Gets the information about the current user along with Drive API settings
84
85Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086 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 Asmuth614db982014-04-24 15:46:26 -040087 maxChangeIdCount: string, Maximum number of remaining change IDs to count
Bu Sun Kim65020912020-05-20 12:08:20 -070088 startChangeId: string, Change ID to start counting from when calculating number of remaining change IDs
John Asmuth614db982014-04-24 15:46:26 -040089
90Returns:
91 An object of the form:
92
93 { # An item with user information and settings.
Bu Sun Kim65020912020-05-20 12:08:20 -070094 &quot;additionalRoleInfo&quot;: [ # Information about supported additional roles per file type. The most specific type takes precedence.
Craig Citro065b5302014-08-14 00:47:23 -070095 {
Bu Sun Kim65020912020-05-20 12:08:20 -070096 &quot;roleSets&quot;: [ # The supported additional roles per primary role.
97 {
98 &quot;additionalRoles&quot;: [ # The supported additional roles with the primary role.
99 &quot;A String&quot;,
100 ],
101 &quot;primaryRole&quot;: &quot;A String&quot;, # A primary permission role.
102 },
103 ],
104 &quot;type&quot;: &quot;A String&quot;, # The content type that this additional role info applies to.
Craig Citro065b5302014-08-14 00:47:23 -0700105 },
106 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700107 &quot;canCreateDrives&quot;: True or False, # Whether the user can create shared drives.
108 &quot;canCreateTeamDrives&quot;: True or False, # Deprecated - use canCreateDrives instead.
109 &quot;domainSharingPolicy&quot;: &quot;A String&quot;, # The domain sharing policy for the current user. Possible values are:
Takashi Matsuo06694102015-09-11 13:55:40 -0700110 # - allowed
111 # - allowedWithWarning
112 # - incomingOnly
113 # - disallowed
Bu Sun Kim65020912020-05-20 12:08:20 -0700114 &quot;driveThemes&quot;: [ # A list of themes that are supported for shared drives.
John Asmuth614db982014-04-24 15:46:26 -0400115 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700116 &quot;backgroundImageLink&quot;: &quot;A String&quot;, # A link to this theme&#x27;s background image.
117 &quot;colorRgb&quot;: &quot;A String&quot;, # The color of this theme as an RGB hex string.
118 &quot;id&quot;: &quot;A String&quot;, # The ID of the theme.
119 },
120 ],
121 &quot;etag&quot;: &quot;A String&quot;, # The ETag of the item.
122 &quot;exportFormats&quot;: [ # The allowable export formats.
123 {
124 &quot;source&quot;: &quot;A String&quot;, # The content type to convert from.
125 &quot;targets&quot;: [ # The possible content types to convert to.
126 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400127 ],
John Asmuth614db982014-04-24 15:46:26 -0400128 },
129 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 &quot;features&quot;: [ # List of additional features enabled on this account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 &quot;featureName&quot;: &quot;A String&quot;, # The name of the feature.
133 &quot;featureRate&quot;: 3.14, # The request limit rate for this feature, in queries per second.
Craig Citro065b5302014-08-14 00:47:23 -0700134 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700135 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700136 &quot;folderColorPalette&quot;: [ # The palette of allowable folder colors as RGB hex strings.
137 &quot;A String&quot;,
138 ],
139 &quot;importFormats&quot;: [ # The allowable import formats.
140 {
141 &quot;source&quot;: &quot;A String&quot;, # The imported file&#x27;s content type to convert from.
142 &quot;targets&quot;: [ # The possible content types to convert to.
143 &quot;A String&quot;,
144 ],
145 },
146 ],
147 &quot;isCurrentAppInstalled&quot;: True or False, # A boolean indicating whether the authenticated app is installed by the authenticated user.
148 &quot;kind&quot;: &quot;drive#about&quot;, # This is always drive#about.
149 &quot;languageCode&quot;: &quot;A String&quot;, # The user&#x27;s language or locale code, as defined by BCP 47, with some extensions from Unicode&#x27;s LDML format (http://www.unicode.org/reports/tr35/).
150 &quot;largestChangeId&quot;: &quot;A String&quot;, # The largest change id.
151 &quot;maxUploadSizes&quot;: [ # List of max upload sizes for each file type. The most specific type takes precedence.
152 {
153 &quot;size&quot;: &quot;A String&quot;, # The max upload size for this type.
154 &quot;type&quot;: &quot;A String&quot;, # The file type.
155 },
156 ],
157 &quot;name&quot;: &quot;A String&quot;, # The name of the current user.
158 &quot;permissionId&quot;: &quot;A String&quot;, # The current user&#x27;s ID as visible in the permissions collection.
159 &quot;quotaBytesByService&quot;: [ # The amount of storage quota used by different Google services.
160 {
161 &quot;bytesUsed&quot;: &quot;A String&quot;, # The storage quota bytes used by the service.
162 &quot;serviceName&quot;: &quot;A String&quot;, # The service&#x27;s name, e.g. DRIVE, GMAIL, or PHOTOS.
163 },
164 ],
165 &quot;quotaBytesTotal&quot;: &quot;A String&quot;, # The total number of quota bytes. This is only relevant when quotaType is LIMITED.
166 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # The number of quota bytes used by Google Drive.
167 &quot;quotaBytesUsedAggregate&quot;: &quot;A String&quot;, # The number of quota bytes used by all Google apps (Drive, Picasa, etc.).
168 &quot;quotaBytesUsedInTrash&quot;: &quot;A String&quot;, # The number of quota bytes used by trashed items.
169 &quot;quotaType&quot;: &quot;A String&quot;, # The type of the user&#x27;s storage quota. Possible values are:
Craig Citro065b5302014-08-14 00:47:23 -0700170 # - LIMITED
171 # - UNLIMITED
Bu Sun Kim65020912020-05-20 12:08:20 -0700172 &quot;remainingChangeIds&quot;: &quot;A String&quot;, # The number of remaining change ids, limited to no more than 2500.
173 &quot;rootFolderId&quot;: &quot;A String&quot;, # The id of the root folder.
174 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this item.
175 &quot;teamDriveThemes&quot;: [ # Deprecated - use driveThemes instead.
Craig Citro065b5302014-08-14 00:47:23 -0700176 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700177 &quot;backgroundImageLink&quot;: &quot;A String&quot;, # Deprecated - use driveThemes/backgroundImageLink instead.
178 &quot;colorRgb&quot;: &quot;A String&quot;, # Deprecated - use driveThemes/colorRgb instead.
179 &quot;id&quot;: &quot;A String&quot;, # Deprecated - use driveThemes/id instead.
Craig Citro065b5302014-08-14 00:47:23 -0700180 },
181 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700182 &quot;user&quot;: { # Information about a Drive user. # The authenticated user.
183 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
184 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user.
185 &quot;isAuthenticatedUser&quot;: True or False, # Whether this user is the same as the authenticated user for whom the request was made.
186 &quot;kind&quot;: &quot;drive#user&quot;, # This is always drive#user.
187 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in the permissions collection.
188 &quot;picture&quot;: { # The user&#x27;s profile picture.
189 &quot;url&quot;: &quot;A String&quot;, # A URL that points to a profile picture of this user.
John Asmuth614db982014-04-24 15:46:26 -0400190 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700191 },
John Asmuth614db982014-04-24 15:46:26 -0400192 }</pre>
193</div>
194
195</body></html>