Class DrivesResource
The "drives" collection of methods.
Inherited Members
Namespace: Google.Apis.Drive.v2
Assembly: Google.Apis.Drive.v2.dll
Syntax
public class DrivesResource
Constructors
DrivesResource(IClientService)
Constructs a new resource.
Declaration
public DrivesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string)
Permanently deletes a shared drive for which the user is an organizer
. The shared drive cannot contain any
untrashed items.
Declaration
public virtual DrivesResource.DeleteRequest Delete(string driveId)
Parameters
Type | Name | Description |
---|---|---|
string | driveId | The ID of the shared drive. |
Returns
Type | Description |
---|---|
DrivesResource.DeleteRequest |
Get(string)
Gets a shared drive's metadata by ID.
Declaration
public virtual DrivesResource.GetRequest Get(string driveId)
Parameters
Type | Name | Description |
---|---|---|
string | driveId | The ID of the shared drive. |
Returns
Type | Description |
---|---|
DrivesResource.GetRequest |
Hide(string)
Hides a shared drive from the default view.
Declaration
public virtual DrivesResource.HideRequest Hide(string driveId)
Parameters
Type | Name | Description |
---|---|---|
string | driveId | The ID of the shared drive. |
Returns
Type | Description |
---|---|
DrivesResource.HideRequest |
Insert(Drive, string)
Creates a new shared drive.
Declaration
public virtual DrivesResource.InsertRequest Insert(Drive body, string requestId)
Parameters
Type | Name | Description |
---|---|---|
Drive | body | The body of the request. |
string | 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. |
Returns
Type | Description |
---|---|
DrivesResource.InsertRequest |
List()
Lists the user's shared drives. This method accepts the q
parameter, which is a search query combining
one or more search terms. For more information, see the Search for shared
drives guide.
Declaration
public virtual DrivesResource.ListRequest List()
Returns
Type | Description |
---|---|
DrivesResource.ListRequest |
Unhide(string)
Restores a shared drive to the default view.
Declaration
public virtual DrivesResource.UnhideRequest Unhide(string driveId)
Parameters
Type | Name | Description |
---|---|---|
string | driveId | The ID of the shared drive. |
Returns
Type | Description |
---|---|
DrivesResource.UnhideRequest |
Update(Drive, string)
Updates the metadata for a shared drive.
Declaration
public virtual DrivesResource.UpdateRequest Update(Drive body, string driveId)
Parameters
Type | Name | Description |
---|---|---|
Drive | body | The body of the request. |
string | driveId | The ID of the shared drive. |
Returns
Type | Description |
---|---|
DrivesResource.UpdateRequest |