You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pre>Gets the information about the current user along with Drive API settings
92
92
93
93
Args:
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.
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`.
95
95
maxChangeIdCount: string, Maximum number of remaining change IDs to count
96
96
startChangeId: string, Change ID to start counting from when calculating number of remaining change IDs
97
+
x__xgafv: string, V1 error format.
98
+
Allowed values
99
+
1 - v1 error format
100
+
2 - v2 error format
97
101
98
102
Returns:
99
103
An object of the form:
@@ -113,12 +117,8 @@ <h3>Method Details</h3>
113
117
},
114
118
],
115
119
"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
120
+
"canCreateTeamDrives": True or False, # Deprecated: Use `canCreateDrives` instead.
121
+
"domainSharingPolicy": "A String", # The domain sharing policy for the current user. Possible values are: * `allowed` * `allowedWithWarning` * `incomingOnly` * `disallowed`
122
122
"driveThemes": [ # A list of themes that are supported for shared drives.
123
123
{
124
124
"backgroundImageLink": "A String", # A link to this theme's background image.
@@ -153,7 +153,7 @@ <h3>Method Details</h3>
153
153
},
154
154
],
155
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.
156
+
"kind": "drive#about", # This is always `drive#about`.
157
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
158
"largestChangeId": "A String", # The largest change id.
159
159
"maxUploadSizes": [ # List of max upload sizes for each file type. The most specific type takes precedence.
@@ -174,27 +174,25 @@ <h3>Method Details</h3>
174
174
"quotaBytesUsed": "A String", # The number of quota bytes used by Google Drive.
175
175
"quotaBytesUsedAggregate": "A String", # The number of quota bytes used by all Google apps (Drive, Picasa, etc.).
176
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
177
+
"quotaType": "A String", # The type of the user's storage quota. Possible values are: * `LIMITED` * `UNLIMITED`
180
178
"remainingChangeIds": "A String", # The number of remaining change ids, limited to no more than 2500.
181
179
"rootFolderId": "A String", # The id of the root folder.
182
180
"selfLink": "A String", # A link back to this item.
183
-
"teamDriveThemes": [ # Deprecated - use driveThemes instead.
181
+
"teamDriveThemes": [ # Deprecated: Use `driveThemes` instead.
184
182
{
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.
183
+
"backgroundImageLink": "A String", # Deprecated: Use `driveThemes/backgroundImageLink` instead.
184
+
"colorRgb": "A String", # Deprecated: Use `driveThemes/colorRgb` instead.
185
+
"id": "A String", # Deprecated: Use `driveThemes/id` instead.
188
186
},
189
187
],
190
188
"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.
189
+
"displayName": "A String", # Output only. A plain text displayable name for this user.
190
+
"emailAddress": "A String", # Output only. The email address of the user.
191
+
"isAuthenticatedUser": True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
192
+
"kind": "drive#user", # Output only. This is always `drive#user`.
193
+
"permissionId": "A String", # Output only. The user's ID as visible in the permissions collection.
194
+
"picture": { # Output only. The user's profile picture.
195
+
"url": "A String", # Output Only. A URL that points to a profile picture of this user.
"hasDriveWideScope": True or False, # Whether the app has drive-wide scope. An app with drive-wide scope can access all files in the user's drive.
107
111
"icons": [ # The various icons for the app.
108
112
{
109
-
"category": "A String", # Category of the icon. Allowed values are:
110
-
# - application - icon for the application
111
-
# - document - icon for a file associated with the app
112
-
# - documentShared - icon for a shared file associated with the app
113
+
"category": "A String", # Category of the icon. Allowed values are: * `application` - icon for the application * `document` - icon for a file associated with the app * `documentShared` - icon for a shared file associated with the app
113
114
"iconUrl": "A String", # URL for the icon.
114
115
"size": 42, # Size of the icon. Represented as the maximum of the width and height.
115
116
},
116
117
],
117
118
"id": "A String", # The ID of the app.
118
119
"installed": True or False, # Whether the app is installed.
119
-
"kind": "drive#app", # This is always drive#app.
120
+
"kind": "drive#app", # This is always `drive#app`.
120
121
"longDescription": "A String", # A long description of the app.
121
122
"name": "A String", # The name of the app.
122
123
"objectType": "A String", # The type of object this app creates (e.g. Chart). If empty, the app name should be used instead.
123
-
"openUrlTemplate": "A String", # The template url for opening files with this app. The template will contain {ids} and/or {exportIds} to be replaced by the actual file ids. See Open Files for the full documentation.
124
+
"openUrlTemplate": "A String", # The template url for opening files with this app. The template will contain `{ids}` and/or `{exportIds}` to be replaced by the actual file ids. See Open Files for the full documentation.
124
125
"primaryFileExtensions": [ # The list of primary file extensions.
appFilterExtensions: string, A comma-separated list of file extensions for open with filtering. All apps within the given app query scope which can open any of the given file extensions will be included in the response. If appFilterMimeTypes are provided as well, the result is a union of the two resulting app lists.
153
-
appFilterMimeTypes: string, A comma-separated list of MIME types for open with filtering. All apps within the given app query scope which can open any of the given MIME types will be included in the response. If appFilterExtensions are provided as well, the result is a union of the two resulting app lists.
153
+
appFilterExtensions: string, A comma-separated list of file extensions for open with filtering. All apps within the given app query scope which can open any of the given file extensions will be included in the response. If `appFilterMimeTypes` are provided as well, the result is a union of the two resulting app lists.
154
+
appFilterMimeTypes: string, A comma-separated list of MIME types for open with filtering. All apps within the given app query scope which can open any of the given MIME types will be included in the response. If `appFilterExtensions` are provided as well, the result is a union of the two resulting app lists.
154
155
languageCode: string, A language or locale code, as defined by BCP 47, with some extensions from Unicode's LDML format (http://www.unicode.org/reports/tr35/).
156
+
x__xgafv: string, V1 error format.
157
+
Allowed values
158
+
1 - v1 error format
159
+
2 - v2 error format
155
160
156
161
Returns:
157
162
An object of the form:
@@ -169,21 +174,18 @@ <h3>Method Details</h3>
169
174
"hasDriveWideScope": True or False, # Whether the app has drive-wide scope. An app with drive-wide scope can access all files in the user's drive.
170
175
"icons": [ # The various icons for the app.
171
176
{
172
-
"category": "A String", # Category of the icon. Allowed values are:
173
-
# - application - icon for the application
174
-
# - document - icon for a file associated with the app
175
-
# - documentShared - icon for a shared file associated with the app
177
+
"category": "A String", # Category of the icon. Allowed values are: * `application` - icon for the application * `document` - icon for a file associated with the app * `documentShared` - icon for a shared file associated with the app
176
178
"iconUrl": "A String", # URL for the icon.
177
179
"size": 42, # Size of the icon. Represented as the maximum of the width and height.
178
180
},
179
181
],
180
182
"id": "A String", # The ID of the app.
181
183
"installed": True or False, # Whether the app is installed.
182
-
"kind": "drive#app", # This is always drive#app.
184
+
"kind": "drive#app", # This is always `drive#app`.
183
185
"longDescription": "A String", # A long description of the app.
184
186
"name": "A String", # The name of the app.
185
187
"objectType": "A String", # The type of object this app creates (e.g. Chart). If empty, the app name should be used instead.
186
-
"openUrlTemplate": "A String", # The template url for opening files with this app. The template will contain {ids} and/or {exportIds} to be replaced by the actual file ids. See Open Files for the full documentation.
188
+
"openUrlTemplate": "A String", # The template url for opening files with this app. The template will contain `{ids}` and/or `{exportIds}` to be replaced by the actual file ids. See Open Files for the full documentation.
187
189
"primaryFileExtensions": [ # The list of primary file extensions.
188
190
"A String",
189
191
],
@@ -206,7 +208,7 @@ <h3>Method Details</h3>
206
208
"useByDefault": True or False, # Whether the app is selected as the default handler for the types it supports.
207
209
},
208
210
],
209
-
"kind": "drive#appList", # This is always drive#appList.
211
+
"kind": "drive#appList", # This is always `drive#appList`.
210
212
"selfLink": "A String", # A link back to this list.
0 commit comments