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_v2.html">Drive API</a> . <a href="drive_v2.teamdrives.html">teamdrives</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#delete">delete(teamDriveId)</a></code></p> 79<p class="firstline">Deprecated use drives.delete instead.</p> 80<p class="toc_element"> 81 <code><a href="#get">get(teamDriveId, useDomainAdminAccess=None)</a></code></p> 82<p class="firstline">Deprecated use drives.get instead.</p> 83<p class="toc_element"> 84 <code><a href="#insert">insert(requestId, body)</a></code></p> 85<p class="firstline">Deprecated use drives.insert instead.</p> 86<p class="toc_element"> 87 <code><a href="#list">list(q=None, pageToken=None, maxResults=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="delete">delete(teamDriveId)</code> 98 <pre>Deprecated use drives.delete instead. 99 100Args: 101 teamDriveId: string, The ID of the Team Drive (required) 102</pre> 103</div> 104 105<div class="method"> 106 <code class="details" id="get">get(teamDriveId, useDomainAdminAccess=None)</code> 107 <pre>Deprecated use drives.get instead. 108 109Args: 110 teamDriveId: string, The ID of the Team Drive (required) 111 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. 112 113Returns: 114 An object of the form: 115 116 { # Deprecated: use the drive collection instead. 117 "restrictions": { # A set of restrictions that apply to this Team Drive or items inside this Team Drive. 118 "adminManagedRestrictions": True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions. 119 "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. 120 "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. 121 "teamMembersOnly": True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive. 122 }, 123 "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. 124 "backgroundImageLink": "A String", # A short-lived link to this Team Drive's background image. 125 "name": "A String", # The name of this Team Drive. 126 "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.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't set colorRgb or backgroundImageFile. 127 "kind": "drive#teamDrive", # This is always drive#teamDrive 128 "capabilities": { # Capabilities the current user has on this Team Drive. 129 "canReadRevisions": True or False, # Whether the current user can read the revisions resource of files in this Team Drive. 130 "canCopy": True or False, # Whether the current user can copy files in this Team Drive. 131 "canShare": True or False, # Whether the current user can share files or folders in this Team Drive. 132 "canTrashChildren": True or False, # Whether the current user can trash children from folders in this Team Drive. 133 "canListChildren": True or False, # Whether the current user can list the children of folders in this Team Drive. 134 "canChangeTeamMembersOnlyRestriction": True or False, # Whether the current user can change the teamMembersOnly restriction of this Team Drive. 135 "canRename": True or False, # Whether the current user can rename files or folders in this Team Drive. 136 "canChangeCopyRequiresWriterPermissionRestriction": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive. 137 "canRenameTeamDrive": True or False, # Whether the current user can rename this Team Drive. 138 "canManageMembers": True or False, # Whether the current user can add members to this Team Drive or remove them or change their role. 139 "canDownload": True or False, # Whether the current user can download files in this Team Drive. 140 "canComment": True or False, # Whether the current user can comment on files in this Team Drive. 141 "canChangeTeamDriveBackground": True or False, # Whether the current user can change the background of this Team Drive. 142 "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. 143 "canEdit": True or False, # Whether the current user can edit files in this Team Drive 144 "canRemoveChildren": True or False, # Deprecated - use canDeleteChildren or canTrashChildren instead. 145 "canDeleteChildren": True or False, # Whether the current user can delete children from folders in this Team Drive. 146 "canAddChildren": True or False, # Whether the current user can add children to folders in this Team Drive. 147 "canChangeDomainUsersOnlyRestriction": True or False, # Whether the current user can change the domainUsersOnly restriction of this Team Drive. 148 }, 149 "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. 150 "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. 151 "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. 152 "id": "A String", # The ID of an image file in Drive to use for the background image. 153 "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. 154 }, 155 "createdDate": "A String", # The time at which the Team Drive was created (RFC 3339 date-time). 156 "id": "A String", # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive. 157 }</pre> 158</div> 159 160<div class="method"> 161 <code class="details" id="insert">insert(requestId, body)</code> 162 <pre>Deprecated use drives.insert instead. 163 164Args: 165 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) 166 body: object, The request body. (required) 167 The object takes the form of: 168 169{ # Deprecated: use the drive collection instead. 170 "restrictions": { # A set of restrictions that apply to this Team Drive or items inside this Team Drive. 171 "adminManagedRestrictions": True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions. 172 "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. 173 "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. 174 "teamMembersOnly": True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive. 175 }, 176 "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. 177 "backgroundImageLink": "A String", # A short-lived link to this Team Drive's background image. 178 "name": "A String", # The name of this Team Drive. 179 "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.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't set colorRgb or backgroundImageFile. 180 "kind": "drive#teamDrive", # This is always drive#teamDrive 181 "capabilities": { # Capabilities the current user has on this Team Drive. 182 "canReadRevisions": True or False, # Whether the current user can read the revisions resource of files in this Team Drive. 183 "canCopy": True or False, # Whether the current user can copy files in this Team Drive. 184 "canShare": True or False, # Whether the current user can share files or folders in this Team Drive. 185 "canTrashChildren": True or False, # Whether the current user can trash children from folders in this Team Drive. 186 "canListChildren": True or False, # Whether the current user can list the children of folders in this Team Drive. 187 "canChangeTeamMembersOnlyRestriction": True or False, # Whether the current user can change the teamMembersOnly restriction of this Team Drive. 188 "canRename": True or False, # Whether the current user can rename files or folders in this Team Drive. 189 "canChangeCopyRequiresWriterPermissionRestriction": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive. 190 "canRenameTeamDrive": True or False, # Whether the current user can rename this Team Drive. 191 "canManageMembers": True or False, # Whether the current user can add members to this Team Drive or remove them or change their role. 192 "canDownload": True or False, # Whether the current user can download files in this Team Drive. 193 "canComment": True or False, # Whether the current user can comment on files in this Team Drive. 194 "canChangeTeamDriveBackground": True or False, # Whether the current user can change the background of this Team Drive. 195 "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. 196 "canEdit": True or False, # Whether the current user can edit files in this Team Drive 197 "canRemoveChildren": True or False, # Deprecated - use canDeleteChildren or canTrashChildren instead. 198 "canDeleteChildren": True or False, # Whether the current user can delete children from folders in this Team Drive. 199 "canAddChildren": True or False, # Whether the current user can add children to folders in this Team Drive. 200 "canChangeDomainUsersOnlyRestriction": True or False, # Whether the current user can change the domainUsersOnly restriction of this Team Drive. 201 }, 202 "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. 203 "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. 204 "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. 205 "id": "A String", # The ID of an image file in Drive to use for the background image. 206 "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. 207 }, 208 "createdDate": "A String", # The time at which the Team Drive was created (RFC 3339 date-time). 209 "id": "A String", # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive. 210} 211 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.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't set colorRgb or backgroundImageFile. 227 "kind": "drive#teamDrive", # This is always 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 "createdDate": "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, pageToken=None, maxResults=None, useDomainAdminAccess=None)</code> 262 <pre>Deprecated use drives.list instead. 263 264Args: 265 q: string, Query string for searching Team Drives. 266 pageToken: string, Page token for Team Drives. 267 maxResults: integer, Maximum number of Team Drives to return. 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. 275 "items": [ # The list of Team Drives. 276 { # Deprecated: use the drive collection instead. 277 "restrictions": { # A set of restrictions that apply to this Team Drive or items inside this Team Drive. 278 "adminManagedRestrictions": True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions. 279 "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. 280 "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. 281 "teamMembersOnly": True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive. 282 }, 283 "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. 284 "backgroundImageLink": "A String", # A short-lived link to this Team Drive's background image. 285 "name": "A String", # The name of this Team Drive. 286 "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.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't set colorRgb or backgroundImageFile. 287 "kind": "drive#teamDrive", # This is always drive#teamDrive 288 "capabilities": { # Capabilities the current user has on this Team Drive. 289 "canReadRevisions": True or False, # Whether the current user can read the revisions resource of files in this Team Drive. 290 "canCopy": True or False, # Whether the current user can copy files in this Team Drive. 291 "canShare": True or False, # Whether the current user can share files or folders in this Team Drive. 292 "canTrashChildren": True or False, # Whether the current user can trash children from folders in this Team Drive. 293 "canListChildren": True or False, # Whether the current user can list the children of folders in this Team Drive. 294 "canChangeTeamMembersOnlyRestriction": True or False, # Whether the current user can change the teamMembersOnly restriction of this Team Drive. 295 "canRename": True or False, # Whether the current user can rename files or folders in this Team Drive. 296 "canChangeCopyRequiresWriterPermissionRestriction": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive. 297 "canRenameTeamDrive": True or False, # Whether the current user can rename this Team Drive. 298 "canManageMembers": True or False, # Whether the current user can add members to this Team Drive or remove them or change their role. 299 "canDownload": True or False, # Whether the current user can download files in this Team Drive. 300 "canComment": True or False, # Whether the current user can comment on files in this Team Drive. 301 "canChangeTeamDriveBackground": True or False, # Whether the current user can change the background of this Team Drive. 302 "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. 303 "canEdit": True or False, # Whether the current user can edit files in this Team Drive 304 "canRemoveChildren": True or False, # Deprecated - use canDeleteChildren or canTrashChildren instead. 305 "canDeleteChildren": True or False, # Whether the current user can delete children from folders in this Team Drive. 306 "canAddChildren": True or False, # Whether the current user can add children to folders in this Team Drive. 307 "canChangeDomainUsersOnlyRestriction": True or False, # Whether the current user can change the domainUsersOnly restriction of this Team Drive. 308 }, 309 "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. 310 "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. 311 "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. 312 "id": "A String", # The ID of an image file in Drive to use for the background image. 313 "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. 314 }, 315 "createdDate": "A String", # The time at which the Team Drive was created (RFC 3339 date-time). 316 "id": "A String", # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive. 317 }, 318 ], 319 "kind": "drive#teamDriveList", # This is always drive#teamDriveList 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.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't set colorRgb or backgroundImageFile. 357 "kind": "drive#teamDrive", # This is always 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 "createdDate": "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.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't set colorRgb or backgroundImageFile. 405 "kind": "drive#teamDrive", # This is always 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 "createdDate": "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>