Table of Contents

Class DrivesResource

Namespace
Google.Apis.Drive.v3
Assembly
Google.Apis.Drive.v3.dll

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 Drive

The body of the request.

requestId string

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.

Returns

DrivesResource.CreateRequest

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 string

The ID of the shared drive.

Returns

DrivesResource.DeleteRequest

Get(string)

Gets a shared drive's metadata by ID.

public virtual DrivesResource.GetRequest Get(string driveId)

Parameters

driveId string

The ID of the shared drive.

Returns

DrivesResource.GetRequest

Hide(string)

Hides a shared drive from the default view.

public virtual DrivesResource.HideRequest Hide(string driveId)

Parameters

driveId string

The ID of the shared drive.

Returns

DrivesResource.HideRequest

List()

Lists the user's shared drives.

public virtual DrivesResource.ListRequest List()

Returns

DrivesResource.ListRequest

Unhide(string)

Restores a shared drive to the default view.

public virtual DrivesResource.UnhideRequest Unhide(string driveId)

Parameters

driveId string

The ID of the shared drive.

Returns

DrivesResource.UnhideRequest

Update(Drive, string)

Updates the metadate for a shared drive.

public virtual DrivesResource.UpdateRequest Update(Drive body, string driveId)

Parameters

body Drive

The body of the request.

driveId string

The ID of the shared drive.

Returns

DrivesResource.UpdateRequest