drive  v2
Public Member Functions | List of all members
google_drive_api::DriveService::FilesResource Class Reference

#include <drive_service.h>

Public Member Functions

 FilesResource (DriveService *service)
 
 ~FilesResource ()
 
FilesResource_CopyMethod * NewCopyMethod (client::AuthorizationCredential *_credential_, const absl::string_view &file_id, const File &_content_) const
 
FilesResource_DeleteMethod * NewDeleteMethod (client::AuthorizationCredential *_credential_, const absl::string_view &file_id) const
 
FilesResource_EmptyTrashMethod * NewEmptyTrashMethod (client::AuthorizationCredential *_credential_) const
 
FilesResource_ExportMethod * NewExportMethod (client::AuthorizationCredential *_credential_, const absl::string_view &file_id, const absl::string_view &mime_type) const
 
FilesResource_GenerateIdsMethod * NewGenerateIdsMethod (client::AuthorizationCredential *_credential_) const
 
FilesResource_GetMethod * NewGetMethod (client::AuthorizationCredential *_credential_, const absl::string_view &file_id) const
 
FilesResource_InsertMethod * NewInsertMethod (client::AuthorizationCredential *_credential_) const
 
FilesResource_InsertMethod * NewInsertMethod (client::AuthorizationCredential *_credential_, const File *_metadata_, const StringPiece &_media_content_type_, client::DataReader *_media_content_reader_) const
 
FilesResource_ListMethod * NewListMethod (client::AuthorizationCredential *_credential_) const
 
FilesResource_ListMethodPager * NewListMethodPager (client::AuthorizationCredential *_credential_) const
 
FilesResource_PatchMethod * NewPatchMethod (client::AuthorizationCredential *_credential_, const absl::string_view &file_id, const File &_content_) const
 
FilesResource_TouchMethod * NewTouchMethod (client::AuthorizationCredential *_credential_, const absl::string_view &file_id) const
 
FilesResource_TrashMethod * NewTrashMethod (client::AuthorizationCredential *_credential_, const absl::string_view &file_id) const
 
FilesResource_UntrashMethod * NewUntrashMethod (client::AuthorizationCredential *_credential_, const absl::string_view &file_id) const
 
FilesResource_UpdateMethod * NewUpdateMethod (client::AuthorizationCredential *_credential_, const absl::string_view &file_id) const
 
FilesResource_UpdateMethod * NewUpdateMethod (client::AuthorizationCredential *_credential_, const absl::string_view &file_id, const File *_metadata_, const StringPiece &_media_content_type_, client::DataReader *_media_content_reader_) const
 
FilesResource_WatchMethod * NewWatchMethod (client::AuthorizationCredential *_credential_, const absl::string_view &file_id, const Channel &_content_) const
 

Detailed Description

Acts as message factory for accessing data.

Constructor & Destructor Documentation

◆ FilesResource()

google_drive_api::DriveService::FilesResource::FilesResource ( DriveService *  service)
explicit

Standard constructor.

Parameters
[in]serviceThe service instance is used to bind to the methods created from this resource instance. This will be the service that methods are invoked on.

◆ ~FilesResource()

google_drive_api::DriveService::FilesResource::~FilesResource ( )
inline

Standard destructor.

Member Function Documentation

◆ NewCopyMethod()

FilesResource_CopyMethod * google_drive_api::DriveService::FilesResource::NewCopyMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  file_id,
const File &  _content_ 
) const

Creates a new FilesResource_CopyMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]file_idThe ID of the file to copy.
[in]<em>content</em>The data object to copy.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewDeleteMethod()

FilesResource_DeleteMethod * google_drive_api::DriveService::FilesResource::NewDeleteMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  file_id 
) const

Creates a new FilesResource_DeleteMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]file_idThe ID of the file to delete.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewEmptyTrashMethod()

FilesResource_EmptyTrashMethod * google_drive_api::DriveService::FilesResource::NewEmptyTrashMethod ( client::AuthorizationCredential *  _credential_) const

Creates a new FilesResource_EmptyTrashMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewExportMethod()

FilesResource_ExportMethod * google_drive_api::DriveService::FilesResource::NewExportMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  file_id,
const absl::string_view &  mime_type 
) const

