target.apidocs.com.google.api.services.drive.Drive.Drives.html Maven / Gradle / Ivy
Drive.Drives (Google Drive API v3-rev20240903-2.0.0)
com.google.api.services.drive
Class Drive.Drives
- java.lang.Object
-
- com.google.api.services.drive.Drive.Drives
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Drive.Drives.Create
class
Drive.Drives.Delete
class
Drive.Drives.Get
class
Drive.Drives.Hide
class
Drive.Drives.List
class
Drive.Drives.Unhide
class
Drive.Drives.Update
-
Constructor Summary
Constructors
Constructor and Description
Drives()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Drive.Drives.Create
create(String requestId,
Drive content)
Creates a shared drive.
Drive.Drives.Delete
delete(String driveId)
Permanently deletes a shared drive for which the user is an `organizer`.
Drive.Drives.Get
get(String driveId)
Gets a shared drive's metadata by ID.
Drive.Drives.Hide
hide(String driveId)
Hides a shared drive from the default view.
Drive.Drives.List
list()
Lists the user's shared drives.
Drive.Drives.Unhide
unhide(String driveId)
Restores a shared drive to the default view.
Drive.Drives.Update
update(String driveId,
Drive content)
Updates the metadata for a shared drive.
-
-
Method Detail
-
create
public Drive.Drives.Create create(String requestId,
Drive content)
throws IOException
Creates a shared drive.
Create a request for the method "drives.create".
This request holds the parameters needed by the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
requestId
- Required. 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.
content
- the Drive
- Returns:
- the request
- Throws:
IOException
-
delete
public Drive.Drives.Delete delete(String driveId)
throws IOException
Permanently deletes a shared drive for which the user is an `organizer`. The shared drive cannot
contain any untrashed items.
Create a request for the method "drives.delete".
This request holds the parameters needed by the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
driveId
- The ID of the shared drive.
- Returns:
- the request
- Throws:
IOException
-
get
public Drive.Drives.Get get(String driveId)
throws IOException
Gets a shared drive's metadata by ID.
Create a request for the method "drives.get".
This request holds the parameters needed by the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
driveId
- The ID of the shared drive.
- Returns:
- the request
- Throws:
IOException
-
hide
public Drive.Drives.Hide hide(String driveId)
throws IOException
Hides a shared drive from the default view.
Create a request for the method "drives.hide".
This request holds the parameters needed by the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
driveId
- The ID of the shared drive.
- Returns:
- the request
- Throws:
IOException
-
list
public Drive.Drives.List list()
throws IOException
Lists the user's shared drives. This method accepts the `q` parameter, which is a search query
combining one or more search terms. For more information, see the [Search for shared
drives](/drive/api/guides/search-shareddrives) guide.
Create a request for the method "drives.list".
This request holds the parameters needed by the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Returns:
- the request
- Throws:
IOException
-
unhide
public Drive.Drives.Unhide unhide(String driveId)
throws IOException
Restores a shared drive to the default view.
Create a request for the method "drives.unhide".
This request holds the parameters needed by the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
driveId
- The ID of the shared drive.
- Returns:
- the request
- Throws:
IOException
-
update
public Drive.Drives.Update update(String driveId,
Drive content)
throws IOException
Updates the metadata for a shared drive.
Create a request for the method "drives.update".
This request holds the parameters needed by the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
driveId
- The ID of the shared drive.
content
- the Drive
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.