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(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.
|
public Drive.Drives.Create create(String requestId, Drive content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.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
IOException
public Drive.Drives.Delete delete(String driveId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.driveId
- The ID of the shared drive.IOException
public Drive.Drives.Get get(String driveId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.driveId
- The ID of the shared drive.IOException
public Drive.Drives.Hide hide(String driveId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.driveId
- The ID of the shared drive.IOException
public Drive.Drives.List list() throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.IOException
public Drive.Drives.Unhide unhide(String driveId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.driveId
- The ID of the shared drive.IOException
public Drive.Drives.Update update(String driveId, Drive content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.driveId
- The ID of the shared drive.content
- the Drive
IOException
Copyright © 2011–2024 Google. All rights reserved.