drive
v2
|
#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 |
Acts as message factory for accessing data.
|
explicit |
Standard constructor.
[in] | service | The service instance is used to bind to the methods created from this resource instance. This will be the service that methods are invoked on. |
|
inline |
Standard destructor.
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.
[in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
[in] | file_id | The ID of the file to copy. |
[in] | <em>content</em> | The data object to copy. |
Execute
the method instance, then destroy it when they are finished. FilesResource_DeleteMethod * google_drive_api::DriveService::FilesResource::NewDeleteMethod | ( | client::AuthorizationCredential * | _credential_, |
const absl::string_view & | file_id | ||
) | const |
Creates a new FilesResource_DeleteMethod instance.
[in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
[in] | file_id | The ID of the file to delete. |
Execute
the method instance, then destroy it when they are finished. FilesResource_EmptyTrashMethod * google_drive_api::DriveService::FilesResource::NewEmptyTrashMethod | ( | client::AuthorizationCredential * | _credential_ | ) | const |
Creates a new FilesResource_EmptyTrashMethod instance.
[in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
Execute
the method instance, then destroy it when they are finished. 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.
[in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
[in] | file_id | The ID of the file. |
[in] | mime_type | The MIME type of the format requested for this export. |
Execute
the method instance, then destroy it when they are finished. FilesResource_GenerateIdsMethod * google_drive_api::DriveService::FilesResource::NewGenerateIdsMethod | ( | client::AuthorizationCredential * | _credential_ | ) | const |
Creates a new FilesResource_GenerateIdsMethod instance.
[in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
Execute
the method instance, then destroy it when they are finished. FilesResource_GetMethod * google_drive_api::DriveService::FilesResource::NewGetMethod | ( | client::AuthorizationCredential * | _credential_, |
const absl::string_view & | file_id | ||
) | const |
Creates a new FilesResource_GetMethod instance.
[in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
[in] | file_id | The ID for the file in question. |
Execute
the method instance, then destroy it when they are finished. FilesResource_InsertMethod * google_drive_api::DriveService::FilesResource::NewInsertMethod | ( | client::AuthorizationCredential * | _credential_ | ) | const |
Creates a new FilesResource_InsertMethod instance.
[in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
Execute
the method instance, then destroy it when they are finished. 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.
[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. |
Execute
the method instance, then destroy it when they are finished. FilesResource_ListMethod * google_drive_api::DriveService::FilesResource::NewListMethod | ( | client::AuthorizationCredential * | _credential_ | ) | const |
Creates a new FilesResource_ListMethod instance.
[in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
Execute
the method instance, then destroy it when they are finished. FilesResource_ListMethodPager * google_drive_api::DriveService::FilesResource::NewListMethodPager | ( | client::AuthorizationCredential * | _credential_ | ) | const |
Creates a pager for iterating over incremental result pages.
[in] | <em>credential</em> | NULL credentials will not authorize the request. |
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.
[in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
[in] | file_id | The ID of the file to update. |
[in] | <em>content</em> | The data object to patch. |
Execute
the method instance, then destroy it when they are finished. FilesResource_TouchMethod * google_drive_api::DriveService::FilesResource::NewTouchMethod | ( | client::AuthorizationCredential * | _credential_, |
const absl::string_view & | file_id | ||
) | const |
Creates a new FilesResource_TouchMethod instance.
[in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
[in] | file_id | The ID of the file to update. |
Execute
the method instance, then destroy it when they are finished. FilesResource_TrashMethod * google_drive_api::DriveService::FilesResource::NewTrashMethod | ( | client::AuthorizationCredential * | _credential_, |
const absl::string_view & | file_id | ||
) | const |
Creates a new FilesResource_TrashMethod instance.
[in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
[in] | file_id | The ID of the file to trash. |
Execute
the method instance, then destroy it when they are finished. FilesResource_UntrashMethod * google_drive_api::DriveService::FilesResource::NewUntrashMethod | ( | client::AuthorizationCredential * | _credential_, |
const absl::string_view & | file_id | ||
) | const |
Creates a new FilesResource_UntrashMethod instance.
[in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
[in] | file_id | The ID of the file to untrash. |
Execute
the method instance, then destroy it when they are finished. FilesResource_UpdateMethod * google_drive_api::DriveService::FilesResource::NewUpdateMethod | ( | client::AuthorizationCredential * | _credential_, |
const absl::string_view & | file_id | ||
) | const |
Creates a new FilesResource_UpdateMethod instance.
[in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
[in] | file_id | The ID of the file to update. |
Execute
the method instance, then destroy it when they are finished. 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.
[in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
[in] | file_id | The 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. |
Execute
the method instance, then destroy it when they are finished. 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.
[in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
[in] | file_id | The ID for the file in question. |
[in] | <em>content</em> | The data object to watch. |
Execute
the method instance, then destroy it when they are finished.