Creates a new FilesResource_ExportMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]file_idThe ID of the file.
[in]mime_typeThe MIME type of the format requested for this export.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewGenerateIdsMethod()

FilesResource_GenerateIdsMethod * google_drive_api::DriveService::FilesResource::NewGenerateIdsMethod ( client::AuthorizationCredential *  _credential_) const

Creates a new FilesResource_GenerateIdsMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewGetMethod()

FilesResource_GetMethod * google_drive_api::DriveService::FilesResource::NewGetMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  file_id 
) const

Creates a new FilesResource_GetMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]file_idThe ID for the file in question.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewInsertMethod() [1/2]

FilesResource_InsertMethod * google_drive_api::DriveService::FilesResource::NewInsertMethod ( client::AuthorizationCredential *  _credential_) const

Creates a new FilesResource_InsertMethod instance.

Deprecated:
Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewInsertMethod() [2/2]

FilesResource_InsertMethod * google_drive_api::DriveService::FilesResource::NewInsertMethod ( client::AuthorizationCredential *  _credential_,
const File *  _metadata_,
const StringPiece &  _media_content_type_,
client::DataReader *  _media_content_reader_ 
) const

Creates a new FilesResource_InsertMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]<em>metadata</em>The metadata object to insert. If this is NULL then do not upload any metadata.
[in]<em>media_content_type</em>The content type of the data in the media_content_reader.
[in]<em>media_content_reader</em>The media content to insert. If this is NULL then do not upload any media and ignore media_content_type.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewListMethod()

FilesResource_ListMethod * google_drive_api::DriveService::FilesResource::NewListMethod ( client::AuthorizationCredential *  _credential_) const

Creates a new FilesResource_ListMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewListMethodPager()

FilesResource_ListMethodPager * google_drive_api::DriveService::FilesResource::NewListMethodPager ( client::AuthorizationCredential *  _credential_) const

Creates a pager for iterating over incremental result pages.

Parameters
[in]<em>credential</em>NULL credentials will not authorize the request.
See also
googleapis::googleapis::ServiceRequestPager

◆ NewPatchMethod()

FilesResource_PatchMethod * google_drive_api::DriveService::FilesResource::NewPatchMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  file_id,
const File &  _content_ 
) const

Creates a new FilesResource_PatchMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]file_idThe ID of the file to update.
[in]<em>content</em>The data object to patch.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewTouchMethod()

FilesResource_TouchMethod * google_drive_api::DriveService::FilesResource::NewTouchMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  file_id 
) const

Creates a new FilesResource_TouchMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]file_idThe ID of the file to update.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewTrashMethod()

FilesResource_TrashMethod * google_drive_api::DriveService::FilesResource::NewTrashMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  file_id 
) const

Creates a new FilesResource_TrashMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]file_idThe ID of the file to trash.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewUntrashMethod()

FilesResource_UntrashMethod * google_drive_api::DriveService::FilesResource::NewUntrashMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  file_id 
) const

Creates a new FilesResource_UntrashMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]file_idThe ID of the file to untrash.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewUpdateMethod() [1/2]

FilesResource_UpdateMethod * google_drive_api::DriveService::FilesResource::NewUpdateMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  file_id 
) const

Creates a new FilesResource_UpdateMethod instance.

Deprecated:
Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]file_idThe ID of the file to update.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewUpdateMethod() [2/2]

FilesResource_UpdateMethod * google_drive_api::DriveService::FilesResource::NewUpdateMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  file_id,
const File *  _metadata_,
const StringPiece &  _media_content_type_,
client::DataReader *  _media_content_reader_ 
) const

Creates a new FilesResource_UpdateMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]file_idThe ID of the file to update.
[in]<em>metadata</em>The metadata object to update. If this is NULL then do not upload any metadata.
[in]<em>media_content_type</em>The content type of the data in the media_content_reader.
[in]<em>media_content_reader</em>The media content to update. If this is NULL then do not upload any media and ignore media_content_type.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewWatchMethod()

FilesResource_WatchMethod * google_drive_api::DriveService::FilesResource::NewWatchMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  file_id,
const Channel &  _content_ 
) const

Creates a new FilesResource_WatchMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]file_idThe ID for the file in question.
[in]<em>content</em>The data object to watch.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

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