public class Drive.Drives
extends java.lang.Object
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 and Description |
---|
Drives() |
Modifier and Type | Method and Description |
---|---|
Drive.Drives.Create |
create(java.lang.String requestId,
Drive content)
Creates a new shared drive.
|
Drive.Drives.Delete |
delete(java.lang.String driveId)
Permanently deletes a shared drive for which the user is an organizer.
|
Drive.Drives.Get |
get(java.lang.String driveId)
Gets a shared drive's metadata by ID.
|
Drive.Drives.Hide |
hide(java.lang.String driveId)
Hides a shared drive from the default view.
|
Drive.Drives.List |
list()
Lists the user's shared drives.
|
Drive.Drives.Unhide |
unhide(java.lang.String driveId)
Restores a shared drive to the default view.
|
Drive.Drives.Update |
update(java.lang.String driveId,
Drive content)
Updates the metadate for a shared drive.
|
public Drive.Drives.Create create(java.lang.String requestId, Drive content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.requestId
- 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
java.io.IOException
public Drive.Drives.Delete delete(java.lang.String driveId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.driveId
- The ID of the shared drive.java.io.IOException
public Drive.Drives.Get get(java.lang.String driveId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.driveId
- The ID of the shared drive.java.io.IOException
public Drive.Drives.Hide hide(java.lang.String driveId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.driveId
- The ID of the shared drive.java.io.IOException
public Drive.Drives.List list() throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.java.io.IOException
public Drive.Drives.Unhide unhide(java.lang.String driveId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.driveId
- The ID of the shared drive.java.io.IOException
public Drive.Drives.Update update(java.lang.String driveId, Drive content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.driveId
- The ID of the shared drive.content
- the Drive
java.io.IOException