Class DrivesResource
The "drives" collection of methods.
public class DrivesResource
- Inheritance
-
DrivesResource
- Inherited Members
Constructors
DrivesResource(IClientService)
Constructs a new resource.
public DrivesResource(IClientService service)
Parameters
service
IClientService
Methods
Create(Drive, string)
Creates a new shared drive.
public virtual DrivesResource.CreateRequest Create(Drive body, string requestId)
Parameters
body
DriveThe body of the request.
requestId
stringAn 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.
Returns
Delete(string)
Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items.
public virtual DrivesResource.DeleteRequest Delete(string driveId)
Parameters
driveId
stringThe ID of the shared drive.
Returns
Get(string)
Gets a shared drive's metadata by ID.
public virtual DrivesResource.GetRequest Get(string driveId)
Parameters
driveId
stringThe ID of the shared drive.
Returns
Hide(string)
Hides a shared drive from the default view.
public virtual DrivesResource.HideRequest Hide(string driveId)
Parameters
driveId
stringThe ID of the shared drive.
Returns
List()
Lists the user's shared drives.
public virtual DrivesResource.ListRequest List()
Returns
Unhide(string)
Restores a shared drive to the default view.
public virtual DrivesResource.UnhideRequest Unhide(string driveId)
Parameters
driveId
stringThe ID of the shared drive.
Returns
Update(Drive, string)
Updates the metadate for a shared drive.
public virtual DrivesResource.UpdateRequest Update(Drive body, string driveId)