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.drives.html">drives</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#delete">delete(driveId)</a></code></p> 79<p class="firstline">Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items.</p> 80<p class="toc_element"> 81 <code><a href="#get">get(driveId, useDomainAdminAccess=None)</a></code></p> 82<p class="firstline">Gets a shared drive's metadata by ID.</p> 83<p class="toc_element"> 84 <code><a href="#hide">hide(driveId)</a></code></p> 85<p class="firstline">Hides a shared drive from the default view.</p> 86<p class="toc_element"> 87 <code><a href="#insert">insert(requestId, body)</a></code></p> 88<p class="firstline">Creates a new shared drive.</p> 89<p class="toc_element"> 90 <code><a href="#list">list(q=None, pageToken=None, maxResults=None, useDomainAdminAccess=None)</a></code></p> 91<p class="firstline">Lists the user's shared drives.</p> 92<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"> 96 <code><a href="#unhide">unhide(driveId)</a></code></p> 97<p class="firstline">Restores a shared drive to the default view.</p> 98<p class="toc_element"> 99 <code><a href="#update">update(driveId, body, useDomainAdminAccess=None)</a></code></p> 100<p class="firstline">Updates the metadata for a shared drive.</p> 101<h3>Method Details</h3> 102<div class="method"> 103 <code class="details" id="delete">delete(driveId)</code> 104 <pre>Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items. 105 106Args: 107 driveId: string, The ID of the shared drive. (required) 108</pre> 109</div> 110 111<div class="method"> 112 <code class="details" id="get">get(driveId, useDomainAdminAccess=None)</code> 113 <pre>Gets a shared drive's metadata by ID. 114 115Args: 116 driveId: string, The ID of the shared drive. (required) 117 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 shared drive belongs. 118 119Returns: 120 An object of the form: 121 122 { # Representation of a shared drive. 123 "restrictions": { # A set of restrictions that apply to this shared drive or items inside this shared drive. 124 "adminManagedRestrictions": True or False, # Whether administrative privileges on this shared drive are required to modify restrictions. 125 "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download files inside this shared 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 shared drive. 126 "domainUsersOnly": True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive. 127 "driveMembersOnly": True or False, # Whether access to items inside this shared drive is restricted to its members. 128 }, 129 "colorRgb": "A String", # The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId. 130 "backgroundImageLink": "A String", # A short-lived link to this shared drive's background image. 131 "name": "A String", # The name of this shared drive. 132 "themeId": "A String", # The ID of the theme from which the background image and color will be set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a drive.drives.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. 133 "kind": "drive#drive", # This is always drive#drive 134 "capabilities": { # Capabilities the current user has on this shared drive. 135 "canReadRevisions": True or False, # Whether the current user can read the revisions resource of files in this shared drive. 136 "canCopy": True or False, # Whether the current user can copy files in this shared drive. 137 "canShare": True or False, # Whether the current user can share files or folders in this shared drive. 138 "canTrashChildren": True or False, # Whether the current user can trash children from folders in this shared drive. 139 "canListChildren": True or False, # Whether the current user can list the children of folders in this shared drive. 140 "canDownload": True or False, # Whether the current user can download files in this shared drive. 141 "canRename": True or False, # Whether the current user can rename files or folders in this shared drive. 142 "canChangeCopyRequiresWriterPermissionRestriction": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive. 143 "canDeleteDrive": True or False, # Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive. 144 "canManageMembers": True or False, # Whether the current user can add members to this shared drive or remove them or change their role. 145 "canChangeDriveMembersOnlyRestriction": True or False, # Whether the current user can change the driveMembersOnly restriction of this shared drive. 146 "canComment": True or False, # Whether the current user can comment on files in this shared drive. 147 "canChangeDriveBackground": True or False, # Whether the current user can change the background of this shared drive. 148 "canEdit": True or False, # Whether the current user can edit files in this shared drive 149 "canRenameDrive": True or False, # Whether the current user can rename this shared drive. 150 "canDeleteChildren": True or False, # Whether the current user can delete children from folders in this shared drive. 151 "canAddChildren": True or False, # Whether the current user can add children to folders in this shared drive. 152 "canChangeDomainUsersOnlyRestriction": True or False, # Whether the current user can change the domainUsersOnly restriction of this shared drive. 153 }, 154 "backgroundImageFile": { # An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set. 155 "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. 156 "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. 157 "id": "A String", # The ID of an image file in Google Drive to use for the background image. 158 "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. 159 }, 160 "createdDate": "A String", # The time at which the shared drive was created (RFC 3339 date-time). 161 "hidden": True or False, # Whether the shared drive is hidden from default view. 162 "id": "A String", # The ID of this shared drive which is also the ID of the top level folder of this shared drive. 163 }</pre> 164</div> 165 166<div class="method"> 167 <code class="details" id="hide">hide(driveId)</code> 168 <pre>Hides a shared drive from the default view. 169 170Args: 171 driveId: string, The ID of the shared drive. (required) 172 173Returns: 174 An object of the form: 175 176 { # Representation of a shared drive. 177 "restrictions": { # A set of restrictions that apply to this shared drive or items inside this shared drive. 178 "adminManagedRestrictions": True or False, # Whether administrative privileges on this shared drive are required to modify restrictions. 179 "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download files inside this shared 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 shared drive. 180 "domainUsersOnly": True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive. 181 "driveMembersOnly": True or False, # Whether access to items inside this shared drive is restricted to its members. 182 }, 183 "colorRgb": "A String", # The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId. 184 "backgroundImageLink": "A String", # A short-lived link to this shared drive's background image. 185 "name": "A String", # The name of this shared drive. 186 "themeId": "A String", # The ID of the theme from which the background image and color will be set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a drive.drives.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. 187 "kind": "drive#drive", # This is always drive#drive 188 "capabilities": { # Capabilities the current user has on this shared drive. 189 "canReadRevisions": True or False, # Whether the current user can read the revisions resource of files in this shared drive. 190 "canCopy": True or False, # Whether the current user can copy files in this shared drive. 191 "canShare": True or False, # Whether the current user can share files or folders in this shared drive. 192 "canTrashChildren": True or False, # Whether the current user can trash children from folders in this shared drive. 193 "canListChildren": True or False, # Whether the current user can list the children of folders in this shared drive. 194 "canDownload": True or False, # Whether the current user can download files in this shared drive. 195 "canRename": True or False, # Whether the current user can rename files or folders in this shared drive. 196 "canChangeCopyRequiresWriterPermissionRestriction": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive. 197 "canDeleteDrive": True or False, # Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive. 198 "canManageMembers": True or False, # Whether the current user can add members to this shared drive or remove them or change their role. 199 "canChangeDriveMembersOnlyRestriction": True or False, # Whether the current user can change the driveMembersOnly restriction of this shared drive. 200 "canComment": True or False, # Whether the current user can comment on files in this shared drive. 201 "canChangeDriveBackground": True or False, # Whether the current user can change the background of this shared drive. 202 "canEdit": True or False, # Whether the current user can edit files in this shared drive 203 "canRenameDrive": True or False, # Whether the current user can rename this shared drive. 204 "canDeleteChildren": True or False, # Whether the current user can delete children from folders in this shared drive. 205 "canAddChildren": True or False, # Whether the current user can add children to folders in this shared drive. 206 "canChangeDomainUsersOnlyRestriction": True or False, # Whether the current user can change the domainUsersOnly restriction of this shared drive. 207 }, 208 "backgroundImageFile": { # An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set. 209 "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. 210 "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. 211 "id": "A String", # The ID of an image file in Google Drive to use for the background image. 212 "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. 213 }, 214 "createdDate": "A String", # The time at which the shared drive was created (RFC 3339 date-time). 215 "hidden": True or False, # Whether the shared drive is hidden from default view. 216 "id": "A String", # The ID of this shared drive which is also the ID of the top level folder of this shared drive. 217 }</pre> 218</div> 219 220<div class="method"> 221 <code class="details" id="insert">insert(requestId, body)</code> 222 <pre>Creates a new shared drive. 223 224Args: 225 requestId: string, An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a shared drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same shared drive. If the shared drive already exists a 409 error will be returned. (required) 226 body: object, The request body. (required) 227 The object takes the form of: 228 229{ # Representation of a shared drive. 230 "restrictions": { # A set of restrictions that apply to this shared drive or items inside this shared drive. 231 "adminManagedRestrictions": True or False, # Whether administrative privileges on this shared drive are required to modify restrictions. 232 "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download files inside this shared 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 shared drive. 233 "domainUsersOnly": True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive. 234 "driveMembersOnly": True or False, # Whether access to items inside this shared drive is restricted to its members. 235 }, 236 "colorRgb": "A String", # The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId. 237 "backgroundImageLink": "A String", # A short-lived link to this shared drive's background image. 238 "name": "A String", # The name of this shared drive. 239 "themeId": "A String", # The ID of the theme from which the background image and color will be set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a drive.drives.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. 240 "kind": "drive#drive", # This is always drive#drive 241 "capabilities": { # Capabilities the current user has on this shared drive. 242 "canReadRevisions": True or False, # Whether the current user can read the revisions resource of files in this shared drive. 243 "canCopy": True or False, # Whether the current user can copy files in this shared drive. 244 "canShare": True or False, # Whether the current user can share files or folders in this shared drive. 245 "canTrashChildren": True or False, # Whether the current user can trash children from folders in this shared drive. 246 "canListChildren": True or False, # Whether the current user can list the children of folders in this shared drive. 247 "canDownload": True or False, # Whether the current user can download files in this shared drive. 248 "canRename": True or False, # Whether the current user can rename files or folders in this shared drive. 249 "canChangeCopyRequiresWriterPermissionRestriction": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive. 250 "canDeleteDrive": True or False, # Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive. 251 "canManageMembers": True or False, # Whether the current user can add members to this shared drive or remove them or change their role. 252 "canChangeDriveMembersOnlyRestriction": True or False, # Whether the current user can change the driveMembersOnly restriction of this shared drive. 253 "canComment": True or False, # Whether the current user can comment on files in this shared drive. 254 "canChangeDriveBackground": True or False, # Whether the current user can change the background of this shared drive. 255 "canEdit": True or False, # Whether the current user can edit files in this shared drive 256 "canRenameDrive": True or False, # Whether the current user can rename this shared drive. 257 "canDeleteChildren": True or False, # Whether the current user can delete children from folders in this shared drive. 258 "canAddChildren": True or False, # Whether the current user can add children to folders in this shared drive. 259 "canChangeDomainUsersOnlyRestriction": True or False, # Whether the current user can change the domainUsersOnly restriction of this shared drive. 260 }, 261 "backgroundImageFile": { # An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set. 262 "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. 263 "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. 264 "id": "A String", # The ID of an image file in Google Drive to use for the background image. 265 "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. 266 }, 267 "createdDate": "A String", # The time at which the shared drive was created (RFC 3339 date-time). 268 "hidden": True or False, # Whether the shared drive is hidden from default view. 269 "id": "A String", # The ID of this shared drive which is also the ID of the top level folder of this shared drive. 270} 271 272 273Returns: 274 An object of the form: 275 276 { # Representation of a shared drive. 277 "restrictions": { # A set of restrictions that apply to this shared drive or items inside this shared drive. 278 "adminManagedRestrictions": True or False, # Whether administrative privileges on this shared drive are required to modify restrictions. 279 "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download files inside this shared 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 shared drive. 280 "domainUsersOnly": True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive. 281 "driveMembersOnly": True or False, # Whether access to items inside this shared drive is restricted to its members. 282 }, 283 "colorRgb": "A String", # The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId. 284 "backgroundImageLink": "A String", # A short-lived link to this shared drive's background image. 285 "name": "A String", # The name of this shared drive. 286 "themeId": "A String", # The ID of the theme from which the background image and color will be set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a drive.drives.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#drive", # This is always drive#drive 288 "capabilities": { # Capabilities the current user has on this shared drive. 289 "canReadRevisions": True or False, # Whether the current user can read the revisions resource of files in this shared drive. 290 "canCopy": True or False, # Whether the current user can copy files in this shared drive. 291 "canShare": True or False, # Whether the current user can share files or folders in this shared drive. 292 "canTrashChildren": True or False, # Whether the current user can trash children from folders in this shared drive. 293 "canListChildren": True or False, # Whether the current user can list the children of folders in this shared drive. 294 "canDownload": True or False, # Whether the current user can download files in this shared drive. 295 "canRename": True or False, # Whether the current user can rename files or folders in this shared drive. 296 "canChangeCopyRequiresWriterPermissionRestriction": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive. 297 "canDeleteDrive": True or False, # Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive. 298 "canManageMembers": True or False, # Whether the current user can add members to this shared drive or remove them or change their role. 299 "canChangeDriveMembersOnlyRestriction": True or False, # Whether the current user can change the driveMembersOnly restriction of this shared drive. 300 "canComment": True or False, # Whether the current user can comment on files in this shared drive. 301 "canChangeDriveBackground": True or False, # Whether the current user can change the background of this shared drive. 302 "canEdit": True or False, # Whether the current user can edit files in this shared drive 303 "canRenameDrive": True or False, # Whether the current user can rename this shared drive. 304 "canDeleteChildren": True or False, # Whether the current user can delete children from folders in this shared drive. 305 "canAddChildren": True or False, # Whether the current user can add children to folders in this shared drive. 306 "canChangeDomainUsersOnlyRestriction": True or False, # Whether the current user can change the domainUsersOnly restriction of this shared drive. 307 }, 308 "backgroundImageFile": { # An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set. 309 "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. 310 "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. 311 "id": "A String", # The ID of an image file in Google Drive to use for the background image. 312 "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. 313 }, 314 "createdDate": "A String", # The time at which the shared drive was created (RFC 3339 date-time). 315 "hidden": True or False, # Whether the shared drive is hidden from default view. 316 "id": "A String", # The ID of this shared drive which is also the ID of the top level folder of this shared drive. 317 }</pre> 318</div> 319 320<div class="method"> 321 <code class="details" id="list">list(q=None, pageToken=None, maxResults=None, useDomainAdminAccess=None)</code> 322 <pre>Lists the user's shared drives. 323 324Args: 325 q: string, Query string for searching shared drives. 326 pageToken: string, Page token for shared drives. 327 maxResults: integer, Maximum number of shared drives to return. 328 useDomainAdminAccess: boolean, Issue the request as a domain administrator; if set to true, then all shared drives of the domain in which the requester is an administrator are returned. 329 330Returns: 331 An object of the form: 332 333 { # A list of shared drives. 334 "nextPageToken": "A String", # The page token for the next page of shared drives. This will be absent if the end of the 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. 335 "items": [ # The list of shared drives. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. 336 { # Representation of a shared drive. 337 "restrictions": { # A set of restrictions that apply to this shared drive or items inside this shared drive. 338 "adminManagedRestrictions": True or False, # Whether administrative privileges on this shared drive are required to modify restrictions. 339 "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download files inside this shared 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 shared drive. 340 "domainUsersOnly": True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive. 341 "driveMembersOnly": True or False, # Whether access to items inside this shared drive is restricted to its members. 342 }, 343 "colorRgb": "A String", # The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId. 344 "backgroundImageLink": "A String", # A short-lived link to this shared drive's background image. 345 "name": "A String", # The name of this shared drive. 346 "themeId": "A String", # The ID of the theme from which the background image and color will be set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a drive.drives.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. 347 "kind": "drive#drive", # This is always drive#drive 348 "capabilities": { # Capabilities the current user has on this shared drive. 349 "canReadRevisions": True or False, # Whether the current user can read the revisions resource of files in this shared drive. 350 "canCopy": True or False, # Whether the current user can copy files in this shared drive. 351 "canShare": True or False, # Whether the current user can share files or folders in this shared drive. 352 "canTrashChildren": True or False, # Whether the current user can trash children from folders in this shared drive. 353 "canListChildren": True or False, # Whether the current user can list the children of folders in this shared drive. 354 "canDownload": True or False, # Whether the current user can download files in this shared drive. 355 "canRename": True or False, # Whether the current user can rename files or folders in this shared drive. 356 "canChangeCopyRequiresWriterPermissionRestriction": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive. 357 "canDeleteDrive": True or False, # Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive. 358 "canManageMembers": True or False, # Whether the current user can add members to this shared drive or remove them or change their role. 359 "canChangeDriveMembersOnlyRestriction": True or False, # Whether the current user can change the driveMembersOnly restriction of this shared drive. 360 "canComment": True or False, # Whether the current user can comment on files in this shared drive. 361 "canChangeDriveBackground": True or False, # Whether the current user can change the background of this shared drive. 362 "canEdit": True or False, # Whether the current user can edit files in this shared drive 363 "canRenameDrive": True or False, # Whether the current user can rename this shared drive. 364 "canDeleteChildren": True or False, # Whether the current user can delete children from folders in this shared drive. 365 "canAddChildren": True or False, # Whether the current user can add children to folders in this shared drive. 366 "canChangeDomainUsersOnlyRestriction": True or False, # Whether the current user can change the domainUsersOnly restriction of this shared drive. 367 }, 368 "backgroundImageFile": { # An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set. 369 "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. 370 "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. 371 "id": "A String", # The ID of an image file in Google Drive to use for the background image. 372 "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. 373 }, 374 "createdDate": "A String", # The time at which the shared drive was created (RFC 3339 date-time). 375 "hidden": True or False, # Whether the shared drive is hidden from default view. 376 "id": "A String", # The ID of this shared drive which is also the ID of the top level folder of this shared drive. 377 }, 378 ], 379 "kind": "drive#driveList", # This is always drive#driveList 380 }</pre> 381</div> 382 383<div class="method"> 384 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 385 <pre>Retrieves the next page of results. 386 387Args: 388 previous_request: The request for the previous page. (required) 389 previous_response: The response from the request for the previous page. (required) 390 391Returns: 392 A request object that you can call 'execute()' on to request the next 393 page. Returns None if there are no more items in the collection. 394 </pre> 395</div> 396 397<div class="method"> 398 <code class="details" id="unhide">unhide(driveId)</code> 399 <pre>Restores a shared drive to the default view. 400 401Args: 402 driveId: string, The ID of the shared drive. (required) 403 404Returns: 405 An object of the form: 406 407 { # Representation of a shared drive. 408 "restrictions": { # A set of restrictions that apply to this shared drive or items inside this shared drive. 409 "adminManagedRestrictions": True or False, # Whether administrative privileges on this shared drive are required to modify restrictions. 410 "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download files inside this shared 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 shared drive. 411 "domainUsersOnly": True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive. 412 "driveMembersOnly": True or False, # Whether access to items inside this shared drive is restricted to its members. 413 }, 414 "colorRgb": "A String", # The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId. 415 "backgroundImageLink": "A String", # A short-lived link to this shared drive's background image. 416 "name": "A String", # The name of this shared drive. 417 "themeId": "A String", # The ID of the theme from which the background image and color will be set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a drive.drives.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. 418 "kind": "drive#drive", # This is always drive#drive 419 "capabilities": { # Capabilities the current user has on this shared drive. 420 "canReadRevisions": True or False, # Whether the current user can read the revisions resource of files in this shared drive. 421 "canCopy": True or False, # Whether the current user can copy files in this shared drive. 422 "canShare": True or False, # Whether the current user can share files or folders in this shared drive. 423 "canTrashChildren": True or False, # Whether the current user can trash children from folders in this shared drive. 424 "canListChildren": True or False, # Whether the current user can list the children of folders in this shared drive. 425 "canDownload": True or False, # Whether the current user can download files in this shared drive. 426 "canRename": True or False, # Whether the current user can rename files or folders in this shared drive. 427 "canChangeCopyRequiresWriterPermissionRestriction": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive. 428 "canDeleteDrive": True or False, # Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive. 429 "canManageMembers": True or False, # Whether the current user can add members to this shared drive or remove them or change their role. 430 "canChangeDriveMembersOnlyRestriction": True or False, # Whether the current user can change the driveMembersOnly restriction of this shared drive. 431 "canComment": True or False, # Whether the current user can comment on files in this shared drive. 432 "canChangeDriveBackground": True or False, # Whether the current user can change the background of this shared drive. 433 "canEdit": True or False, # Whether the current user can edit files in this shared drive 434 "canRenameDrive": True or False, # Whether the current user can rename this shared drive. 435 "canDeleteChildren": True or False, # Whether the current user can delete children from folders in this shared drive. 436 "canAddChildren": True or False, # Whether the current user can add children to folders in this shared drive. 437 "canChangeDomainUsersOnlyRestriction": True or False, # Whether the current user can change the domainUsersOnly restriction of this shared drive. 438 }, 439 "backgroundImageFile": { # An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set. 440 "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. 441 "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. 442 "id": "A String", # The ID of an image file in Google Drive to use for the background image. 443 "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. 444 }, 445 "createdDate": "A String", # The time at which the shared drive was created (RFC 3339 date-time). 446 "hidden": True or False, # Whether the shared drive is hidden from default view. 447 "id": "A String", # The ID of this shared drive which is also the ID of the top level folder of this shared drive. 448 }</pre> 449</div> 450 451<div class="method"> 452 <code class="details" id="update">update(driveId, body, useDomainAdminAccess=None)</code> 453 <pre>Updates the metadata for a shared drive. 454 455Args: 456 driveId: string, The ID of the shared drive. (required) 457 body: object, The request body. (required) 458 The object takes the form of: 459 460{ # Representation of a shared drive. 461 "restrictions": { # A set of restrictions that apply to this shared drive or items inside this shared drive. 462 "adminManagedRestrictions": True or False, # Whether administrative privileges on this shared drive are required to modify restrictions. 463 "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download files inside this shared 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 shared drive. 464 "domainUsersOnly": True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive. 465 "driveMembersOnly": True or False, # Whether access to items inside this shared drive is restricted to its members. 466 }, 467 "colorRgb": "A String", # The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId. 468 "backgroundImageLink": "A String", # A short-lived link to this shared drive's background image. 469 "name": "A String", # The name of this shared drive. 470 "themeId": "A String", # The ID of the theme from which the background image and color will be set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a drive.drives.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. 471 "kind": "drive#drive", # This is always drive#drive 472 "capabilities": { # Capabilities the current user has on this shared drive. 473 "canReadRevisions": True or False, # Whether the current user can read the revisions resource of files in this shared drive. 474 "canCopy": True or False, # Whether the current user can copy files in this shared drive. 475 "canShare": True or False, # Whether the current user can share files or folders in this shared drive. 476 "canTrashChildren": True or False, # Whether the current user can trash children from folders in this shared drive. 477 "canListChildren": True or False, # Whether the current user can list the children of folders in this shared drive. 478 "canDownload": True or False, # Whether the current user can download files in this shared drive. 479 "canRename": True or False, # Whether the current user can rename files or folders in this shared drive. 480 "canChangeCopyRequiresWriterPermissionRestriction": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive. 481 "canDeleteDrive": True or False, # Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive. 482 "canManageMembers": True or False, # Whether the current user can add members to this shared drive or remove them or change their role. 483 "canChangeDriveMembersOnlyRestriction": True or False, # Whether the current user can change the driveMembersOnly restriction of this shared drive. 484 "canComment": True or False, # Whether the current user can comment on files in this shared drive. 485 "canChangeDriveBackground": True or False, # Whether the current user can change the background of this shared drive. 486 "canEdit": True or False, # Whether the current user can edit files in this shared drive 487 "canRenameDrive": True or False, # Whether the current user can rename this shared drive. 488 "canDeleteChildren": True or False, # Whether the current user can delete children from folders in this shared drive. 489 "canAddChildren": True or False, # Whether the current user can add children to folders in this shared drive. 490 "canChangeDomainUsersOnlyRestriction": True or False, # Whether the current user can change the domainUsersOnly restriction of this shared drive. 491 }, 492 "backgroundImageFile": { # An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set. 493 "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. 494 "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. 495 "id": "A String", # The ID of an image file in Google Drive to use for the background image. 496 "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. 497 }, 498 "createdDate": "A String", # The time at which the shared drive was created (RFC 3339 date-time). 499 "hidden": True or False, # Whether the shared drive is hidden from default view. 500 "id": "A String", # The ID of this shared drive which is also the ID of the top level folder of this shared drive. 501} 502 503 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 shared drive belongs. 504 505Returns: 506 An object of the form: 507 508 { # Representation of a shared drive. 509 "restrictions": { # A set of restrictions that apply to this shared drive or items inside this shared drive. 510 "adminManagedRestrictions": True or False, # Whether administrative privileges on this shared drive are required to modify restrictions. 511 "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download files inside this shared 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 shared drive. 512 "domainUsersOnly": True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive. 513 "driveMembersOnly": True or False, # Whether access to items inside this shared drive is restricted to its members. 514 }, 515 "colorRgb": "A String", # The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId. 516 "backgroundImageLink": "A String", # A short-lived link to this shared drive's background image. 517 "name": "A String", # The name of this shared drive. 518 "themeId": "A String", # The ID of the theme from which the background image and color will be set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a drive.drives.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. 519 "kind": "drive#drive", # This is always drive#drive 520 "capabilities": { # Capabilities the current user has on this shared drive. 521 "canReadRevisions": True or False, # Whether the current user can read the revisions resource of files in this shared drive. 522 "canCopy": True or False, # Whether the current user can copy files in this shared drive. 523 "canShare": True or False, # Whether the current user can share files or folders in this shared drive. 524 "canTrashChildren": True or False, # Whether the current user can trash children from folders in this shared drive. 525 "canListChildren": True or False, # Whether the current user can list the children of folders in this shared drive. 526 "canDownload": True or False, # Whether the current user can download files in this shared drive. 527 "canRename": True or False, # Whether the current user can rename files or folders in this shared drive. 528 "canChangeCopyRequiresWriterPermissionRestriction": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive. 529 "canDeleteDrive": True or False, # Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive. 530 "canManageMembers": True or False, # Whether the current user can add members to this shared drive or remove them or change their role. 531 "canChangeDriveMembersOnlyRestriction": True or False, # Whether the current user can change the driveMembersOnly restriction of this shared drive. 532 "canComment": True or False, # Whether the current user can comment on files in this shared drive. 533 "canChangeDriveBackground": True or False, # Whether the current user can change the background of this shared drive. 534 "canEdit": True or False, # Whether the current user can edit files in this shared drive 535 "canRenameDrive": True or False, # Whether the current user can rename this shared drive. 536 "canDeleteChildren": True or False, # Whether the current user can delete children from folders in this shared drive. 537 "canAddChildren": True or False, # Whether the current user can add children to folders in this shared drive. 538 "canChangeDomainUsersOnlyRestriction": True or False, # Whether the current user can change the domainUsersOnly restriction of this shared drive. 539 }, 540 "backgroundImageFile": { # An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set. 541 "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. 542 "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. 543 "id": "A String", # The ID of an image file in Google Drive to use for the background image. 544 "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. 545 }, 546 "createdDate": "A String", # The time at which the shared drive was created (RFC 3339 date-time). 547 "hidden": True or False, # Whether the shared drive is hidden from default view. 548 "id": "A String", # The ID of this shared drive which is also the ID of the top level folder of this shared drive. 549 }</pre> 550</div> 551 552</body></html>