std::unique_ptr<ObjectsResource_InsertMethod> request(
storage_service_->get_objects().NewInsertMethod(
&oauth_credential_, bucket, nullptr, mime_type.c_str(),
NewUnmanagedInMemoryDataReader(file_contents)));
request->set_name(file_path);
// Execute the request.
Json::Value value;
google_storage_api::Object response(&value);
auto status = request->ExecuteAndParseResponse(&response);