1<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_v3.html">Drive API</a> . <a href="drive_v3.teamdrives.html">teamdrives</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#create">create(requestId, body)</a></code></p> 79<p class="firstline">Deprecated use drives.create instead.</p> 80<p class="toc_element"> 81 <code><a href="#delete">delete(teamDriveId)</a></code></p> 82<p class="firstline">Deprecated use drives.delete instead.</p> 83<p class="toc_element"> 84 <code><a href="#get">get(teamDriveId, useDomainAdminAccess=None)</a></code></p> 85<p class="firstline">Deprecated use drives.get instead.</p> 86<p class="toc_element"> 87 <code><a href="#list">list(q=None, pageSize=None, pageToken=None, useDomainAdminAccess=None)</a></code></p> 88<p class="firstline">Deprecated use drives.list instead.</p> 89<p class="toc_element"> 90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 91<p class="firstline">Retrieves the next page of results.</p> 92<p class="toc_element"> 93 <code><a href="#update">update(teamDriveId, body, useDomainAdminAccess=None)</a></code></p> 94<p class="firstline">Deprecated use drives.update instead</p> 95<h3>Method Details</h3> 96<div class="method"> 97 <code class="details" id="create">create(requestId, body)</code> 98 <pre>Deprecated use drives.create instead. 99 100Args: 101 requestId: string, An ID, such as a random UUID, which uniquely identifies this user'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) 102 body: object, The request body. (required) 103 The object takes the form of: 104 105{ # Deprecated: use the drive collection instead. 106 "restrictions": { # A set of restrictions that apply to this Team Drive or items inside this Team Drive. 107 "adminManagedRestrictions": True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions. 108 "copyRequiresWriterPermission": 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. 109 "domainUsersOnly": 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. 110 "teamMembersOnly": True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive. 111 }, 112 "colorRgb": "A String", # 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. 113 "backgroundImageLink": "A String", # A short-lived link to this Team Drive's background image. 114 "name": "A String", # The name of this Team Drive. 115 "themeId": "A String", # 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.create 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't set colorRgb or backgroundImageFile. 116 "kind": "drive#teamDrive", # Identifies what kind of resource this is. Value: the fixed string "drive#teamDrive". 117 "capabilities": { # Capabilities the current user has on this Team Drive. 118 "canReadRevisions": True or False, # Whether the current user can read the revisions resource of files in this Team Drive. 119 "canCopy": True or False, # Whether the current user can copy files in this Team Drive. 120 "canShare": True or False, # Whether the current user can share files or folders in this Team Drive. 121 "canTrashChildren": True or False, # Whether the current user can trash children from folders in this Team Drive. 122 "canListChildren": True or False, # Whether the current user can list the children of folders in this Team Drive. 123 "canChangeTeamMembersOnlyRestriction": True or False, # Whether the current user can change the teamMembersOnly restriction of this Team Drive. 124 "canRename": True or False, # Whether the current user can rename files or folders in this Team Drive. 125 "canChangeCopyRequiresWriterPermissionRestriction": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive. 126 "canRenameTeamDrive": True or False, # Whether the current user can rename this Team Drive. 127 "canManageMembers": True or False, # Whether the current user can add members to this Team Drive or remove them or change their role. 128 "canDownload": True or False, # Whether the current user can download files in this Team Drive. 129 "canComment": True or False, # Whether the current user can comment on files in this Team Drive. 130 "canChangeTeamDriveBackground": True or False, # Whether the current user can change the background of this Team Drive. 131 "canDeleteTeamDrive": 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. 132 "canEdit": True or False, # Whether the current user can edit files in this Team Drive 133 "canRemoveChildren": True or False, # Deprecated - use canDeleteChildren or canTrashChildren instead. 134 "canDeleteChildren": True or False, # Whether the current user can delete children from folders in this Team Drive. 135 "canAddChildren": True or False, # Whether the current user can add children to folders in this Team Drive. 136 "canChangeDomainUsersOnlyRestriction": True or False, # Whether the current user can change the domainUsersOnly restriction of this Team Drive. 137 }, 138 "backgroundImageFile": { # 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't set themeId. When specified, all fields of the backgroundImageFile must be set. 139 "width": 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. 140 "yCoordinate": 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. 141 "id": "A String", # The ID of an image file in Drive to use for the background image. 142 "xCoordinate": 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. 143 }, 144 "createdTime": "A String", # The time at which the Team Drive was created (RFC 3339 date-time). 145 "id": "A String", # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive. 146} 147 148 149Returns: 150 An object of the form: 151 152 { # Deprecated: use the drive collection instead. 153 "restrictions": { # A set of restrictions that apply to this Team Drive or items inside this Team Drive. 154 "adminManagedRestrictions": True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions. 155 "copyRequiresWriterPermission": 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. 156 "domainUsersOnly": 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. 157 "teamMembersOnly": True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive. 158 }, 159 "colorRgb": "A String", # 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. 160 "backgroundImageLink": "A String", # A short-lived link to this Team Drive's background image. 161 "name": "A String", # The name of this Team Drive. 162 "themeId": "A String", # 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.create 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't set colorRgb or backgroundImageFile. 163 "kind": "drive#teamDrive", # Identifies what kind of resource this is. Value: the fixed string "drive#teamDrive". 164 "capabilities": { # Capabilities the current user has on this Team Drive. 165 "canReadRevisions": True or False, # Whether the current user can read the revisions resource of files in this Team Drive. 166 "canCopy": True or False, # Whether the current user can copy files in this Team Drive. 167 "canShare": True or False, # Whether the current user can share files or folders in this Team Drive. 168 "canTrashChildren": True or False, # Whether the current user can trash children from folders in this Team Drive. 169 "canListChildren": True or False, # Whether the current user can list the children of folders in this Team Drive. 170 "canChangeTeamMembersOnlyRestriction": True or False, # Whether the current user can change the teamMembersOnly restriction of this Team Drive. 171 "canRename": True or False, # Whether the current user can rename files or folders in this Team Drive. 172 "canChangeCopyRequiresWriterPermissionRestriction": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive. 173 "canRenameTeamDrive": True or False, # Whether the current user can rename this Team Drive. 174 "canManageMembers": True or False, # Whether the current user can add members to this Team Drive or remove them or change their role. 175 "canDownload": True or False, # Whether the current user can download files in this Team Drive. 176 "canComment": True or False, # Whether the current user can comment on files in this Team Drive. 177 "canChangeTeamDriveBackground": True or False, # Whether the current user can change the background of this Team Drive. 178 "canDeleteTeamDrive": 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. 179 "canEdit": True or False, # Whether the current user can edit files in this Team Drive 180 "canRemoveChildren": True or False, # Deprecated - use canDeleteChildren or canTrashChildren instead. 181 "canDeleteChildren": True or False, # Whether the current user can delete children from folders in this Team Drive. 182 "canAddChildren": True or False, # Whether the current user can add children to folders in this Team Drive. 183 "canChangeDomainUsersOnlyRestriction": True or False, # Whether the current user can change the domainUsersOnly restriction of this Team Drive. 184 }, 185 "backgroundImageFile": { # 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't set themeId. When specified, all fields of the backgroundImageFile must be set. 186 "width": 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. 187 "yCoordinate": 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. 188 "id": "A String", # The ID of an image file in Drive to use for the background image. 189 "xCoordinate": 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. 190 }, 191 "createdTime": "A String", # The time at which the Team Drive was created (RFC 3339 date-time). 192 "id": "A String", # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive. 193 }</pre> 194</div> 195 196<div class="method"> 197 <code class="details" id="delete">delete(teamDriveId)</code> 198 <pre>Deprecated use drives.delete instead. 199 200Args: 201 teamDriveId: string, The ID of the Team Drive (required) 202</pre> 203</div> 204 205<div class="method"> 206 <code class="details" id="get">get(teamDriveId, useDomainAdminAccess=None)</code> 207 <pre>Deprecated use drives.get instead. 208 209Args: 210 teamDriveId: string, The ID of the Team Drive (required) 211 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. 212 213Returns: 214 An object of the form: 215 216 { # Deprecated: use the drive collection instead. 217 "restrictions": { # A set of restrictions that apply to this Team Drive or items inside this Team Drive. 218 "adminManagedRestrictions": True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions. 219 "copyRequiresWriterPermission": 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. 220 "domainUsersOnly": 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. 221 "teamMembersOnly": True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive. 222 }, 223 "colorRgb": "A String", # 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. 224 "backgroundImageLink": "A String", # A short-lived link to this Team Drive's background image. 225 "name": "A String", # The name of this Team Drive. 226 "themeId": "A String", # 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.create 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't set colorRgb or backgroundImageFile. 227 "kind": "drive#teamDrive", # Identifies what kind of resource this is. Value: the fixed string "drive#teamDrive". 228 "capabilities": { # Capabilities the current user has on this Team Drive. 229 "canReadRevisions": True or False, # Whether the current user can read the revisions resource of files in this Team Drive. 230 "canCopy": True or False, # Whether the current user can copy files in this Team Drive. 231 "canShare": True or False, # Whether the current user can share files or folders in this Team Drive. 232 "canTrashChildren": True or False, # Whether the current user can trash children from folders in this Team Drive. 233 "canListChildren": True or False, # Whether the current user can list the children of folders in this Team Drive. 234 "canChangeTeamMembersOnlyRestriction": True or False, # Whether the current user can change the teamMembersOnly restriction of this Team Drive. 235 "canRename": True or False, # Whether the current user can rename files or folders in this Team Drive. 236 "canChangeCopyRequiresWriterPermissionRestriction": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive. 237 "canRenameTeamDrive": True or False, # Whether the current user can rename this Team Drive. 238 "canManageMembers": True or False, # Whether the current user can add members to this Team Drive or remove them or change their role. 239 "canDownload": True or False, # Whether the current user can download files in this Team Drive. 240 "canComment": True or False, # Whether the current user can comment on files in this Team Drive. 241 "canChangeTeamDriveBackground": True or False, # Whether the current user can change the background of this Team Drive. 242 "canDeleteTeamDrive": 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. 243 "canEdit": True or False, # Whether the current user can edit files in this Team Drive 244 "canRemoveChildren": True or False, # Deprecated - use canDeleteChildren or canTrashChildren instead. 245 "canDeleteChildren": True or False, # Whether the current user can delete children from folders in this Team Drive. 246 "canAddChildren": True or False, # Whether the current user can add children to folders in this Team Drive. 247 "canChangeDomainUsersOnlyRestriction": True or False, # Whether the current user can change the domainUsersOnly restriction of this Team Drive. 248 }, 249 "backgroundImageFile": { # 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't set themeId. When specified, all fields of the backgroundImageFile must be set. 250 "width": 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. 251 "yCoordinate": 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. 252 "id": "A String", # The ID of an image file in Drive to use for the background image. 253 "xCoordinate": 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. 254 }, 255 "createdTime": "A String", # The time at which the Team Drive was created (RFC 3339 date-time). 256 "id": "A String", # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive. 257 }</pre> 258</div> 259 260<div class="method"> 261 <code class="details" id="list">list(q=None, pageSize=None, pageToken=None, useDomainAdminAccess=None)</code> 262 <pre>Deprecated use drives.list instead. 263 264Args: 265 q: string, Query string for searching Team Drives. 266 pageSize: integer, Maximum number of Team Drives to return. 267 pageToken: string, Page token for Team Drives. 268 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. 269 270Returns: 271 An object of the form: 272 273 { # A list of Team Drives. 274 "nextPageToken": "A String", # The page token for the next page of Team Drives. This will be absent if the end of the Team Drives list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results. 275 "kind": "drive#teamDriveList", # Identifies what kind of resource this is. Value: the fixed string "drive#teamDriveList". 276 "teamDrives": [ # The list of Team Drives. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. 277 { # Deprecated: use the drive collection instead. 278 "restrictions": { # A set of restrictions that apply to this Team Drive or items inside this Team Drive. 279 "adminManagedRestrictions": True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions. 280 "copyRequiresWriterPermission": 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. 281 "domainUsersOnly": 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. 282 "teamMembersOnly": True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive. 283 }, 284 "colorRgb": "A String", # 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. 285 "backgroundImageLink": "A String", # A short-lived link to this Team Drive's background image. 286 "name": "A String", # The name of this Team Drive. 287 "themeId": "A String", # 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.create 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't set colorRgb or backgroundImageFile. 288 "kind": "drive#teamDrive", # Identifies what kind of resource this is. Value: the fixed string "drive#teamDrive". 289 "capabilities": { # Capabilities the current user has on this Team Drive. 290 "canReadRevisions": True or False, # Whether the current user can read the revisions resource of files in this Team Drive. 291 "canCopy": True or False, # Whether the current user can copy files in this Team Drive. 292 "canShare": True or False, # Whether the current user can share files or folders in this Team Drive. 293 "canTrashChildren": True or False, # Whether the current user can trash children from folders in this Team Drive. 294 "canListChildren": True or False, # Whether the current user can list the children of folders in this Team Drive. 295 "canChangeTeamMembersOnlyRestriction": True or False, # Whether the current user can change the teamMembersOnly restriction of this Team Drive. 296 "canRename": True or False, # Whether the current user can rename files or folders in this Team Drive. 297 "canChangeCopyRequiresWriterPermissionRestriction": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive. 298 "canRenameTeamDrive": True or False, # Whether the current user can rename this Team Drive. 299 "canManageMembers": True or False, # Whether the current user can add members to this Team Drive or remove them or change their role. 300 "canDownload": True or False, # Whether the current user can download files in this Team Drive. 301 "canComment": True or False, # Whether the current user can comment on files in this Team Drive. 302 "canChangeTeamDriveBackground": True or False, # Whether the current user can change the background of this Team Drive. 303 "canDeleteTeamDrive": 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. 304 "canEdit": True or False, # Whether the current user can edit files in this Team Drive 305 "canRemoveChildren": True or False, # Deprecated - use canDeleteChildren or canTrashChildren instead. 306 "canDeleteChildren": True or False, # Whether the current user can delete children from folders in this Team Drive. 307 "canAddChildren": True or False, # Whether the current user can add children to folders in this Team Drive. 308 "canChangeDomainUsersOnlyRestriction": True or False, # Whether the current user can change the domainUsersOnly restriction of this Team Drive. 309 }, 310 "backgroundImageFile": { # 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't set themeId. When specified, all fields of the backgroundImageFile must be set. 311 "width": 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. 312 "yCoordinate": 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. 313 "id": "A String", # The ID of an image file in Drive to use for the background image. 314 "xCoordinate": 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. 315 }, 316 "createdTime": "A String", # The time at which the Team Drive was created (RFC 3339 date-time). 317 "id": "A String", # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive. 318 }, 319 ], 320 }</pre> 321</div> 322 323<div class="method"> 324 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 325 <pre>Retrieves the next page of results. 326 327Args: 328 previous_request: The request for the previous page. (required) 329 previous_response: The response from the request for the previous page. (required) 330 331Returns: 332 A request object that you can call 'execute()' on to request the next 333 page. Returns None if there are no more items in the collection. 334 </pre> 335</div> 336 337<div class="method"> 338 <code class="details" id="update">update(teamDriveId, body, useDomainAdminAccess=None)</code> 339 <pre>Deprecated use drives.update instead 340 341Args: 342 teamDriveId: string, The ID of the Team Drive (required) 343 body: object, The request body. (required) 344 The object takes the form of: 345 346{ # Deprecated: use the drive collection instead. 347 "restrictions": { # A set of restrictions that apply to this Team Drive or items inside this Team Drive. 348 "adminManagedRestrictions": True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions. 349 "copyRequiresWriterPermission": 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. 350 "domainUsersOnly": 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. 351 "teamMembersOnly": True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive. 352 }, 353 "colorRgb": "A String", # 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. 354 "backgroundImageLink": "A String", # A short-lived link to this Team Drive's background image. 355 "name": "A String", # The name of this Team Drive. 356 "themeId": "A String", # 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.create 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't set colorRgb or backgroundImageFile. 357 "kind": "drive#teamDrive", # Identifies what kind of resource this is. Value: the fixed string "drive#teamDrive". 358 "capabilities": { # Capabilities the current user has on this Team Drive. 359 "canReadRevisions": True or False, # Whether the current user can read the revisions resource of files in this Team Drive. 360 "canCopy": True or False, # Whether the current user can copy files in this Team Drive. 361 "canShare": True or False, # Whether the current user can share files or folders in this Team Drive. 362 "canTrashChildren": True or False, # Whether the current user can trash children from folders in this Team Drive. 363 "canListChildren": True or False, # Whether the current user can list the children of folders in this Team Drive. 364 "canChangeTeamMembersOnlyRestriction": True or False, # Whether the current user can change the teamMembersOnly restriction of this Team Drive. 365 "canRename": True or False, # Whether the current user can rename files or folders in this Team Drive. 366 "canChangeCopyRequiresWriterPermissionRestriction": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive. 367 "canRenameTeamDrive": True or False, # Whether the current user can rename this Team Drive. 368 "canManageMembers": True or False, # Whether the current user can add members to this Team Drive or remove them or change their role. 369 "canDownload": True or False, # Whether the current user can download files in this Team Drive. 370 "canComment": True or False, # Whether the current user can comment on files in this Team Drive. 371 "canChangeTeamDriveBackground": True or False, # Whether the current user can change the background of this Team Drive. 372 "canDeleteTeamDrive": 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. 373 "canEdit": True or False, # Whether the current user can edit files in this Team Drive 374 "canRemoveChildren": True or False, # Deprecated - use canDeleteChildren or canTrashChildren instead. 375 "canDeleteChildren": True or False, # Whether the current user can delete children from folders in this Team Drive. 376 "canAddChildren": True or False, # Whether the current user can add children to folders in this Team Drive. 377 "canChangeDomainUsersOnlyRestriction": True or False, # Whether the current user can change the domainUsersOnly restriction of this Team Drive. 378 }, 379 "backgroundImageFile": { # 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't set themeId. When specified, all fields of the backgroundImageFile must be set. 380 "width": 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. 381 "yCoordinate": 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. 382 "id": "A String", # The ID of an image file in Drive to use for the background image. 383 "xCoordinate": 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. 384 }, 385 "createdTime": "A String", # The time at which the Team Drive was created (RFC 3339 date-time). 386 "id": "A String", # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive. 387} 388 389 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. 390 391Returns: 392 An object of the form: 393 394 { # Deprecated: use the drive collection instead. 395 "restrictions": { # A set of restrictions that apply to this Team Drive or items inside this Team Drive. 396 "adminManagedRestrictions": True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions. 397 "copyRequiresWriterPermission": 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. 398 "domainUsersOnly": 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. 399 "teamMembersOnly": True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive. 400 }, 401 "colorRgb": "A String", # 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. 402 "backgroundImageLink": "A String", # A short-lived link to this Team Drive's background image. 403 "name": "A String", # The name of this Team Drive. 404 "themeId": "A String", # 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.create 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't set colorRgb or backgroundImageFile. 405 "kind": "drive#teamDrive", # Identifies what kind of resource this is. Value: the fixed string "drive#teamDrive". 406 "capabilities": { # Capabilities the current user has on this Team Drive. 407 "canReadRevisions": True or False, # Whether the current user can read the revisions resource of files in this Team Drive. 408 "canCopy": True or False, # Whether the current user can copy files in this Team Drive. 409 "canShare": True or False, # Whether the current user can share files or folders in this Team Drive. 410 "canTrashChildren": True or False, # Whether the current user can trash children from folders in this Team Drive. 411 "canListChildren": True or False, # Whether the current user can list the children of folders in this Team Drive. 412 "canChangeTeamMembersOnlyRestriction": True or False, # Whether the current user can change the teamMembersOnly restriction of this Team Drive. 413 "canRename": True or False, # Whether the current user can rename files or folders in this Team Drive. 414 "canChangeCopyRequiresWriterPermissionRestriction": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive. 415 "canRenameTeamDrive": True or False, # Whether the current user can rename this Team Drive. 416 "canManageMembers": True or False, # Whether the current user can add members to this Team Drive or remove them or change their role. 417 "canDownload": True or False, # Whether the current user can download files in this Team Drive. 418 "canComment": True or False, # Whether the current user can comment on files in this Team Drive. 419 "canChangeTeamDriveBackground": True or False, # Whether the current user can change the background of this Team Drive. 420 "canDeleteTeamDrive": 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. 421 "canEdit": True or False, # Whether the current user can edit files in this Team Drive 422 "canRemoveChildren": True or False, # Deprecated - use canDeleteChildren or canTrashChildren instead. 423 "canDeleteChildren": True or False, # Whether the current user can delete children from folders in this Team Drive. 424 "canAddChildren": True or False, # Whether the current user can add children to folders in this Team Drive. 425 "canChangeDomainUsersOnlyRestriction": True or False, # Whether the current user can change the domainUsersOnly restriction of this Team Drive. 426 }, 427 "backgroundImageFile": { # 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't set themeId. When specified, all fields of the backgroundImageFile must be set. 428 "width": 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. 429 "yCoordinate": 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. 430 "id": "A String", # The ID of an image file in Drive to use for the background image. 431 "xCoordinate": 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. 432 }, 433 "createdTime": "A String", # The time at which the Team Drive was created (RFC 3339 date-time). 434 "id": "A String", # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive. 435 }</pre> 436</div> 437 438</body></html>