target.apidocs.com.google.api.services.drive.Drive.Teamdrives.html Maven / Gradle / Ivy
Drive.Teamdrives (Drive API v2-rev20180830-1.26.0)
com.google.api.services.drive
Class Drive.Teamdrives
- java.lang.Object
-
- com.google.api.services.drive.Drive.Teamdrives
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Drive.Teamdrives.Delete
class
Drive.Teamdrives.Get
class
Drive.Teamdrives.Insert
class
Drive.Teamdrives.List
class
Drive.Teamdrives.Update
-
Constructor Summary
Constructors
Constructor and Description
Teamdrives()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Drive.Teamdrives.Delete
delete(String teamDriveId)
Permanently deletes a Team Drive for which the user is an organizer.
Drive.Teamdrives.Get
get(String teamDriveId)
Gets a Team Drive's metadata by ID.
Drive.Teamdrives.Insert
insert(String requestId,
TeamDrive content)
Creates a new Team Drive.
Drive.Teamdrives.List
list()
Lists the user's Team Drives.
Drive.Teamdrives.Update
update(String teamDriveId,
TeamDrive content)
Updates a Team Drive's metadata
Create a request for the method "teamdrives.update".
-
-
Method Detail
-
delete
public Drive.Teamdrives.Delete delete(String teamDriveId)
throws IOException
Permanently deletes a Team Drive for which the user is an organizer. The Team Drive cannot
contain any untrashed items.
Create a request for the method "teamdrives.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:
teamDriveId
- The ID of the Team Drive
- Returns:
- the request
- Throws:
IOException
-
get
public Drive.Teamdrives.Get get(String teamDriveId)
throws IOException
Gets a Team Drive's metadata by ID.
Create a request for the method "teamdrives.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:
teamDriveId
- The ID of the Team Drive
- Returns:
- the request
- Throws:
IOException
-
insert
public Drive.Teamdrives.Insert insert(String requestId,
TeamDrive content)
throws IOException
Creates a new Team Drive.
Create a request for the method "teamdrives.insert".
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
- 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.
content
- the TeamDrive
- Returns:
- the request
- Throws:
IOException
-
list
public Drive.Teamdrives.List list()
throws IOException
Lists the user's Team Drives.
Create a request for the method "teamdrives.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
-
update
public Drive.Teamdrives.Update update(String teamDriveId,
TeamDrive content)
throws IOException
Updates a Team Drive's metadata
Create a request for the method "teamdrives.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:
teamDriveId
- The ID of the Team Drive
content
- the TeamDrive
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2018 Google. All rights reserved.