Class DrivesResource
The "drives" collection of methods.
Inheritance
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 |
---|---|---|
System.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 |
---|---|---|
System.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 |
---|---|---|
System.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. |
System.String | requestId | 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.
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 |
---|---|---|
System.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. |
System.String | driveId | The ID of the shared drive. |
Returns
Type | Description |
---|---|
DrivesResource.UpdateRequest |