#include <drive_service.h>
Implements the export method.
This class uses the Command Pattern. Construct an instance with the required parameters, then set any additional optional parameters by using the attribute setters. To invoke the method, call Execute
.
One or more of these authorization scopes are required for this method: https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/drive.readonly
◆ FilesResource_ExportMethod()
google_drive_api::FilesResource_ExportMethod::FilesResource_ExportMethod |
( |
const DriveService * |
_service_, |
|
|
client::AuthorizationCredential * |
_credential_, |
|
|
const absl::string_view & |
file_id, |
|
|
const absl::string_view & |
mime_type |
|
) |
| |
The standard constructor takes all the required method parameters.
- Parameters
-
[in] | <em>service</em> | The service instance to send to when executed. |
[in] | <em>credential</em> | If not NULL, the credential to authorize with. In practice this is supplied by the user code that is creating the method instance. |
[in] | file_id | The ID of the file. |
[in] | mime_type | The MIME type of the format requested for this export. |
◆ ~FilesResource_ExportMethod()
google_drive_api::FilesResource_ExportMethod::~FilesResource_ExportMethod |
( |
| ) |
|
|
virtual |
◆ AppendOptionalQueryParameters()
util::Status google_drive_api::FilesResource_ExportMethod::AppendOptionalQueryParameters |
( |
string * |
target | ) |
|
|
virtual |
◆ AppendVariable()
util::Status google_drive_api::FilesResource_ExportMethod::AppendVariable |
( |
const StringPiece & |
variable_name, |
|
|
const client::UriTemplateConfig & |
config, |
|
|
string * |
target |
|
) |
| |
|
virtual |
Appends variable value to the target string.
This is a helper function used to resolve templated variables in the URI.
- Parameters
-
[in] | variable_name | The name of the templated variable. |
[in] | config | A pass-through parameter used for lists and maps. |
[in,out] | target | The string to append the value to. |
Reimplemented from google_drive_api::DriveServiceBaseRequest.
◆ get_use_media_download()
bool google_drive_api::FilesResource_ExportMethod::get_use_media_download |
( |
| ) |
const |
|
inline |
Determine if the request should use Media Download for the response.
- Returns
- true for media download, false otherwise.
◆ set_use_media_download()
void google_drive_api::FilesResource_ExportMethod::set_use_media_download |
( |
bool |
use | ) |
|
|
inline |
Sets whether Media Download should be used for the response data.
- Parameters
-
[in] | use | true to use media download, false otherwise. |
The documentation for this class was generated from the following files: