drive  v2
Classes | Public Member Functions | List of all members
Google.Apis.Drive.v2.ParentsResource Class Reference

The "parents" collection of methods. More...

Classes

class  DeleteRequest
 Removes a parent from a file. More...
 
class  GetRequest
 Gets a specific parent reference. More...
 
class  InsertRequest
 Adds a parent folder for a file. More...
 
class  ListRequest
 Lists a file's parents. More...
 

Public Member Functions

 ParentsResource (Google.Apis.Services.IClientService service)
 Constructs a new resource. More...
 
virtual DeleteRequest Delete (string fileId, string parentId)
 Removes a parent from a file. More...
 
virtual GetRequest Get (string fileId, string parentId)
 Gets a specific parent reference. More...
 
virtual InsertRequest Insert (Google.Apis.Drive.v2.Data.ParentReference body, string fileId)
 Adds a parent folder for a file. More...
 
virtual ListRequest List (string fileId)
 Lists a file's parents. More...
 

Detailed Description

The "parents" collection of methods.

Constructor & Destructor Documentation

◆ ParentsResource()

Google.Apis.Drive.v2.ParentsResource.ParentsResource ( Google.Apis.Services.IClientService  service)
inline

Constructs a new resource.

Member Function Documentation

◆ Delete()

virtual DeleteRequest Google.Apis.Drive.v2.ParentsResource.Delete ( string  fileId,
string  parentId 
)
inlinevirtual

Removes a parent from a file.

Parameters
fileIdThe ID of the file.
parentIdThe ID of the parent.

◆ Get()

virtual GetRequest Google.Apis.Drive.v2.ParentsResource.Get ( string  fileId,
string  parentId 
)
inlinevirtual

Gets a specific parent reference.

Parameters
fileIdThe ID of the file.
parentIdThe ID of the parent.

◆ Insert()

virtual InsertRequest Google.Apis.Drive.v2.ParentsResource.Insert ( Google.Apis.Drive.v2.Data.ParentReference  body,
string  fileId 
)
inlinevirtual

Adds a parent folder for a file.

Parameters
bodyThe body of the request.
fileIdThe ID of the file.

◆ List()

virtual ListRequest Google.Apis.Drive.v2.ParentsResource.List ( string  fileId)
inlinevirtual

Lists a file's parents.

Parameters
fileIdThe ID of the file.

The documentation for this class was generated from the following file: