blob: 6fc92143eed2fd4ae0ce82605ce04a8b987755c0 [file] [log] [blame]
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -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.teamdrives.html">teamdrives</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040081 <code><a href="#delete">delete(teamDriveId)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Deprecated use drives.delete instead.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040083<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084 <code><a href="#get">get(teamDriveId, useDomainAdminAccess=None)</a></code></p>
85<p class="firstline">Deprecated use drives.get instead.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040086<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#insert">insert(requestId, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Deprecated use drives.insert instead.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040089<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070090 <code><a href="#list">list(maxResults=None, pageToken=None, q=None, useDomainAdminAccess=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Deprecated use drives.list instead.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040092<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#update">update(teamDriveId, body=None, useDomainAdminAccess=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Deprecated use drives.update instead.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040098<h3>Method Details</h3>
99<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102</div>
103
104<div class="method">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400105 <code class="details" id="delete">delete(teamDriveId)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106 <pre>Deprecated use drives.delete instead.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400107
108Args:
109 teamDriveId: string, The ID of the Team Drive (required)
110</pre>
111</div>
112
113<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114 <code class="details" id="get">get(teamDriveId, useDomainAdminAccess=None)</code>
115 <pre>Deprecated use drives.get instead.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400116
117Args:
118 teamDriveId: string, The ID of the Team Drive (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119 useDomainAdminAccess: boolean, Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400120
121Returns:
122 An object of the form:
123
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700124 { # Deprecated: use the drive collection instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 &quot;backgroundImageFile&quot;: { # An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests that don&#x27;t set themeId. When specified, all fields of the backgroundImageFile must be set.
126 &quot;id&quot;: &quot;A String&quot;, # The ID of an image file in Drive to use for the background image.
127 &quot;width&quot;: 3.14, # The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.
128 &quot;xCoordinate&quot;: 3.14, # The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.
129 &quot;yCoordinate&quot;: 3.14, # The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700130 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700131 &quot;backgroundImageLink&quot;: &quot;A String&quot;, # A short-lived link to this Team Drive&#x27;s background image.
132 &quot;capabilities&quot;: { # Capabilities the current user has on this Team Drive.
133 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to folders in this Team Drive.
134 &quot;canChangeCopyRequiresWriterPermissionRestriction&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive.
135 &quot;canChangeDomainUsersOnlyRestriction&quot;: True or False, # Whether the current user can change the domainUsersOnly restriction of this Team Drive.
136 &quot;canChangeTeamDriveBackground&quot;: True or False, # Whether the current user can change the background of this Team Drive.
137 &quot;canChangeTeamMembersOnlyRestriction&quot;: True or False, # Whether the current user can change the teamMembersOnly restriction of this Team Drive.
138 &quot;canComment&quot;: True or False, # Whether the current user can comment on files in this Team Drive.
139 &quot;canCopy&quot;: True or False, # Whether the current user can copy files in this Team Drive.
140 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children from folders in this Team Drive.
141 &quot;canDeleteTeamDrive&quot;: True or False, # Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive.
142 &quot;canDownload&quot;: True or False, # Whether the current user can download files in this Team Drive.
143 &quot;canEdit&quot;: True or False, # Whether the current user can edit files in this Team Drive
144 &quot;canListChildren&quot;: True or False, # Whether the current user can list the children of folders in this Team Drive.
145 &quot;canManageMembers&quot;: True or False, # Whether the current user can add members to this Team Drive or remove them or change their role.
146 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of files in this Team Drive.
147 &quot;canRemoveChildren&quot;: True or False, # Deprecated - use canDeleteChildren or canTrashChildren instead.
148 &quot;canRename&quot;: True or False, # Whether the current user can rename files or folders in this Team Drive.
149 &quot;canRenameTeamDrive&quot;: True or False, # Whether the current user can rename this Team Drive.
150 &quot;canShare&quot;: True or False, # Whether the current user can share files or folders in this Team Drive.
151 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children from folders in this Team Drive.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400152 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700153 &quot;colorRgb&quot;: &quot;A String&quot;, # The color of this Team Drive as an RGB hex string. It can only be set on a drive.teamdrives.update request that does not set themeId.
154 &quot;createdDate&quot;: &quot;A String&quot;, # The time at which the Team Drive was created (RFC 3339 date-time).
155 &quot;id&quot;: &quot;A String&quot;, # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive.
156 &quot;kind&quot;: &quot;drive#teamDrive&quot;, # This is always drive#teamDrive
157 &quot;name&quot;: &quot;A String&quot;, # The name of this Team Drive.
158 &quot;restrictions&quot;: { # A set of restrictions that apply to this Team Drive or items inside this Team Drive.
159 &quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions.
160 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this Team Drive.
161 &quot;domainUsersOnly&quot;: True or False, # Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
162 &quot;teamMembersOnly&quot;: True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400163 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700164 &quot;themeId&quot;: &quot;A String&quot;, # The ID of the theme from which the background image and color will be set. The set of possible teamDriveThemes can be retrieved from a drive.about.get response. When not specified on a drive.teamdrives.insert request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don&#x27;t set colorRgb or backgroundImageFile.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400165 }</pre>
166</div>
167
168<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700169 <code class="details" id="insert">insert(requestId, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700170 <pre>Deprecated use drives.insert instead.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400171
172Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 requestId: string, An ID, such as a random UUID, which uniquely identifies this user&#x27;s request for idempotent creation of a Team Drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same Team Drive. If the Team Drive already exists a 409 error will be returned. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700174 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400175 The object takes the form of:
176
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700177{ # Deprecated: use the drive collection instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &quot;backgroundImageFile&quot;: { # An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests that don&#x27;t set themeId. When specified, all fields of the backgroundImageFile must be set.
179 &quot;id&quot;: &quot;A String&quot;, # The ID of an image file in Drive to use for the background image.
180 &quot;width&quot;: 3.14, # The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.
181 &quot;xCoordinate&quot;: 3.14, # The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.
182 &quot;yCoordinate&quot;: 3.14, # The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700183 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700184 &quot;backgroundImageLink&quot;: &quot;A String&quot;, # A short-lived link to this Team Drive&#x27;s background image.
185 &quot;capabilities&quot;: { # Capabilities the current user has on this Team Drive.
186 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to folders in this Team Drive.
187 &quot;canChangeCopyRequiresWriterPermissionRestriction&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive.
188 &quot;canChangeDomainUsersOnlyRestriction&quot;: True or False, # Whether the current user can change the domainUsersOnly restriction of this Team Drive.
189 &quot;canChangeTeamDriveBackground&quot;: True or False, # Whether the current user can change the background of this Team Drive.
190 &quot;canChangeTeamMembersOnlyRestriction&quot;: True or False, # Whether the current user can change the teamMembersOnly restriction of this Team Drive.
191 &quot;canComment&quot;: True or False, # Whether the current user can comment on files in this Team Drive.
192 &quot;canCopy&quot;: True or False, # Whether the current user can copy files in this Team Drive.
193 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children from folders in this Team Drive.
194 &quot;canDeleteTeamDrive&quot;: True or False, # Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive.
195 &quot;canDownload&quot;: True or False, # Whether the current user can download files in this Team Drive.
196 &quot;canEdit&quot;: True or False, # Whether the current user can edit files in this Team Drive
197 &quot;canListChildren&quot;: True or False, # Whether the current user can list the children of folders in this Team Drive.
198 &quot;canManageMembers&quot;: True or False, # Whether the current user can add members to this Team Drive or remove them or change their role.
199 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of files in this Team Drive.
200 &quot;canRemoveChildren&quot;: True or False, # Deprecated - use canDeleteChildren or canTrashChildren instead.
201 &quot;canRename&quot;: True or False, # Whether the current user can rename files or folders in this Team Drive.
202 &quot;canRenameTeamDrive&quot;: True or False, # Whether the current user can rename this Team Drive.
203 &quot;canShare&quot;: True or False, # Whether the current user can share files or folders in this Team Drive.
204 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children from folders in this Team Drive.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400205 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700206 &quot;colorRgb&quot;: &quot;A String&quot;, # The color of this Team Drive as an RGB hex string. It can only be set on a drive.teamdrives.update request that does not set themeId.
207 &quot;createdDate&quot;: &quot;A String&quot;, # The time at which the Team Drive was created (RFC 3339 date-time).
208 &quot;id&quot;: &quot;A String&quot;, # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive.
209 &quot;kind&quot;: &quot;drive#teamDrive&quot;, # This is always drive#teamDrive
210 &quot;name&quot;: &quot;A String&quot;, # The name of this Team Drive.
211 &quot;restrictions&quot;: { # A set of restrictions that apply to this Team Drive or items inside this Team Drive.
212 &quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions.
213 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this Team Drive.
214 &quot;domainUsersOnly&quot;: True or False, # Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
215 &quot;teamMembersOnly&quot;: True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400216 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700217 &quot;themeId&quot;: &quot;A String&quot;, # The ID of the theme from which the background image and color will be set. The set of possible teamDriveThemes can be retrieved from a drive.about.get response. When not specified on a drive.teamdrives.insert request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don&#x27;t set colorRgb or backgroundImageFile.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400218}
219
220
221Returns:
222 An object of the form:
223
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700224 { # Deprecated: use the drive collection instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 &quot;backgroundImageFile&quot;: { # An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests that don&#x27;t set themeId. When specified, all fields of the backgroundImageFile must be set.
226 &quot;id&quot;: &quot;A String&quot;, # The ID of an image file in Drive to use for the background image.
227 &quot;width&quot;: 3.14, # The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.
228 &quot;xCoordinate&quot;: 3.14, # The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.
229 &quot;yCoordinate&quot;: 3.14, # The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700230 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700231 &quot;backgroundImageLink&quot;: &quot;A String&quot;, # A short-lived link to this Team Drive&#x27;s background image.
232 &quot;capabilities&quot;: { # Capabilities the current user has on this Team Drive.
233 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to folders in this Team Drive.
234 &quot;canChangeCopyRequiresWriterPermissionRestriction&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive.
235 &quot;canChangeDomainUsersOnlyRestriction&quot;: True or False, # Whether the current user can change the domainUsersOnly restriction of this Team Drive.
236 &quot;canChangeTeamDriveBackground&quot;: True or False, # Whether the current user can change the background of this Team Drive.
237 &quot;canChangeTeamMembersOnlyRestriction&quot;: True or False, # Whether the current user can change the teamMembersOnly restriction of this Team Drive.
238 &quot;canComment&quot;: True or False, # Whether the current user can comment on files in this Team Drive.
239 &quot;canCopy&quot;: True or False, # Whether the current user can copy files in this Team Drive.
240 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children from folders in this Team Drive.
241 &quot;canDeleteTeamDrive&quot;: True or False, # Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive.
242 &quot;canDownload&quot;: True or False, # Whether the current user can download files in this Team Drive.
243 &quot;canEdit&quot;: True or False, # Whether the current user can edit files in this Team Drive
244 &quot;canListChildren&quot;: True or False, # Whether the current user can list the children of folders in this Team Drive.
245 &quot;canManageMembers&quot;: True or False, # Whether the current user can add members to this Team Drive or remove them or change their role.
246 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of files in this Team Drive.
247 &quot;canRemoveChildren&quot;: True or False, # Deprecated - use canDeleteChildren or canTrashChildren instead.
248 &quot;canRename&quot;: True or False, # Whether the current user can rename files or folders in this Team Drive.
249 &quot;canRenameTeamDrive&quot;: True or False, # Whether the current user can rename this Team Drive.
250 &quot;canShare&quot;: True or False, # Whether the current user can share files or folders in this Team Drive.
251 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children from folders in this Team Drive.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400252 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700253 &quot;colorRgb&quot;: &quot;A String&quot;, # The color of this Team Drive as an RGB hex string. It can only be set on a drive.teamdrives.update request that does not set themeId.
254 &quot;createdDate&quot;: &quot;A String&quot;, # The time at which the Team Drive was created (RFC 3339 date-time).
255 &quot;id&quot;: &quot;A String&quot;, # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive.
256 &quot;kind&quot;: &quot;drive#teamDrive&quot;, # This is always drive#teamDrive
257 &quot;name&quot;: &quot;A String&quot;, # The name of this Team Drive.
258 &quot;restrictions&quot;: { # A set of restrictions that apply to this Team Drive or items inside this Team Drive.
259 &quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions.
260 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this Team Drive.
261 &quot;domainUsersOnly&quot;: True or False, # Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
262 &quot;teamMembersOnly&quot;: True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400263 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700264 &quot;themeId&quot;: &quot;A String&quot;, # The ID of the theme from which the background image and color will be set. The set of possible teamDriveThemes can be retrieved from a drive.about.get response. When not specified on a drive.teamdrives.insert request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don&#x27;t set colorRgb or backgroundImageFile.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400265 }</pre>
266</div>
267
268<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700269 <code class="details" id="list">list(maxResults=None, pageToken=None, q=None, useDomainAdminAccess=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700270 <pre>Deprecated use drives.list instead.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400271
272Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400273 maxResults: integer, Maximum number of Team Drives to return.
Bu Sun Kim65020912020-05-20 12:08:20 -0700274 pageToken: string, Page token for Team Drives.
275 q: string, Query string for searching Team Drives.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700276 useDomainAdminAccess: boolean, Issue the request as a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400277
278Returns:
279 An object of the form:
280
281 { # A list of Team Drives.
Bu Sun Kim65020912020-05-20 12:08:20 -0700282 &quot;items&quot;: [ # The list of Team Drives.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700283 { # Deprecated: use the drive collection instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700284 &quot;backgroundImageFile&quot;: { # An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests that don&#x27;t set themeId. When specified, all fields of the backgroundImageFile must be set.
285 &quot;id&quot;: &quot;A String&quot;, # The ID of an image file in Drive to use for the background image.
286 &quot;width&quot;: 3.14, # The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.
287 &quot;xCoordinate&quot;: 3.14, # The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.
288 &quot;yCoordinate&quot;: 3.14, # The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700289 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700290 &quot;backgroundImageLink&quot;: &quot;A String&quot;, # A short-lived link to this Team Drive&#x27;s background image.
291 &quot;capabilities&quot;: { # Capabilities the current user has on this Team Drive.
292 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to folders in this Team Drive.
293 &quot;canChangeCopyRequiresWriterPermissionRestriction&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive.
294 &quot;canChangeDomainUsersOnlyRestriction&quot;: True or False, # Whether the current user can change the domainUsersOnly restriction of this Team Drive.
295 &quot;canChangeTeamDriveBackground&quot;: True or False, # Whether the current user can change the background of this Team Drive.
296 &quot;canChangeTeamMembersOnlyRestriction&quot;: True or False, # Whether the current user can change the teamMembersOnly restriction of this Team Drive.
297 &quot;canComment&quot;: True or False, # Whether the current user can comment on files in this Team Drive.
298 &quot;canCopy&quot;: True or False, # Whether the current user can copy files in this Team Drive.
299 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children from folders in this Team Drive.
300 &quot;canDeleteTeamDrive&quot;: True or False, # Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive.
301 &quot;canDownload&quot;: True or False, # Whether the current user can download files in this Team Drive.
302 &quot;canEdit&quot;: True or False, # Whether the current user can edit files in this Team Drive
303 &quot;canListChildren&quot;: True or False, # Whether the current user can list the children of folders in this Team Drive.
304 &quot;canManageMembers&quot;: True or False, # Whether the current user can add members to this Team Drive or remove them or change their role.
305 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of files in this Team Drive.
306 &quot;canRemoveChildren&quot;: True or False, # Deprecated - use canDeleteChildren or canTrashChildren instead.
307 &quot;canRename&quot;: True or False, # Whether the current user can rename files or folders in this Team Drive.
308 &quot;canRenameTeamDrive&quot;: True or False, # Whether the current user can rename this Team Drive.
309 &quot;canShare&quot;: True or False, # Whether the current user can share files or folders in this Team Drive.
310 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children from folders in this Team Drive.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400311 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700312 &quot;colorRgb&quot;: &quot;A String&quot;, # The color of this Team Drive as an RGB hex string. It can only be set on a drive.teamdrives.update request that does not set themeId.
313 &quot;createdDate&quot;: &quot;A String&quot;, # The time at which the Team Drive was created (RFC 3339 date-time).
314 &quot;id&quot;: &quot;A String&quot;, # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive.
315 &quot;kind&quot;: &quot;drive#teamDrive&quot;, # This is always drive#teamDrive
316 &quot;name&quot;: &quot;A String&quot;, # The name of this Team Drive.
317 &quot;restrictions&quot;: { # A set of restrictions that apply to this Team Drive or items inside this Team Drive.
318 &quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions.
319 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this Team Drive.
320 &quot;domainUsersOnly&quot;: True or False, # Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
321 &quot;teamMembersOnly&quot;: True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400322 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700323 &quot;themeId&quot;: &quot;A String&quot;, # The ID of the theme from which the background image and color will be set. The set of possible teamDriveThemes can be retrieved from a drive.about.get response. When not specified on a drive.teamdrives.insert request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don&#x27;t set colorRgb or backgroundImageFile.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400324 },
325 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700326 &quot;kind&quot;: &quot;drive#teamDriveList&quot;, # This is always drive#teamDriveList
327 &quot;nextPageToken&quot;: &quot;A String&quot;, # The page token for the next page of Team Drives.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400328 }</pre>
329</div>
330
331<div class="method">
332 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
333 <pre>Retrieves the next page of results.
334
335Args:
336 previous_request: The request for the previous page. (required)
337 previous_response: The response from the request for the previous page. (required)
338
339Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700340 A request object that you can call &#x27;execute()&#x27; on to request the next
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400341 page. Returns None if there are no more items in the collection.
342 </pre>
343</div>
344
345<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700346 <code class="details" id="update">update(teamDriveId, body=None, useDomainAdminAccess=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700347 <pre>Deprecated use drives.update instead.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400348
349Args:
350 teamDriveId: string, The ID of the Team Drive (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700351 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400352 The object takes the form of:
353
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700354{ # Deprecated: use the drive collection instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700355 &quot;backgroundImageFile&quot;: { # An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests that don&#x27;t set themeId. When specified, all fields of the backgroundImageFile must be set.
356 &quot;id&quot;: &quot;A String&quot;, # The ID of an image file in Drive to use for the background image.
357 &quot;width&quot;: 3.14, # The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.
358 &quot;xCoordinate&quot;: 3.14, # The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.
359 &quot;yCoordinate&quot;: 3.14, # The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700360 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700361 &quot;backgroundImageLink&quot;: &quot;A String&quot;, # A short-lived link to this Team Drive&#x27;s background image.
362 &quot;capabilities&quot;: { # Capabilities the current user has on this Team Drive.
363 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to folders in this Team Drive.
364 &quot;canChangeCopyRequiresWriterPermissionRestriction&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive.
365 &quot;canChangeDomainUsersOnlyRestriction&quot;: True or False, # Whether the current user can change the domainUsersOnly restriction of this Team Drive.
366 &quot;canChangeTeamDriveBackground&quot;: True or False, # Whether the current user can change the background of this Team Drive.
367 &quot;canChangeTeamMembersOnlyRestriction&quot;: True or False, # Whether the current user can change the teamMembersOnly restriction of this Team Drive.
368 &quot;canComment&quot;: True or False, # Whether the current user can comment on files in this Team Drive.
369 &quot;canCopy&quot;: True or False, # Whether the current user can copy files in this Team Drive.
370 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children from folders in this Team Drive.
371 &quot;canDeleteTeamDrive&quot;: True or False, # Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive.
372 &quot;canDownload&quot;: True or False, # Whether the current user can download files in this Team Drive.
373 &quot;canEdit&quot;: True or False, # Whether the current user can edit files in this Team Drive
374 &quot;canListChildren&quot;: True or False, # Whether the current user can list the children of folders in this Team Drive.
375 &quot;canManageMembers&quot;: True or False, # Whether the current user can add members to this Team Drive or remove them or change their role.
376 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of files in this Team Drive.
377 &quot;canRemoveChildren&quot;: True or False, # Deprecated - use canDeleteChildren or canTrashChildren instead.
378 &quot;canRename&quot;: True or False, # Whether the current user can rename files or folders in this Team Drive.
379 &quot;canRenameTeamDrive&quot;: True or False, # Whether the current user can rename this Team Drive.
380 &quot;canShare&quot;: True or False, # Whether the current user can share files or folders in this Team Drive.
381 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children from folders in this Team Drive.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400382 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700383 &quot;colorRgb&quot;: &quot;A String&quot;, # The color of this Team Drive as an RGB hex string. It can only be set on a drive.teamdrives.update request that does not set themeId.
384 &quot;createdDate&quot;: &quot;A String&quot;, # The time at which the Team Drive was created (RFC 3339 date-time).
385 &quot;id&quot;: &quot;A String&quot;, # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive.
386 &quot;kind&quot;: &quot;drive#teamDrive&quot;, # This is always drive#teamDrive
387 &quot;name&quot;: &quot;A String&quot;, # The name of this Team Drive.
388 &quot;restrictions&quot;: { # A set of restrictions that apply to this Team Drive or items inside this Team Drive.
389 &quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions.
390 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this Team Drive.
391 &quot;domainUsersOnly&quot;: True or False, # Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
392 &quot;teamMembersOnly&quot;: True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400393 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700394 &quot;themeId&quot;: &quot;A String&quot;, # The ID of the theme from which the background image and color will be set. The set of possible teamDriveThemes can be retrieved from a drive.about.get response. When not specified on a drive.teamdrives.insert request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don&#x27;t set colorRgb or backgroundImageFile.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400395}
396
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700397 useDomainAdminAccess: boolean, Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400398
399Returns:
400 An object of the form:
401
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700402 { # Deprecated: use the drive collection instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700403 &quot;backgroundImageFile&quot;: { # An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests that don&#x27;t set themeId. When specified, all fields of the backgroundImageFile must be set.
404 &quot;id&quot;: &quot;A String&quot;, # The ID of an image file in Drive to use for the background image.
405 &quot;width&quot;: 3.14, # The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.
406 &quot;xCoordinate&quot;: 3.14, # The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.
407 &quot;yCoordinate&quot;: 3.14, # The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700408 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700409 &quot;backgroundImageLink&quot;: &quot;A String&quot;, # A short-lived link to this Team Drive&#x27;s background image.
410 &quot;capabilities&quot;: { # Capabilities the current user has on this Team Drive.
411 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to folders in this Team Drive.
412 &quot;canChangeCopyRequiresWriterPermissionRestriction&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive.
413 &quot;canChangeDomainUsersOnlyRestriction&quot;: True or False, # Whether the current user can change the domainUsersOnly restriction of this Team Drive.
414 &quot;canChangeTeamDriveBackground&quot;: True or False, # Whether the current user can change the background of this Team Drive.
415 &quot;canChangeTeamMembersOnlyRestriction&quot;: True or False, # Whether the current user can change the teamMembersOnly restriction of this Team Drive.
416 &quot;canComment&quot;: True or False, # Whether the current user can comment on files in this Team Drive.
417 &quot;canCopy&quot;: True or False, # Whether the current user can copy files in this Team Drive.
418 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children from folders in this Team Drive.
419 &quot;canDeleteTeamDrive&quot;: True or False, # Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive.
420 &quot;canDownload&quot;: True or False, # Whether the current user can download files in this Team Drive.
421 &quot;canEdit&quot;: True or False, # Whether the current user can edit files in this Team Drive
422 &quot;canListChildren&quot;: True or False, # Whether the current user can list the children of folders in this Team Drive.
423 &quot;canManageMembers&quot;: True or False, # Whether the current user can add members to this Team Drive or remove them or change their role.
424 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of files in this Team Drive.
425 &quot;canRemoveChildren&quot;: True or False, # Deprecated - use canDeleteChildren or canTrashChildren instead.
426 &quot;canRename&quot;: True or False, # Whether the current user can rename files or folders in this Team Drive.
427 &quot;canRenameTeamDrive&quot;: True or False, # Whether the current user can rename this Team Drive.
428 &quot;canShare&quot;: True or False, # Whether the current user can share files or folders in this Team Drive.
429 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children from folders in this Team Drive.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400430 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700431 &quot;colorRgb&quot;: &quot;A String&quot;, # The color of this Team Drive as an RGB hex string. It can only be set on a drive.teamdrives.update request that does not set themeId.
432 &quot;createdDate&quot;: &quot;A String&quot;, # The time at which the Team Drive was created (RFC 3339 date-time).
433 &quot;id&quot;: &quot;A String&quot;, # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive.
434 &quot;kind&quot;: &quot;drive#teamDrive&quot;, # This is always drive#teamDrive
435 &quot;name&quot;: &quot;A String&quot;, # The name of this Team Drive.
436 &quot;restrictions&quot;: { # A set of restrictions that apply to this Team Drive or items inside this Team Drive.
437 &quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions.
438 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this Team Drive.
439 &quot;domainUsersOnly&quot;: True or False, # Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
440 &quot;teamMembersOnly&quot;: True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400441 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700442 &quot;themeId&quot;: &quot;A String&quot;, # The ID of the theme from which the background image and color will be set. The set of possible teamDriveThemes can be retrieved from a drive.about.get response. When not specified on a drive.teamdrives.insert request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don&#x27;t set colorRgb or backgroundImageFile.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400443 }</pre>
444</div>
445
446</body></html>